Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between 2 consecutive sales items, number range

former_member202077
Participant
0 Kudos

Hello

Its known thing that Sales order items are incremented by 10, like, 1st item is POSNR = 10, 2nd item is POSNR = 20, 3rd item is POSNR = 30, so the differnece is 10, well, pls. let me know that from which table i can pull this 10? is it a number range? bcz i am writing the below code in my prog., but i want to make sure that its 10 between 2 consicutive sales items

DATA: lv_previous_item TYPE posnr_va.

lv_previous_item = wa_vbap-posnr - 10.

Thank you

2 REPLIES 2

Former Member
0 Kudos

Hi MSR,

Go to table TVAK and check the field INCPO. Use the document type as key.

Thanks,

Shambu

former_member16553
Active Participant
0 Kudos

Hi

     As i understood, you want to fetch sales order & ITEM NO.For that fetch data from VBAP Table.