Memory: COFunctionality This method checks 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. If th ese 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,,Currency amount to BAPI interfaces 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 REC_NETWRK,,Receiver network RECOPERATN,,Receiver network activity RECSALEORD,,Receiver sales order RECITEM,,Item number in receiver sales order RECCOSTOBJ,,Receiver cost object 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. Notes You can use this method to create locks on entries in table COKA. Thisis necessary to ensure the data is consistent for a subsequent update. If, for example, you use the method only for a test run, you can resetthe lock using a subsequent ROLLBACK WORK command. Description This structure contains the header data of 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 costs that are to be posted. 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 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. |