Functionality Using this method, you can create expenses settlements. For this process, you have to enter the document header data as an inputparameter (in the "HEADDATA" structure). Specify the item data using the "ITEMDATA" table. You can assign itemnumbers manually, by filling the corresponding fields, or automaticallyby defining the relevant Customizing settings. After you have created an expenses settlement successfully, the systemreturns the document number and specific document header data (in the"HEADDATAOUT" structure). If any errors occur, these are identified in the "RETURN" parameter. To be able to make a statement about the document items, detailedinformation is displayed in the "ITEMDATAOUT" table. You can use the "CONDITIONS" structure to specify additional conditions. You can use the "EXTENSIONIN" structure to insert customer-specificfields. You have to add these to the "BAPI_TE_KOMLFKE" structure for theheader data and "BAPI_TE_KOMFKPE" for the item data using an appendstructure. When doing so, use the "REF_DOC" field as a key field forthis BAPI and leave the "DOCUMENT_NUMBER" field blank. Notes Header Data 1. Mandatory entries: General BILL_TYPE Billing type REF_DOC Sequence number that uniquely identifies an external document GROSS_AMNT Total invoice amount COMP_CODE Company code PAYER Invoice recipient SALESORG Sales organization DISTR_CHAN Distribution channel DIVISION Division CURRENCY Document currency 2. Optional entries: BILL_DATE Billing document date CURRENCY_ISO ISO code currency DOC_DATE Document date REF_DOC_NO Reference document number PAYMT_REF Payment reference EXCH_RATE Directly quoted exchange rate EXCH_RATE_V Volume-driven exchange rate EX_RATE_FX Indicator for fixing exchange rate TRANS_DATE Translation date for currency translation PMNTTRMS_DEB Terms of payment key for invoicing party DSCNT1_TO_DEB Number of days for payment in first condition DSCT_PCT1_DEB Cash discount percentage rate for payment in firstcondition DSCNT2_TO_DEB Number of days for payment in second condition DSCT_PCT2_DEB Cash discount percentage rate for payment in secondcondition DSCNT3_TO_DEB Number of days for net due date If you enter a terms of payment key, you cannot enter terms of payment,and vice versa. ADD_VAL_DY Additional value days of invoicing party FIX_VAL_DY Fixed value date of invoicing party You can only enter one of these. PMNT_METH Payment method INV_LIST_DATE Posting date of remuneration list SOURCE_TYPE Type of preceding document TESTRUN Switch to simulation mode (no DB changes) Item Data 1. Mandatory entries: REF_DOC Sequence number that uniquely identifies an external document. You use this to assign item data to the header data. TAX_CODE Input tax code NET_PRICE Item net price QUANTITY Quantity MATERIAL Material 2. Optional entries: General REF_ITEM Document item CASH_DISC "Qualifying for cash discount" indicator BILL_UNIT Unit of measure REF_DOC_HEAD Document number of reference document for businesspartner REF_DOC_ITEM Item number of reference document for business partner PDOC_CAT Billing category of reference document for businesspartner SHORT_TEXT Short text TAXJURCODE Tax jurisdiction code BUS_AREA Business area COSTCENTER Cost center PROFIT_CTR Profit center NET_PRICE Net price PRICE_UNIT Price unit ISOCODE_UNIT ISO code unit of measure QTY_NUM Conversion factor (counter) for units of measure QTY_DENOM Conversion factor (denominator) for units of measure PROMOTION Promotion PRE_VENDOR Prior vendor BILL_REASON Transaction reason SETT_ITEM Item for subsequent settlement PRICE_DATE Date for pricing NET_WEIGHT Net weight GROSS_WT Gross weight UNIT_OF_WT Unit of weight UNIT_OF_WT_ISO Unit of weight in ISO code VAL_TYPE Valuation type VAL_CAT Valuation category BON_GRP1 Settlement group 1 (purchasing) BON_GRP2 Settlement group 2 (subsequent settlement) BON_GRP3 Settlement group 3 (subsequent settlement) POINTS Number of points POINTS_UNIT Points unit POINTS_UN_ISO ISO code for points unit For entry with logistics data only MATL_GROUP Material group MATERIAL Material VEND_PART Vendor subrange COND_GROUP Condition group for vendor PLANT Plant Description INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX Description INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX Description INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX Description INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX Description INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX Description INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX Description INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX Description INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX Description INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX Description INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX Description INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX Description INCLUDE BAPI_TABLE OBJECT DOKU ID TX |