Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI for creating Collective Billing document

Former Member
0 Likes
3,391

Hi all,

Our requirment is to create a collective billing document. Is there any BAPI, where I can create a collective billing for any no of sale orders for a single sold-to-party.

Regards,

Lakshminarayanan

7 REPLIES 7
Read only

Former Member
0 Likes
2,015

Hi,

Try BAPI_BILLINGDOC_CREATEMULTIPLE. Here is part of the online documentation for your quick reference:

This method can be used to create billing documents.

As input parameters, you are expected to enter information on the items to be processed in the table BILLING_DATA_IN. This data is processed and produces a batch of billing documents. You also have the option of transferring information for entry in the input structure CREATOR_DATA_IN. If this information is already determined, this is transferred into each billing document header. You can also enter optional conditions for the individual items to be processed in the input table CONDITION_DATA_IN, as well as means of payment information in the table CCARD_DATA_IN.

This method can be used in the simulation run (TESTRUN = 'X') and also in the update run including the update (TESTRUN = ' '). Both execution variants deliver errors that may have occurred back to the output table RETURN. Information on successful processing is sent back in the output table SUCCESS. This output table delivers the document numbers of the billing documents created in particular.

Regards,

James

NOTE: Disregard my previous reply suggesting BAPI_BILLINGDOC_CREATEMULTI_PI. This BAPI is not released in 4.6C and does not exist in ECC 5.0.

Message was edited by: James Gaddis

Read only

0 Likes
2,015

Hi James,

Currently we are using SAP 4.7. The BAPI FM - BAPI_BILLINGDOC_CREATEMULTI_PI is not available in 4.7. Are you using SAP version greater than 4.7.

If so, can you please suggest an alternative FM.

Regards,

Lakshminarayanan

Read only

0 Likes
2,015

I was checking in 4.6c, we have it.

Read only

0 Likes
2,015

Hi,

Sorry for the confusion. I found that BAPI and replied before checking our ECC 5.0 system. Please see the revised reply above.

- James

Read only

0 Likes
2,015

Hi James,

Can you suggest any FM, which can used in creating collective billing doc in 4.7 version

Regards,

Lakshminarayanan

Read only

0 Likes
2,015

That BAPI was using FM GN_INVOICE_CREATE.

Regards.

Read only

0 Likes
2,015

Hi,

I don't have access to a 4.7 system, but since BAPI_BILLINGDOC_CREATEMULTIPLE is in 4.6C and 5.0 it should also be in 4.7. Note that BAPI_BILLINGDOC_CREATEMULTIPLE also uses function module GN_INVOICE_CREATE.

If possible, I would suggest that you use the BAPI instead of calling FM GN_INVOICE_CREATE directly.

Regards,

James