FM: Document flow for a sales order

Hi,
is there any FM, BAPI, CL to get the whole document flow for
a given sales order.
thanks.
regards, Dieter

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

Similar Messages

  • Document flow for historical CS orders

    Hello,
    Document flow is not working for historical orders (archived orders) anymore. Instead, Document Relationship Browser (DRB) can be used.
    However, SD billing documents related to CS orders are not shown in DRB as they are shown in normal document flow for online orders.
    Does anybody know the way to get also billing documents to DRB for CS orders?
    Best Regards, JV

    Hi JV,
    Welcome.
    Please check the below links...
    http://help.sap.com/saphelp_dimp50/helpdata/EN/ed/5f2602fba9434db4eb2e883448457e/content.htm
    http://csc-studentweb.lrc.edu/swp/Berg/Conferences/SAP_Project_Management_2007/Global_SAP_Environments/pdf/Track6_session7.pdf
    thanks
    sekhar

  • QM-Notification: document flow for Customer Return Order

    Hi Experts,
    I changed actionbox and made an FM to create a Customer Return Order (SD). It works.
    And now I need the document flow in this QM-Notification, I try it with FM QMLR_CREATE_DOCUMENT_FLOW,
    but I dont know, where to customize the Object-Types, QM-Notification is BUS2078 and Customer Return Order is BUS2102.
    In which transaction or dialog or where do I have to say the system, that I want the document flow for this combination?
    Thanks for Your help.
    Bernhard

    you have to put that logic in the FM. You can do it in the FM which is creating the return order or copy the FM - QMLR_CREATE_DOCUMENT_FLOW as custom FM and change the object to BUS2078.
    Thanks,
    Ram

  • How to code document flow for third party order

    Hi, I need to extract data from VBKD, but the creteria is document has been completed. as in third party order, it will only has sales order, purchase order no, invoice no. how to do ?
    thanks a lot! kitty

    Kitty,
    Look at the status of the document in the table VBUK. It should give you all kinds of status - Confirmation status, Delivery status, Total goods movement status, Billing status.
    Also if you want the status at the item level you can look at the table VBUP.
    regards,
    Ravi

  • Billing document for multiple sales orders

    Hi All,
    I am in to ECC 6.0. How can i get single billing document for multiple sales orders?
    Can anyone tell me those configuration settings?
    Thanks
    Patel J

    Dear Jaganath,
    For Single Invoice, for multiple Sales Order, following details must be same:
    1. Sales Document Type for all Sales Order must be same
    2. Payer
    3. Incoterms
    4.Payment Term
    5. Account Assignment Grp - Customer
    6. Billing Date
    7. Exchange Rate
    8. Foreign Trade Data
    Now, in Copy-Control Settings between Sales Order and Billing (T. Code: VTFA - Order to bill copying control), Select your combination for Sales Order-->Invoice;
    and Double Click: Item (from Left-Hand side, Dialog Structure) and Double Click on to your Item Category.
    Here, in Filed: VBRK/VBRP, maintain Routine: 003 - Single Invoice.
    Important: Also, if Sales Orders have different Divisions,
    T. Code: VOV8 - Sales Document Type Maintenance
    untick the Box: Item Division.
    T. Code: VOR2 - Common Division
    Assign those Divisions to Common Divisions.
    Best Regards,
    Amit

  • How I can get the Billing Type for the sales order and its items

    How I can get the Billing Type for the sales order and its items. I mean from which SAP tables and how?

    Hi,
    You need to use two tables.
    First use VBFA. Enter the sales order number in the field Predecessar and the value M in SubCt field. This will give all the billing document number for the sales order items.
    Then use the billing document numbers in table VBRK, where in you can get the billing document type.
    Regards,

  • Data Validation for SD Sales order and Deliveries

    Hello All,
    We activated the data flow for SD sales Order and Deliveries for Infocubes 0sd_co4 and 0sd_c05 and there correspoding datasources.
    I have 2 queries
    1. How to validate data for BI SD sales order with ECC.
    2. How to validate data for BI SD Deliveries data with ECC.
    Kindly help, <removed by moderator>.
    Thanks,
    Rakesh.
    Edited by: Siegfried Szameitat on Jun 21, 2011 12:51 PM

    Hi Rakesh,
    You have to check the tables in R3 and then compare with the Datasources in BW.
    For Examples
    VBAK table in R3 for Sales Order on BW-2LIS_11_VAITM
    VBRK table in R3 for Billing iin BW-2LS_13*
    Check for that day how many sales order were there in VBAK table and there in BW.
    Rgds
    SVU123
    Edited by: svu123 on Jun 21, 2011 8:19 PM

  • Table Name to see the Document Flow for Service Order - T. Code IW33?

    Hi,
    can u advise the Table Name to see the Document Flow for Service Order - T. Code IW33?
    Ravi.

    Hi,
    From SERVICE ORDER you cant get the INVOCIE NUMBER,
    You will get the SALES ORDER number for that Service order in QMEL table and fetch the Sales order and then goto VBFA to get the Invoice number for the sales order with the DOCUMENT CATEGORY M.
    hope it will serve you.
    thanks,
    santosh

  • Partial billing documents for 1 sales order

    Hi all,
    How to create partial billing documents for 1 sales order,
    Note: Billing will be done against sales order not delivery,

    hi
    go to VF01 and enter your sales document and then from the menu bar select the icon -- selection list you will get the list of items in the sales order you can select the items and select the icon copy you can do the partial billing
    regards
    vardhan

  • Single billing document for each sales order

    Hi,
    We currently have a Contract to Invoice process, wherein we created Sales Order related invoice directly.
    However i need to create a single invoice for each contract separately although they share the same characteristics, i do not want to combine the contracts into single invoice, but want a 1:1 relation as we intend to batch the billing job.
    I tried the routine 003-Single invoice at  copy control at item level, this does not seem to work.
    All suggestions are welcome.
    Thanks.

    HI
    You could try the following if you want the delivery also to be separate for each Sales Order.
    Order Combination Indicator
    Indicates whether you are allowed to combine orders during delivery processing.
    The Order combination Indicator is maintained in the customer master. Sales Area Data, Shipping Tab Page.
    Procedure
    The system proposes the indicator from the customer master record. You can change the value manually in the sales document at both header and item level.
    The other option is Maintain the field
    ZUK-VGBEL = VBRP-VGBEL.
    in the data transfer routine for the relevant item category copy control settings.
    with kind regards
    Sundar

  • Problem for searching Sales order no. ref. to delivery no. from VBFA

    Hi,
    I want to search Sales order no. ref. to delivery no., as generally ref. to devilery no. as a VBELV filed for Table VBFA , I am selecting  VBFA where VBTYP_N = C that is Order ,  but in my present case when I am looking for the available entry in VBFA ref. to delivery no. I am not getting Any  VBTYP_N = C , insted of this I am getting VBTYP_N = Q, i.e transfer order and also in VBELN  it is just giving the date of delivery , as 20090430,
       Can u help on this ,  I want to get SO no. ref. delivery no. and then want to search customer PO and Date . for that SO.
    regards,
      zafar

    Hi Zafar,
    VBFA is a document flow table. I'll tell you the way to fetch preceding or subsequent document out of this table:
    Document flow for order to delivery is as below:
    Sales order > Delivery>shipment-->billing
    So sales order is preceding document of delivery so put delivery in VBELN(SUBSEQUENT DOCUMENT) and fetch the VBELV i.e. preceding document for the same. Also put document category as 'J' i.e. delivery.
    hope it helps.
    Vivek Gupta

  • How to populate the billing plan tab for the sales order inbound

    Hi Team,
    I am new to IDOCS, I have a requirement like IDOC extension of the sales order inbound.
    Can anyone explain in brief how can i add billing plan tab in  the IDOC extension for the Sales order inbound.
    Thanks, 
    Barathi

    U need to use the table vbfa or fololow thw link
    [http://www.erpgenie.com/sap-functional/sd/read-sales-document-flow-using-a-function-module]

  • Maximum number of Invoices for a Sales order

    Dear All,
    How many invoices we can make for a Sales order?
    Is there any maximum limit for that?
    How many documents can be shown in Document flow?
    Please let me know.
    Regards,
    Mullairaja

    hi mullairaja
    if in the case for partial deliveries you could process any number of invoices but only till the number of partial deliveries in the customer master data > sales area > shipping > partial deliery per item .....
    if the case of the sales order  is processed and delivery and COMPLETE  picking ...and PGI with respect to that delivery document you could only process one invoice ......
    IF you complete the whole sales cycle ...you can see the whole document flow in va02 by clicking document flow in the left top corner.
    the document flow will be more if their are many partial deliveries.
    <removed_by_moderator>
    Please read the "Rules of Engagement"
    Regards,
    JAGAN N M 
    SAP SD
    Edited by: Juan Reyes on Mar 14, 2011 9:35 AM

  • How to get the delivery number for the sales order

    hi
    how to get the delivery number for the sales order

    Hi,
    1. IN VA03, enter the sales order and click on the document flow button. From there you can check the delivery document.
    2. In SE11, enter VBFA(Document flow) table and enter the sales order in VBELV field and in VBTYP_N field enter 'J' to specify that you want to check if there is already a delivery document for that sales order.
    Hope it helps...
    P.S. Please award points if it helps...

  • Document flow for BOM item components missing

    Hello,
    I would like to seek help on the following:
    I am creating a process where in I can create sales order (OR type) with reference from a sales order (like quotation type). I successfully configured the needed and was able to create one.
    However, I have noticed that if I used BOM products (where there is a header and item components) and check the document flow per line items, only the header BOM (line item position 10) has document flow  reflecting the reference order quotation type while the its components doesnt show such.
    Below is an example of the document flow:
    Bom Header (line itemk position 10):
    Document                                              Quantity Unit                     Reference value      Currency
    Buffer Buyin 111111 / 10                             1        EA                        0.00                          USD
    --> Product Order 222222 / 10                      1        EA                        0.00                          USD
    Line Items Component
    (line itemk position 20):
    Document                                              Quantity Unit                     Reference value      Currency
    --> Product Order 222222 / 20                      1        EA                        0.00                          USD
    (line itemk position 30):
    Document                                              Quantity Unit                     Reference value      Currency
    --> Product Order 222222 / 30                      1        EA                        0.00                          USD
    Thus, in above illustration, the line item component document flow has a missing data that would reflect the reference sales order. Please advise if what needs to be configure here.
    Thanks,
    Ria

    Hello Amit,
    The current scenario is like this:
    1. Reference sales order (OR but assumed as QT type) has item category YYBS for normal material and ZTAR for header BOM and YYBS as components.
    2. When these sales order (OR but assumed as QT type) is being reference to create actual orders to customers  (OR type) the normal material will be changed from YYBS to YZBS while BOM will have ZTAR header and components YZBS. This is the reason why I told you that its like the normal material.
    I checked the copy control line item settings as yes, document flow is ticked.
    Thanks,
    Ria

Maybe you are looking for

  • Cascading Prompt doesn't work in BO 4.0

    Hi, I want to create a cascading LOV in Information Design Tool with 2 dimensions, i.e: Region --> City (LOV of City is subordinated to Region User Selection). In List of Values tab of IDT I've created one LOV based on query panel with one dimesion "

  • Payment Wizard was not executed   [Message 3657-5]

    Using SAP 8.82 PL6. I am trying to do a Payment Wizard for a company but when I run my wizard for all vendors or even for only 1 vendor, it fails with error message in subject line. I already followed all steps of SAP Note 725786 - Definitions necess

  • What type of connector needed for Russia and iPod?

    I'm traveling to Russia and will need to recharge iPod once I get there. What kind of adapter/connector will I need? I have the 80GB.

  • How to convert my .psd into .pdf in cs4

    Help! I cannot convert or save my file as a .pdf in adobe photoshop cs4. It wont allow it on the format options in save as. I looked up online and a website said to convert it through the print setup page but it seems as if i cannot even get to the p

  • How to make a logo look distressed

    Attached is a vector logo a client supplied to me. I'm trying to achieve the same distressed look for a logo that I will be having a stamp made from. What is the best way to go about this.