Skip to Content

Getting delivered Quantity using ABAP Program

Dear All,

How can I get the delivered quantity against a sales order document (Orders in VA03).?

Which tables are involved.? How can I join the tables.?

Regards,

Aneel

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on May 14, 2014 at 04:31 AM

    Hi Aneel,

    Pass your SO and Item No. and 'J' (this is document type for Delivery) in VBFA-VBELV and VBFA-POSNV and VBFA-VBTYP_N respectively. The field VBFA-RFMNG will give you delivery quantity against each delivery number. Sum them up, and there you are, with total delivered quantity for SO-item.

    Thanks,

    Anubhab

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 13, 2014 at 07:44 PM

    Aneel,

    You should take the sales order number and item number and find the corresponding lite item in the delivery. The field LFIMG in LIPS will tell you the quantity that is delivered.

    For sales order, you can use VBAK/VBAP

    For Delivery you can use LIKP/LIPS.

    Thanks,

    Vikram.M

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 14, 2014 at 04:06 AM

    Hi Anil,

    Pass the sales order in VBFA-VBELV take the delivery field VBELN and item field POSNN pass these two fields into LIPS-VBELN and LIPS-POSNR and take the delivery quantity field from LIPS.

    Hope this helps.

    Reagrds,

    Siddhesh Satghare.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 14, 2014 at 05:53 AM

    First read Note 185530 - Performance: Customer developments in SD, you will get many information on SD tables and how to efficiently read those.

    Regards,

    Raymond

    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.