{{tag>Function Function_List Miscellaneous Version:v8.4}} ====== NEXT_SEQUENCE_NMB ====== ===== Description ===== Returns next value of the specified auto-incremented attribute ===== Syntax ===== ''NEXT_SEQUENCE_NMB (object, attribute[, group[, start]])'' Cannot be used in the condition of a [[:ref:a_f:a:find|FIND]] action. ===== Parameters ===== - Name of the business object that owns the auto-incremented attribute - Name of the auto-incremented attribute - Optional expression that calculates the value identifying group of instances as specified in the auto-incremented attribute - Optional expression that calculates the starting value of the sequence as specified in the auto-incremented attribute ===== Returns ===== **Number**: the next value of the auto-incremented attribute. ===== Example ===== IF Object.AutoIncAttr IS UNDEFINED THEN Object.AutoIncAttr = NEXT_SEQUENCE_NMB('Object', 'AutoIncAttr', Object.GroupValue) ===== Related ===== [[ref:a_f:f:af:get_attr_value|GET_ATTR_VALUE]], [[ref:a_f:f:af:next_sequence_time|NEXT_SEQUENCE_TIME]]