Fonction SAP BAPI_ACC_ACTIVITY_ALLOC_POST - Accounting: Post Activity Allocation

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
DOC_HEADER BAPIDOCHDRP u 142 Document Header Data
IGNORE_WARNINGS BAPIIW-IGNWARN C 1 SPACE X Indicator: Ignore Warnings

Paramètre Reférence Type Long. Description
DOC_NO BAPIDOCHDRP-DOC_NO C 10 Document Number

Paramètre Reférence Long. Facultatif Description
CRITERIA BAPIACKECR 58 X
CUSTOMER_FIELDS BAPIEXTC 1000 X Customer Fields
DOC_ITEMS BAPIAAITM 787 Line Item Data
RETURN BAPIRET2 548 Error Message Table

Functionality
This method posts the entered activity allocation document.
The DOC_HEADER structure contains the document header data. The CO_AREAfield must contain the controlling area in which you want to post. Foran external number range, the DOC_NO field is intended for the documentnumber. The filling of the DOCDATE (document date) and POSTGDATE(posting date) fields is optional. With empty fields, the current dateis added. The OBJ_KEY field allows you to enter the number andorganization of a reference document (10 characters). The OBJ_TYPEfield is for the object type of the reference document for the sendingsystem.
You should only fill the LOGSYSTEM field if this document belongs to anon-SAP system. You can enter a document header text in the DOC_HDR_TXfield. If you know a suitable screen variant, you can store it in theVARIANT field. Filling the VERSION field is only advisable if you areposting on a business process, because if Activity-Based Costing isactive as a parallel accounting system, you must enter a delta version.Otherwise you can post only in version 0, which you can also set as thedefault.
The USERNAME field is a required field.
The document item data is transferred to the DOC_ITEMS table. Thisconsists of:
Field name Description Optional
----------------------------------------------------------------
SEND_CCTR Sending cost center
ACTTYPE Activity type
SENBUSPROC Sending business process
ACTVTY_QTY Activity quantity
ACTIVITYUN Activity unit of measure X
ACTIVITYUN_ISO Activity unit of measure in ISO code X
PRICE Overall aty price in transaction currency X
CURRENCY Currency X
CURRENCY_ISO Currency in ISO code X
POS_OUTQTY Posted output quantity X
POSTOUTUN Posted output unit of measure X
POSTOUTUN_ISO Posted output U of M in ISO-Code X
PERSON_NO Personnel number X
SEG_TEXT Segment text X
REC_CCTR Receiving cost center
REC_ORDER Receiving order
REC_WBS_EL Receiving work breakdown structure element
RECSALEORD Receiving sales order
RECITEM Item number in receiving sales order
RECCOSTOBJ Receiving cost object
RECBUSPROC Receiving business process
REC_NETWRK Receiving network
RECOPERATN Receiving network activity
RECRUNSCHD Receiving run schedule header
MATERIAL Receiving material
PROD_VERSN Production version of receiving material
PLANT Plant of receiving material
You must enter at least one sender- and receiver object. Alternatively,you can enter the quantity unit of measure or the currency in ISO codein the *_ISO fields.
The collected messages are contained in the RETURN structure. When theposting has been successfully completed, the document number is storedin the DOC_NO parameter.

Description
This field contains the document number of the posted document.

Description
This structure contains the header data of the document to be posted.

Description
You can use this parameter to control whether warnings that occurduring document checks are ignored.

Description
You use this table to transfer the characteristics of a receiverprofitability segment to the BAPI. The table must have the structureBAPIACKECR. The name of the characteristic must be entered in theFIELDNAME field, and the value must be entered in the CHARACTER field.To assign the characteristics to a document item, the ITEMNO_ACC fieldmust be filled as well. The value of this field must match the value ofthe field of the same name in the corresponding line of the DOC_ITEMStable.

Description
You can use this table to transfer to the BAPI (COBL structure) thecustomer fields (customer include CI_COBL) that were added to theaccount assignment block. In addition to the customer fields, areference to the document row used in the ITEMNO_ACC field must betransferred also. The table must, therefore, have the BAPICOBL_CIstructure.

Description
This table contains item data of the document to be posted, likeaccount assignment objects, amounts to be posted, units of measure andso on.

Description
INCLUDE BAPI_TABLE

Value range
Type ID Number Message
S BK 003 Document posted with number <(>&<)>

614127KBxxN: Rounding of quantities is disrupting
198747Post BAPIs for actual postings CO: no update
359893Error BK128 for actual activity allocation