SAP ECATT_TEST_GENERIC Function Module for









ECATT_TEST_GENERIC is a standard ecatt test generic 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 ecatt test generic FM, simply by entering the name ECATT_TEST_GENERIC into the relevant SAP transaction such as SE37 or SE38.

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



Function ECATT_TEST_GENERIC 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 'ECATT_TEST_GENERIC'"
EXPORTING
* IM_C = "
* IT_ANYTAB = "
* IT_HASHED = "
* IT_SORTED = "
* IT_STANDA = "
* IT_TABLE = "
* IS_ANY = "
* IS_NOTYPE = "
* IS_COMPLEX_STRUC = "
* IS_INNER_STRUC = "
* IT_INNER_TABLE = "
* IM_N = "
* IS_INNER_TAB_LINE = "
* IM_ELEM1_NUM10 = "
* IM_ELEM2_STRING = "
* IM_P = "
* IM_X = "
* IM_NUM = "
* IM_XSEQ = "
* IM_CSEQ = "
* IM_CLIKE = "
* IM_SIMPLE = "

IMPORTING
EX_C = "
ET_ANYTAB = "
ET_HASHED = "
ET_SORTED = "
ET_STANDA = "
ET_TABLE = "
ES_ANY = "
ES_NOTYPE = "
RESULT = "
ES_COMPLEX_STRUC = "
ES_INNER_STRUC = "
EX_N = "
ET_INNER_TABLE = "
ES_INNER_TAB_LINE = "
EX_ELEM1_NUM10 = "
EX_ELEM2_STRING = "
EX_P = "
EX_X = "
EX_NUM = "
EX_XSEQ = "
EX_CSEQ = "
EX_CLIKE = "
EX_SIMPLE = "

TABLES
* TT_ANY = "
* TT_WITHOUT = "

EXCEPTIONS
TESTAUSNAHME = 1
.



IMPORTING Parameters details for ECATT_TEST_GENERIC

IM_C -

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

IT_ANYTAB -

Data type: ANY TABLE
Optional: Yes
Call by Reference: Yes

IT_HASHED -

Data type: HASHED TABLE
Optional: Yes
Call by Reference: Yes

IT_SORTED -

Data type: SORTED TABLE
Optional: Yes
Call by Reference: Yes

IT_STANDA -

Data type: STANDARD TABLE
Optional: Yes
Call by Reference: Yes

IT_TABLE -

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

IS_ANY -

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

IS_NOTYPE -

Data type:
Optional: Yes
Call by Reference: Yes

IS_COMPLEX_STRUC -

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

IS_INNER_STRUC -

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

IT_INNER_TABLE -

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

IM_N -

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

IS_INNER_TAB_LINE -

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

IM_ELEM1_NUM10 -

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

IM_ELEM2_STRING -

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

IM_P -

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

IM_X -

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

IM_NUM -

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

IM_XSEQ -

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

IM_CSEQ -

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

IM_CLIKE -

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

IM_SIMPLE -

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

EXPORTING Parameters details for ECATT_TEST_GENERIC

EX_C -

Data type: C
Optional: No
Call by Reference: Yes

ET_ANYTAB -

Data type: ANY TABLE
Optional: No
Call by Reference: Yes

ET_HASHED -

Data type: HASHED TABLE
Optional: No
Call by Reference: Yes

ET_SORTED -

Data type: SORTED TABLE
Optional: No
Call by Reference: Yes

ET_STANDA -

Data type: STANDARD TABLE
Optional: No
Call by Reference: Yes

ET_TABLE -

Data type: TABLE
Optional: No
Call by Reference: Yes

ES_ANY -

Data type: ANY
Optional: No
Call by Reference: Yes

ES_NOTYPE -

Data type:
Optional: No
Call by Reference: Yes

RESULT -

Data type: STRING
Optional: No
Call by Reference: Yes

ES_COMPLEX_STRUC -

Data type: ECATT_LOOP_CHECK
Optional: No
Call by Reference: Yes

ES_INNER_STRUC -

Data type: ETDOM_ALL
Optional: No
Call by Reference: Yes

EX_N -

Data type: N
Optional: No
Call by Reference: Yes

ET_INNER_TABLE -

Data type: ETPAR_DEF_TABTYPE
Optional: No
Call by Reference: Yes

ES_INNER_TAB_LINE -

Data type: ETPAR_DEF
Optional: No
Call by Reference: Yes

EX_ELEM1_NUM10 -

Data type: NUM10
Optional: No
Call by Reference: Yes

EX_ELEM2_STRING -

Data type: STRING
Optional: No
Call by Reference: Yes

EX_P -

Data type: P
Optional: No
Call by Reference: Yes

EX_X -

Data type: X
Optional: No
Call by Reference: Yes

EX_NUM -

Data type: NUMERIC
Optional: No
Call by Reference: Yes

EX_XSEQ -

Data type: XSEQUENCE
Optional: No
Call by Reference: Yes

EX_CSEQ -

Data type: CSEQUENCE
Optional: No
Call by Reference: Yes

EX_CLIKE -

Data type: CLIKE
Optional: No
Call by Reference: Yes

EX_SIMPLE -

Data type: SIMPLE
Optional: No
Call by Reference: Yes

TABLES Parameters details for ECATT_TEST_GENERIC

TT_ANY -

Data type: STANDARD TABLE
Optional: Yes
Call by Reference: Yes

TT_WITHOUT -

Data type:
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

TESTAUSNAHME -

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

Copy and paste ABAP code example for ECATT_TEST_GENERIC 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_ex_c  TYPE C, "   
lv_im_c  TYPE C, "   
lt_tt_any  TYPE STANDARD TABLE OF STANDARD TABLE, "   
lv_testausnahme  TYPE STANDARD TABLE, "   
lv_et_anytab  TYPE ANY TABLE, "   
lv_it_anytab  TYPE ANY TABLE, "   
lv_et_hashed  TYPE HASHED TABLE, "   
lv_it_hashed  TYPE HASHED TABLE, "   
lv_et_sorted  TYPE SORTED TABLE, "   
lv_it_sorted  TYPE SORTED TABLE, "   
lv_et_standa  TYPE STANDARD TABLE, "   
lv_it_standa  TYPE STANDARD TABLE, "   
lv_et_table  TYPE TABLE, "   
lv_it_table  TYPE TABLE, "   
lv_es_any  TYPE ANY, "   
lv_is_any  TYPE ANY, "   
lv_es_notype  TYPE ANY, "   
lv_is_notype  TYPE ANY, "   
lv_result  TYPE STRING, "   
lv_is_complex_struc  TYPE ECATT_LOOP_CHECK, "   
lv_is_inner_struc  TYPE ETDOM_ALL, "   
lv_es_complex_struc  TYPE ECATT_LOOP_CHECK, "   
lv_es_inner_struc  TYPE ETDOM_ALL, "   
lv_it_inner_table  TYPE ETPAR_DEF_TABTYPE, "   
lv_ex_n  TYPE N, "   
lv_im_n  TYPE N, "   
lt_tt_without  TYPE STANDARD TABLE OF N, "   
lv_et_inner_table  TYPE ETPAR_DEF_TABTYPE, "   
lv_is_inner_tab_line  TYPE ETPAR_DEF, "   
lv_im_elem1_num10  TYPE NUM10, "   
lv_es_inner_tab_line  TYPE ETPAR_DEF, "   
lv_ex_elem1_num10  TYPE NUM10, "   
lv_im_elem2_string  TYPE STRING, "   
lv_ex_elem2_string  TYPE STRING, "   
lv_ex_p  TYPE P, "   
lv_im_p  TYPE P, "   
lv_ex_x  TYPE X, "   
lv_im_x  TYPE X, "   
lv_ex_num  TYPE NUMERIC, "   
lv_im_num  TYPE NUMERIC, "   
lv_ex_xseq  TYPE XSEQUENCE, "   
lv_im_xseq  TYPE XSEQUENCE, "   
lv_ex_cseq  TYPE CSEQUENCE, "   
lv_im_cseq  TYPE CSEQUENCE, "   
lv_ex_clike  TYPE CLIKE, "   
lv_im_clike  TYPE CLIKE, "   
lv_ex_simple  TYPE SIMPLE, "   
lv_im_simple  TYPE SIMPLE. "   

  CALL FUNCTION 'ECATT_TEST_GENERIC'  "
    EXPORTING
         IM_C = lv_im_c
         IT_ANYTAB = lv_it_anytab
         IT_HASHED = lv_it_hashed
         IT_SORTED = lv_it_sorted
         IT_STANDA = lv_it_standa
         IT_TABLE = lv_it_table
         IS_ANY = lv_is_any
         IS_NOTYPE = lv_is_notype
         IS_COMPLEX_STRUC = lv_is_complex_struc
         IS_INNER_STRUC = lv_is_inner_struc
         IT_INNER_TABLE = lv_it_inner_table
         IM_N = lv_im_n
         IS_INNER_TAB_LINE = lv_is_inner_tab_line
         IM_ELEM1_NUM10 = lv_im_elem1_num10
         IM_ELEM2_STRING = lv_im_elem2_string
         IM_P = lv_im_p
         IM_X = lv_im_x
         IM_NUM = lv_im_num
         IM_XSEQ = lv_im_xseq
         IM_CSEQ = lv_im_cseq
         IM_CLIKE = lv_im_clike
         IM_SIMPLE = lv_im_simple
    IMPORTING
         EX_C = lv_ex_c
         ET_ANYTAB = lv_et_anytab
         ET_HASHED = lv_et_hashed
         ET_SORTED = lv_et_sorted
         ET_STANDA = lv_et_standa
         ET_TABLE = lv_et_table
         ES_ANY = lv_es_any
         ES_NOTYPE = lv_es_notype
         RESULT = lv_result
         ES_COMPLEX_STRUC = lv_es_complex_struc
         ES_INNER_STRUC = lv_es_inner_struc
         EX_N = lv_ex_n
         ET_INNER_TABLE = lv_et_inner_table
         ES_INNER_TAB_LINE = lv_es_inner_tab_line
         EX_ELEM1_NUM10 = lv_ex_elem1_num10
         EX_ELEM2_STRING = lv_ex_elem2_string
         EX_P = lv_ex_p
         EX_X = lv_ex_x
         EX_NUM = lv_ex_num
         EX_XSEQ = lv_ex_xseq
         EX_CSEQ = lv_ex_cseq
         EX_CLIKE = lv_ex_clike
         EX_SIMPLE = lv_ex_simple
    TABLES
         TT_ANY = lt_tt_any
         TT_WITHOUT = lt_tt_without
    EXCEPTIONS
        TESTAUSNAHME = 1
. " ECATT_TEST_GENERIC




ABAP code using 7.40 inline data declarations to call FM ECATT_TEST_GENERIC

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!