SAP NOTES 88920

download SAP NOTES 88920

If you can't read please download the document

description

SAP NOTES 88920

Transcript of SAP NOTES 88920

SAP Note No. 88920 19.12.2006 Page 1 ________________________________________________________________________ Number 88920 Version 5 from 22.01.2002 Status Released Internally Set on 22.01.2002 Language EN Master language DE Short text Reset payment run and reverse payment documents Responsible Dietmar Engelmann Component FI-AP-AP-B Payment Progam / Payment transfer (DE, J ________________________________________________________________________ Long text Symptom Clearing documents are generated through the faulty operation of the payment program. Now you want to reset the cleared items (Transaction FBRA) and reverse the related documents (Transaction FB08). Additional key words Payment program, SAPF110S, SAPF110V, F110 FBRA, FB08, reversal, clearing Cause and prerequisites The cause is generally the faulty operation of the payment program, as the proposal is not checked. Solution A payment run can be reset using the attached repair program. The program is only used as a template and need be adjusted to the special customer situation if required. The report determines the generated documents from table REGUH, the cleared items are each reset and the clearing document reversed. Caution: the payment run which generated these documents must in all cases be subsequently deleted to prevent the creation of payment media. Source code corrections ________________________________________________________________________ Valid releases Software Component Release from to SAP_APPL SAP Application 46C - 46C 46A - 46B X 45A - 45B X 40A - 40B X 31G - 31I X ________________________________________________________________________ Page 2 Assigned Correction Instructions ________________________________________________________________________ Page 3 *$*$----------------------------------------------------------------$*$* *$ Correction Inst. 0120024545 0000030933 $* *$--------------------------------------------------------------------$* *$ Valid for : $* *$ Software Component SAP_APPL SAP Application $* *$ Release 31G To SAPKH31G13 $* *$ Release 31H All Support Package Levels $* *$ Release 31I All Support Package Levels $* *$ Release 40A To SAPKH40A25 $* *$ Release 40B All Support Package Levels $* *$ Release 45A All Support Package Levels $* *$ Release 45B All Support Package Levels $* *$ Release 46A To SAPKH46A34 $* *$ Release 46B All Support Package Levels $* *$ Release 46C All Support Package Levels $* *$--------------------------------------------------------------------$* *$ Changes/Objects Not Contained in Standard SAP System $* *$*$----------------------------------------------------------------$*$* *&--------------------------------------------------------------------* *& Object REPS RFCORR93 *& Object Header PROG RFCORR93 *&--------------------------------------------------------------------* *& report rfcorr93 *&--------------------------------------------------------------------* ... report rfcorr93 message-id f0. tables: regud, reguh, reguv, t001, bkpf. parameters: laufd like reguh-laufd, laufi like reguh-laufi, test as checkbox default 'X'. * use this selection option in case of problems: excude the documents * that cannot be handled by this report and reverse them manually select-options: document for reguh-vblnr no-display. data: xreguh like reguh occurs 0 with header line. write: / 'Payment run', laufd dd/mm/yyyy, laufi. select * from reguh into table xreguh where laufd = laufd and laufi = laufi and xvorl = space and vblnr in document. if sy-subrc ne 0. write: 'not found'. stop. elseif test eq 'X'. write: ' T E S T '. endif. detail. loop at xreguh. perform ruecknahme_zahlung using 'X'. endloop. Page 4 check test eq space. loop at xreguh. perform ruecknahme_zahlung using space. endloop. update reguv set xvore = 'A' xecht = 'A' where laufd = laufd and laufi = laufi. *---------------------------------------------------------------------* * FORM RUECKNAHME_ZAHLUNG * *---------------------------------------------------------------------* * Reversal of a payment document of a payment run * *---------------------------------------------------------------------* * XSIMU = 'X' for test, SPACE for productive run * *---------------------------------------------------------------------* form ruecknahme_zahlung using xsimu. reguh = xreguh. on change of reguh-zbukr. select single * from t001 where bukrs eq reguh-zbukr. endon. call function 'DATE_TO_PERIOD_CONVERT' exporting i_date = reguh-zaldt i_periv = t001-periv importing e_gjahr = regud-gjahr. call function 'CALL_FBRA' exporting i_bukrs = reguh-zbukr i_augbl = reguh-vblnr i_gjahr = regud-gjahr i_xsimu = xsimu exceptions others = 8. if sy-subrc eq 0. select single * from bkpf where bukrs = reguh-zbukr and belnr = reguh-vblnr and gjahr = regud-gjahr. if bkpf-bstat is initial. call function 'CALL_FB08' exporting i_bukrs = reguh-zbukr i_belnr = reguh-vblnr i_gjahr = regud-gjahr i_stgrd = '01' "insert reversal reason as of release 4.0A i_xsimu = xsimu exceptions others = 8. Page 5 else. if bkpf-bstat = 'A'. bkpf-bstat = 'B'. if xsimu is initial. update bkpf. endif. endif. endif. endif. if sy-subrc ne 0. message id sy-msgid type 'A' number sy-msgno with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. elseif test eq 'X'. write: / 'Document', reguh-zbukr, reguh-vblnr, regud-gjahr. elseif xsimu eq space. write: / 'Document', reguh-zbukr, reguh-vblnr, regud-gjahr, 'reversed with', sy-msgv2(4), sy-msgv1(10). endif. endform. ... *&--------------------------------------------------------------------*