SAP ITOB_SETOCX_LONG_TEXT Function Module for NOTRANSL: L1: Setzen Langtext in OCX
ITOB_SETOCX_LONG_TEXT is a standard itob setocx long text SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: L1: Setzen Langtext in OCX 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 itob setocx long text FM, simply by entering the name ITOB_SETOCX_LONG_TEXT into the relevant SAP transaction such as SE37 or SE38.
Function Group: ITO2
Program Name: SAPLITO2
Main Program: SAPLITO2
Appliation area: I
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ITOB_SETOCX_LONG_TEXT 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 'ITOB_SETOCX_LONG_TEXT'"NOTRANSL: L1: Setzen Langtext in OCX.
EXPORTING
* SETTEXT_IMP = 'X' "
* CONTAINER_IMP = "Generic Type
* ACTIVITY_IMP = "Activity category in transaction (Cr/Ch/D)
* FLUSH_IMP = "
* DIALOG_MODE = 'X' "ABAP System Field: Batch Input Processing Active
* DIALOG_CURSOR = ' ' "Field name
* DIALOG_STEPL = 0 "ABAP System Field: Current Step Loop or Table Control Line
* INIT_MESSAGE_DATA = 'X' "ABAP System Field: Batch Input Processing Active
* X_MESS_TYPE = 'E' "ABAP System Field: Message Type
CHANGING
TEXTEDIT_CTRL = "TextEdit Control
* TEXTEDIT_TAB = "
EXCEPTIONS
EMPTY_KEY = 1 APPLICATION_ERROR = 2
IMPORTING Parameters details for ITOB_SETOCX_LONG_TEXT
SETTEXT_IMP -
Data type: ITOB_TYPES-BOOLDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CONTAINER_IMP - Generic Type
Data type: COptional: Yes
Call by Reference: No ( called with pass by value option)
ACTIVITY_IMP - Activity category in transaction (Cr/Ch/D)
Data type: T370-AKTYPOptional: Yes
Call by Reference: No ( called with pass by value option)
FLUSH_IMP -
Data type: ITOB_TYPES-BOOLOptional: Yes
Call by Reference: No ( called with pass by value option)
DIALOG_MODE - ABAP System Field: Batch Input Processing Active
Data type: SY-BINPTDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
DIALOG_CURSOR - Field name
Data type: DD03D-FIELDNAMEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DIALOG_STEPL - ABAP System Field: Current Step Loop or Table Control Line
Data type: SY-STEPLOptional: Yes
Call by Reference: No ( called with pass by value option)
INIT_MESSAGE_DATA - ABAP System Field: Batch Input Processing Active
Data type: SY-BINPTDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_MESS_TYPE - ABAP System Field: Message Type
Data type: SY-MSGTYDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for ITOB_SETOCX_LONG_TEXT
TEXTEDIT_CTRL - TextEdit Control
Data type: C_TEXTEDIT_CONTROLOptional: No
Call by Reference: Yes
TEXTEDIT_TAB -
Data type: ITO0T_TEXT_EDIT_TABOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
EMPTY_KEY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
APPLICATION_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ITOB_SETOCX_LONG_TEXT 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: | ||||
| lv_empty_key | TYPE STRING, " | |||
| lv_settext_imp | TYPE ITOB_TYPES-BOOL, " 'X' | |||
| lv_textedit_ctrl | TYPE C_TEXTEDIT_CONTROL, " | |||
| lv_textedit_tab | TYPE ITO0T_TEXT_EDIT_TAB, " | |||
| lv_container_imp | TYPE C, " | |||
| lv_application_error | TYPE C, " | |||
| lv_activity_imp | TYPE T370-AKTYP, " | |||
| lv_flush_imp | TYPE ITOB_TYPES-BOOL, " | |||
| lv_dialog_mode | TYPE SY-BINPT, " 'X' | |||
| lv_dialog_cursor | TYPE DD03D-FIELDNAME, " SPACE | |||
| lv_dialog_stepl | TYPE SY-STEPL, " 0 | |||
| lv_init_message_data | TYPE SY-BINPT, " 'X' | |||
| lv_x_mess_type | TYPE SY-MSGTY. " 'E' |
|   CALL FUNCTION 'ITOB_SETOCX_LONG_TEXT' "NOTRANSL: L1: Setzen Langtext in OCX |
| EXPORTING | ||
| SETTEXT_IMP | = lv_settext_imp | |
| CONTAINER_IMP | = lv_container_imp | |
| ACTIVITY_IMP | = lv_activity_imp | |
| FLUSH_IMP | = lv_flush_imp | |
| DIALOG_MODE | = lv_dialog_mode | |
| DIALOG_CURSOR | = lv_dialog_cursor | |
| DIALOG_STEPL | = lv_dialog_stepl | |
| INIT_MESSAGE_DATA | = lv_init_message_data | |
| X_MESS_TYPE | = lv_x_mess_type | |
| CHANGING | ||
| TEXTEDIT_CTRL | = lv_textedit_ctrl | |
| TEXTEDIT_TAB | = lv_textedit_tab | |
| EXCEPTIONS | ||
| EMPTY_KEY = 1 | ||
| APPLICATION_ERROR = 2 | ||
| . " ITOB_SETOCX_LONG_TEXT | ||
ABAP code using 7.40 inline data declarations to call FM ITOB_SETOCX_LONG_TEXT
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 BOOL FROM ITOB_TYPES INTO @DATA(ld_settext_imp). | ||||
| DATA(ld_settext_imp) | = 'X'. | |||
| "SELECT single AKTYP FROM T370 INTO @DATA(ld_activity_imp). | ||||
| "SELECT single BOOL FROM ITOB_TYPES INTO @DATA(ld_flush_imp). | ||||
| "SELECT single BINPT FROM SY INTO @DATA(ld_dialog_mode). | ||||
| DATA(ld_dialog_mode) | = 'X'. | |||
| "SELECT single FIELDNAME FROM DD03D INTO @DATA(ld_dialog_cursor). | ||||
| DATA(ld_dialog_cursor) | = ' '. | |||
| "SELECT single STEPL FROM SY INTO @DATA(ld_dialog_stepl). | ||||
| "SELECT single BINPT FROM SY INTO @DATA(ld_init_message_data). | ||||
| DATA(ld_init_message_data) | = 'X'. | |||
| "SELECT single MSGTY FROM SY INTO @DATA(ld_x_mess_type). | ||||
| DATA(ld_x_mess_type) | = 'E'. | |||
Search for further information about these or an SAP related objects