Creating a CIAP Record Using the CIAP BAPI
You can create CIAP records using the BAPI_CIAP_RECORD_CREATE
BAPI for notas fiscais that do not have any records assigned to them.
Note
Only users with specific authorization can create records using the CIAP BAPI. For more information about the authorization object related to this BAPI, see Authorization Object M_CIAP_WRI.
The process for creating records using this BAPI differs from the standard process for record creation. In the list below, you find the main characteristics of the process:
The record is created based on a nota fiscal document and on an item line of this document.
All tax values are taken from the nota fiscal document.
You define an account assignment category, which you use as basis to define the cost collector.
The BAPI can optionally receive a table with the information about the asset, the work-breakdown structure, the internal order, the network diagram, the G/L Account, and the cost center that are associated to the fiscal document.
The BAPI ignores whether the nota fiscal CFOP is valid or not for ICMS crediting.
The limit of the period for receiving ICMS credit starts on the posting date of the nota fiscal.
If there is a CT-e document related to the nota fiscal, the record receives the proportional ICMS value of the transport.