SAP Function Modules

BKK_ARCH_READ_OBJECT SAP Function module - Read Object from Archive







BKK_ARCH_READ_OBJECT is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name BKK_ARCH_READ_OBJECT into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: FB0ARCH
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM BKK_ARCH_READ_OBJECT - BKK ARCH READ OBJECT





CALL FUNCTION 'BKK_ARCH_READ_OBJECT' "Read Object from Archive
  EXPORTING
    i_archobject =              " bkk_arch_object
    i_handle =                  " sy-tabix
    i_s_param =                 "
*   i_xtest = 'X'               " boole-boole
*   i_archactv =                " i
  IMPORTING
    e_xvalid =                  " boole-boole
    e_objectid =                " bkk_arch_objectid
    e_archrun =                 " bkk_archive_run
    e_arkey =                   " bkk_archive_name
    e_archobjgrpid =            " bkk_archobjgrpid
    e_archdate =                " sy-datum
    e_aobjgrpidpat =            " bkk_archobjgrpid  Group of Archived Data Objects
  EXCEPTIONS
    END_OF_FILE = 1             "
    FILE_ERROR = 2              "
    .  "  BKK_ARCH_READ_OBJECT

ABAP code example for Function Module BKK_ARCH_READ_OBJECT





The ABAP code below is a full code listing to execute function module BKK_ARCH_READ_OBJECT including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_e_xvalid  TYPE BOOLE-BOOLE ,
ld_e_objectid  TYPE BKK_ARCH_OBJECTID ,
ld_e_archrun  TYPE BKK_ARCHIVE_RUN ,
ld_e_arkey  TYPE BKK_ARCHIVE_NAME ,
ld_e_archobjgrpid  TYPE BKK_ARCHOBJGRPID ,
ld_e_archdate  TYPE SY-DATUM ,
ld_e_aobjgrpidpat  TYPE BKK_ARCHOBJGRPID .

DATA(ld_i_archobject) = 'Check type of data required'.
DATA(ld_i_handle) = '123 '.
DATA(ld_i_s_param) = 'some text here'.

DATA(ld_i_xtest) = some text here
DATA(ld_i_archactv) = '123 '. . CALL FUNCTION 'BKK_ARCH_READ_OBJECT' EXPORTING i_archobject = ld_i_archobject i_handle = ld_i_handle i_s_param = ld_i_s_param * i_xtest = ld_i_xtest * i_archactv = ld_i_archactv IMPORTING e_xvalid = ld_e_xvalid e_objectid = ld_e_objectid e_archrun = ld_e_archrun e_arkey = ld_e_arkey e_archobjgrpid = ld_e_archobjgrpid e_archdate = ld_e_archdate e_aobjgrpidpat = ld_e_aobjgrpidpat EXCEPTIONS END_OF_FILE = 1 FILE_ERROR = 2 . " BKK_ARCH_READ_OBJECT
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_e_xvalid  TYPE BOOLE-BOOLE ,
ld_i_archobject  TYPE BKK_ARCH_OBJECT ,
ld_e_objectid  TYPE BKK_ARCH_OBJECTID ,
ld_i_handle  TYPE SY-TABIX ,
ld_e_archrun  TYPE BKK_ARCHIVE_RUN ,
ld_i_s_param  TYPE STRING ,
ld_e_arkey  TYPE BKK_ARCHIVE_NAME ,
ld_i_xtest  TYPE BOOLE-BOOLE ,
ld_e_archobjgrpid  TYPE BKK_ARCHOBJGRPID ,
ld_i_archactv  TYPE I ,
ld_e_archdate  TYPE SY-DATUM ,
ld_e_aobjgrpidpat  TYPE BKK_ARCHOBJGRPID .

ld_i_archobject = '123 '.
ld_i_handle = '123 '.
ld_i_s_param = 'some text here'.

ld_i_xtest = some text here
ld_i_archactv = '123 '.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name BKK_ARCH_READ_OBJECT or its description.