Ansicht
Dokumentation

BAPI_SINGLEREMUREQS_CREATEMULT - Create Vendor Billing Documents

BAPI_SINGLEREMUREQS_CREATEMULT - Create Vendor Billing Documents

rdisp/max_wprun_time - Maximum work process run time   BAL Application Log Documentation  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

You use this method to create vendor billing documents.

The document header data must be included (via the structure "HEADDATA") as an input parameter.

You enter item data via table "ITEMDATA". You can assign item numbers manually by entering data in in the relevant fields, or have the system do this in line with the Customizing settings.

Once a vendor billing document has been created successfully, the system returns the document data and the document header data (via structure "HEADDATAOUT").

Any errors that occurred are returned via parameter "RETURN".

The table "ITEMDATAOUT" provides some detailed information on the document items.

You can use structure "CONDITIONS" to include additional conditions.

You can use structure "EXTENSIONIN" to include customer-specific fields. You must include these via an Append structure to structure "BAPI_TE_KOMLFKE" for the header data and "BAPI_TE_KOMFKPE" for the item data. For this BAPI, the field "REF_DOC" must be used as the key field, and field "DOCUMENT_NUMBER" must be left empty.

Example

Notes

Header data

1. Required entries

General

BILL_TYPE Billing document type

REF_DOC Sequence number that uniquely identifies an external
document

DIFF_INV Invoicing party

GROSS_AMNT Total invoice amount

COMP_CODE Company code

PURCH_ORG Purchasing organization

PUR_GROUP Purchasing group

Currency Document currency

2. Optional entries:

BILL_DATE Billing document date

CURRENCY_ISO ISO code for currency

DOC_DATE Document date

REF_DOC_NO Reference document number

PAYMT_REF Payment reference

EXCH_RATE Directly quoted exchange rate

EXCH_RATE_V Indirectly quoted exchange rate

EX_RATE_FX Indicator for fixing exchange rate

TRANS_DATE Date for currency translation

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 net due date

If you include a term of payment key, you must not include 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 include one of these two.

PMNT_METH Payment method

INV_LIST_DATE Posting date of the remuneration list

SOURCE_TYPE Type of preceding document

TESTRUN Switch to simulation mode (no changes to the DB)

Item data

1. Required entries:

REF_DOC Sequence number that uniquely identifies an external
document. This is used to assign the item data to the
header data.

TAX_CODE Input tax code

NET_PRICE Net price of item

QUANTITY Quantity

MATERIAL Material

2. Optional entries:

General

REF_ITEM Document item

CASH_DISC Indicator: subject to cash discount

BILL_UNIT Unit of measure

REF_DOC_HEAD Document number of the preceding document of the
business partner

REF_DOC_ITEM Item number of the preceding document of the business
partner

PDOC_CAT Billing document type of the preceding document of the
business partner

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 Pricing unit

ISOCODE_UNIT ISO code for unit of measure

QTY_NUM Conversion factor (numerator) for units of measure

QTY_DENOM Conversion factor (denominator) for units of measure

PROMOTION Promotion

PRE_VENDOR Prior vendor

BILL_REASON Reason for transaction

SETT_ITEM Item for subsequent settlement

PRICE_DATE Date for price determination

NET_WEIGHT Net weight

GROSS_WT Gross weight

UNIT_OF_WT Weight unit

UNIT_OF_WT_ISO Weight unit 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

Only if logistics data is entered

MATL_GROUP Material group

MATERIAL Material

VEND_PART Vendor sub-range

COND_GROUP Condition group of vendor

PLANT Plant

Further information





Parameters

CONDITIONS
EXIT_AFTER_FIRST_ERROR
EXTENSIONIN
EXTENSIONOUT
HEADDATA
HEADDATAOUT
HEADTEXTIN
HEADTEXTOUT
ITEMDATA
ITEMDATAOUT
ITEMTEXTIN
ITEMTEXTOUT
RETURN

Exceptions

Function Group

2126

CL_GUI_FRONTEND_SERVICES - Frontend Services   General Data in Customer Master  
This documentation is copyright by SAP AG.

Length: 7222 Date: 20240523 Time: 173756     sap01-206 ( 61 ms )