Fonction SAP BAPI_ACC_STAT_KEY_FIG_CHECK - Accounting: Check Statistical Key Figures

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 Ignore Warnings

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

Functionality
This method checks a document with statistical key figures
The DOC_HEADER structure contains the document header data. The CO_AREAfield must contain the controlling area in which you are to post. Foran external number range, the DOC_NO field is specified for thedocument number.
The fields DOCDATE (document date) and POSTGDATE (posting date) areoptional. For empty fields, the system enters the current date. TheOBJ_KEY enables you to specify the number and organization of areference document (each with 10 characters ). The OBJ_TYPE type fieldis defined for the object type of the reference document of the sendingsystem.
You should only fill the LOGSYSTEM field if this document belongs to anexternal system. You can enter a document header text in the DOC_HDR_TXfield. If a suitable screen variant exists, you can archive it in theVARIANT field. It only makes sense to fill the VERSION field if you areposting to a business process. This is because if Activity-BasedCosting is active as a parallel accounting system, you must specify adelta version. Otherwise you may only post in version 0, which is alsoset as the default.
The USERNAME field is a required field.
The document item data is transferred to the DOC_ITEMS table. Thisconsists of:
Field name Description Optional
----------------------------------------------------------------
STATKEYFIG Statistical key figure
STAT_QTY Statistical quantity
PERS_NO Personnel number X
SEG_TEXT Segment text X
REC_CCTR Receiver cost center
ACTVTYTYPE Activity type
RECEIV_ORD Receiver order
REC_WBS_EL Work breakdown structure element (WBS element)
RECSALEORD Receiver sales order
RECITEM Item number in the receiver sales order
RECCOSTOBJ Receiver cost object
RECBUSPROC Receiver business process
REC_NETWRK Receiver network
RECOPERATN Receiver network activity
RRE_COMP_CODE Company code of the receiving real estate object
RRE_BUS_ENT Receiver business entity - Real Estate
RRE_PROPERTY Receiver property - Real Estate
RRE_BUILDING Receiver building - Real Estate
RRE_RENT_UNIT Receiver rental unit - Real Estate
RRE_LEAS Receiver lease - Real Estate
RRE_MGMT_CON Receiver management contract
RRE_INC_EXP Receiver service charge key - Real Estate
RRE_SETT_UNIT Receiver settlement unit - Real Estate
RRE_REF_DATE Receiver reference date for settlement - Real Estate
RRE_CON_NO Receiver contract - Real Estate
REC_FUND Receiver fund
REC_FUNCTION Receiver functional area
REC_GRANT Receiver grant
The SRE_* fields are obsolete for sender real estate objects and arenot used.
The system displays the collected messages in the MESSAGES structure.If a posting is successful, the system archives the document number inthe DOC_NO parameter.

Description
This structure contains the header data for 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 you added to the account assignment block (COBLstructure) to the BAPI. In addition to the customer fields, you need totransfer a reference to the document row used in the ITEMNO_ACC field.The table must, therefore, have the BAPICOBL_CI structure.

Description
This table contains the item data for the document to be posted, suchas account assignment objects, or key figures that are to be posted.

Description
INCLUDE BAPI_TABLE

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