Enhancement for GR posting - to update FI document

Hi Friends,
  I have requirement wherein I have to modify the FI document which gets genereated after the Goods Receipt posting is done.
I have to update the fields XREF1 and XREF2 in the FI document. I have check BADI MB_DOCUMENT_BADI, but it doesn't suit. Also I have tried the BTE 1025 and 1050, but these BTE's are not getting called when the GR posting is done. Please let me know if you know any userexit/badi/bte where in I have the access to the FI document to manipulate this data. The enhancement should be called after the material document is posted since I need to pass the material document(MBLNR) to the FI document reference key(XREF1).
Regards
SAPTechie

Hi,
Make use of the BADI - MB_DOCUMENT_BADI, which triggers during GR posting.
Implement the method MB_DOCUMENT_BEFORE_UPDATE, in the same make use of the SY-UCOMM field.
Check if sy-ucomm = 'WABU_T'  and try to update SAPMV05A -LIPS FIELDS or else
Use the Enhancement SDVFX008, function module EXIT_SAPLV60B_008
update the fields XREF1,XREF2  in the internal table structure  of XACCIT,  which will be updated in BSEG.
Thanks,
Shailaja Ainala.

Similar Messages

  • Enhancement for MB01 - Need to check the document before post

    Hi All,
    I need to check a material document before posting in MB01 for a field "GR/GI Slip No" which we are using to enter "gate entry no".The issue now is as i'm using a table control screen to post GRs in bulk . i want to avoid duplicate GRs of a particular gate entry.during analysis i found that an exit/Badi at MB01 - end  may serve my purpose well.
    thanks and regards,
    sachin soni

    Hi,
    You may try the EXIT:
    MBCF0005  Material document item for goods receipt/issue slip
    or BADIs:
    MB_BAPI_GOODSMVT_CREATE
    MB_BATCH_MASTER
    MB_DOCUMENT_BADI
    Regards,
    Renjith Michael.

  • Enhancement for updating accounting document in MIGO

    When doing MIGO, material document gets generated in background. I would like to pass this material document num (mkpf-mblnr) to the assignment field of GR/IR line item of accounting document (BSEG-ZUONR)

    Hi, Thanks for u r response. it is giving problem
    My requirement :  Transaction is : MIGO
    Before posting of material document, update material document number in assignment field of GR/IR line item of accounting document (WE) at number commitment stage
    Update MKPF-MBLNR (Material Document Number) in BSEG-ZUONR
    but already i tried AC_DOCUMENT i got a problem .
    What i did,
    first use MB_DOCUMENT_BADI  with  method
                 mb_document_before_update.
    here i tried to get the material document and export into memory
    after use AC_DOCUMENT With method
                   change_after_check.
    here Import the material document doc num and pass it to Assignment field in
    but it is not working
    when i debug first trigger the   AC_DOCUMENT   And then it goes to   MB_DOCUMENT_BADI
    Plese help me regarding this.
    Edited by: vsreelakshmi on Feb 9, 2012 5:23 AM
    Edited by: vsreelakshmi on Feb 9, 2012 5:29 AM

  • DMS - File attached for FI posted document

    Hi All,
    I am new for DMS .
    My requirement is - we have web application in .net  . Vendor update entry in web application , attached some file with that page and go to submit .
    It comes in SAP through proxy and posting in FI has been done .
    But the file attached in .net application is stored in .net application server .
    So now requirement is when we open posted document in SAP we need that file attached with posted document (available in GOS for that t-Code) .
    My question is -
    1 - how we create entry in DMS dynamically ( we got posting confirmation in SAP through proxy and we got that file in SAP application server through file transfer ) . But how to entry maintain in DMS (we have multiple document for single posted document ). Even I know how to create document type for DMS n basic thing of DMS .But I need algo . 
    2-  How that entry link maintain to that FI T-Code . 
    Thanks to all .
    Regards,
    Alter

    Hi Ravi,
    you need to customize in OAC3 the Documenttyp link to FI Object.
    e.g
    ObjectType      Doc.type   Status Cont. Rep. Link  Doc.class      Ret.per.
    BKPF               #ZXYDOC#      X      C1    TOA01      PDF              180
    From your Server you need to call am FM (something like ALINK_CREATE_ASYNCHRON_META" on your SAP System via RFC to save the File after you created the Object.
    regards
    Kim

  • No update for MFBF posting in COPA

    Hi,
    For all posting  under transaction MFBF, no document has been updated in profitability segment(COPA).All FI - COPA differences have been poted manually in COPA.I have checked  that Cost Element which has defined in OKB9 as aprofitability segment is ticked and that cost element has defined in COPA derivation rule with plant combination as well as that cost element  is maped in KEI2.
    Can anybody help us for solving that issue.
    Thanks in advance.
    Prabal

    Hi Prabal da
    Welcome to SDN!
    If you are talking about consumption postings generated from back flushing from MFBF - Then the CO object is the Prod order or Cost Collector in such cases
    Since, CO Object is already found, OKB9 does not work in this
    Check your Prod order or Cost collector... The GI postings would already be lying there
    If I have not understood your case properly, do let me know
    br, Ajay M

  • Return to vendor Error - Document flow for delivery cannot be updated

    Hi Expert,
    we have a issue - can't post "return to vedor"  by MIGO.
    The steps are following:
    1. It is an STO between 2 plant within different company code;
        But the planner wrongly set this STO as CONFIRMATION KEY REQUIRED.
    2. The issuing plant didn't create the outbound delivery for this STO. And at the same time, the receiving plant directly post the Good Receipt for this STO by creating an inbound delivery.
    3. Then we found this error, we decided to reverse this Good receipt, and then ask the issuing plant to open an outbound delivery, and the receiving plant post good receipt for the outbound delivery.
    We met error when we tried to use 122 - return to vendor:
    Document flow for delivery cannot be updated
    Message no. M7352
    Diagnosis
    Purchase order 753486 is assigned to a delivery. The current transaction cannot update the document flow for this delivery, because the system does not recognize the delivery number.
    System response
    When you post this goods movement, the document flow is not updated in the delivery. This can lead to problems later on when you process the delivery.
    Procedure
    You can post the goods movement using transactions MB0A or MIGO (Goods receipt for a delivery) after you enter the delivery number.
    If you are currently posting a cancellation, a return delivery, or a subsequent delivery for the material document, it is not possible to enter the delivery number.
    Procedure for System Administration
    See SAP note 361014: Message M7 352: What does it mean?
    Please advice,
    Thanks,

    Unfortunately, when I use MB0A and I input the delivery number under Find POs for Preceeding Document, it errors out as well as the delivery does not exist.
    Any other option to reverse the GR?

  • USER EXIT FOR CHANGING POSTING DATE IN THE MATERIAL DOCUMENT

    Hi,
    Pls advise any USER EXIT FOR CHANGING POSTING DATE IN THE MATERIAL DOCUMENT.
    Regards,

    Hi,
    There is another user exit for updating material document data Upon posting  is MB_CF001
    I hope this will fullfill you.
    Prem

  • Cannot reverse GR. Error: "Document flow for delivery cannot be updated"

    An STO has GI, GR and invoice verification. However, it appears the delivery was deleted such that when trying to reverse the GR, there is an error: "Document flow for delivery not be updated".
    According to OSS Note 1499411, solution is:
    Change your process so that the goods receipt (in stock transport order scenarios with replenishment deliveries) is always posted with reference to the replenishment delivery and never with reference to the purchase order.
    If this is not possible and you have to work with the restrictions of a goods receipt with reference to the purchase order instead of the replenishment delivery, implement the attached corrections to be able to correctly post the GR reversal with reference to the stock transport order.
    However, it does not say anything on how the GR of the existing STO will be reversed.
    How will i reverse the GR in this case?
    Thanks!
    Best Regards,
    Armie

    Unfortunately, when I use MB0A and I input the delivery number under Find POs for Preceeding Document, it errors out as well as the delivery does not exist.
    Any other option to reverse the GR?

  • Migo for subcontracting po- Excise invoice is posted later to material docu

    Dear all,
    While we are doing migo for sub-contracting PO we are getting an error like this  Excise invoice is posted later to material document.
    process
    1. Create subcontracting PO.
    2. Issue material 541 MVT.
    3. Create sub-contracting challan- dated 8-8-2010.
    4. Migo date 8-8-2010.
    while entering subcontracting challan no & year, error messege  is coming as Excise invoice is posted later to material document.
    Pls give solution.
    Thnaks & regards
    madhu

    Hi,
    You will have to post the MIGO at least one day after the creation of Excise Challan.
    Regards,
    Prashant Kolhatkar

  • Post an InterCo parked document for another Company Code

    There are two (2) users with authorizations only to their company codes (CC):
    User1 can create/save/delete park/post a doc in CC1.
    User2 can create/save/delete park/post a doc in CC2.
    User1 can create and park an InterCo doc in CC1/CC2.
    User2 can create and park an InterCo doc in CC2/CC1.
    <Q1> How can I restrict User1 to post ONLY the parked InterCo doc, but not post any other doc in CC2?
    <Q2> How can I restrict User2 to post ONLY the parked InterCo doc, but not post any other doc in CC1?
    I have looked into the Auth. Object F_BKPF_BUK, but it doesn't cover me!!!

    Hi Kedar, thanks for your reply, again!
    That won't work. here is the scenario:
    1) UserCC1 will park an InterCo doc with 2 lines (credit to CC1, debit to CC2)
    2) UserCC2 should go ahead and post this newly park document
    3) UserCC2 should be able to post ONLY the InterCo park documents associate with his/her CC.
    4) UserCC2 should NOT be able to post any other doc on any other CC.
    Is it clear what the goal is?
    I have concluded that in oder to control it, I need an Auth. Object for CC (which I have already) and another Auth. Object that conttols 'Docyment Type'.
    Do you know what Auth. Object controls 'Doc.Type'?
    Best regards,
    Tom

  • PO no is not updateing in MSEG table for transfer posting wrt PO

    Hi All ,
    PO number not updateing  in MSEG table field EBELN for transfer posting with reference to PO . What should be the reason . This is for subcontracting process .

    Hi Raghavendra Balegar
    If u r doing through scheduling agreement then it will not sit in MSEG. only if u doing through standard PO i.e. NB then only u can view the data of PO in MSEG.
    Regards
    Ram

  • BTE For CJ37. CJ34, CJ38 - Budget document post

    What is the BTE for CJ37. CJ34, CJ38 - Budget document post. How to find BTE for those transaction in PS.

    "BTE are supported by service function modules OPEN_FI_PERFORM_* and OUTBOUND_CALL_*. Therefore you may run your transaction in debug mode and set breakpoints when function modules are called. Check for the names of the function modules called.
    You may also search for SAMPLE_INTERFACE_* function modules.
    Additionally you may open the application program (find the name via system - status - program when you have started your transaction). With global search for the strings mentioned above you may find whether BTEs are available with your transaction.
    Another way is to check the documentation in the implementation guide (transaction SPRO).
    Further you may use the menu "Environment" of transaction FIBF: there are 2 Infosystemes available, one for P/S and another for Process BTEs."
    - Heiner Gohlmann (source - http://itknowledgeexchange.techtarget.com/itanswers/business-transaction-events/ )

  • Any upload programe for mass update of documents

    hi
    i just want to know whther there is a process for mass update of documents .....like LSMW .....
    pls suggest me
    Reagards
    s

    Hi Surya,
    Following are the step to upload batch document in LSMW:
    Create the Project, Subproject and Object in the LSMW Transaction (press F8)
    1) Maintain Object Attributes (click on Batch input recording) for ex: Do the recording to create DIR .
    Create recording (t code CV01N
    It will direct us to T code CV01N crate DIR attaché the document then save it.
    2) Maintain Source Structures: from Object overview List
    For easy reference copy the source file to Excel sheet and tabulate it has horizontal format then copy that in .txt .Create source structure save and go back.
    3) Maintain Source Fields:
    Maintain table (for ex: field name: DOKAR, type (should be) :C and length: 3)  save it and go back.
    4) Maintain Structure Relations : create relationship and go back.
    5) Maintain Field Mapping and Conversion Rules
    Go to Extras -> Auto field mapping
    Accept all proposals Continue till Auto file mapping is completed save it and go back.
    6) Maintain Fixed Values, Translations, User-Defined Routines(Optional)
    7) Specify Files
    Specify the input file (which we have saved in .txt file format in step 2) click in Tabular.
    8) Assign files
    9) Read Data:
    Execute the read data step to read the input file data (press F8)
    10) Display Read Data . 
    11) Display and Convert Data:
    The validations will take place when we execute the convert data step. The error records will download to the specified file path if there any and same will be displayed.
    12) Create Batch Input Session (press F8)
    13) Run Batch Input Session (press process-F8)
    Thus continue with this process document can be uploaded with given source file hence will create the specified DIR. hence continue enter...
    Continue till all the DIR created (as per input given in source file).
    Regards,
    Seema Pilankar

  • Document flow for delivery cannot be updated !

    Hi,
    When i try to cancel a GR (GR upon an aoutbound delivery) with MIGO i had this error message :
    "Document flow for delivery cannot be updated"
    Please how to solve that ?
    Regards

    Thanks,
    in MIGO i try to reverse the matrial document of my GR
    if it is not correct what must i choose in migo ? because when i choose cancellation, "Material document" is the only choice suggested by the system !
    Please help.

  • How to create or update 'change document' for crm order

    Hi all,
       i want to create or update change document records via program . And which method could be used (FM or ...) ?
      I find there is a fm 'CRM_ORDER_WRITE_DOCUMENT' . But seems not available?
      any good idea ?
    BR.

    Hello
    You can refer to FM:CRM_ORDER_CHANGE_DOCS_CREATE. In this FM, the change documents are set.
    But I don't recommend to create or change standard change document by your own logic because of view of the internal control. Changing the change document by user own logic has possibility to make the falsification.
    Regards,
    Masayuki

Maybe you are looking for

  • Using a variable from another class

    hello friends, I have a class with the follow variable: dbcolTempMax, and the value of this variable I need in another class, how can do to use the value of the variable...thanks

  • Need help embedding file on site...

    I'm trying to embed a swf file on a site. Here a link to the file on a page that works. Example Problem is, I need to place it on a different site (we have two servers)  and it's not working once I link to the file on the other server. Below is the c

  • Finding a power supply for my HP PC

    I have the HP m9340f with a 350W power supply, I am interested in upgrading it to a 500w psu, namely this one http://www.newegg.com/Product/Product.aspx?Item=N8​2E16817438012. Does anyone know if that computer can handle the 500w psu. This question w

  • Is it possible to create a musical score without measures?

    Is there a way to display the musical score of a particular track without any measures (or bars as they are often called)? For example I'd like to be able to play a melody on my keyboard with no metronome and no time signature but have the notes them

  • Fix for Incredibly Long Sync...? Going on 4 hours now...

    I hear some of you in here complaining about your 5 minute iPhone sync, or how your backup takes 10 minutes alone. Well... my backup, alone, is going on 4 hours as I write this, AND ITS ONLY HALF WAY! I have some apps I just purcahsed from the app st