Fonction SAP BAPI_ACC_MANUAL_ALLOC_CHECK - Accounting: Check Manual Cost Allocation

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

Paramètre Reférence Long. Facultatif Description
CUSTOMER_FIELDS BAPIEXTC 1000 X Customer Fields
DOC_ITEMS BAPIMAITM 652 Line Item Data
RETURN BAPIRET2 548 Error Message Table

Functionality
This method checks a document with manually allocated costs.
The structure DOC_HEADER contains the document header data.
The field CO_AREA must contain the controlling area to which postingsare to be made.
In the case of an external number range, field DOC_NO is used for thedocument number.
Fields DOCDATE (document date) and POSTGDATE (posting date) do not haveto be filled. If you leave them empty, the system enters the currentdate.
Field OBJ_KEY enables you to specify the number and organization of areference document (10 figures in each case).
The field OBJ_TYPE is for the object type of the reference document inthe sending system. You need only make an entry in the LOGSYSTEM field,if this document belongs to a foreign system.
You can enter a document header text in the DOC_HDR_TX field. If youhave a suitable entry variant, you can store this in the VARIANT field.There is no need to make an entry in the VERSION field (you may postonly in version 0, which is set as the default value).
You can either specify the transaction currency for the entire documentor for each document row. You can specify the currency in SAP format inthe TRANS_CURR field, or in ISO code in the TRANSCUR_ISO field.
The field USERNAME is a required entry and should be that of the personentering the data.
The line item data in table DOC_ITEMS is tranferred to the functionmodule. This data consists of:
Field name,,,,Short description,,,,,,,,,,Optional
----------------------------------------------------------------
SEND_CCTR,,Sender cost center
SENDER_ORD,,Sender order
SEN_WBS_EL,,Sender work breakdown structure element
SEN_NETWRK ,,Sender network
SENOPERATN,,Sender network activity
SENSALEORD,,Sender sales order
SENITEM,,,,Item number in sender customer order
SENCOSTOBJ,,Sender cost object
COST_ELEM,,Cost element
VALUE_TCUR,,Currency amount to BAPI interface
QUANTITY,,,,Total quantity entered,,,,,,,,X
POSTQUUN,,Unit of measure entered,,,,,,X
POSTQUUN_ISO,,Posted unit of measure in ISO code,,,,X
PERS_NO,,,,Personnel number,,,,,,,,,,X
SEG_TEXT,,,,Segment text,,,,,,,,,,,,X
REC_CCTR,,,,Receiver cost center
RECEIV_ORD,,Receiver order
REC_WBS_EL,,Receiver work breadown structure element
REC_NETWRK ,,Receiver network
RECOPERATN,,Receiver network transaction
RECSALEORD,,Receiver sales order
RECITEM,,,,Item number in receiver sales order
RECCOSTOBJ,,Receiver cost object
You must specify a sender or receiver object. In the *_ISO fields, youcan enter either the unit of measure or the currency in ISO code.
The RETURN structure contains the collected messages and these arereturned to the calling program. Once posting has taken place, thedocument number is stored in the DOC_NO parameter.

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

Description
This parameter enables you to control whether warnings that occur in thedocument checks are ignored.

Description
You can use this table to transfer the customer fields (customerinclude CI_COBL) that were added to the account assignment block (COBLstructure). In addition to the customer fields, you need to transfer areference to the document row used in the ITEMNO_ACC field. The tablemust also have the BAPICOBL_CI structure.

Description
This table contains the item data of the document to be posted, forexample, account assignment objects or costs to be posted etc.

Description
INCLUDE BAPI_TABLE