cancel
Showing results for 
Search instead for 
Did you mean: 

to get Internal number range

Former Member
0 Kudos

hi all,

iam able to get a external HU identification number(VEKP-EXIDV) when the user creates a new HU from FM 'NUMBER_GET_NEXT' with input object 'HU_VEKP'. but how do i get int. number (VEKP-VENUM) for the corresponding EXIDV.i dont see any object for this

i need this for my HU packing logic in my custom transaction(to pack and unpack an outbound delivery after PGI) and also when i update the DB tables later on directly.(This has been decided after extensive research based on a number of factors).

thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

RV_VEKP is the number range object that you have to use..

You can use this with NUMBER_GET_NEXT to get next VEKP-VENUM..

FYI, Transaction for maintaining this number range is VNKP..

Hope this helps..

Sri

Message was edited by: Srikanth Pinnamaneni

Former Member
0 Kudos

thanks a lot..

it solved my problem but iam curious to know one thing.

if i go to vnkp i see that the current number(Contains the last number assigned for internal number range intervals is '2281'.)

but when i used the FM to get the next number in my program i got 2275.

i was expecting to see 2282 though.

is there some logic SAP has in this..

krzysztof_konitz4
Contributor
0 Kudos

Hi,

If you look in transaction SNRO for definition of object RV_VEKP you can see that this number range is buffered.

So some quantity of numbers (for example 20) is kept in application server memory to speed up assignment...

Krzys

Former Member
0 Kudos

u guys are the best

Answers (2)

Answers (2)

Former Member
0 Kudos

Using SNRO, give your HU_VEKP object and press 'Number Ranges'. In the subsequent screen, press 'Intervals' pushbutton with the glasses icon. It will take you to a screen where you will see 5 columns. In the fifth column, you will see checkboxes. If the box is not checked, then it is your internal number range. See the corresponding value under column one (Number range number). This is the value you need to pass to your 'NUMBER_GET_NEXT' function module parameter

'NR_RANGE_NR' along with the object HU_VEKP.

Regards,

Srinivas

krzysztof_konitz4
Contributor
0 Kudos

Hi,

In order to pack delivery using internal numbers I used BAPI_HU_CREATE to create HU and then BAPI_HU_CHANGE_HEADER to assign delivery number to HU and

finally WS_DELIVERY_UPDATE to pack delivery.

Krzys