Change account upon reversing Goods receipt document (MIGO)

Hello,
I have the following situation at hand:
A goods receipt document (MIGO- 101) is posted in the month of June. Everything OK, account determination correctly.
Now in the month of July we want  to cancel this goods receipt (MIGO - 102). My client does not allow postings in months already closed!
The complexity is that upon reversing the goods receipt the request is that a different account is posted.
In the standard SAP funcionality upon reversing a material document, the same accounts get debited and credited.
How can I acomplish this request?  Is there a BADI or user-exit available to manipulaste in this particular situation the accounts posted?
Thanks for any answer.
Aart

The complexity is that upon reversing the goods receipt the request is that a different account is posted.
Here  company  required  in  different  account  or  when  you  done  reversal  it posted  in  to  different  account .
Whenever  we  done  reversal  same  accounting  will  be   debited  and  credited  (Standard  Behavior )

Similar Messages

  • Changing the G/L Account while Posting the Goods Receipts in MIGO

    Hi All,
    I have requirement in which G/L Account needs to be changed based on some validation while Posting the Goods Receipt in MIGO.
    I have created exit in OBBH by copying the standard SAP Program RGGBS800 in view V_T80D.
    I changed following entry in view V_T80D:
    GBLS     ZGGBS800     Val/sub:Exits for substitution
    Now Inside program ZGGBS800, I have written the logic to change the BSEG-HKONT value with the new G/L Account which gets called inside the standard function module G_VSR_SUBSTITUTION_CALL.
    FORM U999.
       DATA : V_HKONT TYPE BSEG-HKONT.
       clear : V_HKONT.
       SELECT SINGLE SAKNR FROM ZMASH1 INTO V_HKONT WHERE MATNR = BSEG-MATNR AND WERKS = BSEG-WERKS.
         IF SY-SUBRC EQ 0.
           BSEG-HKONT = V_HKONT.
         ENDIF.
    ENDFORM.
    After the execution of the above code the value of BSEG-HKONT changes with new value of V_HKONT but after this when I go further in Standard SAP code of function module G_VSR_SUBSTITUTION_CALL, there is one subroutine FORM EXP_TAB_009_BSEG  being called which changes the value of BSEG-HKONT to initial value of HKONT also while moving the data from BSEG to TEMP_STRUCT it doesn't passes the HKONT value, which I want it be passed as I want the changed value to be passed finally to OUT_RESULT. Please look at the code below.
    Following is the SAP standard code of subroutione FORM EXP_TAB_009_BSEG :
    FORM EXP_TAB_009_BSEG
             USING
               IN_ORIG STRUCTURE        BSEG
            CHANGING
               OUT_RESULT STRUCTURE     BSEG
               B_RESULT.
      DATA:  ORIG LIKE BSEG.
      DATA:  BEGIN OF TEMP_STRUCT,
             ABPER                          LIKE   BSEG-ABPER,
             AUGGJ                          LIKE   BSEG-AUGGJ,
             DOCLN                          LIKE   BSEG-DOCLN,
             FIPOS                          LIKE   BSEG-FIPOS,
             FISTL                          LIKE   BSEG-FISTL,
             FKBER                          LIKE   BSEG-FKBER,
             FKBER_LONG                     LIKE   BSEG-FKBER_LONG,
             GEBER                          LIKE   BSEG-GEBER,
             GMVKZ                          LIKE   BSEG-GMVKZ,
             GRANT_NBR                      LIKE   BSEG-GRANT_NBR,
             HKTID                          LIKE   BSEG-HKTID,
             HZUON                          LIKE   BSEG-HZUON,
             INTRENO                        LIKE   BSEG-INTRENO,
             MEASURE                        LIKE   BSEG-MEASURE,
             PARGB                          LIKE   BSEG-PARGB,
             PPA_EX_IND                     LIKE   BSEG-PPA_EX_IND,
             PPRCT                          LIKE   BSEG-PPRCT,
             PRCTR                          LIKE   BSEG-PRCTR,
             PRODPER                        LIKE   BSEG-PRODPER,
             PRZNR                          LIKE   BSEG-PRZNR,
             PSEGMENT                       LIKE   BSEG-PSEGMENT,
             SAMNR                          LIKE   BSEG-SAMNR,
             SCTAX                          LIKE   BSEG-SCTAX,
             SEGMENT                        LIKE   BSEG-SEGMENT,
             SGTXT                          LIKE   BSEG-SGTXT,
             SRTYPE                         LIKE   BSEG-SRTYPE,
             UZAWE                          LIKE   BSEG-UZAWE,
             XREF1                          LIKE   BSEG-XREF1,
             XREF2                          LIKE   BSEG-XREF2,
             XREF3                          LIKE   BSEG-XREF3,
             ZUONR                          LIKE   BSEG-ZUONR,
             ZZBUSPARTN                     LIKE   BSEG-ZZBUSPARTN,
             ZZCHAN                         LIKE   BSEG-ZZCHAN,
             ZZLOB                          LIKE   BSEG-ZZLOB,
             ZZLOCA                         LIKE   BSEG-ZZLOCA,
             ZZPRODUCT                      LIKE   BSEG-ZZPRODUCT,
             ZZREGION                       LIKE   BSEG-ZZREGION,
             ZZSPREG                        LIKE   BSEG-ZZSPREG,
             ZZSTATE                        LIKE   BSEG-ZZSTATE,
             ZZUSERFLD1                     LIKE   BSEG-ZZUSERFLD1,
             ZZUSERFLD2                     LIKE   BSEG-ZZUSERFLD2,
             ZZUSERFLD3                     LIKE   BSEG-ZZUSERFLD3,
             END OF TEMP_STRUCT.
      IF IN_ORIG = BSEG .
        B_RESULT = B_FALSE.
        OUT_RESULT = IN_ORIG.
        EXIT.
      ENDIF.
      MOVE-CORRESPONDING BSEG TO TEMP_STRUCT.
      OUT_RESULT = IN_ORIG.
      MOVE-CORRESPONDING TEMP_STRUCT TO OUT_RESULT.
      IF IN_ORIG = OUT_RESULT .
        B_RESULT = B_FALSE.
      ELSE.
        B_RESULT = B_TRUE.
      ENDIF.
      BSEG = OUT_RESULT.
    ENDFORM.                               " EXP_TAB_009_BSEG
    I need the value of BSEG-HKONT should be passed to OUT_RESULT-HKONT.
    I am not able to find any userexit or BADI for this.
    Please guide me on this.
    Thanks,
    Chandravadan
    Edited by: Chandravadan Jaiswal on May 8, 2009 2:18 PM
    Edited by: Chandravadan Jaiswal on May 8, 2009 3:45 PM

    Hi
    I also need to change hkont while posting MIGO and MIRO transaction..
    Any suggestion for this?
    Here's my problem.. Substitution of account(HKONT) when posting in MIGO/MIRO

  • Reversal of goods receipt document at incorrect rate

    Hello,
    We have problem with reversing of goods receipt document.
    We have created a PO and fixed our exchange rate in PO. Then, we did GRN and system picked up exchange rate fixed in PO.
    After this we reversed our GRN document but this time the rate was not picked up from PO but rather from Exchange rate maintainance table i.e TCode OB08.
    Note: No change was done in PO in between of this two transaction
    Could you please tell me why this has hapenned and how to get rate from PO instead of OB08 while reversing GRN or any other way to achieve this.
    Regards,
    Deepika

    The entries are belwo:
    Our Company Code currency is NGN and PO created in USD with exchange rate 156.00000 (fixed in PO). Rate maintained in OB08 is 148.00000
    GRN :
    Item     Posting Key     Account     Amount (USD)     "Amt in Local Currency (NGN)"
    1     89     131001       219,240.00                          34,201,440.67
    2     96     292001       216,000.00-     33,696,000.00-
    3     93     641006           0                          1,728,000.00-
    4     40     641006          0                          1,728,000.00
    5     50     292027        1,080.00-                          168,480.67-
    6     50     292027        2,160.00-                           336,960.00-
    Reversal of GRN:
    Item     Posting Key     Account     Amount (USD)     "Amt in Local Currency (NGN)"
    1     89     131001     231,090.82-                          34,201,440.67-
    2     96     292001     216,000.00                          33,696,000.00
    3     93     641006     11,850.82                          1,728,000.00
    4     40     641006     0                          1,728,000.00-
    5     50     292027     1,080.00                          168,480.67
    6     50     292027     2,160.00                          336,960.00
    Here the Inventory has been reversed at rate from OB08. One more thing to notice is that Amt in Local currency is same in both entries i.e it is driving the transaction currency
    Regards,
    Deepika
    Edited by: Deepa on Sep 30, 2011 11:13 AM

  • How do you reverse a goods receipt document of a service entry sheet?

    Hi SAP experts,
    How do you reverse a goods receipt document of a service entry sheet? Your help/opinions will be highly appreciated. Thanks!
    Jessica Mari C. Cruz
    Jr. Software Development Analyst
    SAP- Materials Management Team

    You can sue the ML81N itself to delete the service entry sheet and once you will delete the SES, system will generate the Material document for reversal of GR.
    Go to ML81N and enter the service number and change the screen to change mode.
    If release statergy is used for this then cancel the release using the same statergy.
    Click Revoke acceptance button or Ctrl + F2.
    Edited by: Manish Kumar Agarwal on Aug 4, 2009 8:27 AM

  • Attach document while Goods receipt in MIGO

    Hi,
    Can I attach a word or a pdf document while posting Goods receipt via MIGO.
    In 'Service for Object' the option  store document is not possible. It is grey out.
    Do I need to do some settings to get this option so as to upload a file while posting the GR.
    I am able to get the option while create/change PO but not in MIGO.
    Regards

    Hi!
    To attach business documents in MIGO you have to do a little bit customizing first...
    In OAC0 check if a content repository is available.
    In OAC2 enter the document type you want to attach
    In OAC3 enter object type BUS2017 with your document type, content repository etc.
    You can attach documents only after the posting because until then SAP has no fix document number which is the key/link to the document. So display the posted material document again and then you can attach the business document.
    Greeting

  • Account Assignment from Material Master or Goods Receipt Document..

    We are on ECC 6.0 instance.
    For Vendor Cash Discounts we have all the postings going to a default cost center set up as the default account assignment in the cost element master. Because of the default cost center, the  postings are going to the profit center on the default cost center. But the segment getting populated at the line item level is not in line with the segment on the default PC.
    This segment is actually the one which is in line with the Profit center in the account assignment on Goods Receipt/Material document or the PC on the Material Master.
    Can someone please clarify where this segment would be coming from - from the material master or from the good receipt aka material document?
    Edited by: Pete on Jul 22, 2009 3:51 PM

    Hi,
    In material master you have assigned a profit center and all good movements will post to profit center,which is assigned to materials.in profit center you have assigned a SEGMENT.so automatically all profit center postings will post to SEGMENT.
    Hope this helps you.
    Thanks,
    Anusha

  • Freight posting in MIRO based upon multiple goods receipt.

    Hi
    In one of the companies they are requesting the freight charge to be broken into multiple lines (based upon multiple goods receipt)  instead of one consolidated balances in the invoice (MIRO).  Right now each time we do a MIGO against the same PO the system creates a seperate material document and the entry is (and that is correct) :
    Inventory  -      XXXX
    GR/IR (Cost)- XXXX
    GR/IR (Freight) XXXX
    PPV                  XXXX
    for example if migo is done 3 times against the same PO the system posts 3 seperate material document and everything is correct. 
    When we do a MIRO the system generates 3 seperate lines for GR/IR (Cost) but it consolidates GR/IR(freight) and posts the entire value in one line. 
    Requirement is : We want the system to break freight cost into 3 seperate in the invoice. 
    Did anyone come across this issue before.
    Thanks
    Joseph

    Hi Joseph,
    I guess you can use MIRO 3 times, and post separated delivery costs into 3 freight invoices.
    During each time, you can choose only 1 line to carry out the posting.
    Thanks and regards,
    Polly

  • Comparing Cost Center in ME23N and Goods Receipt document

    Hi,
    I do not have much functional knowledge in MM and I want to clarify following queries.
    I have to build a report that displays the Purchase order value and goods receipt value by cost center ( in the same output screen).
    In tcode ME23N of ECC, for any Purchase order item , we can display cost center in Account Assignment tab.( Same appears in table EKKN.)
    Also, in the purchase order History tab of ME23N, we can check GR ( Goods redeipt ) and IR ( invoice receipt )documents. ( This GR and IR information is stored in table EKBE.)
    My first query is :
    if a PO item has cost center 'C1' associated with this ( in account assignment tab of ME23N), can it be possible that goods receipt document for that PO item has different cost center than C1.
    i.e. is it mandatory that goods receipt ( GR ) document has the same cost center as that of corresponding purchase order item ?
    While posting the goods receipt, is it possible to edit the cost center in GR document so that after posting GR, PO item shows cost center C1 but GR document shows cost center C2 for that PO item.
    My second query is :
    If above scenario is possible, then there must be a table that holds the cost center infomation for a GR document. I would appreciate if anyone can share the table name.
    ( like we have EKKN for storing cost center of Purchase order item ).
    Thanks,
    Tarun Brijwani.
    Edited by: Tarun Brijwani on Jul 6, 2011 11:25 PM
    Edited by: Tarun Brijwani on Jul 6, 2011 11:27 PM

    Dear Tarun,
    Below is the answer to your query:-
    My first query is :
    if a PO item has cost center 'C1' associated with this ( in account assignment tab of ME23N), can it be possible that goods receipt document for that PO item has different cost center than C1.
    Not Possible
    i.e. is it mandatory that goods receipt ( GR ) document has the same cost center as that of corresponding purchase order item ?
    Yes
    While posting the goods receipt, is it possible to edit the cost center in GR document so that after posting GR, PO item shows cost center C1 but GR document shows cost center C2 for that PO item.
    No
    My second query is :
    If above scenario is possible, then there must be a table that holds the cost center infomation for a GR document. I would appreciate if anyone can share the table name.
    ( like we have EKKN for storing cost center of Purchase order item ).
    Not possible to have 2 cost center per line item and the cost center per lin item must be same with the cost center when you do MIGO. As a result of that, there is no table where it can store 2 cost center for each line item. Unless you are creating a service PO line item where it required sharing of cost center for the particular services or even asset.
    Thank you
    Regards
    Leonard Tan
    Edited by: Leonard Tan on Aug 22, 2011 3:31 AM

  • Mistakenly reversed goods receipt after invoice posted

    Hi experts,
    I already post this question in EAM forum, but moved to here as I think I will get more useful replies.
    I have a PO that was goods receipted and invoiced receipted. Later on, the GR was reversed, and now that entry needs to be reverse... We're having a negative value in our reports that should not be there.
    What would be the way to fix this? Is it OK that the goods receipted may be reversed after invoice receipted.. i.e. after an invoice has been posted? In Tx. OMBZ the Mvt. 102 has "RevGR desp. IR" unchecked.
    Kind Regards,
    Andres.
    Original thread: Reverse goods receipt after invoice posted.

    Just do a GR again for the PO and this should fix your problem. The original document and reversal documents will remain there with another GR document against PO.
    Unless the payment against the invoice hasnt been made, your preceding documents can be changed. Once the payment has been made, you should not be able to change any preceding document.
    Edited by: Afshad Irani on May 31, 2010 9:08 AM

  • Report for vendor no., vendor name for good receipt documents on KSB1

    Hello,
    My client needs vendors on KSB1 report. I told them about offseting  account, but it doesn't show vendor for good receipt documents.
    Is there any place else they can view vendor, vendor name for those good receipt documents .
    Any MM report or AP report .
    Thanks,
    T.G

    Hi,
    Please go to FBL1N, In Dynamic Selection give document as "WE", this will give and enable Purchase Order Number
    This will give you Vendor Name, Purchase Order and  FI Document number or u can try MB51, there you will not get Vendor Name, but you will get Vendor Code, Material Document Number and Purchase Order Number
    Br,Vivek
    Edited by: View_taurian on Oct 22, 2011 12:01 AM

  • R/3 Goods Receipt document from SRM.

    We have a scenario where by a confirmation is entered onto SRM for a service by our dispatch clerk and this automatically creates a service entry confirmation and goods receipt document in R/3, that I can see in SAP transaction code MB03 and ML81N. The issue is that for the R/3 GR document and accounting documents that are generated in R/3 show systems user SRMRFCUSR as user who posted the GR & Confirmation and account documents.
    Are any OSS notes or BADI codes available that would allow me to default through the SRM dispatch clerks user ID from SRM instead, i.e. CREATED_BY instead of SRMRFCUSR instead? We implemented similar logic for Purchase Orders in R/3 that replicated from SRM as they first showed system user WORKFLOW and OSS note 1180083 made it possible to display the actual user who entered PO document and not the system user between SRM and R/3.
    Thank you.
    Steve.

    Hi
    <b>Please provide the System version details -></b>
    <u>Meanwhile, go through the following pointers which will help -></u>
    Re: Problem to send idoc for a Good Receipt created
    Re: Creating Confirmations in SRM - What is the preferred method
    MB_CREATE_GOODS_MOVEMENT Idocs in status 64
    Re: Replicating GR custom fields from EBP to SAP R/3
    Re: Confirmation screen field to be mapped to backend field
    Re: IDOC error in R/3 while creating a contract from SRM
    Re: Error in IDOC BLAORD03
    <b>Other SAP Links -></b>
    http://help.sap.com/saphelp_srm50/helpdata/en/75/33724080c8ca01e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/0e/bc7d3c6715c854e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/87/7cc73cee4fb55be10000000a114084/frameset.htm
    http://help.sap.com/saphelp_srm50/helpdata/en/4b/fe21419d6842b9861fade93597aab3/frameset.htm
    Hope this will help. Do let me know.
    Regards
    - Atul

  • Hitting error when post goods receipt in MIGO

    Dear SAP Gurus and Expert
    Kindly advice what config or setting need to be done when the post good receipt in MIGO hit the error of "Acct. 81110140 for trans. /ev. key ANL, is not a control account".
    Thank you
    Regards
    Leonard Tan

    Hi
    http://wiki.sdn.sap.com/wiki/display/B1/SAPBusinessOne...ToGo-3.TheBasicsofFinancial+Accounting
    http://help.sap.com/saphelp_sbo88/helpdata/en/45/06b9997d720487e10000000a155369/content.htm
    kiran

  • Error while using BAPI  to create Goods Receipt Document

    Hello All,
        While using the bapi BAPI_GOODSMVT_CREATE to create  Goods receipt document ,the following error is encountered:-
    Error Message:FOR OBJECT XABBELEGNR,NUMBER RANGE INTERVAL DOES NOT EXIST OM36.
    Do we need to create a number range object ??If yes,how and where to create ?
    Thanks,
    Deepti.

    Hi Deepti!
    There is only a valid interval missing, not the whole object.
    Maintenance can be done via transaction SNRO, enter your object XABBELEGNR in entry screen. (Alternatively use transaction OMJ6).
    Push button 'Number Ranges' and 'Change Intervals'. Here you can define an interval.
    Regards,
    Christian

  • The linkage between Good Receipts Document & MM Invoices

    Dear Experts :
    I have an issue. I am doing Purchase Summary Report (ALV format). This report is to display each Good Receipts Documents with it's sum up invoice amount.
    But there is one scenario where, user post MM invoice, they didn't specify any reference GR documents in the Invoice document.
    Which means I couldn't find reference document number under EKBE-LFBNR, EKBE-LFPOS and EKBE-LFGJA where VGABE (transaction type) = '2'.
    Do we have any way or table to refer to link this kind of invoices to the Good Receipt Document ?
    Thank you very much.

    Hi, Time Sharing scheduling is based on credits that are allocated to the process while creation and as long as process keep consuming the OS resources (CPU etc), its priority keeps on changing dynamically (Because process has lost credits) where as processes with Real Time Scheduling are given priority over other processes configured with Time Sharing (even kernel resources).
    In simple terms, if LMS is configured with Time Sharing scheduling on a very busy Oracle RAC system, LMS process may contend for the CPU resources, which may cause performance bottleneck in cluster environment.
    In Oracle Real Applicaiton Cluster, various organizations has gained performance benefits of setting few Oracle processes such as LMS with Real Time scheduling.
    Thanks & Regards
    -Harish Kalra

  • How to Print Goods receipt Document

    Hi All,
    I ahve to make changes in Goods receipt Document. I am having the folling details with me .
    Program Name : - SAPM07DR
    Form Routine : - ENTRY_WE02
    FORM : ZWESCHEINVERS2.
    When i take print out for Goods receipt Document using transaction MB02 it print some RETURN DELIVERY SLIP. Bu when i check for FORM for output type WE02, it show the ZWESCHEINVERS2 form but this form is for Goods receipt Document. Can any one help to find out the way to print Goods receipt Document for any Material Document No.
    Thanks
    Piyush Mathur

    Hi
    Go to NACE transaction and find the correct form and program has been called. Once it is verified, make necessary changes in the required form for Goods reciept.

Maybe you are looking for

  • Mouse pointer over links

    My mouse pointer changes to the hand for only a fraction of a second when it moves over a link and then changes back to the standard pointer icon. How do I fix this? I'm using Safari 1.3.2, OS X 10.3.9

  • Can't Open Home Sharing itune

    How To Remove form Other Computer.. me use 1 computer

  • MSCA/MWA Hide a button in a extended page

    Hi, I have a custom MSCA page XXDeliveryLinePage which extends the source DeliveryLinePage, and there is a cancel button (mCancelBtn) in the source page. Does anyone knows how can I hide the cancel button from the XXDeliveryLinePage page? I don't wan

  • Audio shifts out of sync. cannot match up picture to audio

    i have a video that i downloaded from a stream. however, in fcp 6 the audio is out of sync with the picture. when i reallign the picture to audio, the audio gradually becomes more and more out of sync the further you go down the timeline. ive tried r

  • Unable to download PS4 theme

    Same here!