Fonction SAP CACSFI_BUILD_AC_DOCUMENT_CPD - Commission: Creating CPD FI Documents

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_CPD calls the functionmodule
CACS00_BUILD_AC_DOCUMENT for converting the meta document in FIstructure.
It is checked in advance, if CpD data - alternative payment recipientis available in the settlement items.
In case there are several alternative payment recipients per document, anew document number must be used because the later called FI BAPI canprocess only one alternative payment recipient for each document. Newdocument number is marked in the table CACS_CPD_REF. This table isreferred to while reversing a document.