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 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 non-SAP 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 must specify the transaction currency for the entire document. Youcan specify the currency in SAP format in the TRANS_CURR field, or inISO 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 transferred 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 PERSON_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 SEN_CALC_MOTIVE Sender accounting indicator REC_CALC_MOTIVE Receiver accounting indicator SENACTTYPE Sending activity type 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 messages collected in the RETURN structure are returned to thecalling progam. Once posting has taken place, the document number isstored in 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 determine whether warnings issued duringdocument checks are to be ignored or not. Description You can use this table to transfer the customer fields (customerinclude CI_COBL) that were added to the account assignment block (COBLstructure) to the BAPI. In addition to the customer fields, you need totransfer 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 of the document to be posted, forexample, account assignment objects or costs to be posted etc. Description INCLUDE BAPI_TABLE Value range Type ID Number Message S BK 003 Document is posted under number & |