Skip to Content
author's profile photo Former Member
Former Member

BAPI for creating Collective Billing document

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

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 01, 2006 at 12: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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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