SAP ECATT_READ_ATTRIBUTES Function Module for









ECATT_READ_ATTRIBUTES is a standard ecatt read attributes 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 attributes FM, simply by entering the name ECATT_READ_ATTRIBUTES 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_ATTRIBUTES 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_ATTRIBUTES'"
EXPORTING
IM_NAME = "Class Name or Interface Name

IMPORTING
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_CLASS_DESCR = "Name of a Node in DOM

TABLES
ATTR_DESCR = "
.



IMPORTING Parameters details for ECATT_READ_ATTRIBUTES

IM_NAME - Class Name or Interface Name

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

EXPORTING Parameters details for ECATT_READ_ATTRIBUTES

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_CLASS_DESCR - Name of a Node in DOM

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

TABLES Parameters details for ECATT_READ_ATTRIBUTES

ATTR_DESCR -

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

Copy and paste ABAP code example for ECATT_READ_ATTRIBUTES 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_rc  TYPE SY-SUBRC, "   
lv_im_name  TYPE CHAR30, "   
lt_attr_descr  TYPE STANDARD TABLE OF ETXML_ATTRDESC_TABTYPE, "   
lv_ex_typedescr  TYPE DCXMLTYPED, "   
lv_ex_parmdescr  TYPE DCXMLFUPAS, "   
lv_ex_class_descr  TYPE ETDOM_NAME. "   

  CALL FUNCTION 'ECATT_READ_ATTRIBUTES'  "
    EXPORTING
         IM_NAME = lv_im_name
    IMPORTING
         EX_RC = lv_ex_rc
         EX_TYPEDESCR = lv_ex_typedescr
         EX_PARMDESCR = lv_ex_parmdescr
         EX_CLASS_DESCR = lv_ex_class_descr
    TABLES
         ATTR_DESCR = lt_attr_descr
. " ECATT_READ_ATTRIBUTES




ABAP code using 7.40 inline data declarations to call FM ECATT_READ_ATTRIBUTES

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!