Event for reversing the write off document

Hi All,
Can anyone suggest me the event that I should enhance for our requirement which is when a incoming payment comes in system should first check whether there is any write off document and if there is then write off document should be reversed and the incoming payment should be assigned to that particular item.
thanks in advance.

Thanks for Reply, event 0020 gets triggered but when i use BAPI_CTRACDOCUMENT_REVERSE it throws a short dump or gets into an endless loop.
  MESSAGE_TYPE_X   
Diagnosis                                                         
    The message previously issued was sent at a time that is not  
    permitted. Changes to the database that belong together logical
    must not be interrupted through dialogs because otherwise     
    inconsistent data may be created. In this case, you attempted t
    output message >3 137.                                        
    The text of the message was                                   
    No interest information exists for document 81000050960       
System Response                                                   
    The system stops the posting.                                 
Procedure                                                         
    Contact your system administrator.                            
Procedure for System Administration                               
    If the program error occurred during a:                       
    o   Standard SAP program, create an OSS message.              
    o   Customer-developed program, correct the program.          
Please respond if any ideas.
Thanks,
Immanuel

Similar Messages

  • Automatic Write-off Document in Dispute Case

    Hi,
    I was wondering once the dispute case is automatically written off, should the financial document should be updated in the dispute case, because technically the write off document is the resolved object in the dispute case.
    When i performed automatic write off, the accounting document is not updated anywhere in linked objects in any sub folder, however the dispute case was confirmed.
    Should it update or is there something needs to be done to update in the dispute case?
    Thanks.
    Jen

    Hi Mark,
    Thanks for your reply. In auto status changing, I dont have the option other than defining status for automatic reopen, written off and close. I did check the status, but its not relevant.
    Here is what I am looking for, the automatic written off accounting document should be available or updated under resolved objects under linked objects.
    Thanks in advance
    Jen

  • User exit for Reversing the Document

    Hi,
    Is there any User exit  for reversing the document for FBRA?
    Thanks

    Hi,
    Execute this report you will get the list of user exist for particular transaction,The inpur parameter for this report is transaction code , the output you will be getting is the list of user exists available for this trransaction.
    If find my answer suitable pelase reward me suitable points.
    REPORT Z_USEREXIT .
    TABLES : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
    TABLES : tstct.
    DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
    DATA : field1(30).
    DATA : v_devclass LIKE tadir-devclass.
    PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
    SELECT SINGLE * FROM tstc WHERE tcode EQ p_tcode.
    IF sy-subrc EQ 0.
      SELECT SINGLE * FROM tadir WHERE pgmid = 'R3TR'
                       AND object = 'PROG'
                       AND obj_name = tstc-pgmna.
      MOVE : tadir-devclass TO v_devclass.
      IF sy-subrc NE 0.
        SELECT SINGLE * FROM trdir WHERE name = tstc-pgmna.
        IF trdir-subc EQ 'F'.
          SELECT SINGLE * FROM tfdir WHERE pname = tstc-pgmna.
          SELECT SINGLE * FROM enlfdir WHERE funcname =
          tfdir-funcname.
          SELECT SINGLE * FROM tadir WHERE pgmid = 'R3TR'
                             AND object = 'FUGR'
                             AND obj_name EQ enlfdir-area.
          MOVE : tadir-devclass TO v_devclass.
        ENDIF.
      ENDIF.
      SELECT * FROM tadir INTO TABLE jtab
                    WHERE pgmid = 'R3TR'
                      AND object = 'SMOD'
                      AND devclass = v_devclass.
      SELECT SINGLE * FROM tstct WHERE sprsl EQ sy-langu AND
                                       tcode EQ p_tcode.
      FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
      WRITE:/(19) 'Transaction Code - ',
           20(20) p_tcode,
           45(50) tstct-ttext.
      SKIP.
      IF NOT jtab[] IS INITIAL.
        WRITE:/(95) sy-uline.
        FORMAT COLOR COL_HEADING INTENSIFIED ON.
        WRITE:/1 sy-vline,
               2 'Exit Name',
              21 sy-vline ,
              22 'Description',
              95 sy-vline.
        WRITE:/(95) sy-uline.
        LOOP AT jtab.
          SELECT SINGLE * FROM modsapt
                 WHERE sprsl = sy-langu AND
                        name = jtab-obj_name.
          FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
          WRITE:/1 sy-vline,
                 2 jtab-obj_name HOTSPOT ON,
                21 sy-vline ,
                22 modsapt-modtext,
                95 sy-vline.
        ENDLOOP.
        WRITE:/(95) sy-uline.
        DESCRIBE TABLE jtab.
        SKIP.
        FORMAT COLOR COL_TOTAL INTENSIFIED ON.
        WRITE:/ 'No of Exits:' , sy-tfill.
      ELSE.
        FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
        WRITE:/(95) 'No User Exit exists'.
      ENDIF.
    ELSE.
      FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
      WRITE:/(95) 'Transaction Code Does Not Exist'.
    ENDIF.
    AT LINE-SELECTION.
      GET CURSOR FIELD field1.
      CHECK field1(4) EQ 'JTAB'.
      SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
      CALL TRANSACTION 'SMOD' AND SKIP FIRST   SCREEN.
    Regards,
    Irfan Hussain

  • Statistical Document for Write off Document.

    Hi All,
    I need your help in following
    We have following requirement....
    When a document is written off using either FP04 or FP04M, a normal write off document is get posted.  But in addition to that
    we need a statistical document to be get posted in Contract Account for this write off.
    Thanks in advance.
    Regards,
    Pradeep

    Pradeep:
    Standard functionality - receivable adjustment - handles this scenario better than write off with statistical.  Test transactions FPZW (single)  and FPRW (mass).  Using writeoff with statistical creates much more work, documents and overhead processing.
    regards,
    bill.

  • In Preview the option for mailing the selected pdf document in missing.  How do I get it back?

    In Preview the option for mailing the selected pdf document in missing.  How do I get it back?

    From the Mail menu bar, select
    Mail ▹ Preferences ▹ General ▹ Default email reader: Mail

  • How to reverse the closing period document.

    Hi
    The entry can be reverse Only in current period
    You are trying the reverse the entrie in close period which is not possible .. how to reverse the closing period document.
    Thank you

    Use t code FB02. Enter required parameters and press enter. From the menu slect Extras - Document header. This will take you to next screen. In this screen from the menu select GoTo Document Header. Change the reversal date and save.
    Then reverse the document using normal process. The document will get reversed on the new date entered.
    Hope this helps. If useful, please reward points.
    Regards
    Rakesh Pawaskar

  • Any program for Deletion the normal Parked documents in Standard SAP

    Hi All,
    is there any program for delete the normal parked documents in Standard SAP ??  we have nearly 2000 documnets so we can't do manually one by one at FBV2/FBV6.
    please help.
    Raj

    Hi,
    You can create a CATT/LSMW project, by recording the relevant transactions and then make a mass change by executing it.
    Regards,
    Eli

  • Steps for reversing the reversal document

    Hello Everyone,
    Automatic payment has been made however bank had confirmed that it was
    unsuccessful due to technical reason hence payment document KZ was
    reversed.Next day bank confirmed that payment was successful.
    Payment document KZ needs to be restored.The reversal document ST has to
    be reversed and cancelled.
    MIGO document (RE) 5000000339 for amount 6.989,97 UEE currency
    F110 document (KZ) 5300000047 for amount 289.473,53 RUB currency
    FB08 document (ST) 3000008122 for amount 289.473,53 RUB currency.
    Can you please provide me the Tcode to proceed further.
    Thanks in advance.
    Regards,
    Lavanya

    Hi,
    Hope you have reversed the accounting document only and not deleted the payment run / Proposal generated via T-code - F110.
    1. Execute the T-code FBL1N with all items selection i.e. Open + Cleared items (with Normal / Sp. GL / Notes items selection)
    2. Take a subtotal with a column "Clearing Document"
    3. After reversal, your payment document (Type - KZ)  No. 5300000047 & Reversal Document (Type - ST) No. 3000008122, are getting shown in Cleared items.
    4. Your Doc.No. 3000008122 is the clearing document for the Payment Document 5300000047 & Reversal Doc. No. 3000008122 itself.
    5. If yes, kindly reset (T-code - FBRA) the document No.  3000008122 (Be sure with Resetting, since it will transfer all the connected cleared documents to Open item status).
    6. Your Payment Document No. 5300000047 will get shown in Open Items now.
    7. Reversed the reversal Doc. No. 3000008122 (T-code - FB08) which is in Open items after resetting. (Which will get shown in cleared items after reversal).
    8. Clear the MIRO (Accounting doc shown in FBL1N) with the Payment Doc. No. 5300000047 via T-code - F-44.
    9. Not understood the reference of MIGO document mentioned by you which has no connection with the payment to Vendor.
    Regards,
    Shridhar
    Edited by: Shridhar Sawant on Dec 29, 2011 3:22 PM

  • Updation of contract data for all the follow up documents

    In crm I have created a service contract. From this I have created a sales-service order as follow up document. Then from this service order one suspension order.
    When I am opening the sales-service order in item details tab and then in contract tab we get the contract details. When i press the follow up document button and choose the suspension order the suspension order is opening and this contract details should come here also  but it is not coming. Please suggest whether this can be done by configuration or by badi. If by badi then suggest its name.

    Please not that the contract determination works fine when creating a new complaint ... but when the I am trying to create a complaint from service ticket the item level contract determination is not working fine ...
    We have configured that the contract should be determined at the item level only option `F`.
    I checked in one of the sap document that this cant be achieved by standard .
    http://help.sap.com/saphelp_crm70/helpdata/en/46/5cd7335bbd516fe10000000a114a6b/frameset.htmhttp://help.sap.com/saphelp_crm70/helpdata/en/46/5cd7335bbd516fe10000000a114a6b/frameset.htm
    Is there a way we can put this code in the BADI eg; CRM_SERVICE_CONTRACT ?? Please note that there is already an implementation of CRM_SERVICE_CONTRACT which is working fine for new service document creation .

  • Question : Shortcut for change the writer language

    Hi im looking for a shortcut : In windows (XP,Vista,7 Or ...) we can change the write language with a simple shortcut (Alt+Shift) i want to know if Mac OS Snowleopard has something like this?
    Any suggest?
    Regards

    If you have the languages enabled in Language & Text / Language, and the appropriate keyboards enabled in Language & Text / Input sources, then ⌘-space and ⌥-⌘-space are indeed the shortcuts to switch between inputs.

  • BAPI or FUNCTION for reverse a Cash Journal document

    Hi,
    Somebody now a bapi or function to reverse a Cash Journal document?
    I need to use this in a program.
    Thanks,
    Nohemi.

    Hi,
    Can u help on this issue.
    regards,
       zafar

  • BAPI or FUNTION for reverse a Cash Journal document ?

    Hi,
    Somebody now a bapi or funtion to reverse a Cash Journal document?
    I need to use this in a program.
    Thanks,
    Nohemi.

    Hi,
    Can u help on this issue.
    regards,
       zafar

  • How to use the table maintenance events for validating the input entries..?

    Hi,
    I have created a Z table with 6 fields in which all are KEY fields. All are of CHAR type. I have created the Table Maintenance Generator for the same. While maintaining the entries in the table, even though I maintain a blank entry for a field it is saving the entry. But, I don't want that way. All the fields are mandatory in my table. One should enter all the fields. Otherwise it should not allow to save the entry. So, I think it can be done using the Table Maintenance Events. can someone tell me how to use the Table Maintenance Events. and which event to use for my reuqirement and what is the logic to be written.
    Or Is there any other way to solve my problem.
    Please share your inputs. Thanks in advance.
    Best regards,
    paddu.

    In the table maintenance generator, Environment --> Modifications --> Events then a screen will be appear here,we need to create the Events.In the EVENTS screen, press new Entries, there give 01(Before Saving the Data in the Database) and give a name(This will become a PERFORM), then click the Editor pushbutton, this will be there at the right side of the entry, then a popup will be appear, you can create an include program, there inside of the include program write ur code.
    Here is documentation for Event 01(Before Saving the Data in the Database )
    Event 01: Before Saving the Data in the Database
    Use
    This event occurs before new, changed or deleted entries are written to the database. Other activities can be performed, for example:
    hidden entry processing
    fill hidden fields
    flag data to be written to hidden tables after the database change.
    To have the changes saved by the central maintenance dialog routines, SY-SUBRC must be set to 0 at the end of the routine.
    Realization
    This event has no standard routine. The following global data is available for the realization of the user routine:
    internal table TOTAL
    field symbols
    field symbols <ACTION> and <ACTION_TEXT>
    <STATUS>-UPD_FLAG
    If internal table data are to be changed before saving, t he changes should be made in both the internal table TOTAL and in the internal table EXTRACT.
    FORM abc.
    DATA: F_INDEX LIKE SY-TABIX. "Index to note the lines found
    LOOP AT TOTAL.
    IF <ACTION> = desired constant.
    READ TABLE EXTRACT WITH KEY <vim_xtotal_key>.
    IF SY-SUBRC EQ 0.
    F_INDEX = SY-TABIX.
    ELSE.
    CLEAR F_INDX.
    ENDIF.
    (make desired changes to the line TOTAL)
    MODIFY TOTAL.
    CHECK F_INDX GT 0.
    EXTRACT = TOTAL.
    MODIFY EXTRACT INDEX F_INDX.
    ENDIF.
    ENDLOOP.
    SY-SUBRC = 0.
    ENDFORM.
    Regards,
    Joy.

  • Error while reversing the asset accounting document through t code AB08

    Hello All,
    i have one query where the user has scrapped the assets through T code ABAVN in the month Dec 2009 with doc date of Nov 30th 2009. Now he realised that the posting was wrong and he wants to reverse it in 1st of Jan 2010 with the t code AB08. when we click on the reverse button in t code AB08, system is by defaultly taking the fiscal year, posting date and period, only we need to give the reason code. here user is trying to give the reversal date manually and making the posting. Now system is giving an error "Reversal in different fiscal year is not possible" with the message AA487.
    we are using SAP ECC 5.0 and i got SAP 1393737 for this and it is mention that there is a program error and needs to implement the program corrections.
    Please can any one suggest me, is that correct approach or should i need to follow the another work around to resolve this issue.
    Thanks in advance.
    Regards,
    Venkat

    Reversal in different fiscal year is not possible in the Standard        
    system since it will affect your balance sheet and other accounting      
    legal report.                                                                               
    It is not possible in FI-AA to reverse       
    a document in this way,  "because of the calculation of depreciation"                                                                               
    The reasons are:                                                                               
    1. The reconciliation of FI and FI-AA must be ensured, and therefore     
       Posting and Asset Value Date must be in the same fiscal year.                                                                               
    2. Depreciation of aquisitions posted in the previous year, are          
      not automatically corrected, when you post a reversal.                                                                               
    One way is to open the previous period(previous fiscal year) and post    
    the reversal to the same fiscal year. PLEASE NOTE THIS IS ONLY IF YOU    
    HAVE NOT EXECUTED YEAR END CLOSING TRANSACTIONS.     
    Blaz

  • FDM - scripting variable for reversing the account

    Is there somehow a possibility to tell if the account is intended to be reversed or not (e.g. change the type from revenue to expense). I'm looking for a specific variable that you can use in scripting. I looked through the API guide, but didn't find this information. I rather not look at the tables, but I will if I have to.
    I'm using the pull adapter G-3-J in FDM 11.1.1.1.0 and file I have data for multiple periods in the source. I'm storing some of the amounts into the user defined dimensions and I need to be able the change the sign on these if the account type is changed (e.g. from revenue to expense).

    Yes and I would like to reuse the information if the box is ticked or not in order to the change the sign for user defined dimensions 9 - 19, as explained in the first message.
    Is it somehow possible using predefined functions / scripts or do you have to make a custom script?

Maybe you are looking for

  • How to display a message after button press ?

    Hi, I created a jspx page with a button. When that button is pressed, a lot of stuff is going to happen in my backing bean. This can take up to 30 seconds. (soap call etc ... ) Meanwhile, the pressed button stays greyed out. When the action is finish

  • Advanced editing tool not working in Acrobat Pro 9.0

    I created a fillable form in Live Cycle ES 8.2 and the recipient wants to add a hyperlink to a website in one of the text field areas of the form but it won't work. I tried to do it for him in Adobe Acrobat Pro 9.0 but when I go to the Advanced Editi

  • Illustrator CS6 Tryout crashes on launch, Windows 7

    I can see that there are already multiple threads on this issue, but I've tried out all the options/solutions suggested and hence, I'm posting here for help.  I installed Illustrator CS6 Tryout and that crashes after about 3-5 seconds.  I see a popup

  • Lost "Open Recent" files in Menu

    Hi, I have lost the "open recent" tab in my Windows ID CS4 File Menu tab. Nor is it available to add in the Edit/Menu tab either. It was there when I installed ID... but it has disappeared....  This has happened in my Photoshop as well.... Any clue a

  • About JTextArea and JScrollPane question

    I make a swing program to run a test,a JTextArea can display the test content ,and the content increased continuously,but the vertical scroll bar is always on the top .I want the vertical scroll bar at the bottom at all time so that we can read the n