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

Similar Messages

  • Header record in document flow table VBFA

    Hello experts:
    I would like to have header entries (item number as "000000") for every document in document flow table VBFA. How to get it done?
    We have copy control from sales document to delivery document and from delivery to billing. All items are copied.
    Would appreciate your help.
    Raj

    Hi Ulrich:
    Thanx for your reply.
    To give you a little background. I am both a developer and SD consultant. In my previous assignments where I was only a developer, I used to query document flow with item no. as "000000" to limit the selection for performance reasons. If you notice, I did not have to hard-code item no.s as it is dynamic. So, it was a cool option. It is the case with VBKD table too.
    Right now, I work in a highly performance conscious environment where I thought it would be useful to implement what I had experienced before. But I am stuck!! My previous experiences make me think it is possible and hence the question.
    Thanks,
    Raj

  • 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

  • Materials Management Document flow  table

    hi all,
    can any body tell me the Materials Management Document flow  table .
    thnaks

    Hi,
    T001L     Storage locations
    T024E     Purchasing organization
    T3001     Warehouse number
    TVST     Shipping point
    TVLA     Loading point
    TTDS     Transportation
    ADRC     Addresses (Business Address Services)
    Material master :
    MARA     Material master
    MAKT       Material text
    MARC     Material per plant / stock
    MVKE     Material master, sales data
    MARD     Storage location / stock
    MSKA     Sales order stock
    MSPR     Project stock
    MARM     Units of measure
    MEAN     International article number
    PGMI     Planning material
    PROP     Forecast parameters
    MAPR     Link MARC <=> PROP
    MBEW     Material valuation
    MVER     Material consumption
    MLGN     Material / Warehouse number
    MLGT     Material / Storage type
    MPRP     Forecast profiles
    MDTB     MRP table
    MDKP     Header data for MRP document
    MLAN     Tax data material master
    MTQSS     Material master view: QM
    Vendor
    LFA1     Vendor master
    LFB1     Vendor per company code
    LFB5     Vendor dunning data
    LFM1     Purchasing organisation data
    LFM2     Purchasing data
    LFBK     Bank details
    Purchasing
    EKKO     Purchase document
    EKPO     Purchase document (item level)
    EKPV     Shipping-Specific Data on Stock Tfr. for Purch. Doc. Item
    EKET     Delivery schedule
    VETVG     Delivery Due Index for Stock Transfer
    EKES     Order Acceptance/Fulfillment Confirmations
    EKKN     Account assignment in purchasing
    EKAN     Vendor address purchasing
    EKPA     Partner functions
    EIPO     Item export / import data
    EINA     Purchase info record (main data)
    EINE     Purchase info record (organisational data)
    EORD     Source list
    EBAN     Purchase requisition
    EBKN     Purchase Requisition Account Assignment
    Inventory Management
    MKPF     Header: Material Document
    MSEG     Document Segment: Material
    EKBE     History per Purchasing Document
    Invoice Verification
    RBKP     Document Header: Invoice Receipt
    RSEG     Document Item: Incoming Invoice
    BSIK     Accounting: Secondary Index for Vendors
    BSIS      Accounting: Secondary Index for G/L Accounts
    Services
    ESSR     Service Entry Sheet Header Data
    ESLL     Lines of Service Package
    Regards,
    Vengat

  • 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

  • Sale order header document flow table

    Dear Guru's        
                  In which table the sales order heard document flow will be stored I checked in se16 “VBFA” table it is updating document flow Line item vise. But I want header vise.

    hi,
    I think , table VBFA will remain same , you need to select with POSNN = '10' , means keep always 10 if you want header details.
    saravanan

  • 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

  • PO document flow table

    Hi All,
    Can u please tell me which table is used to see PO document flow?
    Thanks & Regards
    Santhosh

    Hi
    There is no straight table in MM like in SD table VBFA which have all doc flow
    check the tables
    EBAN,EKKO,EKPO,EKET,EKBE,MKPF,MSEG,RBKP,RSEG etc
    for the flow
    MM Cycle:
    Purchase Requisition-> Staff in an orgn places Pur requisition for want of some goods/products - ME51
    Request for Quotation(RFQ)-> The Purchase dept in the orgn calls/requests for the quotation for the products against which PR was raised. - ME41
    Vendor Evaluation->After receving the RFQ's, after comparison a Vendor is finalised based on the terms and conditions.
    Purchase Order(PO)-> Pur order was issued to that vendor asking him to supply the goods/products -ME21N
    Goods Receipt Note(GRN)->Vendor supplies the material/Products to the orgn-
    MB01
    Goods Issue (GI)  -> People receives their respective itesm for which they have placed the Requisitions
    Invoice Verification-> ALong with the Material Vendor submits a Invoice for which the Company Pays the amount - .MIRO
    Data to FI -> data will be posted to FI as per the vendor invoices
    you better go through all these links u will get all the info what ever u need
    for mm
    http://www.sapgenie.com/abap/tables_mm.htm
    http://www.sap-img.com/sap-download/sap-tables.zip
    http://www.allsaplinks.com/material_management.html
    http://www.training-classes.com/course_hierarchy/courses/2614_SAP_R_3_MM_Invoice_Verification_-_Rel_4_x.php
    http://www.sapfriends.com/sapstuff.html
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PSMAT/PSMAT.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CAARCMM/CAARCMM.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/MYSAP/SR_MM.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/LOMDMM/LOMDMM.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMMM/BCBMTWFMMM.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/MMIVMVAL/MMIVMVAL.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/MMWMLVS/MMWMLVS.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/MMISVE/MMISVE.pdf
    Regards
    Anji
    Message was edited by:
            Anji Reddy Vangala

  • 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

  • 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

  • Change the document flow, table CRMD_BRELVONAI

    Hi experts,
    We are using CRM and ISU. For few cases the ISUCONTRACT displayed in the CIC0 is wrong.
    I would like to know if it's possible to change the document flow ? (the datas in table CRMD_BRELVONAI).
    By transaction ?
    by FM ?
    Thanks in advance if you could help me.
    Regards,
    Nicolas.

    Nicolas,
    Though I myself have not tried deleting any existing Doc Flow, but you can try using the Function Module: CRM_DOC_FLOW_UPDATE_DU.
    If you get a better option please share.
    Regards,
    Shyamak

  • 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!

  • Ouput determination for sales documents - Condition table

    Hello All,
    In the condition table I currently have the following fields - Sales org/Dist channel/Sales doc type/Order reason/User.
    The field User is Created By VBAK-ERNAM. I want to change this to display the name of theperson that last modified the document. What field is this? CDHDR-USERNAME maybe?
    And more importantly how do I go about making the change?
    Would you recommend creating a new condition table?
    Thanks in advance,
    Suhas

    Hi ,KIndly do the below settings
    1.Delete the condition table from the access sequence :
    SPRO-IMG-Sales &dist->Basic functions->Output Control>Out put determinationMaintain Output detrmination for   sales documents---Maintain Access sequence
    2.Then go to the condition table and delte the ERNAM  and add the AENAM  and generate .
    SPRO-IMG-Sales &dist->Basic functions->Output Control>Out put determinationMaintain Output detrmination  for sales documents---maintain condition table
    3.Same condition table assign to the access sequence  then access sequence will be assigned to out put type condition type
    SPRO-IMG-Sales &dist->Basic functions->Output Control>Out put determinationMaintain Output detrmination  for sales documents---Maintain output types.
    4.Assign the out put type to the partner function
    SPRO-IMG-Sales &dist->Basic functions->Output Control>Out put determinationMaintain Output detrmination  for sales documents---Assign Output type to partner functions
    5.Maintain the Out put type in out put determination procedure
    SPRO-IMG-Sales &dist->Basic functions->Output Control>Out put determinationMaintain Output detrmination  for sales documents---Maintain Output determination procedures
    6.Assign out put determination procedure  to the sales document type and item categoiry
    SPRO-IMG-Sales &dist->Basic functions->Output Control>Out put determinationMaintain Output detrmination  for sales documents---Assign Output determination procedures
                                                                                    OR
    Delete the old condition table and create the new condition table and assigned to new access sequence.
    REgards
    Damu

  • Restrict sales document flow on va03/vl02n/and any sd tcodes

    hi experts,
    Is there a way to disable or restrict the document flow button found on SD transactions such as va03 and vf03? We would provide a separate report for the docflow, a custom one.
    Thank you in advance!

    Used exit for document flow LV05CFZZ

  • How to  check document flow table of  a document

    Hi,
    There is existing report and additional data needs to be added to existing report.
    Its SD.
    It is required that i display a field only when FI document is created.
    i.e :
    of Claims Paid : If FI document is created for a claim.
    So, for this i need to know how to check whether a FI document has been created or not. As i don't even know the order number.
    Is there any way to find this??
    Please help me on this!!
    thanks

    Hi,
    Rashi here is the Link for VBFA to BSEG
    VBFA-VBELN here VBELN is primary key
    BSEG-VBELn here VBELN is foreign key.
    So proceed.
    Hope my answer helps you.
    Cheers!!

Maybe you are looking for