Fonction SAP BAPI_CO_DOC_GET_ACT_POSTINGS - Read CO Documents: Manual Actual Postings

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
DOC_NO BAPIDOCHDRG u 49 Document Number

Paramètre Reférence Type Long. Description
DOC_HEADER BAPIDOCHDR u 180 Document Header
RETURN BAPIRET2 u 548 Error Message

Paramètre Reférence Long. Facultatif Description
LINE_ITEM BAPILICO 344 CO Posting Rows
LINE_ITEM_ACTIVITY BAPILIACO 117 Posting Rows: CO Activity Types
LINE_ITEM_STAT_KEY_FIG BAPILISCO 173 Posting Rows: CO Statistical Key Figures

Functionality
This method reads the document for a manual actual posting inControlling.
You should fill the fields DOC_NO (document number and CO_AREA(controlling area) of structure DOC_NO (numbers of the controlling areadocument).
Alternatively, you can specify the external document number togetherwith the logical system. You should only specify the logical system ifit differs from the system where the read is taking place. The numberconsists of the fields OBJ_KEY (reference key = 10 character documentnumber + 10 character organizational unit) and OBJ_TYPE (object type ofthe sender system).
The document items are displayed in the specific tables of the businesstransaction LINE_ITEM and/or LINE_ITEM_ACTIVTIY orLINE_ITEM_STAT_KEY_FIG. The document header is displayed in theDOC_HEADER structure.
If required, the system displays a message in the RETURN structure.

Description
This structure contains the header data of the document read.

Description
INCLUDE BAPI_TABLE

Value range
Type: E
ID: BK
Number: 192
Message: External number is not unique, enter internal number instead.
Type: E
ID: BK
Number: 027
Message: Document with number & does not exist.

Description
This field contains the document number of the document to be read.

Description
If the document is for activity allocation, this table contains theitem data for the read document, such as accoung assignment objects,posted quantities, or units of measure.

Description
If the document is for activity allocation, this table contains theacitivity-related item data of the read document.

Description
If the posting is for statistical key figures, this table contains theitem data of the read document, such as statistical key figures orposted quantities.