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.
|