Fonction SAP BAPI_ACC_REVENUES_POST - Accounting: Post Revenues

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 Type Long. Description
DOC_NO BAPIDOCHDRU12P-DOC_NO C 10 Document Number

Paramètre Reférence Long. Facultatif Description
CUSTOMER_FIELDS BAPIEXTC 1000 X Customer Fields
DOC_ITEMS BAPIRRITM 576 Line Item Data
REC_CRITERIA BAPIACKECR2 58 X Posting in Accounting: CO-PA Acct Assignment Characteristics
RETURN BAPIRET2 548 Error Message Table
SEND_CRITERIA BAPIACKECR 58 X Posting in Accounting: CO-PA Acct Assignment Characteristics


Memory: COOM

Functionality
This method posts a document with revenues.
The structure DOC_HEADER contains the document header data. The fieldCO_AREA contains the controlling area being posted to. For externalnumber ranges, the field DOC_NO contains the document number. The fieldsDOCDATE (document date) and POSTGDATE (posting date) are optional. Ifthese fields are empty, the current date is used. The field OBJ_KEYcontains the number and organization of a reference document (10characters each). The field OBJ_TYPE contains the object type of thesender system reference document. The field LOGSYSTEM should only befilled if the document is from an external system. The field DOC_HDR_TXcan contain a document header text. The field VARIANT can contain avalid screen variant if one is known. The field VERSION is not usefulhere. It can only be posted in version 0 (the default).
The transaction currency for the entire document must be specified. Youcan specify the currency in SAP format in the TRANS_CURR field or in ISOcode in the TRANSCUR_ISO field.
USERNAME is a required field.
The DOC_ITEMS table receives the document item data. The data consistsof:
Field Name Description Optional
----------------------------------------------------------------
SEND_CCTR Sender cost center
SENDER_ORD Sender order
SEN_WBS_EL Sender WBS element
SENSALEORD Sender sales order
SENITEM Item number in sender sales order
COST_ELEM Cost element
VALUE_TCUR Amount
QUANTITY Total quantity entered X
POSTQUUN Posted unit of measure 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 WBS element
RECSALEORD Receiver sales order
RECITEM Item number in receiver sales order
You must enter at least one sender and one receiver object. Fields with*_ISO can also hold quantity units or currencies in ISO code.
The structure MESSAGES returns all messages. The parameter DOC_NOcontains the document number for the posting.

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

Description
This structure contains 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 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 item data of the document to be posted, likeaccount assignment objects, revenues to be posted, and so on.

Description
You use this table to transfer the characteristics of a profitabilitysegment to the BAPI that is used as a new revenue receiver. The tablemust have the structure BAPIACKECR. The name of the characteristic mustbe entered in the FIELDNAME field, and the value must be entered in theCHARACTER field. To assign the characteristics to a document item, theITEMNO_ACC field must be filled as well. The value of this field mustmatch the value of the field of the same name in the corresponding lineof the DOC_ITEMS table.

Description
INCLUDE BAPI_TABLE

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

Description
You use this table to transfer the characteristics of a profitabilitysegment to the BAPI that is used as the old receiver (or sender ofrevenues). The table must have the structure BAPIACKECR. The name of thecharacteristic must be entered in the FIELDNAME field, and the valuemust be entered in the CHARACTER field. To assign the characteristics toa document item, the ITEMNO_ACC field must be filled as well. The valueof this field must match the value of the field of the same name in thecorresponding line of the DOC_ITEMS table.

198747Post BAPIs for actual postings CO: no update
379867KBx1N: Wrong values in object currency f RE object