Create
You can use this method to create settlement request lists. As an input parameter, the list data must be transferred via structure.LISTHEADDATA. The document header data must also be transferred (via structure HEADDATA). You transfer item data via table ITEMDATA. Item numbers can be assigned
manually in the appropriate fields, or automatically on the basis of the Customizing settings. When a settlement request list has been successfully created, you get adocument number, some document header data and the link to the document number list.
Any errors that occur are announced via parameter RETURN. Detailed information on the items in the document is contained in table ITEMDATAOUT. You can add customer-specific fields by using structure EXTENSIONIN.These field must be added via an append structure to structure
BAPI_TE_KOMZRKE for document data, and BAPI_TE_KOMZRPE for item data,and BAPI_TE_KOMZRLE for the settlement request list. In this procedure,field REF_DOC must be used as a key field for this BAPI, and field DOCUMENT_NUMBER must be left free.
NotesCaution: In structures HEADDATAOUT and LISTITEMDATAOUT, field PAYM_DOCis used for the document number, rather than the usual field DOCUMENT_NUMBER. List header data: 1. Mandatory entries: General PAYTYPE Payment type
REF_DOC Number that uniquely identifies an external document DIFF_INV Invoicing party GROSS_AMNT Total invoice amount BILL_TO Invoice recipient CURRENCY Document currency COMP_CODE Company code
Only for entries involving logistics data PURCH_ORG Purchasing organization PUR_GROUP Purchasing group SALESORG Sales organization DISTR_CHAN Distribution channel DIVISION Division
2. Optional entries: BILL_DATE Billing date CURRENCY_ISO ISO code for currency DOC_DATE Document date REF_DOC_NO Reference document number PAYMT_REF Payment reference EXCH_RATE Exchange rate
EX_RATE_FX Indicator for exchange rate fixing TRANS_DATE Conversion date for currency conversion PMNTTRMS Terms of payment key for invoicing party DSCNT1_TO Number of days for payment in first condition DSCT_PCT1 Cash discount percentage for payment in first condition
DSCNT2_TO Number of days for payment in second condition DSCT_PCT2 Cash discount percentage for payment in second condition DSCNT3_TO Number of days for due date for net payment If you enter a terms of payment key, you cannot enter terms of payment, and vice versa.
ADD_VAL_DY Additional value days of the invoicing party FIX_VAL_DY Fixed value date of the invoicing party You can only enter one of these two options PMNTTRMS_DEB Terms of payment key for the invoicing party
DSCNT1_TO_DEB Number of days for payment in first condition DSCT_PCT1_DEB Cash discount percentage for payment in first condition DSCNT2_TO_DEB Number of days for payment in second condition DSCT_PCT2_DEB Cash discount percentage for payment in second condition
DSCNT3_TO_DEB Number of days for due date for net payment If you enter a terms of payment key, you cannot enter terms of payment, and vice versa. ADD_VAL_DY_DEB Additional value days for invoicing party FIX_VAL_DY_DEB Fixed value date of the invoice recipient
You can only enter one of these two options PMNT_METH_DEB Payment method for invoice recipient TESTRUN Switch to simulation (no changes made to DB) EXCH_RATE_V Quantity-based exchange rate ALLOC_NMBR Assignment
DOCID Barcode Header data 1. Mandatory entries: General REF_DOC Number that uniquely identifies an external document DIFF_INV Invoicing party GROSS_AMNT Total invoice amount BILL_TO Invoice recipient
CURRENCY Document currency 2. Optional entries: PAYTYPE Payment type If payment type and invoicing party exist, they are checked against the list header BILL_DATE Billing date CURRENCY_ISO ISO code for currenty
DOC_DATE Document date REF_DOC_NO Reference document number PAYMT_REF Payment reference EXCH_RATE Exchange rate EX_RATE_FX Indicator for exchange rate fixing TRANS_DATE Conversion date for currency conversion
PMNTTRMS Terms of payment key for the invoicing party DSCNT1_TO Number of days for payment in first condition DSCT_PCT1 Cash discount percentage for payment in first condition DSCNT2_TO Number of days for payment in second condition
DSCT_PCT2 Cash discount percentage for payment in second condition DSCNT3_TO Number of days for due date for net payment If you enter a terms of payment key, you cannot enter terms of payment, and vice versa. ADD_VAL_DY Additional value days of the invoicing party
FIX_VAL_DY Fixed value date of the invoicing party You can only enter one of these two options. PMNTTRMS_DEB Terms of payment for the invoice recipient DSCNT1_TO_DEB Number of days for payment in first condition DSCT_PCT1_DEB Cash discount percentage for payment in first condition
DSCNT2_TO_DEB Number of days for payment in second condition DSCT_PCT2_DEB Cash discount percentage for payment in second condition DSCNT3_TO_DEB Number of days for due date for net payment If you enter a terms of payment key, you cannot enter terms of payment, and vice versa.
ADD_VAL_DY_DEB Additional value days of the invoice recipient FIX_VAL_DY_DEB Fixed value date of the invoice recipient You can only enter one of these two options. PMNT_METH_DEB Payment method for invoice recipient TESTRUN Switch to simulation (no changes to DB)
PYMT_METH Payment method for invoicing party INV_LIST_DATE Remuneration list date ALLOC_NMBR Assignment DOCID Barcode Only for entries with logistics data PURCH_ORG Purchasing organization
PUR_GROUP Purchasing group SALESORG Sales organization DISTR_CHAN Distribution channel DIVISION Division This data is checked against the list header data. Only for entries without logistics data
COMP_CODE Company code This data is checked against the list header data. Item data 1. Mandatory entries REF_DOC Number that uniquely identifies an external document. This is used to assign the item data to the header data.
TAX_CODE Input tax code TAX_CODE_DEB Output tax code NET_AMOUNT Net amount for item GROSS Gross amount for item TAX Tax amount of the item 2. Optional entries: General REF_ITEM Document item
CASH_DISC Indicator - qualifying for cash discount REF_DOC_HEAD Document number of preceding document at business partner REF_DOC_ITEM Item number of preceding document at business partner PDOC_CAT Billing category of preceding document at business partner
SHORT_TEXT Short text TAXJURCODE Tax jurisdiction code BUS_AREA Business area COSTCENTER Cost center PROFIT_CTR Profit center Only for entries with logistics data MATL_GROUP Material group
MATERIAL Material VEND_PART Vendor sub-range COND_GROUP Condition group at vendor PLANT Plant
|