Reverse Document using transaction MR8M

Dear Experts,
I have a problem that need to be adressed immediately.
Have an Invoice.If we display it using "MIR4" - Under "payment" Tab ,there is the
BaselineDt (Say 11.11.2011) and
Due on (Say 25.12.2001).         payterms is  44 days
Iam cancelling this invoice using Transaction "MR8M" - If I look into the reversedocument Under "Payment" tab the dates are as follows.
BaselineDt (11.11.2011) and
Due on (11.11.2011).            payterms is  44 days
The due date in the reverse document is false here because it falls inside the due date of the Invoice ,which is 25.12.2011.The due date here also should be 11.11.2011 +44 = 25.12.2001
I or rather we found a solution within the sap note 968469 where there is a BADI interface "IF_EX_FMRI" with a method
FMRI_BADI_8(Different Due Date for Reversal): with parameters
IT_ACCIT     Importing     Type     FMFI_T_ACCIT              Accounting Interface: Item Information
IF_FMIFIIT     Importing     Type     FMIFIIT                        FI Line Item Table in Funds Management
C_ZHLDT     Changing     Type     FMIFIIT-ZHLDT                        Funds Management - Update Date
The challenge for me now is what should be implemented in this function.Iam new to FI module and I have no idea what should be done inside this.
Could someone give me some pointers or a sample code would be useful.
Thanks
P

Hi
When you cancel an invoice, actually you are posting a credit memo (see SAP Note 46564 - Cancelling/reversing an invoice/credit memo: Posting logic).
To change these values, try with badi MRM_PAYMENT_TERMS (see SAP Note 1559443 - Changing baseline dates for payment terms for Spain as a sample) although I am not sure if it works with MR8M.
I hope this helps you
Regards
Eduardo

Similar Messages

  • Program name to post document using transaction KB33N.

    Could you tell me the  Program name to post FI document using transaction KB33N.
    Also before document is posted it should appear in SM35
    Edited by: mukesh mahajan on Oct 20, 2009 12:39 PM

    The program name of the T-code is not required.
    I require a standard program which is used to post document in KB33N with data from input file from presentation or application server.
    example is like program RFBIBL00 is used to post document in FB01, FBS1 etc.
    Could any one suggest the name of program for KB33N posting.

  • Reversing & Resetting The Reversed Document using FBRA

    Hello All,
    Our client by mistake reversed a payment document while doing MR8M. Now they want to reverse the reversed document.
    I have tried FBRA again for the reversed document and it worked out and a new document got posted.
    Now let the orginal document be A which is reversed and reset using the document B.
    Due to wrong reversal of A again we used FBRA and posted document C which in turn reversed and reset B.
    Now if you check the orginal document A is available as an open item , earlier which was a cleared item. I want to know how can we make in back to a cleared item
    Regards
    Arun

    Hi All ,
    Thanks for the responses.
    My issue is resolved.
    Steps followed are.
    1. First rest and reversed the reversal document in FBRA. --> At this time the orginal document has again appeared in the line items as an open item.
    2. It was also identified that along with the orginal document which appeared as open item all the items which was cleared using the orginal document also became the open item.
    3. Now we have made the manual clearing of the line items uaing the transfer posting with clearing
    Regards
    Arun

  • BAPI for clearing documents -Using Transaction F-44

    Hi all,
       Is there any BAPI which can be used for clearing docs using transaction F-44.
    I have already seen threads on SDN for the same but couldn't find any BAPI.
    Regards
    Taranam

    I have the same question as you ,  please tell me if you had known , thanks !
    Edited by: HB WANG on Mar 4, 2008 4:08 PM

  • Trigger idoc for returns document using transaction O3O_RT01, O3O_RT02.

    Hi All,
    There is an requirement to trigger an IDOC with the details of returns documents.
    I am building a custom IDOC for this purpose. But the problem is i need to trigger the IDOC when i click on 'RETURN' button in the transactions O3O_RT01, O3O_RT02.
    Kdly help in as to is there any BADI or exit or and event available  to trigger a code when i click on that button, else  let me know how to go about it.

  • Reverse document-Due date false

    Hi Experts,
    I have an Invoice which Iam cancelling using MR8m.But in the reverse document the due date is same as the basis date.
    Surpursingly ,if look the reverse document using mir4,the due date is false(Same as BaseDate).If I look the document using FB03,the due date is correct
    Iam gerenerating an Idoc when this reverse document gets generated to be send from System A to B.If I look into this outbound Idoc,the field  BSEG-REBZG contains the Original Invoice number which is getting deleted.
    The orginal Invoice shows the due date correct.
    When I searched through the internet,many posts said to set the SEG-REBZG to "V"(But in my case the original document number is there in SEG-REBZG field).
    In system "B"- when It recieved the outbound Idoc from system "A",I changed the field value to "V" using we19 and send it again to System "B"and looked in system B with FB03.But the due date is false.
    Any pointers  are appreciated.Is it a customizing problem...
    Thanks
    P

    Guys,I solved the Problem by entering the "V" in the Invoice Reference Field.

  • Reversal Document Type

    Hi Gurus,
    "If you have not specified a particular document type for reversal, the system reverses documents using the same document type as that used to post those documents during internal number assignment."
    The above was extracted from sap help documentation. What is the pros and cons of using a different document type for reversal document. I have maintained many system and most of system uses the same document document type for reversal documents. Anyone knows what is the preferred settings and could explain to me? The pros and cons of both using the same/different document type for reversal document.
    Thank you.
    Regards,
    Wilson

    Hi ,
    The concept of using a differnt document type for reversal is for tracking purpose .
    For eg. for vendors if you want to segregate the invoice and the revesal document for the same you can do that .
    it is for the conviniency and tracking purpose that you can have a different docuent type for reversal .
    Cheers ,
    dewang

  • FI-CAX event 1102 when posting documents using BAPI_CTRACDOCUMENT_CREATE

    The event 1102 in FI-CAX has been implemented to copy "Alternative business partner for payments" to the document, when posting a document using transaction FPE1.
    Will this event aslo be executed when posting documents automatically via the BAPI BAPI_CTRACDOCUMENT_CREATE?
    If not, is there any other possibility to copy "Alternative business partner for payments" to the document, when posting a document automatically via the BAPI BAPI_CTRACDOCUMENT_CREATE?

    Thank you!
    In our system this note has not been implemented yet so this is something we need to fix.
    Do you know if event 1102 is supposed to be called when running FP60M/FP60P (mass activity: revenue distribution/Revenue distribution: Create and post documents)?
    Cheers,
    Teo

  • Validation of a reference field when posting accounting document using FB50

    Hi all,
    We hada requirement to restrict the users from entering japanese caharaceters in the reference field of a accounting document. The validation for this was done using the transaction OB28. when the user posts the accounting document using transaction FB01 or changes the accounting document using transaction FB02, the validation provided in OB28 does work(it throws an error restricting the user from entering japanese characters if he has done so). But whenthe user pots the accounting document using the transaction FB50, the same error message comes as information message although the coding is for giving an error message.
    This however does not happen when the user logs on in English. In English logon the error mesage does appear.
    When the user logs on in Japanese the message comes as an information message but at the same time does not allow posting of the document.
    Debugging this revealed that the OSS note 197329 has been applied to the standard SAP program SAPMF05A.
    Any pointers to how this can be rectifiied would be appreciated.
    Thanks in advance.

    I think it would be best if you opened an OSS message on this.
    Rob

  • BAPI to reverse a Document posted using transaction FB50 in ECC5.0

    Hi All,
    We have a requirement to reverse the document that is posted using the transaction FB50.We found the below BAPIu2019s for this requirement:
    BAPI_ACC_DOCUMENT_REV_CHECK
    BAPI_ACC_DOCUMENT_REV_POST
    While trying to execute them, we are getting the error message u201C It cannot be postedu201D.
    Please let me know if anyone has worked on these BAPIu2019s or information on any other BAPIu2019s would be of great help.
    Regards
    Prathima

    check this link[Reversing a document using the bapi 'BAPI_ACC_DOCUMENT_REV_POST';

  • Reversing a document using the bapi 'BAPI_ACC_DOCUMENT_REV_POST'

    Hi All,
    I have posted a document using the FM 'BAPI_ACC_DOCUMENT_POST' and it is working fine .
    How can I reverse the same posted document using the FM
    'BAPI_ACC_DOCUMENT_REV_POST'?
    What are the mandatory parameters to be filled?
    Can anyone explain me with a example
    Thanks in Advance.

    Hi Siva,
    The bapi you have mentioned is the correct one.
    Look at the BAPI documentation which is pretty informative.
    In case you don't have it, i'm just copy pasting it.
    Functionality
    Reversing an external document in Accounting. (negative posting)
    The method "Reverse" can be used to reverse the relevant document in the accounting components.
    Parameters
    REVERSAL
    Reference information for reversal in Accounting
    Description
    Parameter for transferring a reversal document. The reversal document for the source document is not transferred - the reversal documents are generated in the individual components from the documents to be reversed. This is only possible however, if the corresponding documents are available, meaning that line item update is active in all components and no documents have been archived. If this is not the case, an appropriate error message is issued in the return parameter. If this happens, the document can only be reset by means of a corresponding inverse posting by the sender.
    You must make entries in the following fields
    Reversal document number:
    OBJ_TYPE     Sender ID
    OBJ_KEY     Reference number of the reversal document (source document)
    OBJ_SYS     Logical system
    OBJ_KEY_R     Reference number of the document to be reversed.
    Default
    All other fields are transferred from the FI document to be reversed.
    BUS_ACT
    Business Transaction
    Description
    To reverse the document, the same business transaction must be entered that was used for the posting.
    OBJ_TYPE
    Reference procedure
    Source document
    Description
    When a business transaction is updated in Accounting, it may be that several documents are updated at the same time (FI document, CO document, etc). If the business transaction is not initiated in Accounting, a source document must exist outside Accounting. The information from this document must be transferred when the FI/CO interface is called up. The source information is updated in all accounting documents, and is made up of the following fields:
    AWTYP (OBJ_TYPE) Reference transaction
    Sender ID
    AWKEY (OBJ_KEY) Reference key
    Source document number
    The reference key is made up of:
    AWREF Reference document number (10 digits)
    Source document number
    AWORG Reference organizational unit (10 digits)
    Number range ID (if required)
    AWSYS (OBJ_SYS) Logical system
    Logical system of source document
    When the document is being processed, the system checks whether a reference document number (first part of the reference key) has been transferred.
    Notes
    Use a separate value in the OBJ_TYPE field (reference transaction). You must maintain an entry for this value in table TTYP, which could be a function module that is called when the user wants to branch back to the source/sender document from an accounting document. This makes it possible for documents updated using BAPIs to be included in the document navigation (revision). If you use SAP defined characters in the field OBJ_TYPE, errors can occur in the navigation.
    The FI and CO line item suppression is defined separately for each reference transaction.
    It is not necessary to separate the reference key into reference document number and reference organizational unit. This means that reference document numbers that are longer than 10 digits can be transferred into the reference key.
    OBJ_KEY
    Reference Key
    Source document
    Description
    When a business transaction is updated in Accounting, it may be that several documents are updated at the same time (FI document, CO document, etc). If the business transaction is not initiated in Accounting, a source document must exist outside Accounting. The information from this document must be transferred when the FI/CO interface is called up. The source information is updated in all accounting documents, and is made up of the following fields:
    OBJ_SYS
    Logical system of source document
    Source document
    Description
    When a business transaction is updated in Accounting, it may be that several documents are updated at the same time (FI document, CO document, etc). If the business transaction is not initiated in Accounting, a source document must exist outside Accounting. The information from this document must be transferred when the FI/CO interface is called up. The source information is updated in all accounting documents, and is made up of the following fields:
    AWTYP (OBJ_TYPE) Reference transaction
    RETURN
    Return Parameter
    Description
    This table contains the return messages from the method call.
    Value range
    The first message contains the general status of processing:
    Type ID Number Message 
    S RW 605 Document posted successfully  
    S RW 614 Document check without errors 
    A RW 609 Error in document 
    The fields MESSAGE_V1, MESSAGE_V2 and MESSAGE_V3 contain the following information:
    Reference transaction ( OBJ_TYPE)
    Reference key ( OBJ_KEY)
    Logical system of source document ( OBJ_SYS)
    Additional messages are transferred with the following information:
    Parameter ( PARAMETER)
    Row ( ROW)
    Field ( FIELD)
    in which the error occurred.
    REgards.
    Ravi

  • How do we know the document is revered or not using transaction FBR2?

    Hi
    How do we know the document is revered or not using transaction FBR2?  
    I mean is there any table updates the flag or document number. This document numbers are available in table BKPF.
    I will explain clearly.
    1) If new document is created... then BKPF will created entry with Doc type is "AC"
    2) If above document is reversed using transaction FBR2.... then table BKPF will create document with doc type "AD".
    But How would we knows Document type "AC "is reversed or not? Is there any field will update for this doc is reversed or not?

    Well, you aren't getting the correct response because you're using the wrong term and likely the posters aren't familiar with FBR2.  FBR2 is not a reversal transaction.  When you use FBR2, you are simply generating a REVERSE posting, not a 'reversal' or cancellation.  The REVERSE (meaning 'opposite') posting is made according to the configuration you have for your document types and posting keys.  The only way you can identify this is via the TCODE field.

  • How to print a document in reverse order using Java Print API ?

    I need to print a document in reverse order using Java Print API (*Reverse Order Printing*)
    Does Java Print API supports reverse order printing ?
    Thnks.,

    deepak_c3 wrote:
    Thanks for the info.,
    where should the page number n-1-i be returned ?
    Which method implementation of Pageable interface should return the page number ?w.r.t. your first question: don't return that number but return page n-1-i when page i is requested; your document will be printed in reverse order. Your class should implement the entire interface and wrap the original Pageable. (for that number n your class can consult the wrapped interface; read the API for the Pageable interface).
    kind regards,
    Jos

  • Fetching reversal document Created using FB60

    hi All,
    I have created an invoice using FB60 and reversed the same which is getting stored in RBKP table i have an existing code which returns the invoice reversed using created using mir0 the select query is as below.
    SELECT lifnr xblnr bldat cputm  FROM rbkp     INTO TABLE i_reversal
               FOR ALL ENTRIES IN i_an_ven
               WHERE lifnr = i_an_ven-lifnr AND
                     bukrs = i_an_ven-bukrs AND
                     cpudt >= date_in AND
                     cputm >= time_in AND
                     stblg <> ' '.
    I now want to fetch reverse document created using FB60 which is stored in table BKPF
    Can any one let me know condition what i should apply to fetch the same.
    OR the outline would be helpful
    Thanks,

    Check the field BSTAT = 'B' in BKPF.

  • Error while creating billing document using VF04 transaction

    Hi All,
    User is trying to create billing document using VF04 with ference to delivery number. When pressing save in invoice creation system SAP gives invoice document number (No accouting document generated). but no documents are actually created. When user trying for second time log is showing this sales order is currently processed by the user(user is same who is trying to create invoice)
    Please let us know what is causing this issue since this issue is happening in production and we can not debug this.
    We checked for number range also but its not.
    Waiting for your inputs.
    Regards,
    Jyothi CH.

    When pressing save in invoice creation system
    SAP gives invoice document number (No accouting document generated).
    but no documents are actually created
    Check there is any clash with internal number range of billing type vs other billing types ?
    Try to create billing document using VF01,see any messages were poping while saving ?
    Check for abap dump in ST22 ?
    Edited by: Jeyakanthan A on Feb 9, 2011 9:52 PM

Maybe you are looking for

  • ITunes library on external HD no longer can be selected

    I moved from old macbook pro with Snow Leopard & iTunes 9 or 10 something to new(er) macbook pro with Lion and iTunes 10.7. I keep a different music library from my internal one on external HD. When I option-click on iTunes startup to choose the exte

  • Internet Connection thru USB /N95 8GB

    I have just got the N95 8GB and loaded the software etc. It will not connect to the internet, error msg says no modem detected. I had a similar problem with the previous N95 in the months leading up to my upgrade. After using it to connect to the net

  • Downpayment Business process

    Hi, Please explain steps involved in customer down payment from SD point of view. 1. Created milestone billing with down payment. 2. Created sales order with milestone billing. 3. Created down payment request with reference to sales order(doc type FA

  • Asset history sheet; additional information required

    Hi, I am looking for a solution to add (in the asset history sheet for each asset) the remaining useful life (years/periods). The remaining UL can not be found in the AN** tables, it is calculated in every report / asset explorer,... In the example b

  • MacBook Air stolen recently. Can I re-install my purchased standalone LR5 onto a new laptop?

    I purchased a standalone version of LR5 in February of this year.My  MacBook Air was stolen a few days ago (so sad), and I want to know - can re-install LR5 onto a new laptop (I have the serial number and my previous laptop was the first installation