Ansicht
Dokumentation
BAPI_ACC_PRIMARY_COSTS_POST - Accounting: Post Primary Costs
ABAP Short Reference Fill RESBD Structure from EBP Component StructureThis documentation is copyright by SAP AG.
Functionality
This method posts a document with primary costs.
The structure DOC_HEADER contains the document header data. The CO_AREA field must contain the controlling area in which you are to post. For an external number range, the DOC_NO field is specified for the document number. The fields DOCDATE (document date) and POSTGDATE (posting date) are optional. For empty fields, the system enters the current date. The OBJ_KEY field enables you to specify the number and organization of a reference document (each with 10 characters). The OBJ_TYPE type field is defined for the object type of the sending system. The LOGSYSTEM field is only to be filled if the document is from an external system. The DOC_HDR_TX field can contain a document header text. If a suitable screen variant exists, you can archive it in the VARIANT field. Filling the VERSION field is not useful here. It can only be posted in version 0 (the default).
The transaction currency for the entire document must be specified. You can specify the currency in SAP format in the TRANS_CURR field or in ISO code in the TRANSCUR_ISO field.
USERNAME is a required field and is to indicate the creator.
The document item data is transferred in the DOC_ITEMS table. The 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 sales order | |
SENCOSTOBJ | Sender cost object | |
COST_ELEM | Cost element | |
VALUE_TCUR | Amount in transaction currency | |
QUANTITY | Total quantity entered | X |
POSTQUUN | Posted unit of measure | X |
POSTQUUN_ISO | Posted unit of measure in ISO code | X |
PERSON_NO | Personnel number | X |
SEG_TEXT | Segment description | X |
REC_CCTR | Receiver cost center | |
REC_ORDER | Receiver order | |
REC_WBS_EL | Receiver work breakdown structure element | |
REC_NETWRK | Receiver network | |
RECOPERATN | Receiver network activity | |
RECSALEORD | Receiver sales order | |
RECITEM | Item number in receiver sales order | |
RECCOSTOBJ | Receiver cost object | |
RECACTTYPE | Receiver activity type | |
SEN_CALC_MOTIVE | Sender accounting indicator | |
REC_CALC_MOTIVE | Receiver accounting indicator | |
SENACTTYPE | Sending activity type |
You must enter at least one sender and one receiver object. Alternatively, you can enter the unit of measure or currency in ISO code in the *_ISO fields.
The collected messages are returned in the MESSAGES structure. If a posting is successful, the system archives the document number in the DOC_NO parameter.
Example
Notes
Further information
Parameters
CUSTOMER_FIELDSDOC_HEADER
DOC_ITEMS
DOC_NO
IGNORE_WARNINGS
REC_CRITERIA
RETURN
SEND_CRITERIA
Exceptions
Function Group
K40CGeneral Material Data ROGBILLS - Synchronize billing plans
This documentation is copyright by SAP AG.
Length: 6077 Date: 20240523 Time: 113425 sap01-206 ( 60 ms )