SAP Function Modules

ECATT_OBJECT_MAINTENANCE SAP Function module







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

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


Pattern for FM ECATT_OBJECT_MAINTENANCE - ECATT OBJECT MAINTENANCE





CALL FUNCTION 'ECATT_OBJECT_MAINTENANCE' "
  EXPORTING
    im_object_name =            " etobj_name    eCATT Object Name
*   im_object_version = 1       " etobj_ver     eCATT Object Version
*   im_object_type = 'ECTC'     " etobj_type    eCATT Object Type (Test Data, Script, Configuration, etc.)
*   im_object_mode = 'SHOW'     " etobj_mode    Editing Mode of eCATT Object
*   im_activetab = 'ECTC_AT'    " etactivtab    eCATT: Title Element in Foreground
*   im_client = SPACE           " etclient      User/Caller
*   im_tool_name =              " ettoolname
*   im_part = SPACE             " string
*   im_cursortab =              " etcursor_tabtype
*   im_parameter_list =         " etname_value_tabtype
  IMPORTING
    ex_title =                  " et_title
  EXCEPTIONS
    OBJECT_ALREADY_EXISTS = 1   "
    OBJECT_NOT_FOUND = 2        "
    .  "  ECATT_OBJECT_MAINTENANCE

ABAP code example for Function Module ECATT_OBJECT_MAINTENANCE





The ABAP code below is a full code listing to execute function module ECATT_OBJECT_MAINTENANCE 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_title  TYPE ET_TITLE .

DATA(ld_im_object_name) = 'Check type of data required'.
DATA(ld_im_object_version) = 'Check type of data required'.
DATA(ld_im_object_type) = 'Check type of data required'.
DATA(ld_im_object_mode) = 'Check type of data required'.
DATA(ld_im_activetab) = 'Check type of data required'.
DATA(ld_im_client) = 'Check type of data required'.
DATA(ld_im_tool_name) = 'Check type of data required'.
DATA(ld_im_part) = 'Check type of data required'.
DATA(ld_im_cursortab) = 'Check type of data required'.
DATA(ld_im_parameter_list) = 'Check type of data required'. . CALL FUNCTION 'ECATT_OBJECT_MAINTENANCE' EXPORTING im_object_name = ld_im_object_name * im_object_version = ld_im_object_version * im_object_type = ld_im_object_type * im_object_mode = ld_im_object_mode * im_activetab = ld_im_activetab * im_client = ld_im_client * im_tool_name = ld_im_tool_name * im_part = ld_im_part * im_cursortab = ld_im_cursortab * im_parameter_list = ld_im_parameter_list IMPORTING ex_title = ld_ex_title EXCEPTIONS OBJECT_ALREADY_EXISTS = 1 OBJECT_NOT_FOUND = 2 . " ECATT_OBJECT_MAINTENANCE
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 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_title  TYPE ET_TITLE ,
ld_im_object_name  TYPE ETOBJ_NAME ,
ld_im_object_version  TYPE ETOBJ_VER ,
ld_im_object_type  TYPE ETOBJ_TYPE ,
ld_im_object_mode  TYPE ETOBJ_MODE ,
ld_im_activetab  TYPE ETACTIVTAB ,
ld_im_client  TYPE ETCLIENT ,
ld_im_tool_name  TYPE ETTOOLNAME ,
ld_im_part  TYPE STRING ,
ld_im_cursortab  TYPE ETCURSOR_TABTYPE ,
ld_im_parameter_list  TYPE ETNAME_VALUE_TABTYPE .

ld_im_object_name = 'Check type of data required'.
ld_im_object_version = 'Check type of data required'.
ld_im_object_type = 'Check type of data required'.
ld_im_object_mode = 'Check type of data required'.
ld_im_activetab = 'Check type of data required'.
ld_im_client = 'Check type of data required'.
ld_im_tool_name = 'Check type of data required'.
ld_im_part = 'Check type of data required'.
ld_im_cursortab = 'Check type of data required'.
ld_im_parameter_list = 'Check type of data required'.

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