Returns Order - Document Flow

Hi,
I am creating a Returns Order by using function module SD_SALESDOCUMENT_CREATE. In this case, document flow for the newly created order is not updating correctly (link for the Outbound delivery and Invoice is not updated).
But, when I create returns order using VA01 transaction, it is updating the document flow correctly.
I am not sure why this is not happenning when i create returns order through SD_SALESDOCUMENT_CREATE.
Could you please help me in identifying and solving the problem?
Thanks,
Phani.

Use commit work.
Regards,
Lalit Mohan Gupta.

Similar Messages

  • Sale order document flow-u0091Service Documentsu0092 is coming which should't aper

    New Issue with Sales order document flow:
    When linking from a sales order in document flow, we were reviewing why the description information varied.  In looking at different values, we clicked on a new item within document flow that allows you to like to ‘Service Documents’.   This is new in 6.0, or it was previously deactivated in 4.6C.  If you link from a sales order to a service document, in ECC 6.0, you will get a short dump because the document flow is so great (viewing order #any in VA03 and use document flow and then select the service documents button    as seen on the screen below
    A Short dump will occur in program SAPLDOCUMENT_FLOW_ALV.
    Here in ECC 6.0 is how it looks from sales order 9806:
    Documents created from 2004 through 2007 are coming up as linked to this sales order and that is incorrect.  There is some type of linkage issue.  In the 4.6 C environments, the ‘service documents’ link is not visible from document flow.
    Can any body functional / technical Help on this urgent???

    Hi Sanjay,
    Go to the order VA03 --> Environment --> status overview. The exact status of the header and item can be found here. You may have chances to know why the status is being processed.
    Also 
    Check whether you have checked 'document flow update' field at item level in copy control
    Check your settings for completion rule in item category
    If it is due to incorrect status message, run report SDVBUK00. That might fix the error. It is recommended to run this first in test mode.
    Br, Sats.

  • Sales order document flow error

    we do credit memo for one sales order, in the sales order document flow, the credit memo accounting document's status is not cleared. how can we changed it to be cleared?

    Hi,
    Clearing will be done by finance after the payment is given to the customer. This clearing is done by transaction F-22.
    VKM3 is used for releasing document blocked for credit management and not for clearing the accounting document.
    Regards
    Karan

  • 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

  • PO is incorrectly showing in other sale order document flow

    Hi expwrs please help me on this issue. One PO is incorrectly showing in other sale order document flow and there is no relationship between PO and sale order. Why it is showing incorrectly.

    Hi,
    First you check the SO created with reference and then check teh PO type (based on item category).
    I think with of any reference the PO will never show on doc flow,

  • Sales order document flow and delivery document flow are not in sunc

    Hi ,
    whan I look at the Sales order document flow  there are lot of line items rejected with specific reason , but for the same line items already delivery and PGI in place . When we try to do the invoice it shows error , it can't be invoiced because line items in sales order are rejected .
    Ideally in business when delivery and PGi created for the sales order , it should not allow the line item to reject . system should look at follow on documents in place . Reverse process should follow .
    Pls provide solution to stop item rejection when follow on delivery document in place .
    thanks and regards.
    Sunil Tripathy

    Hi,
    Goto the T.Code "VOV7".
    Select your item category.
    Details.
    Maintain the Completion rule as "A(Item is completed with the first reference)".
    Save.
    If you do this after the follow on document is created,the item is completed and you cannot reject the item.
    For your second question,
    Goto the T.Code "VTLA".
    Select your valid combination.
    Click on item.Select your item category.Details.
    There is a check box called as "Update document flow".Tick that one.
    Save.
    Regards,
    Krishna.

  • Invoice/billing document Number  not appearing on sales order document flow

    Dear all,
    After saving the sales order invoice when i check in va02 sales order document flow invoice number is not generating

    Really something is wrong in your configuration.  When your delivery status shows Being Processed, I could see subsequent two documents, viz.Confirmation of Service and GD doc reference as complete.
    Can you let me know how many line items that delivery contains?  The reason for this query is normally, for stock item, we see Material Document reference and for non-stock item, we see Confirmation of service.  But in your case, I could see both.  From your VBFA table screen shot, I could see two different material document references.
    G. Lakshmipathi

  • Issue in Updating Sales Order Document flow

    Hi Experts,
    We have developed a Z Program for posting Material document for the deliveries of Sales Order. This program runs in Batch job everyday.
    Here we are getting an issue like in some of the cases it's not updating the Document flow of the Sales order though its Posting Material Document for the Delivery of Sales Order. If there will be a bulk amount of data then its creating issue in updating the Document flow ( Either the 1st set of record or last set of records).
    We are using BAPI 'BAPI_GOODSMVT_CREATE' for posting Material Document for the delivery and FM 'RV_DOCUMENT_FLOW_UPDATE_U' for updating the document flow.
    It seems it giving issue with bulk amount of data. Will it a time issue?
    If any one have faced such issue, please throw some pointers.
    Thanks in advance!
    Regards,
    Priyabrata.

    It could be a timing issue. After you create the material document, try to enque the material document and move to the next step  only if the enque is successful.  Keep trying to enque the material document until u are successful. But make sure you exit the loop after certain number of tries to avoid endless loops.  Here is a sample code:
      DO 20TIMES.
        CALL FUNCTION ;'ENQUEUE_EMMKPF'
          EXPORTING
            MODE_MKPF      = co_e
           MBLNR          = xxxxx
          MJAHR           = xxxx
          EXCEPTIONS
            foreign_lock   = 1
            system_failure = 2
            OTHERS         = 3.
        IF sy-subrc EQ 0.
    dequeue/unlock the notification again
          CALL FUNCTION DEQUEUE_EMMKPF
            EXPORTING
              MODE_MKPF= co_e
           MBLNR          = xxxxx
          MJAHR           = xxxx
         EXIT.
        ELSE.
    in case of no success, wait 1 seconds, before try again
          CALL FUNCTION 'RZL_SLEEP'
            EXPORTING
              seconds        = 1
            EXCEPTIONS
              argument_error = 1
              OTHERS         = 2.                               "#EC *
        ENDIF.
      ENDDO.
    Regards,
    Jitendar

  • 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

  • Order Document Flow Broken

    Howdy,
               We have some orders which have been completely invoiced but the document flow still stays - "Being processed" (VBUK-GBSTK = 'B', we are not able to close the order.
    Can't use correction report SDVBUK00 as the overall status on the document is same as the one in the database.
    There are two more correction reports that might be useful - SDVBFA01 & SDVBFA03. Whats the difference between these reports?
    Anybody here knows how to fix this issue?
    Regards
    Amit Maole

    Hi Rajesh & Krishna,
                                  Forgot to mention that the accounting document is cleared and payment has been received from the customer, still the order status remains as 'Being Processed'. Any clue why this is happening.
    OSS Notes referred: -
    Note 85535 - Incorrect Status in Sales Order
    Note 207875 - Using report SDVBUK00
    Note 67742 - SD: Document status and incompletion
    Note 88511 - SD: document status and incompletion
    Regards,
    Amit Maole

  • Intercompany billing with thirdparty customer order document flow

    Hi all .
    I have recieved a problem in our Intercompanyprocess
    Heres the scenario
    1. Create customer order with at least 1 itemcategory TAS
    2. Creates an PO from the requisition
    3. recieve and register invoice from vendor via MIRO
    4. Create customer invoice via vf04
    So far so good.
    5. Create intercompany invoice
    From step 5 the documentflow is missing.  I can see the documentflow from customer order until customer invoice but Intercompanybilling is not there. When i look at documentflow on the intercompanyinvoic i can see in document flow
    that the customer invoice is named as external transaction but thats all.
    Somewhere a link has been taken away and i do not know how to fix this.  Hope for your help.

    > The customerorder is entered in companycode 4100
    > po: are entered in companykod 2000
    > Company code 2000 recieve the invoice from vendor
    > Customerorder is invoiced in company 4100
    > Companycode 2000  do intercompanybilling to companycode 4100
    Hi,
    See you are saying that Com code 2000 receives invoice from vendor
    Who is your vendor.....??? Is it com code 4100 or third party ??
    if Vendor is 4100 then why 2000 will invoice 4100.
    It will invoice the customer who has received the material.
    Doc flow would be
    PO to 4100 -material delivery to customer from 4100 -  Invoice from vendor i.e. 4100 - cust. order in 2000 com code - invoice to customer (order related)
    In this case 4100 invoices the 2000......this is nothing but intercompany billing.
    Or
    If Vendor is someone else other than 4100 then there when and why 2000 com code do interbiling to 4100
    In that case doc flow would be
    PO to vendor (third party) - material del. to customer - Invoice from Vendor (third party) - Cust. order in 2000 com code - invoice to customer (order related)
    Hope you are clear now
    Or If I am wrong in interpreting plz detail who is vendor, role of 4100 and 2000, customer
    regards,
    Sagar

  • Sales order Document Flow

    Hi,
    I have a requirement to create an application which shows the data as seen on the "Document Flow" screen of a Sales Order.
    I must be able to enter the Sales Order Number and the application must display the status of the order, just like in document flow.
    Can someone let me know how to go about this?
    Any bapis, relevant tables, etc ?
    Thanks and Regards,
    Reena

    Hi Reena,
    I would try to call the transaction BAPI (release 4.6C) in sap backend and go to the sales order section and check the input and output parameters of standard SAP BAPIs you need (look for example to BAPI_SALESORDER_GETLIST).
    In my case, we have developed our own BAPIs based on standard BAPIs from SAP.
    Hope that helps!
    Regards,
    Frank
    By the way, if you are in higher releases like mySAP ERP 2005 there are much more interfaces for Sales Order than in release 4.6c. Don't know your release so I think it's perhaps important to know that for you...

  • Document flow not showing material posted details in maint order

    Dear Frnds,
         In the refurbishment order document flow is not showing material posting documents. Plz guide me to correct the issue. Thanks for all your cooperation.
    Guruprasad KS

    Dear Thygarajan,
    Thx for ur reply. Goods issue button is been ticked in "Define Documentation for Goods Movements for the Order". Still same issue. It is working in different client so i hope not an IMG issues.Plz give ur valuable feedback.
    Guru

  • Link Customer Return order and Quality Notifcation

    Hi Experts,
    After serveral rounds of investigation and interacted with SAP, I though to post it here to get abest answer for below question.  I hope I will get it from you guys as soon.
    When we create return sales order through Function -> Sales order -> Create Select Order type, the retrun sales order is not copying header data so SAP told us to create new action box to create retrun sales order from Quality Notification.  We customized and did all config then found another two issues now.
    a) When we create return sales order via Quality notification, it enable us to save separately in VA01 screen and then click save button it is coming to create quality notification page after saving the sales order.  Now if I press F3 or back button it is asking me "do you want to save the document" if I say no mistakenly then it came out with saving return order.  Issue:  there might be user error in system they forget to click yes sometimes, in that case the return order only created without quality notification.  Solution Expecting: I want to restrict the user to not come out without saving the Quality Notification if already return order created.  Where I need to change? Which program I need to amend?
    b)  After creating both quality notifcation and return sales order if user wants to view the document flow return sales order to find out what is the quality notification there is no link from there.  So user would not find what quality notification is created for that particular return order unless until if he knows the quality nofitication of return sales order (I know that through quality notifcation we can find return sales order however there is no link from return sales order document flow to find out Quality Ntofication) .  Could you tell me which userexit if update I will the document flow/track of Quality notification.
    Thanks in advance.
    Regards
    Rc Gopi

    Hi Gopi,
    I am not so sure about your second requirement but here I try for 1st query. Try this if it could work!
    1.     Lets co-relate this case with posting the stock to block stock through quality notifications through  action box.
    2.     Here even though we put all required details like quantity and storage location system informs us that u201CMaterial will be posted to blocked stock after the notification is savedu201D
    3.     This indicates if you donu2019t save this notification material posting will not happen.
    4.     I think you should look at the logic of this program (particularly for not carrying out movement unless notification is saved) in order to update the program of creation of return sales order through notification.
    5.     You can modify your program accordingly. QCC0 > Quality notifications > Notification processing  >Define action box > Define Functions for the Action Box. Select appropriate notification type and double click on activities. Select activity and click on detail icon to view which function module is assigned for the creation of returns order. Modify that.
    6.     As a result of which if user accidently clicks on no, in QM01 neither notification would be created nor the order.
    For your second requirement, may be you need to utilize any BAPI for order creation which can capture notification number and flow in to any of the order creation field. Perhaps you need to incorporate this part also in above FM.
    Regards,
    Anand Rao

  • BAPI for document flow

    Hi all,
    I'm looking for a BAPI returning the document flow from a sales order number or an outbound delivery number.
    Thanks.
    Julien.

    Thanks all,
    Is there a RFC-enable FM to do this work ?
    Otherwise, I'll read VBFA table with BBP_RFC_READ_TABLE, but I'm firstly looking for an easier and more reliable RFC.
    Regards,
    Julien

Maybe you are looking for