Logic for fetching Quantity Delivered and Invoiced

I am creating a Sales Order report in which I need to Fetch the delivered Quantity and Invoiced Quantity fields.
I am currently going to VBFA table and pass SO and line item number and fetch all data. Then I perform addition/ subtraction to remove cancelled quantities.  this is making the logic complicated.
Is there any standard Function module/ or table or BAPI which can fetch the Delivered and Invoiced quantities directly?
Regards,
Onkar Borkar

Hi Experts,
There is a  requirement where in it is required to track changes in the field 'Batch' in the deliveries. This change log report should have the option of checking the log for multiple deliveires at a time. It can be similar to the delivery change log report that we have but shoul run for multiple deliveries at a time.
Please let me know if such a reporet is available in standard SAP or in LIS repporting.
Thanks/ Regards,
Onkar

Similar Messages

  • Logic to fetch delivered and invoiced Qty using sales order and line no

    Hi Experts,
    I am creating a Sales Order report in which I need to Fetch the delivered Quantity and Invoiced Quantity fields.
    I am currently going to VBFA table and pass SO and line item number and fetch all data. Then I perform addition/ subtraction to remove cancelled quantities. this is making the logic complicated.
    Is there any standard Function module/ or table or BAPI which can fetch the Delivered and Invoiced quantities directly?
    Regards,
    Onkar B

    Hi,
    First pass the sales order number into "VBFA" table into the field "VBELV".
    Execute or Press F8.
    Get the document number of the delivery from "VBELN".
    Pass the same delivery document numebr into "LIPS" table into the field "VBELN".
    Execute.
    Get the value of the delivery quantity from the field "LFIMG" in this table.
    Next got the table "VBFA".
    Pass the delivery document number into the field "VBELV".
    Execute or Press F8.
    Get the document number of the billing document from "VBELN".
    Pass the same billing document numebr into "VBRP" table into the field "VBELN".
    Execute.
    Get the value of the invoiced quantity from the field "FKIMG" in this table.
    Like this we have to get the delivery and invoice quantities.
    Regards,
    Krishna.

  • PO report including amount already delivered and invoiced

    Is there a standard report that shows, by line item, the total amount delivered and invoiced.  We are looking for something that will display the PO number, vendor, qty on the PO, amount received, value of the items and amount invoiced.  I tried ME2N, and it shows the amount still to be delivered and invoiced, but not the amount already delivered or invoiced.  We'd also like something that could be easily downloaded to Excel.
    Thanks!

    Hi,
    As you also wants to download in Spreadsheet, i will suggest you to dovelop the report with the help of your technical team.
    Because the ME2N with the scop of list ALLES will give you the complete information, but it will not give you the information in tubular form.
    Regards,
    Manish

  • Sales order delivered and invoiced but purchase req still open?

    Hi all
    I have a process where a sales order triggers the creation of a third party purchase requisition. 
    A PO was created and then deleted because the sales order was filled from a different purchase order where too much had been ordered. 
    The sales order was delivered and invoiced but the original Purchase Req is still open on MD04!
    I can't find anyway to delete the req as it tells me it has to be deleted via the sales order but the sales order appears complete.
    Any ideas??

    Hi,
    Deletion of PR can be done using ME52N
    This is only possible provided that no purchase order have been assigned.  If po has been created, you can only Flag for Deletion.
    To delete the pr, select the line(s) you wish to delete and then click on the dustbin icon.
    Hope this will help you !!!
    Regards,
    Krishna O

  • How to calucalate to be delivered and invoiced for a PO?

    Dear experts,
    I want to develop a program to display "Still to be delivered" and "Still to be invoiced" for selected Purchase order.
    Just similar to ME2N... but I found it very difficult to re-calculate them by the complex standard programs (LMEREPI02).
    I was wonder if there may have some functions or BAPI could help?
    Thanks,
    Neil

    if another person needs!!
    Is necessary use the BAPI (BAPI_PO_GETDATAIL1).
    Fill:
    Pushaseorder = With the PO(Purchase Order Number) EBAN-EBELN
    After this, get POITEM the fiel Quantity, have a quantity the PO, but to calculate "Still of delivered" is necessary, cathc the values POHISTORY_TOTAL-DELIV_QTY and subtract the POITEM-QUANTITY.
    Still of delivered = POITEM-QUANTITY - POHISTORY_TOTAL-DELIV_QTY.

  • Dynamic layout elements determination logic for output of Pro-Forma Invoice

    This is my requirement below. Please give the suggestion    
    Business requires output to be generated in name of the client, with client logo and scenario specific data elements. To do this in Standard SAP will require to define hundreds and hundreds of layouts. By making most of the client/scenario elements on the layout we can greatly reduce the number of required layouts and reduce implementatuion effort and lead-time.
         The goal is to define a generic table that will hold most of the dynamic layout elements for different document types and countries, including logo, sender address etc.
          For this we will create Z-versions of the output types BA00 ( Order Confirmation, ZPRI (Pro-Forma Invoice) and RD00 (ZD00 Invoice).The layout text blocks will be permanently fixed.The print Program user-exit should call the Z-table that holds the dynamic layout elements and retrieve these elements and merge them with the matching layout text block.
    Message was edited by: janardhan b

    Hi Janardhan,
       Even I have faced the similar situation.but what we have done is instead of calling the dynamic text elements..Why don't we call the text elements based on the required condition ,Then u dont have to maintain all the text elements required in the table.In the table we can only have the doumnent type,client name,logo name and address.
    In the print program if u r using script layout then call the required text elements (write_text) based on the client name and document type that is fetched from the Z-table,Otherwise if u r going for smartforms then with in the layout give the condition under the conditions node of the window or the text.

  • FM for fetching country,industry and IBU

    Hi,
    I have to fetch the
    1)Prospect country
    2)Prospect industry and
    3)Prospect IBU
    Corresponding to the prospect selected.
    Which FM i have to use?
    Thanks in advance.
    Regards
    Shilpi

    Hi shilpi ,
    You can try FM RH_STRUC_GET to get the positions as well as users assigned to the position.
    Hope this will help you.

  • Alternative for fetching order number and batch

    Hi All,
    I am currently using CAUFV table to fetch order numbers based on material number and plant.
    After that i am filtering these order numbers and fetching the batch  from AFPO table using the item number and the order
    numbers obtained from CAUFV table.
    Is there a table using which i can get the order number and batch based on the  material number and plant.
    Regards,
    Arjun

    Use viwe IOAFPO and select it

  • How can we get Delivery Slip and Invoice number for the SO in custom Report

    Hello,
    I am developing a new report for the Sales Order.For this , I have to diplay the Deliver slip and Invoice number.
    Could you please explain the logic for this.
    Thanks and Regards
    NTR

    Hi,
    Pass sales order number to table VBFA-VBELV. You will get the complete doc flow. VBTYP_N differentiate whether it is delivery,GI or invoice etc. (Check for domain values for more info on this)
    Thanks,
    Vinod.

  • Distinguishing between IDocs for Delivery, Shipment and Invoice

    Hi Experts,
    I have a requirement where I am triggering IDocs from SAP for Delivery Document, Shipment and Invoice and sending them to a third-party middleware everytime they are created in SAP, by configuring output types for these documents.
    I want to know if we have any field in these IDocs's Structures that can be used to distinguish between the different documents such that we can identify which document has been received based on this field (or combination of fields)?
    I tried to use Document Category for this purpose, but this field is not available in Invoice and moreover, the IDoc Segment names are different for every IDoc's message type.
    The key point here is that I am not allowed to do any sort of Customization in SAP to achieve this and I can only go about using the Standard Functions inherently available in SAP.
    Please suggest a possible solution for this predicament of mine.
    Thanks in advance.
    Regards,
    Keerthi

    Hello Keerthi
    I do not see where the problem lies.
    We exchange via FTP share  similar documents with one of our logistics partner:
    Inbound delivery (VL33N) => sent as DESADV.DELVRY03 => converted on SAP-XI to TRADACOMS ORDHDR => file suffix .LTI
    Shipping Order (VL03N) => sent as SHPORD.DELVRY03   => converted on SAP-XI to TRADACOMS ORDHDR => file suffix .LTO
    I am not a fan of functional file names yet if the third-party tools is not capable to distinguish between the documents based on their contents at runtime then we need old-fashioned unique file suffixes.
    Of course the two ORDHDR messages can be distinguished based on their contents. The message contains a TYP segment with the following qualifiers:
    TYP/TYP2 = '0430' = (shipping) order (= outbound delivery)
    TYP/TYP2 = '0660' = inbound delivery
    From this logistics partner we receive two different kinds of DLCHDR (delivery confirmation) messages:
    TYP/TYP2 = '0670' = Proof of Delivery for (shipping) order => mapped to STPPOD.DELVRY03
    TYP/TYP2 = '0695' = Goods receipt for inbound delivery    => mapped to WHSCON.DELVRY03
    The files have different suffixes yet they are not evaluated. SAP-XI just picks both messages and evaluates at runtime whether it has to transform the DLCHDR into a STPPOD or WHSCON IDoc.
    Regards
      Uwe

  • Standard Objects for Goods Receipt and Invoice

    Hi experts,
    Is there any Standard Object for Creating Goods Reciept and Invoice in SAP other than standard BAPIs

    Try to use the PROCESSKEY standard infoobject (BWVORG in R3/ECC) to discriminate the good receipt from the invoice one...
    An other option is create a custom generic data source with a view on EKBE table and use the EKBE-VGABE field to discrimate them.
    Regards.

  • LO DataSource for Goods receipt and Invoice receipt

    Hi all
    In LBWE, under Purchasing there are few DataSources available for Goods receipt and Invoice receipt. Is there any DataSource for both Goods receipt and Invoice receipt. What are the DataSources available for Goods receipt and Invoice receipt. Please clarify the difference.
    Thanks.
    Zak.

    Try to use the PROCESSKEY standard infoobject (BWVORG in R3/ECC) to discriminate the good receipt from the invoice one...
    An other option is create a custom generic data source with a view on EKBE table and use the EKBE-VGABE field to discrimate them.
    Regards.

  • Sales order net value and invoice net value differ

    Hi Gurus,
    i placed  sale order 03/08/2009 the net value of the order is 30000 USD, the same day i have done some price modification (manually i entered the header condition with value of 50 USD) after entering the header condition sales order net values is showing 50 USD. then delivered and invoiced. in the invoice net value is showing 30000 USD. my requirement is the invoice also has to show the 50 USD only. why it is not showing the sales order net value? is there any setting need to be done  regarding this problem?
    Thanks in advance

    i changed the pricing type as D
    From your comments, I presume in copy control, a different alpha value would have been maintained and with that settings, sale order, delivery and billing were generated.
    What I would suggest you is that you create a sale order once again for the same customer and 5 materials, make same changes in pricing, do PGI and billing.  See how it works.
    thanks
    G. Lakshmipathi

  • Importing os Open PO,GRPO and Invoice Through DTW

    Hi All,
        Please tell me what are the exact Templates and Mandatory fields for Open PO,GRPO and Invoice through DTW.
    Kind Regards
      silpa

    Purchase order - oPurchaseOrder DTW template
    Documents template
    -Record Key
    - Vendor Code (CardCode)
    Document Lines template
    -Record Key
    -Line Number
    - Item Code
    - Qty
    - TaxCode
    - Ware House
    Goods Receipt Purchase Order - oPurchaseDeliveryNotes DTW template
    Documents template
    -Record Key
    Vendor Code (CardCode)
    Document Lines template
    -Record Key
    -Line Number
    - Item Code
    - Qty
    - TaxCode
    - Ware House
    AP Invoice - oPurchaseInvoice DTW Template
    Document template
    -Record Key
    - Vendor code
    - Vendor ref no.
    Document Lines template
    -Record Key
    -Line Number
    - Item Code
    - Qty
    - Price
    - Tax Code
    Jeyakanthan

  • PO creation Date and Invoice creation Date

    Hi,
    Can any one help me regarding which table I can look for PO creation date and Invoice creation date. I require these fields for my reporting requirement.
    Thanks in advance,
    Arvind.

    Thanks for your response Bala.
    I got the Table which I require. I have one more question on this.
    Can you tell me Invoice Creation Date is RBKP-BLDAT(Document Date in Document) or RBKP-BUDAT(Posting Date in the Document) and PO creation Date is EKKO-AEDAT(Date on which the record was created) or EKKO-BEDAT(Document Date in Document).
    Points already rewarded.

Maybe you are looking for