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
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
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).
| it_typepools | TYPE STANDARD TABLE OF ETRM_SRC,"TABLES PARAM |
| wa_typepools | LIKE LINE OF it_typepools . |
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 . |
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.