on 06-28-2007 9:34 AM
Has anyone here has used COPA_DOCUMENT_REVERSE for reversing KE21N entries? A sample code would be very helpful.
Thanks.
Use BAPI_ACC_ACT_POSTINGS_REVERSE
Regards
_________________
FU BAPI_ACC_ACT_POSTINGS_REVERSE
____________________________________________________
Désign.
Accounting: Reverse CO Documents - Manual Actual Postings
Functionality
This method reverses a document existing in the system, which was
created by a manual actual posting in Controlling.
In the CO_AREA field, you must enter the controlling area in which you
to post. A further required field is the USERNAME field. Here you enter
the user ID of the creating person.
If the document was posted without an external reference, you should
enter the CO document to be reversed in the RVRS_NO field of the
DOC_HEADER structure.
Otherwise, you must leave the RVRS_NO field empty, and enter the number
of the source document you want to reverse in the first 10 fields of the
OBJ_KEY_R field (reversal: object key). The remaining fields are
intended for the corresponding organizational unit. In line with the
external number, you should enter the object type of the sending system
in the OBJ_TYPE field.
You should only fill the LOGSYSTEM field if the reference document does
not originate from the system in which you are posting.
For an external number range you should store the number of the CO
reversal document in the DOC_NO field; you can use the DOCDATE field to
enter the document date. In the DOC_HDR_TX field you can enter a text
for the document header. The OBJ_KEY field can be used for the number
and organization of the reference document.
Entering the posting date in the POSTGDATE field allows you to carry out
a non period-related reversal.
The collected messages are contained in the RETURN table.
The DOC_NO table contains the posted reversal document headers.
Generally, only one entry should exist. However, it cannot be ruled out
that several internal document numbers will exist for one external
document header.
Paramètres
DOC_HEADER
IGNORE_WARNINGS
DOC_NO
RETURN
Exceptions
Groupe de fonctions
K40C
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.