SAP RW_FIND_ARCHIVE_VIA_FIX_FIELDS Function Module for
RW_FIND_ARCHIVE_VIA_FIX_FIELDS is a standard rw find archive via fix fields SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 rw find archive via fix fields FM, simply by entering the name RW_FIND_ARCHIVE_VIA_FIX_FIELDS into the relevant SAP transaction such as SE37 or SE38.
Function Group: GARX
Program Name: SAPLGARX
Main Program: SAPLGARX
Appliation area: G
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RW_FIND_ARCHIVE_VIA_FIX_FIELDS 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 'RW_FIND_ARCHIVE_VIA_FIX_FIELDS'".
EXPORTING
* I_RLDNR_RANGE = "
* I_CLIENT = SY-MANDT "
* I_RRCTY_RANGE = "
* I_BUKRS_RANGE = "
* I_RCOMP_RANGE = "
* I_RYEAR_RANGE = "
* I_DELETED_ARCHIVES = 'Y' "
* I_NOT_DELETED_ARCHIVES = 'Y' "
* I_ADD_ARCHIVES_WO_VARIANT = ' ' "
* I_NOT_VALID_ARCHIVES = 'Y' "
TABLES
T_ARCH_OBJ = "
* T_FILES = "
* T_ADMI_FILES = "
EXCEPTIONS
EX_NO_ARCHIVE_FILES_FOUND = 1 EX_INVALID_OBJECT = 2 EX_WRONG_RRCTY = 3 EX_MISSING_ARCHIVE_STATUS = 4 EX_WRONG_DOMANE_AT_INTERFACE = 5 EX_WRONG_FIELD_TABLE_COMB = 6 EX_MISSING_OBJECT = 7 EX_FIELD_INFO_NOT_FOUND = 8 EX_NO_ARCH_VARIANT_FOUND = 9
IMPORTING Parameters details for RW_FIND_ARCHIVE_VIA_FIX_FIELDS
I_RLDNR_RANGE -
Data type: RSDS_RANGEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CLIENT -
Data type: T000-MANDTDefault: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_RRCTY_RANGE -
Data type: RSDS_RANGEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_BUKRS_RANGE -
Data type: RSDS_RANGEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_RCOMP_RANGE -
Data type: RSDS_RANGEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_RYEAR_RANGE -
Data type: RSDS_RANGEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DELETED_ARCHIVES -
Data type: ADMI_RUN-STATUSDefault: 'Y'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NOT_DELETED_ARCHIVES -
Data type: ADMI_RUN-STATUSDefault: 'Y'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ADD_ARCHIVES_WO_VARIANT -
Data type: ADMI_RUN-STATUSDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NOT_VALID_ARCHIVES -
Data type: ADMI_RUN-NOTGUILTYDefault: 'Y'
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RW_FIND_ARCHIVE_VIA_FIX_FIELDS
T_ARCH_OBJ -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
T_FILES -
Data type: RNG_ARCHIVOptional: Yes
Call by Reference: No ( called with pass by value option)
T_ADMI_FILES -
Data type: ADMI_FILESOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
EX_NO_ARCHIVE_FILES_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EX_INVALID_OBJECT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EX_WRONG_RRCTY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EX_MISSING_ARCHIVE_STATUS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EX_WRONG_DOMANE_AT_INTERFACE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EX_WRONG_FIELD_TABLE_COMB -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EX_MISSING_OBJECT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EX_FIELD_INFO_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EX_NO_ARCH_VARIANT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RW_FIND_ARCHIVE_VIA_FIX_FIELDS 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: | ||||
| lt_t_arch_obj | TYPE STANDARD TABLE OF STRING, " | |||
| lv_i_rldnr_range | TYPE RSDS_RANGE, " | |||
| lv_ex_no_archive_files_found | TYPE RSDS_RANGE, " | |||
| lv_i_client | TYPE T000-MANDT, " SY-MANDT | |||
| lt_t_files | TYPE STANDARD TABLE OF RNG_ARCHIV, " | |||
| lv_i_rrcty_range | TYPE RSDS_RANGE, " | |||
| lv_ex_invalid_object | TYPE RSDS_RANGE, " | |||
| lt_t_admi_files | TYPE STANDARD TABLE OF ADMI_FILES, " | |||
| lv_i_bukrs_range | TYPE RSDS_RANGE, " | |||
| lv_ex_wrong_rrcty | TYPE RSDS_RANGE, " | |||
| lv_i_rcomp_range | TYPE RSDS_RANGE, " | |||
| lv_ex_missing_archive_status | TYPE RSDS_RANGE, " | |||
| lv_i_ryear_range | TYPE RSDS_RANGE, " | |||
| lv_ex_wrong_domane_at_interface | TYPE RSDS_RANGE, " | |||
| lv_i_deleted_archives | TYPE ADMI_RUN-STATUS, " 'Y' | |||
| lv_ex_wrong_field_table_comb | TYPE ADMI_RUN, " | |||
| lv_ex_missing_object | TYPE ADMI_RUN, " | |||
| lv_i_not_deleted_archives | TYPE ADMI_RUN-STATUS, " 'Y' | |||
| lv_ex_field_info_not_found | TYPE ADMI_RUN, " | |||
| lv_i_add_archives_wo_variant | TYPE ADMI_RUN-STATUS, " ' ' | |||
| lv_i_not_valid_archives | TYPE ADMI_RUN-NOTGUILTY, " 'Y' | |||
| lv_ex_no_arch_variant_found | TYPE ADMI_RUN. " |
|   CALL FUNCTION 'RW_FIND_ARCHIVE_VIA_FIX_FIELDS' " |
| EXPORTING | ||
| I_RLDNR_RANGE | = lv_i_rldnr_range | |
| I_CLIENT | = lv_i_client | |
| I_RRCTY_RANGE | = lv_i_rrcty_range | |
| I_BUKRS_RANGE | = lv_i_bukrs_range | |
| I_RCOMP_RANGE | = lv_i_rcomp_range | |
| I_RYEAR_RANGE | = lv_i_ryear_range | |
| I_DELETED_ARCHIVES | = lv_i_deleted_archives | |
| I_NOT_DELETED_ARCHIVES | = lv_i_not_deleted_archives | |
| I_ADD_ARCHIVES_WO_VARIANT | = lv_i_add_archives_wo_variant | |
| I_NOT_VALID_ARCHIVES | = lv_i_not_valid_archives | |
| TABLES | ||
| T_ARCH_OBJ | = lt_t_arch_obj | |
| T_FILES | = lt_t_files | |
| T_ADMI_FILES | = lt_t_admi_files | |
| EXCEPTIONS | ||
| EX_NO_ARCHIVE_FILES_FOUND = 1 | ||
| EX_INVALID_OBJECT = 2 | ||
| EX_WRONG_RRCTY = 3 | ||
| EX_MISSING_ARCHIVE_STATUS = 4 | ||
| EX_WRONG_DOMANE_AT_INTERFACE = 5 | ||
| EX_WRONG_FIELD_TABLE_COMB = 6 | ||
| EX_MISSING_OBJECT = 7 | ||
| EX_FIELD_INFO_NOT_FOUND = 8 | ||
| EX_NO_ARCH_VARIANT_FOUND = 9 | ||
| . " RW_FIND_ARCHIVE_VIA_FIX_FIELDS | ||
ABAP code using 7.40 inline data declarations to call FM RW_FIND_ARCHIVE_VIA_FIX_FIELDS
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 MANDT FROM T000 INTO @DATA(ld_i_client). | ||||
| DATA(ld_i_client) | = SY-MANDT. | |||
| "SELECT single STATUS FROM ADMI_RUN INTO @DATA(ld_i_deleted_archives). | ||||
| DATA(ld_i_deleted_archives) | = 'Y'. | |||
| "SELECT single STATUS FROM ADMI_RUN INTO @DATA(ld_i_not_deleted_archives). | ||||
| DATA(ld_i_not_deleted_archives) | = 'Y'. | |||
| "SELECT single STATUS FROM ADMI_RUN INTO @DATA(ld_i_add_archives_wo_variant). | ||||
| DATA(ld_i_add_archives_wo_variant) | = ' '. | |||
| "SELECT single NOTGUILTY FROM ADMI_RUN INTO @DATA(ld_i_not_valid_archives). | ||||
| DATA(ld_i_not_valid_archives) | = 'Y'. | |||
Search for further information about these or an SAP related objects