SAP ECATT_READ_METHOD Function Module for









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

Function Group: ECATT_RTTI
Program Name: SAPLECATT_RTTI
Main Program: SAPLECATT_RTTI
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function ECATT_READ_METHOD 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_READ_METHOD'"
EXPORTING
IM_NAME = "Method Name
IM_CLASSNAME = "Class Name

IMPORTING
EX_METHDESC = "Method Description
EX_RC = "Return Value, Return Value After ABAP Statements
EX_TYPEDESCR = "Type Descriptions for Conversion to XML
EX_PARMDESCR = "Description of Func. Module Parameter for Conversion to XML
EX_METHOD_DESCR = "Name of a Node in DOM
.



IMPORTING Parameters details for ECATT_READ_METHOD

IM_NAME - Method Name

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

IM_CLASSNAME - Class Name

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

EXPORTING Parameters details for ECATT_READ_METHOD

EX_METHDESC - Method Description

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

EX_RC - Return Value, Return Value After ABAP Statements

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

EX_TYPEDESCR - Type Descriptions for Conversion to XML

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

EX_PARMDESCR - Description of Func. Module Parameter for Conversion to XML

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

EX_METHOD_DESCR - Name of a Node in DOM

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

Copy and paste ABAP code example for ECATT_READ_METHOD 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_im_name  TYPE ETXML_METHNAME, "   
lv_ex_methdesc  TYPE ETXML_METHDESC, "   
lv_ex_rc  TYPE SY-SUBRC, "   
lv_im_classname  TYPE CHAR30, "   
lv_ex_typedescr  TYPE DCXMLTYPED, "   
lv_ex_parmdescr  TYPE DCXMLFUPAS, "   
lv_ex_method_descr  TYPE ETDOM_NAME. "   

  CALL FUNCTION 'ECATT_READ_METHOD'  "
    EXPORTING
         IM_NAME = lv_im_name
         IM_CLASSNAME = lv_im_classname
    IMPORTING
         EX_METHDESC = lv_ex_methdesc
         EX_RC = lv_ex_rc
         EX_TYPEDESCR = lv_ex_typedescr
         EX_PARMDESCR = lv_ex_parmdescr
         EX_METHOD_DESCR = lv_ex_method_descr
. " ECATT_READ_METHOD




ABAP code using 7.40 inline data declarations to call FM ECATT_READ_METHOD

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 SUBRC FROM SY INTO @DATA(ld_ex_rc).
 
 
 
 
 


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!