FM to get document flow of Trading Contract

Hi,
In Trading contract display transaction WB23 we can see the document flow. For a processed Trading contract (Purchase side), in document flow we can see PO, Inbound delivery, Goods reciept, Nomination etc.
Is there any FM to get all this document flow with full hierachy in a single shot? if not please suggest a combination of FMs to get this information.
I found FM BAPI_TRADINGCONTRACT_GET_FLOW, which gives only the immediate follow-on document info like PO/SO details.
Regards,
Sudhakar.

The FM MMPUR_EKBE_ARRAY_READ gives the Purchase order history only. It gives only the material document information but not the inbound delivery or nomination.
I can use the FM BAPI_PO_GETDETAIL to get the confirmations, history and schedules of Purchase Order.

Similar Messages

  • RFC to get document flow

    Hi there,
    We are working in a Java webdynpro project and we need to obtain the document flow from a given sales document(sales order or delivery note)
    Could you please help us to find it?
    Regards

    46C:  Couldn't find any BAPIs.
    Your options:
    1.  Write a wrapper RFC ABAP around function module RV_ORDER_FLOW_INFORMATION. 
    2.  Replicate the code in RV_ORDER_FLOW_INFORMATION in Java.
    3.  Make a series of calls using RFC_READ_TABLE on VBFA or on VBAP/VBRP/LIKP etc using the reference document fields VGBEL and VGPOS.

  • Document flow issue

    Hi,
    I have configured the order related intercompany billing in which intercompany billing doc generated with reference to end customer billing doc.But when i see the document flow in that intercompany billing doc is missing and when go to intercompany billling doc and see the document dlow then it is showing end customer billing doc and intercopamy doc as a external transaction.
    My document flow should be
    Contract->order>end customer billing doc-->intercompany billing doc
    but now it is like this
    Contract>order>End customer Billing Doc
    No intercompany doc
    How to update my document flow?
    Regards,
    Satya

    Hi,
    In your case the document flow is not getting updated from one Billing Doc to another Billing doc.
    Go to T.code VTFF where in you maintain the copying requirements to copy documents from Billing to Billing.
    Select the Source and the target billing types and select the item tab and select the relevant item category and check the Cpying requirement maintained here.
    regards,
    Ranjith

  • Sales Order document Flow in Reports

    Hi All,
    I am develoing a Custom Sales Order report in ALV.  Here the requirement is to include the Document Flow for the line item.  This should be similar to the Icon in VA03 transaction.  When I click this icon in my report, it should display the document flow (same as that of available in VA03 transaction).  Can you suggest how can I get Document Flow icon in my Report?
    Thanks in Advance.
    Regards Munna.

    Just to save time for others who have the same requirement , use below,  fill the structure with sales order and other details. Leave the posnr blank if you need document flow , else fill the posnr if it is item level.
    CALL DIALOG 'RV_DOCUMENT_FLOW'
            EXPORTING
                 VBCO6      FROM VBCO6
                 MAKT-MAKTX FROM SPACE
                 KNA1-KUNNR FROM kunnr2000
                 KNA1-NAME1 FROM name
                 MAKT-MATNR FROM SPACE
                 IVKORG     FROM VKORG
                 IVTWEG     FROM VTWEG.
    No custom screen required, no tree control required, no coding required except that you need to call this at right place in your module pool/ report etc. SAP internally uses this for display in SAPMV45A.
    Hope it helps.
    Regards/Ajay

  • Deleted sales order remains in document flow

    Hello!
    The problem:
    We had sales order with reference to a contract. We deleted the sales order (it doesn't appear in VBAK anymore), but, the sales order still appears in VBFA (if we see the document flow for the contract, the sales order still appears there as archived!!!)
    I deleted  the sales order in a regular way via VA02.
    I heared that there is a function module or another solution to fix the document flow.
    I also saw a solution for this kind of problem for delivery (SAP note 74513).
    Please assist,
    Thanks

    Hi!
    Thanks to Jelena!!!
    As she wrote that in these cases OSS can solve the problem and it happens a lot, we opened an OSS and got an answer:
    OSS answer:
    when you delete an order the corresponding entry in VBFA is not
    deleted. The system is not able to differ between archived and deleted
    orders, so to ensure that the document flow is also showing archived
    documents the entries in VBFA remain. This is also described in
    attached note 390905. When you are sure which entries in VBFA can be
    deleted you can use report SDVBFA00 to delete the entries.
    What we need to do:
    go to SE38 and run report SDVBFA00.
    Sales document is a contract number (preceeding document)
    "Delete" - put X or leave empty.
    The logic is:
    You put the preceeding document and leave the field "Delete" empty.
    The program finds by himself all the sales orders (following documents) that are connected to this contract and are deleted.
    You check that the system suggests to delete the correct sales orders
    Run this report again, but this time put X in "Delete" field and the sales orders will be deleted.
    Apparently there are several reports exist to solve VBFA problems SDVBFA00,SDVBFA01 etc.
    Thanks!

  • Contract not visible in sales order document flow

    Hi
    I am supposed to create sales order from Contract.The requirement is that only header data should be copied.Thus  In Copy Control configuration I did not maintain item level and schedule line level settings for these document types. The issue is that after running the whole cycle from Contract -->SO --> Delivery --> Invoice when I see the Sales Order document flow I can see all other documents but not the contract.Also In Contract document flow I can see only sales order but not delivery and invoice.Please guide.

    Hello,
    Update Document Flow option is available only at Item Level in copy control setting from Contract to Sales Order.
    Check out your Copy Control Records at Item Level. There would be "2" mentioned in "pdate document flow" box.
    2 means Create doc. flow records except for dely/goods issue/billdoc. Here you to maintain "X" for Complete Document flow.
    Hope this helps,
    Thanks,
    Jignesh Mehta

  • Multiple contract assignment using document flow

    hello
    i need to attach mulitiple contracts to diffrent lines items of the service order using document flow.
    One needs to attach contract header at the service order header and contract item at the service order item.
    This works fine if you try to attach single contract to single line item in servie order.
    But when you try to attach another contract to different line item  of the service it gives dump.
    The system issues an error  message CRM_DOC_FLOW 010 and gives dump.
    Has anybody faced this issues before.
    Pls advice.
    Regards
    Meghana

    Hi Shaik i have a similar requirement but in my case iam using BAPI_ACTIVITYCRM_CREATEMULTI to create activities and
    i want these activities to be link to campaign element,i had a look at structure BAPIBUS20001_DOC_FLOW_INS and i see there are few fields in this structure like OBJKEY_A- Identification of a Reference Object for Items,OBJKEY_B-Identification of a Reference, i feel this were we have to pass some values if you wanna to link the activity with campaign element, i donno when to use
    OBJKEY_A and when to use OBJKEY_B, can you please help me how can i do this is it possible to do it in same program while creating activity or has to be done seperately after the activity is created.
    any more ideas you have please
    Thanks

  • Document flow for contract creation

    Hi All,
        I have a requirement where i will create a follow on contract for a existing contract using a custom BDC, but i would like to have the document flow retained for the parent contract document. I would like to know if any FM or BAPI is available to maintain the document flow or any other process to do so.
    Pls treat this as an urgent requirement and reply.
    Thanks in advance

    Hi,
    I think it is quiet dangerous to add entries to VBFA tabel your self... but I saw that there is a function called RV_DOCUMENT_FLOW_ADD and RV_BILLING_INDEX_ADD. I do not know how to use it... but maybe with trial and error you can add the entries.
    What you can do is a work around by using a user-exit that show the flow you want when displaying it.
    T
    he function that show the document flow of an SD document is called RV_ORDER_FLOW_INFORMATION. In this function there are two user-exits and BADIs where you can add entries to be displayed according your logic.
    USER_EXIT für precedent docuents
      PERFORM USEREXIT_VORGAENGER.
    CALL METHOD l_sd_documentflow_exit->add_preceding_document
    UserExit + BADI for next docuemnts
    PERFORM USEREXIT_NACHFOLGER.
    CALL METHOD l_sd_documentflow_exit->add_subsequent_document

  • Get Last Document from document flow

    I would like to retrieve last document flow's document. i use VBFA and pass Preceding sales and distribution document to where condition and get Subsequent sales and distribution document but i don't know how to get the latest one.
    I use
    select single VBELN into last_doc from vbfa
    where VBELV = 'preceding doc'
    order by ERDAT ERZET
    but it's not work. How can i do that. Thanks!

    try like this
    data : begin of vbfat occurs 0,
            last_doc like vbfa-vbeln,      
            last_date like vbfa-erdat,
            end of vbfat.
    select vbeln max( erdat ) into table vbfat from vbfa
            where VBELV = 'preceding doc'
              group by vbeln.
    loop at vbfat.
    <do the processing.>
    endloop.
    regards
    shiba dutta

  • Document flow not getting updated

    Dear Experts,
    I am facing a  problem in document flow.
    I create order (for free goods order type ZFRE), do delivery and finally billing.Outbound delivery is showing as "Being Processed".While I have maintained "Update document flow" in item level in copy control.
    For your information, this is free goods order type and the system has been configured in such a way that accounting docs are not generated after billing. (As it is for free goods.).Could this be because accounting docs are not being generated?
    Kindly advise.
    Regards,
    Randhir

    Hi
    Pls see the copy control sales document to sales document T.Code VTAA
    Go to the item category  and see the document flow field is activated or not if is not activated pls activate  and re run the scenario
    pls check your correct defined  Z item category the document flow is activated or not.
    Thanks.
    Vasu
    Edited by: Vasu Enaguthi on Apr 8, 2010 12:09 PM

  • Gobal Trade management , pricing, trading contract, WTEW,

    Hello Expert, 
    I m SD consultant, we are implementing GTM for one of our international client but facing but issues.
    1) I have done trading contarct confirguration , but pricing is not coming in trading contract , I have assigned pricing GTS001 in OVKK for my order ZGOR.
    while entering manually system showing an waring meassge that no prcie is calculated for GTS001 V. in standrad.
    2) Net value is also not coming on header side.
    3) Purchaseing and sale conditions are not upadted at item level.
    4) profit  stimulation is not working.
    5) Sale order no and Purchase order is not creating in backround while saving the trading contract and not shows in document flow and released the TC.

    You need to revisit your entire configuration.  Just search the forum or Google on "SD Configuration", so that you will get inputs.  Validate with your settings.
    G. Lakshmipathi

  • Sales trading contract process

    I want to test the scenario for Sales trading contract.
    Please let me know the steps. We use tcode WTEW.
    In sales order flow I see delivery,GD goods issue & Invoice.

    I have created outbound delivery via TEW from sales order.
    Then I want to do PGI of the delivery but when I want to do it though vl02n.
    I am getting error that document 123453642321  can be only changed through TEW.
    How I can I do the PGI of this delivery.
    in task under step I choose billing  & I give delivery no. asuming that at this time pgi and billing will be done but after clicking on F8
    I see select source document where it shows lines as blank.

  • GTM Issue whencreating purchase order from trading contract 0002 (purchase)

    Hiya
    While trying to create a purchase order from trading contract type 0002, i am getting below error message. While doing it for sales order it is working fine. [for contract type 0003]
    Message: Item data for document 61 does not exist.
    Any help is welcome...
    Regards
    Ranjeet

    Closing

  • Add PO in SO Document Flow

    Hi
    I created SO using BAPI and PO also creaed with BAPI with multiple purchase contracts. While creating PO I did not pass the Purchasing requestion. If I pass Purchase ing Requisiton with PO Bapi, I am unable to create PO. So, I did not pass the Purchasing Requesition with PO Bapi. Now I am not getting the PO in SO document flow.
    Is there any FM to update to add PO in SO document flow. I tried several FM, but could not success. I am able to update only VBFA, but could not get the PO in SO document flow.
    Are there any FMs to update hte PO in SO document flow.
    Thanks in advance for your inputs.
    Sai

    Hi,
    R u activated document flow in following t-codes
    VTAA
    VTLA
    Go in above t-codes slect u r source & target document >>> go to item level >>> select item >>> details >>> tickmark to update document flow.
    Kapil

  • Copycontrols and document flow

    Hi All,
    can any one tell me how can I achieve the scenario of creating a roll
    forward contract with respect to the original contract where in I do not
    copy anything from the parent contract but have the doc number in the document
    flow in R/3 any input would be of great help.
    Regards,
    DV.

    Hi frederic,
    Could you please let me know that when does this BADI crm_copy_badi get executed?? i.e if i put a debugger in any of the BADI's methods when will it enter that method?
    Points will be rewarded.
    Thanks and regards,
    Frank.

Maybe you are looking for

  • Image Processor does not start through Bridge CS5

    Image Processor does not start through Bridge CS5, it starts only PS and nothing happen. I do not know, how to repair it.

  • Daisy Chain a second Monitor to Thunderbolt Monitor

    I purchased a new Dell S2040L HDMI Monitor and I would like to Daisy Chain to my Thunderbolt. I plugged the Dell Monitor into the back of the Thunderbolt monitor and my Mac Book Pro (OX Version 10.9.4) will not reconize the Dell monitor as a second m

  • Mouse Scroll speed problems with JVM

    I could not find Java (Apple's JVM ) forums, so I might be posting this in the wrong forum. With that disclaimer, here is my issue: I am running into a problem where the mouse-wheel scrolling speed configurations are not being properly passed to Java

  • Selection Screen for BW Query

    Hi, We have a requirement where, in the Selection Screen of the Query we have to show a Table, the data will be fetch from a Info Object. There will be a last column for taking data from the User. Once the selection screen is filled and executed Repo

  • Weblogic.jar vs wlclient.jar problems

    Hi, I have a swing client and am trying to get authentication working correctly. A problem i am running across occurs when i try to login using empty strings. new LoginContext("Sample", new SampleCallbackHandler("", "", server)); With weblogic.jar, n