Ansicht
Dokumentation
BAPI_SINGLESETTREQS_CREATEMULT - Create Settlement Documents
CPI1466 during Backup ROGBILLS - Synchronize billing plansThis documentation is copyright by SAP AG.
Functionality
You can use this method to create single settlement requests.
As an input parameter for this, the document header must be transferred (via structure HEADDATA).
You transfer item data via table ITEMDATA. The item numbers can be assigned manually in the appropriate fields, or automatically on the basis of Customizing settings.
Once a single settlement request has been created successfully, you get a document number and some document header data (via HEADDATAOUT structures).
Any errors that occur are announced in parameter RETURN.
Detailed information on the document items is contained in table ITEMDATAOUT.
You can add customer-specific fields using structue EXTENSIONIN. These must be added via an append structure to structure BAPI_TE_KOMZRKE for header data, and BAPI_TE_KOMZRPE for item data. In this, field REF_DOC must be used as a key field for the BAPI, and field DOCUMENT_NUMBER must be left free.
Example
Notes
Caution: In structure HEADDATAOUT, field PAYM_DOC is used for the document number instead of the usual DOCUMENT_NUMBER.
Header data
1. Mandatory entries:
General
PAYTYPE Payment type
REF_DOC Number that clearly identifies an external document
DIFF_INV Invoicing party
GROSS_AMNT Total invoice amount
BILL_TO Invoice recipient
COMP_CODE Company code
CURRENCY Document currency
Only for entries with 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 invoicing party
FIX_VAL_DY Fixed value date of invoicing party
You can only enter one of these two options.
PMNTTRMS_DEB Terms of payment key for 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 invoice recipient
FIX_VAL_DY_DEB Fixed value date of 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)
PYMT_METH Payment method for invoicing party
EXCH_RATE_V Quantity based exchange rate
INV_LIST_DATE Invoice list date
ALLOC_NMBR Assignment
DOCID Barcode
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 of item
GROSS Gross amount of item
TAX Tax amount of item
2. Optional entries:
General
REF_ITEM Document item
CASH_DISC Indicator - qualifying for cash discount
REF_DOC_HEAD Document number of the preceding document at the
business partner
REF_DOC_ITEM Item number of the preceding document at the business
partner
PDOC_CAT Billing type of the preceding document at the 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
Parameters
CUSTOMERCONDINEXIT_AFTER_FIRST_ERROR
EXTENSIONIN
EXTENSIONOUT
HEADDATA
HEADDATAOUT
HEADTEXTIN
HEADTEXTOUT
ITEMDATA
ITEMDATAOUT
ITEMTEXTIN
ITEMTEXTOUT
PARTNERADDRESSES
PARTNERDATA
PARTNERDATAOUT
RETURN
VENDORCONDIN
Exceptions
Function Group
2100SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up
This documentation is copyright by SAP AG.
Length: 7591 Date: 20240523 Time: 172147 sap01-206 ( 62 ms )