Skip to Content

Difference between 2 consecutive sales items, number range

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 07, 2012 at 04:27 AM

    Hi MSR,

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

    Thanks,

    Shambu

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 07, 2012 at 05:32 AM

    Hi

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.