‎2006 Aug 01 11:23 AM
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
‎2006 Aug 01 1:33 PM
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
‎2006 Aug 01 1:45 PM
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
‎2006 Aug 01 1:50 PM
‎2006 Aug 01 1:51 PM
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
‎2006 Aug 01 1:58 PM
Hi James,
Can you suggest any FM, which can used in creating collective billing doc in 4.7 version
Regards,
Lakshminarayanan
‎2006 Aug 01 2:08 PM
‎2006 Aug 01 2:14 PM
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