Fonction SAP BAPI_ACC_ACT_POSTINGS_REVERSE - Accounting: Reverse CO Documents - Manual Actual Postings

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CO_TRANSACTION BAPICOTXN C 4 SPACE X Business Transaction in CO
DOC_HEADER BAPIDOCHDRR u 157 Document Header for Reversal Document
IGNORE_WARNINGS BAPIIW-IGNWARN C 1 SPACE X

Paramètre Reférence Long. Facultatif Description
DOC_NO BAPIDOCHDRR 157 X Document Header for Reversal Document/Poss. Several
RETURN BAPIRET2 548 Error Message Table

Functionality
This method reverses a document existing in the system, which wascreated by a manual actual posting in Controlling.
In the CO_AREA field, you must enter the controlling area in which youto post. A further required field is the USERNAME field. Here you enterthe user ID of the creating person.
If the document was posted without an external reference, you shouldenter the CO document to be reversed in the RVRS_NO field of theDOC_HEADER structure.
Otherwise, you must leave the RVRS_NO field empty, and enter the numberof the source document you want to reverse in the first 10 fields ofthe OBJ_KEY_R field (reversal: object key). The remaining fields areintended for the corresponding organizational unit. In line with theexternal number, you should enter the object type of the sending systemin the OBJ_TYPE field.
You should only fill the LOGSYSTEM field if the reference document doesnot originate from the system in which you are posting.
For an external number range you should store the number of the COreversal document in the DOC_NO field; you can use the DOCDATE field toenter the document date. In the DOC_HDR_TX field you can enter a textfor the document header. The OBJ_KEY field can be used for the numberand organization of the reference document.
Entering the posting date in the POSTGDATE field allows you to carryout 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 outthat several internal document numbers will exist for one externaldocument header.

Description
This structure contains the header data of the document that is to bereversed.

Description
You can use this parameter to determine whether warnings issued duringdocument checks can be ignored or not.

Description
This structure contains the header data of the posted reversaldocument.

Description
INCLUDE BAPI_TABLE

Value range
Type ID Number Message
S BK 003 Document is posted under number &

737917BAPIs CO actual postings: new function as of Release 4.70