Fonction SAP BAPI_FMCABILLDOC_CREATE_MULT - Create Billing Documents

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
TESTRUN BAPI_FMCAINV_FIELDS-TESTRUN C 1 X Indicator

Paramètre Reférence Long. Facultatif Description
ADDITEMS BAPI_FMCA_EXTDOC_A 290 X Additional Items of External PSCD Billing Document
BAPI_BILLDOCNUMBER BAPI_FKKINV_BILLDOCNUMBER 44 X External and Internal Document Number of Billing Document
EXTENSIONIN BAPIPAREX 990 X Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
EXTENSIONOUT BAPIPAREX 990 X Ref. structure for BAPI parameter ExtensionIn/ExtensionOut
HEADERS BAPI_FMCA_EXTDOC_H 405 Header of External PSCD Billing Document
ITEMS BAPI_FMCA_EXTDOC_I 416 X Items of External PSCD Billing Document
RETURN BAPIRET2 548 Return Parameters
TAXITEMS BAPI_FMCA_EXTDOC_T 98 X Tax Items of External PSCD Billing Document

Functionality
You can use this Business Application Programming Interface(BAPI) to create one or more billing documents and copy billingdocuments from an external system. The amounts and quantities are copiedwith this. Other characteristics of the external billing documents arecopied or converted into characteristics in the SAP Standard.
The billing documents are saved in the following tables:

  • DFKKINVBILL_H

  • DFKKINVBILL_I

  • DFKKINVBILL_T

  • DFKKINVBILL_A

  • An invoicing order is generated for all non-
    simulated billing documents. The billingdocuments can then be processed by invoicing in Contract AccountsReceivable and Payable.
    To ensure good performance, it is advisable to create several billingdocuments per call with this BAPI.

    Error check
    All data transferred is checked. Each error is logged in the exporttable RETURN.
    If one or more errors are found, the BAPI does not make anychanges in the database and no billing documents are created.
    If the checks are successful, the billing documents are created. Thedatabase changes are performed directly, in other words, without theupdate task.
    Errors that only occur during the database changes are not the norm. Ifa database change cannot take place due to a manipulation perhaps,processing is terminated and a ROLLBACK commando is performedimplicitly.

    Notes
    In addition to Customizing for invoicing, the posting areas 2610, 2640,2641, 2642, 2645 and 0015 must be managed.
    You can enhance this BAPI by implementing BAdIs FMCAINV_BAPIBILL andFKKINV_BAPIBILL without making any modifications.
    The BAPI does not perform any user-specific authorization checks.

    Description
    If you select this field, the BAPI does not make any changes in thedatabase but all checks are run. Any errors that occurred are written inthe export table RETURN.

    Description
    Contains optional additional items of the external billing documents.

    Description
    This export table contains the document numbers of the newly createdbilling documents.

    Description
    Contains optional additional data.
    You can use this table to fill customer-specific fields in the billingdocument header. If you want to enhance the billing document header(table DFKKINVBILL_H), you must define allowed entries for includeCI_FKKINVBILL_H. Fill table EXTENSIONIN with reference tostructure BAPI_TE_FKKINVBILL_H. These entries arethen processed automatically.
    Analog to this, entries with reference to the structuresBAPI_TE_FKKINVBILL_I, BAPI_TE_FKKINVBILL_T and BAPI_TE_FKKINVBILL_A areprocessed automatically. All entries in table EXTENSIONIN that refer toother structures are ignored by the Standard. They are forwarded to themethods of the BAdI ISTINV_BAPIBILL and can then be processed there.
    For more information, see BAPI Programming Guide
    (CA-BFA) in the SAP Library. Pay special attention to the sectionCustomer Enhancement and Modification of BAPIs.

    Description
    This export table is ignored by the SAP Standard. You can enter it inthe methods of BAdI ISTINV_BAPIBILL and send back customer-specific datato the caller of the BAPI.

    Description
    Contains the data of the external billing document headers.

    Description
    Contains the data of the external billing line items.

    Description
    This table contains all log messages. If the table contains one or moremessages of message type E or A, an error occurred whichcaused processing to be terminated.

    Description
    Contains the data of the external billing tax line items. The table isonly required when an external tax determination is wanted.