SAP Function Modules

J_8A3_L_GET_ARCHIV_OBJECT SAP Function module - Start DesktopLink from ODMA







J_8A3_L_GET_ARCHIV_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 J_8A3_L_GET_ARCHIV_OBJECT into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: J8A3
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM J_8A3_L_GET_ARCHIV_OBJECT - J 8A3 L GET ARCHIV OBJECT





CALL FUNCTION 'J_8A3_L_GET_ARCHIV_OBJECT' "Start DesktopLink from ODMA
* EXPORTING
*   p_szenario_typ =            " j_8a3t0010-sz_typ
  IMPORTING
    p_rc =                      " sy-subrc
  TABLES
    pt_parameter_ix =           " j_8a3s0005
  EXCEPTIONS
    USER_CANCEL = 1             "
    NO_DOC_CLASS_LIKE_SUFFIX = 2  "
    NO_DOC_TYPE_WITH_DOC_CLASS = 3  "
    NO_SZENARIOS = 4            "
    NO_FILENAME = 5             "
    INTERNAL_ERROR = 6          "
    CUSTOMIZING_ERROR = 7       "
    NO_AUTHORITY = 8            "
    USEREXIT_ERROR = 9          "
    DOCUMENT_LOCKED = 10        "
    .  "  J_8A3_L_GET_ARCHIV_OBJECT

ABAP code example for Function Module J_8A3_L_GET_ARCHIV_OBJECT





The ABAP code below is a full code listing to execute function module J_8A3_L_GET_ARCHIV_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_p_rc  TYPE SY-SUBRC ,
it_pt_parameter_ix  TYPE STANDARD TABLE OF J_8A3S0005,"TABLES PARAM
wa_pt_parameter_ix  LIKE LINE OF it_pt_parameter_ix .


SELECT single SZ_TYP
FROM J_8A3T0010
INTO @DATA(ld_p_szenario_typ).


"populate fields of struture and append to itab
append wa_pt_parameter_ix to it_pt_parameter_ix. . CALL FUNCTION 'J_8A3_L_GET_ARCHIV_OBJECT' * EXPORTING * p_szenario_typ = ld_p_szenario_typ IMPORTING p_rc = ld_p_rc TABLES pt_parameter_ix = it_pt_parameter_ix EXCEPTIONS USER_CANCEL = 1 NO_DOC_CLASS_LIKE_SUFFIX = 2 NO_DOC_TYPE_WITH_DOC_CLASS = 3 NO_SZENARIOS = 4 NO_FILENAME = 5 INTERNAL_ERROR = 6 CUSTOMIZING_ERROR = 7 NO_AUTHORITY = 8 USEREXIT_ERROR = 9 DOCUMENT_LOCKED = 10 . " J_8A3_L_GET_ARCHIV_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 ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 8. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 9. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 10. "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_p_rc  TYPE SY-SUBRC ,
ld_p_szenario_typ  TYPE J_8A3T0010-SZ_TYP ,
it_pt_parameter_ix  TYPE STANDARD TABLE OF J_8A3S0005 ,
wa_pt_parameter_ix  LIKE LINE OF it_pt_parameter_ix.


SELECT single SZ_TYP
FROM J_8A3T0010
INTO ld_p_szenario_typ.


"populate fields of struture and append to itab
append wa_pt_parameter_ix to it_pt_parameter_ix.

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 J_8A3_L_GET_ARCHIV_OBJECT or its description.