on 01-30-2015 12:22 PM
Hi expert,
I created a Z field for a business transaction by AET in the web ui compoent.
This field is a field like transaction number, and we had created a number range for it.
But,I'm not clear how to determin the number for it during the business transaction creation?
For example,when open the business transaction creation page,calculate a number for it,lock it, and later, if cick "SAVE", assign the value to the field,if click cancel, release it.
Is there any suggestion how to achieve this?
If any sample coding,it will be greatly appreciately.
Thanks.
Jerry.
Hi ,
You can use FM 'NUMBER_GET_NEXT' to get next available Number.
Check this one.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
nr_range_nr = '01'
object = nr_object
IMPORTING
number = l_number
returncode = returncode
EXCEPTIONS
interval_not_found = 1
number_range_not_intern = 2
object_not_found = 3
quantity_is_0 = 4
interval_overflow = 5.
Regards,
Deepika.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.