06-07-2012 5:17 AM
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
06-07-2012 5:27 AM
Hi MSR,
Go to table TVAK and check the field INCPO. Use the document type as key.
Thanks,
Shambu
06-07-2012 6:32 AM
Hi
As i understood, you want to fetch sales order & ITEM NO.For that fetch data from VBAP Table.