SAP Function BAPI_BILLINGDOC_CREATEMULTIPLE - Create Individual Customer Billing Document

Parameter Reference Type Length Default Optional Text
CREATORDATAIN BAPICREATORDATA u 20 X Date Order Taken
POSTING POSTING_TYPE_CT C 1 X Posting category: post directly
TESTRUN BAPIVBRKTESTRUN-TESTRUN C 1 X Simulation Run ('X'), Update Run (' ')

Parameter Reference Length Optional Text
BILLINGDATAIN BAPIVBRK 721 Table for Item Data to be Processed
CCARDDATAIN BAPICCARD_VF 221 X Table for Method of Payment to be Processed
CONDITIONDATAIN BAPIKOMV 32 X Table for Conditions to be Processed
ERRORS BAPIVBRKERRORS 486 X Information on Incorrect Processing of Preceding Items
RETURN BAPIRET1 470 Table for Processing Errors
SUCCESS BAPIVBRKSUCCESS 100 Table for Successfully Processed Items
TEXTDATAIN BAPIKOMFKTX 165 X Communication Structure Texts for Billing Interface

Functionality
This method can be used to create billing documents.
As input parameters, you are expected to enter information on the itemsto be processed in the table BILLING_DATA_IN. This data is processedand produces a batch of billing documents. You also have the option oftransferring information for entry in the input structureCREATOR_DATA_IN. If this information is already determined, this istransferred into each billing document header. You can also enteroptional conditions for the individual items to be processed in theinput table CONDITION_DATA_IN, as well as means of payment informationin the table CCARD_DATA_IN.
This method can be used in the simulation run (TESTRUN = 'X') and alsoin the update run including the update (TESTRUN = ' '). Both executionvariants deliver errors that may have occurred back to the output tableRETURN. Information on successful processing is sent back in the outputtable SUCCESS. This output table delivers the document numbers of thebilling documents created in particular.

Example

Notes
Required entries :
BILLING_DATA_IN-SALESORG
BILLING_DATA_IN-DISTR_CHAN
BILLING_DATA_IN-DIVISION
BILLING_DATA_IN-DOC_TYPE
BILLING_DATA_IN-ORDBILLTYP
BILLING_DATA_IN-SOLD_TO
BILLING_DATA_IN-ITEM_CATEG
BILLING_DATA_IN-REQ_QTY
BILLING_DATA_IN-SALES_UNIT
BILLING_DATA_IN-CURRENCY
If a material is billed for which a material master needs to be
determined (BILLING_DATA_IN-NO_MATMAST = ' '), you must make the
following entries :
BILLING_DATA_IN-PLANT
BILLING_DATA_IN-MATERIAL
If, on the other hand, a material is billed for which no material
master is to be determined (BILLING_DATA_IN_NO_MATMAST = 'X'), you
must make the following entries :
BILLING_DATA_IN-COUNTRY
BILLING_DATA_IN-MATERIAL
BILLING_DATA_IN-TAXCL_1MAT
COMMIT control :
In the update run (TESTRUN = ' ') the update is carried out byCOMMIT
WORK as part of the method available.

1225059Field VKONT in BAPI_BILLINGDOC_CREATEMULTIPLE
589488Taxes in BAPI_BILLINGDOC_CREATEMULTIPLE
875949 Text transfer in BAPI_BILLINGDOC_CREATEMULTIPLE
796510Parallel quantities in BAPI_BILLINGDOC_CREATEMULTIPLE
769002FBUDA field in BAPI_BILLINGDOC_CREATEMULTIPLE
588084Account assignments in BAPI_BILLINGDOC_CREATEMULTIPLE (II)
581263Additional information on BAPI_BILLINGDOC_CREATEMULTIPLE
781716Too many documents locked in general billing interface
574282Enhancement of structure BAPIVBRKSUCCESS
582280Account assignments in BAPI_BILLINGDOC_CREATEMULTIPLE
574126Synchronization of structure BAPIVBRK
562895Currency error in the BAPI_BILLINGDOC_CREATEMULTIPLE