Incorrect VBFA entries for SO - PO document flow

Hi,
We are using a Third Party Sales orders delivery. I am facing a peculiar problem.
Sales Order Created -> PR -> PO Created
After PO is created, user has altered the Material Number and Ref. PR document number in PO for two items. That means the items were swapped (Ex. Items 220 & 230)
GR is finished with confirmation from third party.
When I see the SO document flow for each item say 220 - its shows both the PO items (220 & 230) actually it should be only 230 item inPO. The same case in the document flow of SO Item 230.
Is there any program which corrects the incorrect VBFA entries for SO - PO flow. Already tried with program SDVBFA21 and its not working.
My system is: ECC 6.0
Thanks in advance for your help.
Regards,
AK

Hi,
Check the note 521416, this note give you a correction report.
I hope this help you,
Regards,
Eduardo

Similar Messages

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

  • Incorrect WkText entry For MGA 94

    Is oracle going to release a patch to fix the incorrect
    wktext entries for MGA 94 zones

    A patch is in the works now for 9i, fixing the projected AMG94 systems (SRIDs 82460-82471) and the geodetic GDA94 (SRID 8311).

  • 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

  • Report for listing all document flow for SD

    Hi expert,
    do you know any report from SAP or you have any sample report that can display and show all document flow for SD in one line...
    let say in selection screen i have contract number... so when i key in by contract number all detail and flow will display e.g
    conract  2000001 service order 3000000 delivery 4000000 invoice 5000000
    thanks.
    [SAP Notes & Tips|http://abap4beginner.blogspot.com/]

    hi,
    thanks for the solutions. Did others have experience on this situation?
    Thanks.
    [Abap Notes & Tips|http://www.abap4beginner.blogspot.com/]

  • Incorrect exchange rate for Actual cost documents

    Dear all experts,
      I have an actual cost documents which was created on 02.10.2006,it should be taking the value date for currency exchange as 01.09.2006,but it is taking 01.
    04.2006 hence it resulting in picking wrong exchange rate.Any solution to solve it and what is the cause of this issue? Thank You

    hie, the currency is set in the table TCURR. the time rederence ? sorry,I am very new to this.the user just told me to that the currency for actual cost taken wrongly,all i managed to check is tat the value date for currency translation for tat particular actual cost document is 01.04.2006,tat's y it took the wrong exchange rate. And i guess the exchange rate is already updated in BW.

  • 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

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

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

  • 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

  • Document flow not updated?

    I have created a inter company Schedule agreement . Then supplying plant have done delivery and PGI against this after doing picking and transfer Order .
    Now I am trying to do MIGO at receiving plant. While trying to save it's giving an warning message ''Delivery flow for delivery cannot be update'' .
    1. Please expalin why document flow is not updated?
    2. What I should do for updating the document flow?
    Please advise.
    Thanks

    Thanks Warwick. But can you please explain the logic of this message.
    Suppose I need document flow to be updated then what I can do.
    Please advise.
    thanks

  • 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

  • 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

  • Want to know SAP MM Table, like table VBFA for SD Document Flow

    Hello Experts,
    I want to know, direct relationship between GR against PO line item and IR against PO line item.
    I want to know, is there any SAP table for MM which gives direct relationship between succeeding document and preceding document, similar to table VBFA for SD Document Flow.
    We have EKBE table which gives information about GRs and IRs for PO Line items.
    Consider following case,
    We have PO with line item say P1.
    Two GRs are done for the same item, say G1 and G2.
    Also two IRs are done for the same item, say I1 and I2.
    In table, EKBE it just shows that, G1 and G2 are done for P1.
    Similarly I1 and I2 are done for P1.
    I want the table showing that, I1 is done after G1 and I2 is done after G2.
    (or may be showing that, I1 is done for G1 and G2)
    Do we have such table in MM? If such table does not exist, is there any way to verify this case?
    Please share your opinion.
    Thanks in advance.
    Amrut

    Amrut,
    If it is a GR based IR (check PO item Invoice tab- GR Based IV checkbox), you will find this link in table RSEG. You will find the GR number & item number in Reference number & Reference number Item field (LFBNR & LFPOS).
    If it is non-GR based IR, then I think only way is to get it through EKBE (which you have explained in your question) since these two are not linked directly.
    Regards,
    Gokul

  • 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

Maybe you are looking for

  • ME28 New Column to be added

    I am looking for a way to add a column to the report ME28 (RM06EF00).  I have a custom field that I added to the PO header (EKKO) and I would like this field to be available to be displayed when ME28 is run.  Is there a BADI that I can do this in?  O

  • How to send picture messaging

    how to send picture messaging

  • Using a US iPad in Kuwait to talk with facetime

    I have an iPad I bought before deploying in the US and I can not connect with facetime.  My iPhone (VZN) works fine for this but the iPad does not.  Any idea why?

  • How to revert all entry for PO

    Dear Expert, My client had mistaking pull entire PO > Good Recpt. Po > A/P invoices and same way SO > Delv > A/R invoices. At time of payment for a vendor its giv a single check. Entire Inventory book was wrong AP/AR invoices are closed actually some

  • Help me out, hard time understanding ratios? formula?(a64 3000 +neo4)

    Specs are k8n neo4 plat a64 3000 venice 2x1gb corsair xms 3200 x800xl 520 ocz powerstrem can some one give me there settings in bios so i can try them out, i want to try something moddest, im aiming for 2.2ghz maybe 2.4, I really want to learn how to