Fonction SAP BAPI_SETTLEMENTREQSLIST_CREATE - Agency Business: Create Settlement Request List BAPI

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
EXIT_AFTER_FIRST_ERROR WLF_EXIT_AFTER_FIRST_ERROR C 1 'X' X AB: End Following First Error
LISTHEADDATA BAPISLHEAD u 349 Settlement Request List Header Data (Input)

Paramètre Reférence Type Long. Description
DOCUMENTNUMBER BAPISLKEY-DOCUMENT_NUMBER C 10 Payment request: Document number of a settlement req. list
LISTHEADDATAOUT BAPISLHEADO u 314 Settlement Request List Header Data (Output)

Paramètre Reférence Long. Facultatif Description
CUSTOMERCONDIN BAPILFCONDU 150 X Customer Conditions
EXTENSIONIN BAPIPAREX 990 X Enhancements (Input)
EXTENSIONOUT BAPIPAREX 990 X Enhancements (Output)
HEADDATA BAPIACHEAD 498 Document Header Data (Input)
HEADDATAOUT BAPIACHEADO 438 X Document Header Data (Output)
HEADTEXTIN BAPIABHEADTEXT 154 X Header Texts (Input)
HEADTEXTOUT BAPIABHEADCTEXT 154 X Header Texts (Output)
ITEMDATA BAPIACITEM 449 Document Item Data (Input)
ITEMDATAOUT BAPIACITEMO 348 X Document Item Data (Output)
ITEMTEXTIN BAPIABITEMTEXT 160 X Item Texts (Input)
ITEMTEXTOUT BAPIABITEMCTEXT 160 X Item Texts (Output)
LISTITEMDATAOUT BAPIILITEMO 114 X Settlement Request List Item Data (Output)
PARTNERADDRESSES BAPIADDR1 1574 X BAPI Reference Structure for Addresses (Organization/Company)
RETURN BAPIRET2 548 X Messages
VENDORCONDIN BAPILFCOND 150 X Vendor Conditions

Functionality
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 (viastructure HEADDATA).
You transfer item data via table ITEMDATA. Item numbers can be assignedmanually in the appropriate fields, or automatically on the basis ofthe Customizing settings.
When a settlement request list has been successfully created, you get adocument number, some document header data and the link to the documentnumber list.
Any errors that occur are announced via parameter RETURN.
Detailed information on the items in the document is contained in tableITEMDATAOUT.
You can add customer-specific fields by using structure EXTENSIONIN.These field must be added via an append structure to structureBAPI_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 fieldDOCUMENT_NUMBER must be left free.
Caution: In structures HEADDATAOUT and LISTITEMDATAOUT, field PAYM_DOCis used for the document number, rather than the usual fieldDOCUMENT_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 thelist 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 businesspartner
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

Further information

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX

Description
INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX

Description
INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX

Description
INCLUDE BAPI_DATAELEMENT

Description
You can use this structure to transfer address data for one-timecustomers. The 'REF_DOC' of the corresponding document header must beset in the field 'ADDR_NO'.

Description
INCLUDE BAPI_TABLE OBJECT DOKU ID TX

Description
INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX