How to retrieve delivered quantity in MSA sales document flow.

Hi gurus,
we're trying to retrieve the R/3 delivered quantity (for a sales order item) from the BDoc segment SALESDOCFLOW_OBJECT during the download to MSA.
The point is that we have in that segment different rows with document type R, but only some of these are the relevant.
In other words we want to read the delivered quantity information in MSA.
Do you have any suggestion?
Thanks in advance and best regards,
Fabrizio

solved on my own.

Similar Messages

  • Sales document flow table VBFA

    Hi All,
    What exactly the meaning of sales document flow how the data in table VBFA  is filled I mean from which Tcodes this table data will be filled?
    I am calculating the open quantity of a particular sales document which the data (quantity delivered vbfa-rfmng ) I have to take from table VBFA and subtract this from the order quantity(vbap-kwmeng).
    Thanks&Regards
    Mahesh

    Use SE16 see the fields of VBFA.
    Normally the sales document flow is SALES ORDER -> DELIVERY-> INVOICE.
    For a particular case it can be
    SO -> Del -> PGI -> Inv -> SO (Return) -> PGR -> Inv (RE-Type) and so on.
    If we know the document no of any one of them thru VBFA we can get the precceding and the following document.
    Thanks,
    Ashish

  • Sales Order -- Purchase Req -- Purchase Order ..... Sales Document flow??

    Hi Guys,
    We have a process where we proccure few parts externally. When a sales order is created in our system based on the item category config we are able to create a purchase requition automatically. This Preq is further used to create a PO based on which the purchasing group proccures the part from the vendor.
    We are trying to identify if there is a way to find out a way if we can relate the PO number created in the sales document flow? Currently we are not able to view the PO number in the sales document flow. We are trying to identify if this is possible and if yes what needs to ne configuered to enable PO number linking in sales document flow?
    Any pointers?
    Cheers
    VJ

    Hi Bikash,
    The PO field which u r referring to on the VA01 screen is the PO number against which a SO is created. This PO number is the customers PO number. My requirement is i need to store the Intercompany PO number which is the PO number created to procure the part externally from the vendor. So its the vendor PO number and not the customer PO number.
    Secondly if i try to misuse any other field to store this PO number it dosent make sense as it would not show up in the document flow screen so it would be of no use to us. We want to enable it the std way and i am sure SAP has provided some way to do it.
    I check the OSS notes and found some interesting tips working on that hopefully should be able to resolve it.
    Cheers
    VJ

  • Sales document flow(vbfa) entries are deleted

    Hi Guys,
            I am facing a problem with VBFA table. Actually for some delivery i am able to get Sales order number from VBFA table but for some delivery there is no records exists in VBFA table. So just want to know is there any program or Funtion module which delete entries from VBFA table if not then is there any functional configuration which not allowed to enter data in VBFA table. In my system i searched for all the programs and function module  but no luck.
    I can saw the Sales document flow in VL03N but no entries in VBFA table.
    thanks,
    Baidya

    Hi  Guys,
          Thanks for the replies.
    But this is true for some delivery there is no entries in VBFA table but entries are exist in LIKP and LIPS. We are using userexit in sales order program for creating delivery. The Function module  which creates delivery inside the USER-EXIT is : BAPI_OUTB_DELIVERY_CREATE_SLS.
    If anyone face this type of problem please reply..
    Thanks,
    Baidya

  • How To Get The Total Delivered Quantity of a Sales Order

    Hello All,
    I have a requirement of getting the total delivery quantity of the sales order .I have checked it in LIps table but I am getting partially delivered quantity for a schedule line item.Can any one tell me how to get the total delivered quantity.
    Regards,
    Pavani.

    Hi
    Check the Table:
    VBEP  - Sales Document: Schedule Line Data.
    Inside the table check the Quantity Fields.
    Regards,
    Sreeram

  • How to configure a new third party sales document type?

    Hi SAP SD gurus,
    I am new to the SAP world, I need your help in configuring a new third party sales document type for a site.
    There are existing third party document types being used in the region, but the client wants an entirely new third party document type that is activated for CREDIT MANAGEMENT.
    I just need your inputs, as how to go about it. If I copy from an existing third party sales doc. What additional steps do I need to follow? Like Item category config, copy control settings, and credit management.
    Is there a need to create new billing types?
    Also as per process, by creating a new document type, how will it affect the logistic processes, if any?
    Thanks a lot in advance for your valuable inputs.

    Hello,
    You can create new document type under following customization path
    SPRO>>Sales and Distribution>>Sales>>Sales Documents>>Define Sales Document Types
    Now create new document type by copying the standard document type OR
    Now go to
    SPRO>>Sales and Distribution>>Sales>>Sales Documents>>Sales Document Item>>Define Item Categories
    which is already defined for third party sales (TAS)
    Now assign this iteme category to your new document type
    SPRO>>Sales and Distribution>>Sales>>Sales Documents>>Sales Document Item>>Assign Item Categories
    Assignment needs to be done in combination of sales document type and item category group (BANS)
    Now
    SPRO>>Sales and Distribution>>Sales>>Sales Documents>>Schedule Lines
    Assignment of schedule line is already done as you are using the standard one.
    Lastly, you may need to maintain copy control for your newly created sales document type for this go to
    SPRO>>Sales and Distribution>>Sales>>Maintain Copy Control for Sales Documents
    (Copying Control: Sales Document to Sales Document)
    Here you can define copy control requirements.
    BR,
    Tushar

  • How can the exchange rate of a sales document can be added in PA report?

    Hi!!!!!!!!!!!!!
    The main issue, is that I have to add  the ammount of  the sales document in the "sales document currency" , I already have it in local currency, so I was trying to add the exchange rate  and create a fomula it in the form in order to get the information.
    Do somebody knows if it has to be created as a characteristic or value fied? How do I know if it has to be created an enhancement?
    Thanks!!!!!

    Hi
    As far as my knowledge goes, you cant add the exchange rate of the sales order to your COPA report
    Whatever currency is posted in your FI, only that currency can come into COPA plus your op concern currency...
    If it is so imperative in your case to report the transaction currency, You can, may be, think of creating one custom char (for Currency Code USD or INR, etc) and one value field and you can update them using user exit in COPA (COPA000*)... In this VF and Char, you can update, say 100 as the value and USD as the currency...
    Or may be wait for other suggestions from group members
    Regards
    Ajay

  • How can I see the list of sales documents of a customer?

    what transaction where you can view the sales documents of a customer? I'm not authorized to use se11, I can only investigate it thru the transactions.
    Points for helpful ideas.
    Thanks!

    Hi,
    Use T.Code VA05.
    When once u go into the overview screen of the va05, u can come across a field called sold to party which helps to find all the sales orders . And also u r having an option to select the date range and also the types of orders to select
    Mohan
    Hope it adds information.
    Award points if it adds information.

  • Sales Document Flow - Ref. Value not showing correct currency

    I have a question about document flow currency in ECC6.0.  We recented upgraded to ECC6.0 from 4.7 and noticed the changes to document flow.  We are a US based company with sales offices in Europe.  Our European offices are finding that that document flow in ECC6.0 shows in base currency of USD.  Even thought the sales order was entered in EUR euros.  Is this intended to be this way; since it is causing our offices in Europe some confusion?  I searched forums an SAP notes and did not find any references.  Has anyone see this in ECC6.0
    Example Document Flow: Line Level (I do not see Ref Value at header level)
    Note Sales Document was entered in EUR euros.
    Document     Quantity     Unit     Ref. Value     Currency
    Standard Order 0025082768 / 10     12 EA     5,207.54 USD
    ...Delivery 0080211725 / 10     12 EA
    .....Picking request 20100423 / 10     12 EA
    .....Handling unit 0001221687 / 1     12 EA
    .....GD goods issue:delvy 4901261948 / 1     12 EA     1,690.08 GBP
    ...Invoice 0092006736 / 10                           12 EA     5,207.55 USD
    Accounting document 0092006736     12 EA
    If I highlight top line in document flow, I see the following in lower part of screen.  This is the currency entered on the sales order.
    0025082768     10          12     EA     3,847.80     EUR

    Smile,
    Thanks for pointing those configuration points out.   I checked my system and found the following.  I do not see any change documents for the configuration points, so they have been set this way since our implemenation in 2005.
    XD02 is customer master change, the customer on my order is set to EUR in sales in distribution tabs.
    OX02 - Company Code
    1000     Middleton     USD...ok
    2000     London     GBP   ok
    2100     Munich     EUR...ok
    2210     Amsterdam     EUR...ok
    4000     Hong Kong     USD...ok
    I think OVX5 is not set correctly, should be same as OX02.  If I change them, do I need to run an update in the system for old data?  Or is it as simple as changing the value here?  I'm hesitant to change this not knowing how this will affect the system.  Do you know?
    OVX5 - Sales Org
    1000     Middleton     USD...ok
    2000     London     USD   should be GBP
    2100     Munich     USD   should be EUR
    2210     Amsterdam     USD...should be EUR
    4000     Hong Kong     USD...ok
    Thanks,
    Tony Romain

  • A FM for the Sales Document Flow ...?

    Hi Friends;
    I know that the Sales and Distribution Flow is kept in table VBFA .? But is there a ready function module that gives me the shipment note number  and invoice number taking reversals into consideration and giving the actual and final flow of sales order item ?
    for example : input     SALES Document : SD001 item 10
                        output   shipment Notice    : 8000001 item 10
                        output   invoice number      : 9000001 item 10
    Kind regards.
    Erkan VAROL.

    Hi,
    look for example to BAPI_SALESORDER_GETLIST
    CALL FUNCTION 'RV_ORDER_FLOW_INFORMATION'
    Please check table VBFA. It contains all the information about document flow in SD.
    Check the example program below, it is not a function call, it is a dialog call.
    (Or)
    report zrich_0001.
    data: xvbco6 type vbco6.
    data: xvbak type vbak.
    parameters: p_vbeln type vbak-vbeln.
    clear xvbco6. clear xvbak.
    select single * from vbak into xvbak
    where vbeln = p_vbeln.
    move-corresponding xvbak to xvbco6.
    call dialog 'RV_DOCUMENT_FLOW'
    exporting
    vbco6 from xvbco6
    ivkorg from xvbak-vkorg
    ivtweg from xvbak-vtweg.
    Regards

  • Standard programme for sales document flow

    hi
    Can any one tell me what is the standard report for complete slaes document flow
    Thanks
    Alka

    Hi,
    There is a standard FM:
         CALL FUNCTION 'RV_ORDER_FLOW_INFORMATION'
               EXPORTING
                  COMWA               = comwa
               TABLES
                  VBFA_TAB            = VBFA_TAB
               EXCEPTIONS
                  NO_VBFA             = 1
                  NO_VBUK_FOUND       = 2
                  OTHERS              = 3
         IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.
    * Get PGI Document
         clear w_pgi_document.
         loop at vbfa_tab where vbtyp_n = 'R'.
              w_pgi_document = vbfa_tab-vbeln.
         Endloop.
    * Get INV Document
         clear w_inv_document.
         loop at vbfa_tab where vbtyp_n = 'M'.
              w_inv_document = vbfa_tab-vbeln.
         Endloop.
    * Get a/c Document
         clear w_ac_document.
         loop at vbfa_tab where vbtyp_n = '+'.
              w_ac_document = vbfa_tab-vbeln.
         Endloop.
    I hope this helps,
    Regards
    Raju Chitale
    Edited by: Matt on Dec 12, 2008 8:35 AM - Please use  tags around your code.  See how much better it looks!

  • Sales document flow

    hi sap
    hw can i write a logic to relate vbak,likp,mkpf,vttk,vbrk to view document flow for sales order.
    in display i need sales order number, delivery document,invoice doc,shipment doc, pgi doc.
    pls help in step by step of start of selection.
    \[removed by moderator\]
    thanx in advance.
    Edited by: Jan Stallkamp on Aug 6, 2008 2:26 PM

    Hi Sapna,
    You can check this code... this will be helpful
    Sales life cycle.
    REPORT Z_SD_LC_REPS_S NO STANDARD PAGE HEADING
                            LINE-SIZE 130
                            LINE-COUNT 26(3).
    TABLES :
           VBAK,
           VBAP,
           VBEP,
           LIKP,
           LIPS,
           MARA,
           MVKE,
           VBRK,
           TVLKT.
    DATA : BEGIN OF I_SDLC OCCURS 0,
              VBELN LIKE VBAK-VBELN,
              AUDAT LIKE VBAK-AUDAT,
              VGBEL LIKE VBAK-VGBEL,
              VGBEL1 LIKE VBAK-VGBEL,
              MATNR LIKE VBAP-MATNR,
              BMENG LIKE VBEP-BMENG,
              NETPR LIKE VBAP-NETPR,
              LFDAT LIKE LIKP-LFDAT,
              FKDAT LIKE VBRK-FKDAT,
              AUART LIKE VBAK-AUART,
           END OF I_SDLC.
    SELECT-OPTIONS: S_VBELN FOR VBAK-VBELN.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-TAT.
    SELECT-OPTIONS: S_AUDAT FOR VBAK-AUDAT,
                    S_VKORG FOR VBAK-VKORG,
                    S_VTWEG FOR VBAK-VTWEG,
                    S_SPART FOR VBAK-SPART.
    SELECTION-SCREEN END OF BLOCK B1.
    TOP-OF-PAGE.
    WRITE : /20 ' REPORT ON COMPLETE SALES LIFE CYCLE IN A PARTICULAR SALES
    AREA ' COLOR COL_HEADING.
    ULINE.
    WRITE: /5 'VBELN' ,
           15 'AUDAT' ,
           26 'MATNR' ,
           45 'BMENG' ,
           64 'NETPR' ,
           81 'LFDAT',
           92 'FKDAT' ,
           103 'AUART' ,
           108 'VGBEL',
           119 'VGBEL1'.
    ULINE.
    START-OF-SELECTION.
    SELECT A~VBELN
           A~AUDAT
           A~AUART
           A~VGBEL
           B~MATNR
           B~NETPR
           C~BMENG
    *       D~LFDAT
    *       E~FKDAT
      INTO CORRESPONDING FIELDS OF TABLE I_SDLC  FROM
      ( ( VBAK AS A
      INNER JOIN VBAP AS B ON B~VBELN = A~VBELN )
      INNER JOIN VBEP AS C ON C~VBELN = A~VBELN AND B~POSNR = C~POSNR )
    *  INNER JOIN LIKP AS D ON D~VBELN = A~VBELN )
    *  INNER JOIN VBRK AS E ON E~VBELN = A~VBELN )
      WHERE A~VBELN IN S_VBELN AND
            A~AUDAT IN S_AUDAT AND
            A~VKORG IN S_VKORG AND
            A~VTWEG IN S_VTWEG AND
            A~SPART IN S_SPART AND
            A~AUART = 'ZZOR'.
    LOOP AT I_SDLC.
       SELECT LFDAT INTO CORRESPONDING FIELDS OF I_SDLC
              FROM LIKP WHERE VBELN = I_SDLC-VBELN.
       SELECT FKDAT INTO CORRESPONDING FIELDS OF I_SDLC
              FROM VBRK WHERE VBELN = I_SDLC-VBELN.
       MODIFY I_SDLC INDEX SY-TABIX.
       ENDSELECT.
       ENDSELECT.
       SELECT VGBEL INTO I_SDLC-VGBEL1 FROM VBAK
             WHERE  VBELN = I_SDLC-VGBEL.
             "AND AUART = 'QT'.
        MODIFY I_SDLC INDEX SY-TABIX.
       ENDSELECT.
    ENDLOOP.
    END-OF-SELECTION.
    LOOP AT I_SDLC.
    AT NEW VBELN.
    WRITE : /5 I_SDLC-VBELN.
    ENDAT.
    WRITE :/15 I_SDLC-AUDAT ,
           26 I_SDLC-MATNR ,
           45 I_SDLC-BMENG LEFT-JUSTIFIED,
           64 I_SDLC-NETPR LEFT-JUSTIFIED,
           81 I_SDLC-LFDAT ,
           92 I_SDLC-FKDAT ,
           103 I_SDLC-AUART,
           108 I_SDLC-VGBEL,
           119 I_SDLC-VGBEL1.
    ENDLOOP.
    END-OF-PAGE.
    WRITE: /75 'PAGE:', SY-PAGNO.
    regards
    padma

  • How do know open quantity  for a  sales order  (patially  delivered)

    Hi  Gurus,
    I have requirement to  know  open quantity for  sales order and it was partially delivered.
    Any table  to know partially delivered qty of a material for a  sales order.

    Hi
    Check This Table  VBBE for open order quantity
    You can find open Qty like this
    Open Qty  = Delivery Qty (LIPS-LFIMG) - Order Qty (VBAP-KWMENG)
    Swamy

  • How to retrieve invoice details from the sales order .. urgent..

    hi,
    i am retrieving  vbak-vbeln with this i should retreive invoice details
    how to relate vbak with abrk table
    i have vbak -vbeln,erdat,VBAK- VKORG,VBAK-KUNNR,VBAK-VTWEG,VBAK- SPART.
    its urgent..

    Hi
    U can see the sales order number in VBRP table, fields:
    VBRP-AUBEL and VBRP-AUPOS.
    But if u have the sales order number it's better to use VBFA table.
    SELECT * FROM VBFA WHERE VBELV = VBAK-VBELN
                         AND VBTYP_N = 'M'
      SELECT SINGLE * VBRK WHERE VBELN = VBFA-VBELN.
      IF SY-SUBRC = 0.
        WRITE: 'Bill number:', VBRK-VBELN.
      ENDIF.
    ENDSELECT.
    U have to make sure to use the right document type:
    M = Invoice
    N = Invoice cancellation
    So the bill type depends on the sales order type
    Max

  • How to validate the quantity booked in sales order

    Hi,
    When a sales order is booked for a customer, a validation should be done for the quantity ordered on this particular customer,
    If any order placed for an item beyond max order quantity for this customer, system should pop up some message or alert to the user.
    This should take care of multiple entries of that item in the sales order lines.
    Awaiting your valuable reply,
    Regards,
    Prasad

    Hi,
    If I understood correctly, a customer “C” can order at most 10 units, for example, in one order, however, “C“ can order 20 units divided in two orders, 10 units each.
    If you use blanket sales order, you can define the maximum quantity that can be entered in each release. I made some tests here and it’s performing the validation only at the line level, not across all order lines as you require. I don’t know if this is the intended functionality. If it is, maybe a forms personalization could be used in order to validate the total ordered quantity against the quantity defined in the blanket sales order.
    Another issue is that you will not enter the sales order directly into Sales Order form; you will need to find the blanket sales order and then create a release (sales order linked to the blanket).
    In order to prevent user from entering orders to this customer with no reference to the blanket, it’s possible to define a security rule in OM preventing orders to this customers without a blanket sales orders reference.
    Regards,
    Ketter Ohnes

Maybe you are looking for

  • Problem with mail for exchange after update on E72...

    Hi everyone,   I updated Nokia E-mail to ver 3.9 on E72. Now I am facing  a problem with mail for exchange. I have configured gmail on mail for exchange. I recieve a warning that "unable to sync contact administrator if problem persist". It started

  • Changing brush size deletes the layer

    In CS5 on Mac OS X 10.8.2, using the [ key to change the brush size deletes the current layer after two-three presses. Why is that and how do I stop it from happening? The also happens with the scroll ring on a wacom intuos 5 tablet. Pressing and hol

  • The inevitable Bauerbill, Clyde, Packer or other AUR helpers thread

    Some new titans among the many AUR helpers. Hard to choose between them, if necessary at all ;-) The big newcomers: http://bbs.archlinux.org/viewtopic.php?id=91860 http://bbs.archlinux.org/viewtopic.php?id=88247 http://bbs.archlinux.org/viewtopic.php

  • Graphical Display of spool Request Errors

    HI, Can someone help me where I can find the more details for the following processing Category when we graphical display of spool request in SM37 1) Not Relevant 2) Inappropiate Status 3) Error

  • Interactive Report Source Issue (Speed Related)

    Hi, I'm having a bit of an issue with an interactive report that forms the basis of an app i am creating. This was running fine until i decided to switch up the number of test rows from 100k to 5 million. The source for the report is as follows SELEC