SAP Function Modules

ECATT_ADD_INFO_TO_DOC SAP Function module







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

Associated Function Group: SETRM
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM ECATT_ADD_INFO_TO_DOC - ECATT ADD INFO TO DOC





CALL FUNCTION 'ECATT_ADD_INFO_TO_DOC' "
  EXPORTING
    name_of_type =              " rs38l_typ     Parameter Name
*   abap_len =                  " etintlen      Internal Length in Bytes
*   par_interface_type =        " rs38l_kind    Parameter type
*   par_optional =              " rs38l_opti    Optional parameters
*   par_iskey =                 " char1         Key Field
*   append_tab_line =           " char1
*   im_objref =                 " etonoff
*   im_kind =                   " char1
*   im_typekind =               " char1
*   im_rfcdest =                " rfcdest
* TABLES
*   typepools =                 " etrm_src
  CHANGING
    text =                      " string        Short Text
    .  "  ECATT_ADD_INFO_TO_DOC

ABAP code example for Function Module ECATT_ADD_INFO_TO_DOC





The ABAP code below is a full code listing to execute function module ECATT_ADD_INFO_TO_DOC 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:
it_typepools  TYPE STANDARD TABLE OF ETRM_SRC,"TABLES PARAM
wa_typepools  LIKE LINE OF it_typepools .

DATA(ld_text) = 'Check type of data required'.
DATA(ld_name_of_type) = 'Check type of data required'.
DATA(ld_abap_len) = 'Check type of data required'.
DATA(ld_par_interface_type) = 'Check type of data required'.
DATA(ld_par_optional) = 'Check type of data required'.
DATA(ld_par_iskey) = 'Check type of data required'.
DATA(ld_append_tab_line) = 'Check type of data required'.
DATA(ld_im_objref) = 'Check type of data required'.
DATA(ld_im_kind) = 'Check type of data required'.
DATA(ld_im_typekind) = 'Check type of data required'.
DATA(ld_im_rfcdest) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_typepools to it_typepools. . CALL FUNCTION 'ECATT_ADD_INFO_TO_DOC' EXPORTING name_of_type = ld_name_of_type * abap_len = ld_abap_len * par_interface_type = ld_par_interface_type * par_optional = ld_par_optional * par_iskey = ld_par_iskey * append_tab_line = ld_append_tab_line * im_objref = ld_im_objref * im_kind = ld_im_kind * im_typekind = ld_im_typekind * im_rfcdest = ld_im_rfcdest * TABLES * typepools = it_typepools CHANGING text = ld_text . " ECATT_ADD_INFO_TO_DOC
IF SY-SUBRC EQ 0. "All OK 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_text  TYPE STRING ,
ld_name_of_type  TYPE RS38L_TYP ,
it_typepools  TYPE STANDARD TABLE OF ETRM_SRC ,
wa_typepools  LIKE LINE OF it_typepools,
ld_abap_len  TYPE ETINTLEN ,
ld_par_interface_type  TYPE RS38L_KIND ,
ld_par_optional  TYPE RS38L_OPTI ,
ld_par_iskey  TYPE CHAR1 ,
ld_append_tab_line  TYPE CHAR1 ,
ld_im_objref  TYPE ETONOFF ,
ld_im_kind  TYPE CHAR1 ,
ld_im_typekind  TYPE CHAR1 ,
ld_im_rfcdest  TYPE RFCDEST .

ld_text = 'Check type of data required'.
ld_name_of_type = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_typepools to it_typepools.
ld_abap_len = 'Check type of data required'.
ld_par_interface_type = 'Check type of data required'.
ld_par_optional = 'Check type of data required'.
ld_par_iskey = 'Check type of data required'.
ld_append_tab_line = 'Check type of data required'.
ld_im_objref = 'Check type of data required'.
ld_im_kind = 'Check type of data required'.
ld_im_typekind = 'Check type of data required'.
ld_im_rfcdest = '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_ADD_INFO_TO_DOC or its description.