Memory: COOMFunctionality This method posts a document with primary costs. 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 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 text X REC_CCTR Receiver cost center REC_ORDER Receiver order REC_WBS_EL Receiver WBS 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 Sender activity type 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 should be 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 items data of the document to be posted, likeaccount assignment objects, costs 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 cost receiver. The table musthave the structure BAPIACKECR. The name of the characteristic must beentered 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 ofcosts). 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. |