SAP CLASSIFY_READ_ARCHIVE_OBJECT Function Module for









CLASSIFY_READ_ARCHIVE_OBJECT is a standard classify read archive object 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 classify read archive object FM, simply by entering the name CLASSIFY_READ_ARCHIVE_OBJECT into the relevant SAP transaction such as SE37 or SE38.

Function Group: CLAR
Program Name: SAPLCLAR
Main Program: SAPLCLAR
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CLASSIFY_READ_ARCHIVE_OBJECT 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 'CLASSIFY_READ_ARCHIVE_OBJECT'"
EXPORTING
ARCHIVE_HANDLE = "Handle on Open Archive Files
* PRINT = "
* LANGUAGE = SY-LANGU "

TABLES
* KSSK_ARCH = "Allocations
* AUSP_ARCH = "Values
* SWOR_ARCH = "
* CABN_ARCH = "Characteristic Data
* CABNT_ARCH = "Characteristic Descriptions
* CAWNT_ARCH = "Value Descriptions
* KSSK_ARC = "
* AUSP_ARC = "

EXCEPTIONS
WRONG_ACCESS_TO_ARCHIVE = 1
.



IMPORTING Parameters details for CLASSIFY_READ_ARCHIVE_OBJECT

ARCHIVE_HANDLE - Handle on Open Archive Files

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

PRINT -

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

LANGUAGE -

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

TABLES Parameters details for CLASSIFY_READ_ARCHIVE_OBJECT

KSSK_ARCH - Allocations

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

AUSP_ARCH - Values

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

SWOR_ARCH -

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

CABN_ARCH - Characteristic Data

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

CABNT_ARCH - Characteristic Descriptions

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

CAWNT_ARCH - Value Descriptions

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

KSSK_ARC -

Data type: KSSK_ARC
Optional: Yes
Call by Reference: Yes

AUSP_ARC -

Data type: AUSP_ARC
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

WRONG_ACCESS_TO_ARCHIVE - Incorrect access to archive

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

Copy and paste ABAP code example for CLASSIFY_READ_ARCHIVE_OBJECT 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_kssk_arch  TYPE STANDARD TABLE OF KSSKARCH, "   
lv_archive_handle  TYPE SY-TABIX, "   
lv_wrong_access_to_archive  TYPE SY, "   
lv_print  TYPE SY-BATCH, "   
lt_ausp_arch  TYPE STANDARD TABLE OF AUSPARCH, "   
lv_language  TYPE SY-LANGU, "   SY-LANGU
lt_swor_arch  TYPE STANDARD TABLE OF SWORARCH, "   
lt_cabn_arch  TYPE STANDARD TABLE OF CABN, "   
lt_cabnt_arch  TYPE STANDARD TABLE OF CABNT, "   
lt_cawnt_arch  TYPE STANDARD TABLE OF CAWNTARCH, "   
lt_kssk_arc  TYPE STANDARD TABLE OF KSSK_ARC, "   
lt_ausp_arc  TYPE STANDARD TABLE OF AUSP_ARC. "   

  CALL FUNCTION 'CLASSIFY_READ_ARCHIVE_OBJECT'  "
    EXPORTING
         ARCHIVE_HANDLE = lv_archive_handle
         PRINT = lv_print
         LANGUAGE = lv_language
    TABLES
         KSSK_ARCH = lt_kssk_arch
         AUSP_ARCH = lt_ausp_arch
         SWOR_ARCH = lt_swor_arch
         CABN_ARCH = lt_cabn_arch
         CABNT_ARCH = lt_cabnt_arch
         CAWNT_ARCH = lt_cawnt_arch
         KSSK_ARC = lt_kssk_arc
         AUSP_ARC = lt_ausp_arc
    EXCEPTIONS
        WRONG_ACCESS_TO_ARCHIVE = 1
. " CLASSIFY_READ_ARCHIVE_OBJECT




ABAP code using 7.40 inline data declarations to call FM CLASSIFY_READ_ARCHIVE_OBJECT

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 TABIX FROM SY INTO @DATA(ld_archive_handle).
 
 
"SELECT single BATCH FROM SY INTO @DATA(ld_print).
 
 
"SELECT single LANGU FROM SY INTO @DATA(ld_language).
DATA(ld_language) = SY-LANGU.
 
 
 
 
 
 
 


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!