SAP ICL_FREETEXT_UPDATE Function Module for Change User-Defined Text Module in Current Memory
ICL_FREETEXT_UPDATE is a standard icl freetext update SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Change User-Defined Text Module in Current Memory processing and below is the pattern details for this FM, 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 icl freetext update FM, simply by entering the name ICL_FREETEXT_UPDATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: ICL_CORR_BDT
Program Name: SAPLICL_CORR_BDT
Main Program: SAPLICL_CORR_BDT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ICL_FREETEXT_UPDATE 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 'ICL_FREETEXT_UPDATE'"Change User-Defined Text Module in Current Memory.
EXPORTING
* I_FORMCLASS = GV_FORMCLASS "Form Class
* I_XPOPUP = "
* I_OBJTYPE = GC_BOR_OBJECT "Object Category
I_OBJKEY = "Object Key
I_TDNAME = "Text Module Name
* I_TDNAME_SAMPLE = "
* I_TDTITLE = "Title in Dialog Box
* I_TDREFNAME = ' ' "Name of Referenced Text
* I_RECIPIENT = ' ' "
* I_CATEGORY = "Category for Sample Text Modules
TABLES
* IT_TLINE = "SAPscript: Text Lines
* CT_FREETEXT = "User-Defined Text Modules
IMPORTING Parameters details for ICL_FREETEXT_UPDATE
I_FORMCLASS - Form Class
Data type: EFRM-FORMCLASSDefault: GV_FORMCLASS
Optional: No
Call by Reference: Yes
I_XPOPUP -
Data type: BOOLE_DOptional: Yes
Call by Reference: Yes
I_OBJTYPE - Object Category
Data type: EPRINTACT-OBJ_TYPEDefault: GC_BOR_OBJECT
Optional: No
Call by Reference: Yes
I_OBJKEY - Object Key
Data type: EPRINTACT-OBJ_KEYOptional: No
Call by Reference: Yes
I_TDNAME - Text Module Name
Data type: THEAD-TDNAMEOptional: No
Call by Reference: Yes
I_TDNAME_SAMPLE -
Data type: THEAD-TDMACODE1Optional: Yes
Call by Reference: Yes
I_TDTITLE - Title in Dialog Box
Data type: THEAD-TDTITLEOptional: Yes
Call by Reference: Yes
I_TDREFNAME - Name of Referenced Text
Data type: TDREFNAMEDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_RECIPIENT -
Data type: THEAD-TDMACODE2Default: SPACE
Optional: Yes
Call by Reference: Yes
I_CATEGORY - Category for Sample Text Modules
Data type: ICLH_CATEGORYOptional: Yes
Call by Reference: Yes
TABLES Parameters details for ICL_FREETEXT_UPDATE
IT_TLINE - SAPscript: Text Lines
Data type: TLINEOptional: Yes
Call by Reference: Yes
CT_FREETEXT - User-Defined Text Modules
Data type: ICL_FREETEXT_TOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for ICL_FREETEXT_UPDATE 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: | ||||
| lt_it_tline | TYPE STANDARD TABLE OF TLINE, " | |||
| lv_i_formclass | TYPE EFRM-FORMCLASS, " GV_FORMCLASS | |||
| lv_i_xpopup | TYPE BOOLE_D, " | |||
| lv_i_objtype | TYPE EPRINTACT-OBJ_TYPE, " GC_BOR_OBJECT | |||
| lt_ct_freetext | TYPE STANDARD TABLE OF ICL_FREETEXT_T, " | |||
| lv_i_objkey | TYPE EPRINTACT-OBJ_KEY, " | |||
| lv_i_tdname | TYPE THEAD-TDNAME, " | |||
| lv_i_tdname_sample | TYPE THEAD-TDMACODE1, " | |||
| lv_i_tdtitle | TYPE THEAD-TDTITLE, " | |||
| lv_i_tdrefname | TYPE TDREFNAME, " SPACE | |||
| lv_i_recipient | TYPE THEAD-TDMACODE2, " SPACE | |||
| lv_i_category | TYPE ICLH_CATEGORY. " |
|   CALL FUNCTION 'ICL_FREETEXT_UPDATE' "Change User-Defined Text Module in Current Memory |
| EXPORTING | ||
| I_FORMCLASS | = lv_i_formclass | |
| I_XPOPUP | = lv_i_xpopup | |
| I_OBJTYPE | = lv_i_objtype | |
| I_OBJKEY | = lv_i_objkey | |
| I_TDNAME | = lv_i_tdname | |
| I_TDNAME_SAMPLE | = lv_i_tdname_sample | |
| I_TDTITLE | = lv_i_tdtitle | |
| I_TDREFNAME | = lv_i_tdrefname | |
| I_RECIPIENT | = lv_i_recipient | |
| I_CATEGORY | = lv_i_category | |
| TABLES | ||
| IT_TLINE | = lt_it_tline | |
| CT_FREETEXT | = lt_ct_freetext | |
| . " ICL_FREETEXT_UPDATE | ||
ABAP code using 7.40 inline data declarations to call FM ICL_FREETEXT_UPDATE
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 FORMCLASS FROM EFRM INTO @DATA(ld_i_formclass). | ||||
| DATA(ld_i_formclass) | = GV_FORMCLASS. | |||
| "SELECT single OBJ_TYPE FROM EPRINTACT INTO @DATA(ld_i_objtype). | ||||
| DATA(ld_i_objtype) | = GC_BOR_OBJECT. | |||
| "SELECT single OBJ_KEY FROM EPRINTACT INTO @DATA(ld_i_objkey). | ||||
| "SELECT single TDNAME FROM THEAD INTO @DATA(ld_i_tdname). | ||||
| "SELECT single TDMACODE1 FROM THEAD INTO @DATA(ld_i_tdname_sample). | ||||
| "SELECT single TDTITLE FROM THEAD INTO @DATA(ld_i_tdtitle). | ||||
| DATA(ld_i_tdrefname) | = ' '. | |||
| "SELECT single TDMACODE2 FROM THEAD INTO @DATA(ld_i_recipient). | ||||
| DATA(ld_i_recipient) | = ' '. | |||
Search for further information about these or an SAP related objects