Skip to Content
Former Member
Dec 01, 2010 at 11:03 AM

BAPI for Creating Order Related Billing Document


Hi ABAPers!

I have a requirement in ECC SD where in invoices will be created from the orders automatically once a particular status is set.

I have created an item category where Billing relevance is set to 'B' and have assigned this to an order type.

For creating invoices from orders I was trying to use this bapi 'BAPI_BILLINGDOC_CREATEFROMDATA', but had few doubts on its usage.

I can see that in this table parameter: BILLING_DATA_IN we have ORDBILLTYP field where we can specify the 'Proposed billing type for an order-related billing document'.

So Can anyone help in populating these tables BILLING_DATA_IN, CONDITION_DATA_IN, CCARD_DATA_IN?

Also how come this invoice creation bapi is not returning the invoice number?

Or do I have to go for a different bapi to have order related billing?