SAP RW_ARCHIVECHECK_VIA_FIX_FIELDS Function Module for









RW_ARCHIVECHECK_VIA_FIX_FIELDS is a standard rw archivecheck 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 archivecheck via fix fields FM, simply by entering the name RW_ARCHIVECHECK_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_ARCHIVECHECK_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_ARCHIVECHECK_VIA_FIX_FIELDS'"
EXPORTING
I_PROGRAMNAME = "
I_TABLENAME = "
I_ARCH_OBJECT = "
* I_DELETED_ARCHIVES = 'Y' "
* I_NOT_DELETED_ARCHIVES = 'Y' "
* I_ARCHIVES_WO_VARIANT = "
* I_CLIENT = SY-MANDT "

TABLES
* T_FILES_SELOPT = "
* T_ADMI_FILES = "

EXCEPTIONS
WRONG_REPORT_TYPE_RRCTY = 1 NO_RELEVANT_ARCHIVE_FILES = 2
.



IMPORTING Parameters details for RW_ARCHIVECHECK_VIA_FIX_FIELDS

I_PROGRAMNAME -

Data type: TRDIR-NAME
Optional: No
Call by Reference: No ( called with pass by value option)

I_TABLENAME -

Data type: T804A-TAB
Optional: No
Call by Reference: No ( called with pass by value option)

I_ARCH_OBJECT -

Data type: ARCH_OBJ-OBJECT
Optional: No
Call by Reference: No ( called with pass by value option)

I_DELETED_ARCHIVES -

Data type: ADMI_RUN-STATUS
Default: 'Y'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_NOT_DELETED_ARCHIVES -

Data type: ADMI_RUN-STATUS
Default: 'Y'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ARCHIVES_WO_VARIANT -

Data type: ADMI_RUN-STATUS
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CLIENT -

Data type: T000-MANDT
Default: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for RW_ARCHIVECHECK_VIA_FIX_FIELDS

T_FILES_SELOPT -

Data type: RNG_ARCHIV
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_ADMI_FILES -

Data type: ADMI_FILES
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

WRONG_REPORT_TYPE_RRCTY -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_RELEVANT_ARCHIVE_FILES -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for RW_ARCHIVECHECK_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:
lv_i_programname  TYPE TRDIR-NAME, "   
lt_t_files_selopt  TYPE STANDARD TABLE OF RNG_ARCHIV, "   
lv_wrong_report_type_rrcty  TYPE RNG_ARCHIV, "   
lv_i_tablename  TYPE T804A-TAB, "   
lt_t_admi_files  TYPE STANDARD TABLE OF ADMI_FILES, "   
lv_no_relevant_archive_files  TYPE ADMI_FILES, "   
lv_i_arch_object  TYPE ARCH_OBJ-OBJECT, "   
lv_i_deleted_archives  TYPE ADMI_RUN-STATUS, "   'Y'
lv_i_not_deleted_archives  TYPE ADMI_RUN-STATUS, "   'Y'
lv_i_archives_wo_variant  TYPE ADMI_RUN-STATUS, "   
lv_i_client  TYPE T000-MANDT. "   SY-MANDT

  CALL FUNCTION 'RW_ARCHIVECHECK_VIA_FIX_FIELDS'  "
    EXPORTING
         I_PROGRAMNAME = lv_i_programname
         I_TABLENAME = lv_i_tablename
         I_ARCH_OBJECT = lv_i_arch_object
         I_DELETED_ARCHIVES = lv_i_deleted_archives
         I_NOT_DELETED_ARCHIVES = lv_i_not_deleted_archives
         I_ARCHIVES_WO_VARIANT = lv_i_archives_wo_variant
         I_CLIENT = lv_i_client
    TABLES
         T_FILES_SELOPT = lt_t_files_selopt
         T_ADMI_FILES = lt_t_admi_files
    EXCEPTIONS
        WRONG_REPORT_TYPE_RRCTY = 1
        NO_RELEVANT_ARCHIVE_FILES = 2
. " RW_ARCHIVECHECK_VIA_FIX_FIELDS




ABAP code using 7.40 inline data declarations to call FM RW_ARCHIVECHECK_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 NAME FROM TRDIR INTO @DATA(ld_i_programname).
 
 
 
"SELECT single TAB FROM T804A INTO @DATA(ld_i_tablename).
 
 
 
"SELECT single OBJECT FROM ARCH_OBJ INTO @DATA(ld_i_arch_object).
 
"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_archives_wo_variant).
 
"SELECT single MANDT FROM T000 INTO @DATA(ld_i_client).
DATA(ld_i_client) = SY-MANDT.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!