cancel
Showing results for 
Search instead for 
Did you mean: 

How to allocate a number according to a number range to a Z field in WEB UI?

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

deepika_chandrasekar
Active Contributor
0 Kudos

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.

Answers (0)