Fonction SAP CACSLC_ARCHIVE_READ_DOC_SEQ - Reading documents from archive for sum build

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
IT_FIELDS ENH_T_DD03L h 300 Table Fields
I_APPLCURR CACSLEDCURR C 5 Currency Key
I_ARCHIVE_NAME ADMI_FILES-ARCHIV_KEY C 20 Key for Archive File
I_FILENUMBER SYST-TABIX I 4 Index of Internal Tables
I_KEY_DATE DATUM D 8 Date

Exception Description
ARCHIVE_COULD_NOT_BE_OPENED Archive could not be opened
CONVERSION_ERROR Error in currency conversion

Functionality
The archive file name, file number, application currency and a key dateare used to read the data from the archive. Documents with a postingdate greater than the key date are read from the archive into internaltables. After getting the data, the LED_CURR of these documents iscompared with the application currency. The amounts referred to in theLED_CURR are converted to the commission model currency using theroutine convert_sv which is provided by the EMU framework. The internaltables are transferre to the function module _DOC_SUMCREATEto create the totals and update the respective tables.

Parameters
I_ARCHIVE_NAME
I_FILENUMBER
I_KEY_DATE
I_APPLCURR
IT_FIELDS
E_CAS
E_PAR
E_INV
E_ACT
E_OBJ
E_LIN
E_REL
E_BDL

Exceptions
ARCHIVE_COULD_NOT_BE_OPENED
CONVERSION_ERROR

Function Group
CACSLC_ARCHIVE_READ_DOC