SAP FVD_ARC_DOCUMENTS_ARCHIVE Function Module for Archives Document Data
FVD_ARC_DOCUMENTS_ARCHIVE is a standard fvd arc documents archive SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Archives Document Data processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for fvd arc documents archive FM, simply by entering the name FVD_ARC_DOCUMENTS_ARCHIVE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVD_DOCUMENTS_ARCHIVE
Program Name: SAPLFVD_DOCUMENTS_ARCHIVE
Main Program: SAPLFVD_DOCUMENTS_ARCHIVE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FVD_ARC_DOCUMENTS_ARCHIVE pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'FVD_ARC_DOCUMENTS_ARCHIVE'"Archives Document Data.
EXPORTING
I_ARC_DOC_ADM_ARC = "Admin. Table for Reorganization of Loan Document Data
I_TRDC_REC = "Table Type for Table TRDC_REC
I_WRITE_HANDLE = "Internal Tables, Current Row Index
I_LOG_HANDLE = "Application Log: Log Handle
I_TEST = "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
I_ARC_DOC_REC_ARC = "Table Type for VDARC_DOC_REC
I_ARC_VDBEKI_ARC = "Table Type for Table VDBEKI
I_ARC_VDBEPI_ARC = "Table Type for Table VDBEPI
* I_ARC_DOC_IND = "Table Type for VDARC_DOC_IND
I_ARC_DOC_ADM_NEW = "Admin. Table for Reorganization of Loan Document Data
I_ARC_DOC_REC_NEW = "Table Type for VDARC_DOC_REC
I_ARC_DOC_IND_NEW = "Table Type for VDARC_DOC_IND
I_TRDC_ADM = "Loan Document Data Summarization: Administration Table
IMPORTING
E_ARCHIV_STAT = "Status for Archiving a Loan
E_ARCHIV_KEY = "Key for Archive File
E_OBJ_OFFSET = "Offset of data object in archive file
E_DATA_ID = "Data object Identifier
IMPORTING Parameters details for FVD_ARC_DOCUMENTS_ARCHIVE
I_ARC_DOC_ADM_ARC - Admin. Table for Reorganization of Loan Document Data
Data type: VDARC_DOC_ADMOptional: No
Call by Reference: No ( called with pass by value option)
I_TRDC_REC - Table Type for Table TRDC_REC
Data type: TRTY_TRDC_RECOptional: No
Call by Reference: No ( called with pass by value option)
I_WRITE_HANDLE - Internal Tables, Current Row Index
Data type: SY-TABIXOptional: No
Call by Reference: No ( called with pass by value option)
I_LOG_HANDLE - Application Log: Log Handle
Data type: BALLOGHNDLOptional: No
Call by Reference: No ( called with pass by value option)
I_TEST - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
Data type: BOOLE-BOOLEOptional: No
Call by Reference: No ( called with pass by value option)
I_ARC_DOC_REC_ARC - Table Type for VDARC_DOC_REC
Data type: TRTY_VDARC_DOC_RECOptional: No
Call by Reference: No ( called with pass by value option)
I_ARC_VDBEKI_ARC - Table Type for Table VDBEKI
Data type: TRTY_VDBEKIOptional: No
Call by Reference: No ( called with pass by value option)
I_ARC_VDBEPI_ARC - Table Type for Table VDBEPI
Data type: TRTY_VDBEPIOptional: No
Call by Reference: No ( called with pass by value option)
I_ARC_DOC_IND - Table Type for VDARC_DOC_IND
Data type: TRTY_VDARC_DOC_INDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ARC_DOC_ADM_NEW - Admin. Table for Reorganization of Loan Document Data
Data type: VDARC_DOC_ADMOptional: No
Call by Reference: No ( called with pass by value option)
I_ARC_DOC_REC_NEW - Table Type for VDARC_DOC_REC
Data type: TRTY_VDARC_DOC_RECOptional: No
Call by Reference: No ( called with pass by value option)
I_ARC_DOC_IND_NEW - Table Type for VDARC_DOC_IND
Data type: TRTY_VDARC_DOC_INDOptional: No
Call by Reference: No ( called with pass by value option)
I_TRDC_ADM - Loan Document Data Summarization: Administration Table
Data type: TRDC_ADMOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FVD_ARC_DOCUMENTS_ARCHIVE
E_ARCHIV_STAT - Status for Archiving a Loan
Data type: VDARC_DOC_ADM-S_PROC_STATOptional: No
Call by Reference: No ( called with pass by value option)
E_ARCHIV_KEY - Key for Archive File
Data type: ARCH_IDX-ARCHIVEKEYOptional: No
Call by Reference: No ( called with pass by value option)
E_OBJ_OFFSET - Offset of data object in archive file
Data type: ARCH_IDX-OFFSETOptional: No
Call by Reference: No ( called with pass by value option)
E_DATA_ID - Data object Identifier
Data type: ARCH_IDX-OBJECT_IDOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FVD_ARC_DOCUMENTS_ARCHIVE Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_e_archiv_stat | TYPE VDARC_DOC_ADM-S_PROC_STAT, " | |||
| lv_i_arc_doc_adm_arc | TYPE VDARC_DOC_ADM, " | |||
| lv_i_trdc_rec | TYPE TRTY_TRDC_REC, " | |||
| lv_i_write_handle | TYPE SY-TABIX, " | |||
| lv_i_log_handle | TYPE BALLOGHNDL, " | |||
| lv_i_test | TYPE BOOLE-BOOLE, " | |||
| lv_e_archiv_key | TYPE ARCH_IDX-ARCHIVEKEY, " | |||
| lv_i_arc_doc_rec_arc | TYPE TRTY_VDARC_DOC_REC, " | |||
| lv_e_obj_offset | TYPE ARCH_IDX-OFFSET, " | |||
| lv_i_arc_vdbeki_arc | TYPE TRTY_VDBEKI, " | |||
| lv_e_data_id | TYPE ARCH_IDX-OBJECT_ID, " | |||
| lv_i_arc_vdbepi_arc | TYPE TRTY_VDBEPI, " | |||
| lv_i_arc_doc_ind | TYPE TRTY_VDARC_DOC_IND, " | |||
| lv_i_arc_doc_adm_new | TYPE VDARC_DOC_ADM, " | |||
| lv_i_arc_doc_rec_new | TYPE TRTY_VDARC_DOC_REC, " | |||
| lv_i_arc_doc_ind_new | TYPE TRTY_VDARC_DOC_IND, " | |||
| lv_i_trdc_adm | TYPE TRDC_ADM. " |
|   CALL FUNCTION 'FVD_ARC_DOCUMENTS_ARCHIVE' "Archives Document Data |
| EXPORTING | ||
| I_ARC_DOC_ADM_ARC | = lv_i_arc_doc_adm_arc | |
| I_TRDC_REC | = lv_i_trdc_rec | |
| I_WRITE_HANDLE | = lv_i_write_handle | |
| I_LOG_HANDLE | = lv_i_log_handle | |
| I_TEST | = lv_i_test | |
| I_ARC_DOC_REC_ARC | = lv_i_arc_doc_rec_arc | |
| I_ARC_VDBEKI_ARC | = lv_i_arc_vdbeki_arc | |
| I_ARC_VDBEPI_ARC | = lv_i_arc_vdbepi_arc | |
| I_ARC_DOC_IND | = lv_i_arc_doc_ind | |
| I_ARC_DOC_ADM_NEW | = lv_i_arc_doc_adm_new | |
| I_ARC_DOC_REC_NEW | = lv_i_arc_doc_rec_new | |
| I_ARC_DOC_IND_NEW | = lv_i_arc_doc_ind_new | |
| I_TRDC_ADM | = lv_i_trdc_adm | |
| IMPORTING | ||
| E_ARCHIV_STAT | = lv_e_archiv_stat | |
| E_ARCHIV_KEY | = lv_e_archiv_key | |
| E_OBJ_OFFSET | = lv_e_obj_offset | |
| E_DATA_ID | = lv_e_data_id | |
| . " FVD_ARC_DOCUMENTS_ARCHIVE | ||
ABAP code using 7.40 inline data declarations to call FM FVD_ARC_DOCUMENTS_ARCHIVE
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single S_PROC_STAT FROM VDARC_DOC_ADM INTO @DATA(ld_e_archiv_stat). | ||||
| "SELECT single TABIX FROM SY INTO @DATA(ld_i_write_handle). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_test). | ||||
| "SELECT single ARCHIVEKEY FROM ARCH_IDX INTO @DATA(ld_e_archiv_key). | ||||
| "SELECT single OFFSET FROM ARCH_IDX INTO @DATA(ld_e_obj_offset). | ||||
| "SELECT single OBJECT_ID FROM ARCH_IDX INTO @DATA(ld_e_data_id). | ||||
Search for further information about these or an SAP related objects