Fonction SAP CACSFI_BUILD_AC_DOCUMENT_D - Commission: Creation of FI Documents For Accounts Receivable Accounting

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_OBJ_ID TCACS_LOS_OBJECT-OBJ_ID C 5 Calculating Object Identification
I_OBJ_METHOD TCACS_LOS_METH-OBJ_METHOD C 2 Assigned Method for Object Type Class for Logical Service
I_OBJ_TYPE TCACS_LOS_METH-OBJ_TYPE C 2 Object Type Class (OTC) for Logical Service
I_RUNID CACSSTMTID C 10 Identification of a Settlement Run
I_TEST C C 0

Paramètre Reférence Long. Facultatif Description
E_BAD_DOCUMENTS 0 Commission Contract Number
I_CTRTBU_LOG CACS_S_PAY_LOG 42 Log Table For Closing and Settlement
I_DOCPAY CACS00_S_DOCPAY 378 Document Table From The Commission System
I_DOCPAY_STM CACS00_S_DOCPAY_STM 376 Commission: FI Document (Meta Object)
I_DOC_PAYINFO CACS_S_PAYSYS_INFO 85

Exception Description
BAPI_ERROR Error While Calling FI-BAPI
CHECK_ERROR Error While Determining Account Assignment Information
DOC_ERROR Error In FI Documents

Functionality
This function module CACS00_BUILD_AC_DOCUMENT calls the function moduleCACS00_BUILD_AC_DOC_POS999 for converting the meta document in FIstructure.
It is checked in advance, whether there are more than 900 items perdocument. If yes, a new document number must be used because the latercalled FI BAPI can process only up to 999 items for each document.
99 items are planned as safety buffer because other items can also becreated during further processing up to FI BAPI. The new document numberis marked in the table CACS_CPD_REF. This table is referenced whilereversing a document.