04-13-2007 9:19 AM
Hi all,
I am trying to create billing document using BAPI_BILLINGDOC_CREATEMULTIPLE.
But the billing document created without pricing condition. Please check the code below:
it_billingdata_in-salesorg = '1000'.
it_billingdata_in-distr_chan = '10'.
it_billingdata_in-division = '00'.
it_billingdata_in-doc_type = 'L2'.
it_billingdata_in-sold_to = '0000002400'.
it_billingdata_in-plant = '1000'.
it_billingdata_in-price_date = '20070412'.
it_billingdata_in-ref_doc = '0007000075'.
it_billingdata_in-material = '100-100'.
it_billingdata_in-req_qty = '1'.
it_billingdata_in-ref_item = '000010'.
it_billingdata_in-doc_number = '0007000075'.
it_billingdata_in-itm_number = '000010'.
it_billingdata_in-currency = 'EUR'.
append it_billingdata_in.
it_conditiondatain-data_index = '1'.
it_conditiondatain-cond_type = 'PR00'.
it_conditiondatain-cond_value = '120'.
it_conditiondatain-COND_CURR = 'EUR'.
append it_conditiondatain.
call function 'BAPI_BILLINGDOC_CREATEMULTIPLE'
exporting
testrun = ''
tables
billingdatain = it_billingdata_in
conditiondatain = it_conditiondatain
errors = it_errors
return = it_billing_return
success = it_success.
Please Help. Thanks.
04-13-2007 9:33 AM
04-13-2007 11:19 AM
Hi,
Thanks for the reference, but this particular reference is related to item category.
I notice there is no item category in my billing document which created using this BAPI function. I have assigned the item category L2N but I have another error which is The item is not relevant for billing. For your information, I can create billing with this item category using tcode VF01.
best regards.
03-12-2008 1:09 PM
Hi ,
I am also facing the similar problem,
did u got any solution on this?Please suggest me on this.
thanks,
Bhanu Gattu
09-30-2009 9:40 AM
Please make sure the pricing type and price source allows new pricing during billing.
IMG: SD > Billing > Billing docs > Copy control