CN_TX_TEXT_PROCESS 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 CN_TX_TEXT_PROCESS into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
CNTX
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'CN_TX_TEXT_PROCESS' "
EXPORTING
* copy_language = SY-LANGU " stxh-tdspras Language key for reference when creating (I)
* copy_name = SPACE " stxh-tdname Name of the reference when creating (I)
* editor_title = SPACE " ttxit-tdtext Object name for editor header line
* i_function = 'A' " tc10-trtyp Editing function (H/A/V/L)
* i_inline1 = CON_NOT_USED " First line (inline)
* language = SY-LANGU " stxh-tdspras Language key
* language = SY-LANGU " stxh-tdspras LANGUAGE invalid
name = " stxh-tdname
name = " stxh-tdname Text name
name = " stxh-tdname NAME invalid
* no_display = SPACE " c When creating with reference: do not call up editor
* flg_object_list = " rc27x-flg_sel
* object = 'PMS' " stxh-tdobject
* object = 'PMS' " stxh-tdobject Texts: Application Object
* object = 'PMS' " stxh-tdobject OBJECT invalid
* tdid = 'PSTX' " stxh-tdid TDID invalid
* tdid = 'PSTX' " stxh-tdid Text ID
* tdid = 'PSTX' " stxh-tdid
IMPORTING
e_function = " tc10-trtyp Executed function (H/A/V/L)
e_inline1 = " First text line
e_thead = " thead
e_userexit = " itcer-userexit
EXCEPTIONS
FUNCTION = 1 " Function
FUNCTION = 1 " I_FUNCTION invalid
LANGUAGE = 2 " Language key
LANGUAGE = 2 " LANGUAGE invalid
NAME = 3 " Text name
NAME = 3 "
NAME = 3 " NAME invalid
NOT_FOUND = 4 " Text not found
OBJECT = 5 "
OBJECT = 5 " OBJECT invalid
OBJECT = 5 " Texts: Application Object
TDID = 6 " TDID invalid
TDID = 6 " Text ID
TDID = 6 "
. " CN_TX_TEXT_PROCESS
The ABAP code below is a full code listing to execute function module CN_TX_TEXT_PROCESS 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).
| ld_e_function | TYPE TC10-TRTYP , |
| ld_e_inline1 | TYPE STRING , |
| ld_e_thead | TYPE THEAD , |
| ld_e_userexit | TYPE ITCER-USEREXIT . |
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_e_function | TYPE TC10-TRTYP , |
| ld_copy_language | TYPE STXH-TDSPRAS , |
| ld_e_inline1 | TYPE STRING , |
| ld_copy_name | TYPE STXH-TDNAME , |
| ld_editor_title | TYPE TTXIT-TDTEXT , |
| ld_e_thead | TYPE THEAD , |
| ld_i_function | TYPE TC10-TRTYP , |
| ld_e_userexit | TYPE ITCER-USEREXIT , |
| ld_i_inline1 | TYPE STRING , |
| ld_language | TYPE STXH-TDSPRAS , |
| ld_language | TYPE STXH-TDSPRAS , |
| ld_name | TYPE STXH-TDNAME , |
| ld_name | TYPE STXH-TDNAME , |
| ld_name | TYPE STXH-TDNAME , |
| ld_no_display | TYPE C , |
| ld_flg_object_list | TYPE RC27X-FLG_SEL , |
| ld_object | TYPE STXH-TDOBJECT , |
| ld_object | TYPE STXH-TDOBJECT , |
| ld_object | TYPE STXH-TDOBJECT , |
| ld_tdid | TYPE STXH-TDID , |
| ld_tdid | TYPE STXH-TDID , |
| ld_tdid | TYPE STXH-TDID . |
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 CN_TX_TEXT_PROCESS or its description.