Professional Documents
Culture Documents
Sap Notes 88920
Sap Notes 88920
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.