cancel
Showing results for 
Search instead for 
Did you mean: 

KE21N Reverse Entry

Former Member
0 Kudos

Has anyone here has used COPA_DOCUMENT_REVERSE for reversing KE21N entries? A sample code would be very helpful.

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

raymond_giuseppi
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Do you have sample code for it. The entries I want to reverse is located in table CE11000.

Former Member
0 Kudos

Check with program RKECADL1 -> this program use COPA_DOCUMENT_REVERSE

Thanks

Seshu