SAP Function Modules

ECATT_READ_CAT5 SAP Function module







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

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


Pattern for FM ECATT_READ_CAT5 - ECATT READ CAT5





CALL FUNCTION 'ECATT_READ_CAT5' "
  EXPORTING
    im_ablnr =                  " catnr         CATT - Test case
  IMPORTING
    ex_tnode02_a =              " tnode02_a     Test Case Attributes: Management
    ex_tnode02_ac =             " tnode02_ac    Test case attributes: CATT-specific
  TABLES
    t_tnode02_at =              " tnode02_at    Test Case Attributes: Short Texts
    t_catf =                    " catf          CATT: Subsequent test run data
    t_catp =                    " catp          CATT - Parameters and variants
    t_catv =                    " catv          CATT: Variable Texts
  EXCEPTIONS
    NOT_FOUND = 1               "
    .  "  ECATT_READ_CAT5

ABAP code example for Function Module ECATT_READ_CAT5





The ABAP code below is a full code listing to execute function module ECATT_READ_CAT5 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_ex_tnode02_a  TYPE TNODE02_A ,
ld_ex_tnode02_ac  TYPE TNODE02_AC ,
it_t_tnode02_at  TYPE STANDARD TABLE OF TNODE02_AT,"TABLES PARAM
wa_t_tnode02_at  LIKE LINE OF it_t_tnode02_at ,
it_t_catf  TYPE STANDARD TABLE OF CATF,"TABLES PARAM
wa_t_catf  LIKE LINE OF it_t_catf ,
it_t_catp  TYPE STANDARD TABLE OF CATP,"TABLES PARAM
wa_t_catp  LIKE LINE OF it_t_catp ,
it_t_catv  TYPE STANDARD TABLE OF CATV,"TABLES PARAM
wa_t_catv  LIKE LINE OF it_t_catv .

DATA(ld_im_ablnr) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_tnode02_at to it_t_tnode02_at.

"populate fields of struture and append to itab
append wa_t_catf to it_t_catf.

"populate fields of struture and append to itab
append wa_t_catp to it_t_catp.

"populate fields of struture and append to itab
append wa_t_catv to it_t_catv. . CALL FUNCTION 'ECATT_READ_CAT5' EXPORTING im_ablnr = ld_im_ablnr IMPORTING ex_tnode02_a = ld_ex_tnode02_a ex_tnode02_ac = ld_ex_tnode02_ac TABLES t_tnode02_at = it_t_tnode02_at t_catf = it_t_catf t_catp = it_t_catp t_catv = it_t_catv EXCEPTIONS NOT_FOUND = 1 . " ECATT_READ_CAT5
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_ex_tnode02_a  TYPE TNODE02_A ,
ld_im_ablnr  TYPE CATNR ,
it_t_tnode02_at  TYPE STANDARD TABLE OF TNODE02_AT ,
wa_t_tnode02_at  LIKE LINE OF it_t_tnode02_at,
ld_ex_tnode02_ac  TYPE TNODE02_AC ,
it_t_catf  TYPE STANDARD TABLE OF CATF ,
wa_t_catf  LIKE LINE OF it_t_catf,
it_t_catp  TYPE STANDARD TABLE OF CATP ,
wa_t_catp  LIKE LINE OF it_t_catp,
it_t_catv  TYPE STANDARD TABLE OF CATV ,
wa_t_catv  LIKE LINE OF it_t_catv.

ld_im_ablnr = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_tnode02_at to it_t_tnode02_at.

"populate fields of struture and append to itab
append wa_t_catf to it_t_catf.

"populate fields of struture and append to itab
append wa_t_catp to it_t_catp.

"populate fields of struture and append to itab
append wa_t_catv to it_t_catv.

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