SAP C14G_TEXT_INPUT_EDIT Function Module for NOTRANSL: EHS: Bearbeitung von Langtexten mittels SAPscript mit Originalte









C14G_TEXT_INPUT_EDIT is a standard c14g text input edit 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: EHS: Bearbeitung von Langtexten mittels SAPscript mit Originalte 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 c14g text input edit FM, simply by entering the name C14G_TEXT_INPUT_EDIT into the relevant SAP transaction such as SE37 or SE38.

Function Group: C14G
Program Name: SAPLC14G
Main Program: SAPLC14G
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function C14G_TEXT_INPUT_EDIT 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 'C14G_TEXT_INPUT_EDIT'"NOTRANSL: EHS: Bearbeitung von Langtexten mittels SAPscript mit Originalte
EXPORTING
I_WINDOWTITLE = "
I_TABLENAME = "
I_FIELDNAME = "
* I_LANGUAGE = "Language Key
I_ACTYPE = "Activity Type
* I_FLG_WINDOW = ESP1_FALSE "
* I_SRC_TITLE = ' ' "
* I_SRC_TEXT = ' ' "Source Code
* I_SRC_LTXTFLG = ESP1_FALSE "

IMPORTING
E_TXT_CHANGED_FLG = "

CHANGING
X_TEXT = "
X_LTXTFLG = "

TABLES
X_TEXT_TAB = "
* I_SRC_TEXT_TAB = "

EXCEPTIONS
PARAMETER_ERROR = 1 DDIC_ERROR = 2 EDIT_TEXT_FAILED = 3 INTERNAL_ERROR = 4
.



IMPORTING Parameters details for C14G_TEXT_INPUT_EDIT

I_WINDOWTITLE -

Data type: RSMPE-TITTEXT
Optional: No
Call by Reference: No ( called with pass by value option)

I_TABLENAME -

Data type: DFIES-TABNAME
Optional: No
Call by Reference: No ( called with pass by value option)

I_FIELDNAME -

Data type: DFIES-FIELDNAME
Optional: No
Call by Reference: No ( called with pass by value option)

I_LANGUAGE - Language Key

Data type: THEAD-TDSPRAS
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ACTYPE - Activity Type

Data type: RCGDIALCTR-ACTYPE
Optional: No
Call by Reference: No ( called with pass by value option)

I_FLG_WINDOW -

Data type: ESP1_BOOLEAN
Default: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SRC_TITLE -

Data type: TLINE-TDLINE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SRC_TEXT - Source Code

Data type: C
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SRC_LTXTFLG -

Data type: ESP1_BOOLEAN
Default: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for C14G_TEXT_INPUT_EDIT

E_TXT_CHANGED_FLG -

Data type: C
Optional: No
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for C14G_TEXT_INPUT_EDIT

X_TEXT -

Data type: C
Optional: No
Call by Reference: No ( called with pass by value option)

X_LTXTFLG -

Data type: ESP1_BOOLEAN
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for C14G_TEXT_INPUT_EDIT

X_TEXT_TAB -

Data type: TLINE
Optional: No
Call by Reference: No ( called with pass by value option)

I_SRC_TEXT_TAB -

Data type: TLINE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

PARAMETER_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

DDIC_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

EDIT_TEXT_FAILED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INTERNAL_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for C14G_TEXT_INPUT_EDIT 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_x_text  TYPE C, "   
lt_x_text_tab  TYPE STANDARD TABLE OF TLINE, "   
lv_i_windowtitle  TYPE RSMPE-TITTEXT, "   
lv_parameter_error  TYPE RSMPE, "   
lv_e_txt_changed_flg  TYPE C, "   
lv_x_ltxtflg  TYPE ESP1_BOOLEAN, "   
lv_ddic_error  TYPE ESP1_BOOLEAN, "   
lv_i_tablename  TYPE DFIES-TABNAME, "   
lt_i_src_text_tab  TYPE STANDARD TABLE OF TLINE, "   
lv_i_fieldname  TYPE DFIES-FIELDNAME, "   
lv_edit_text_failed  TYPE DFIES, "   
lv_i_language  TYPE THEAD-TDSPRAS, "   
lv_internal_error  TYPE THEAD, "   
lv_i_actype  TYPE RCGDIALCTR-ACTYPE, "   
lv_i_flg_window  TYPE ESP1_BOOLEAN, "   ESP1_FALSE
lv_i_src_title  TYPE TLINE-TDLINE, "   SPACE
lv_i_src_text  TYPE C, "   SPACE
lv_i_src_ltxtflg  TYPE ESP1_BOOLEAN. "   ESP1_FALSE

  CALL FUNCTION 'C14G_TEXT_INPUT_EDIT'  "NOTRANSL: EHS: Bearbeitung von Langtexten mittels SAPscript mit Originalte
    EXPORTING
         I_WINDOWTITLE = lv_i_windowtitle
         I_TABLENAME = lv_i_tablename
         I_FIELDNAME = lv_i_fieldname
         I_LANGUAGE = lv_i_language
         I_ACTYPE = lv_i_actype
         I_FLG_WINDOW = lv_i_flg_window
         I_SRC_TITLE = lv_i_src_title
         I_SRC_TEXT = lv_i_src_text
         I_SRC_LTXTFLG = lv_i_src_ltxtflg
    IMPORTING
         E_TXT_CHANGED_FLG = lv_e_txt_changed_flg
    CHANGING
         X_TEXT = lv_x_text
         X_LTXTFLG = lv_x_ltxtflg
    TABLES
         X_TEXT_TAB = lt_x_text_tab
         I_SRC_TEXT_TAB = lt_i_src_text_tab
    EXCEPTIONS
        PARAMETER_ERROR = 1
        DDIC_ERROR = 2
        EDIT_TEXT_FAILED = 3
        INTERNAL_ERROR = 4
. " C14G_TEXT_INPUT_EDIT




ABAP code using 7.40 inline data declarations to call FM C14G_TEXT_INPUT_EDIT

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 TITTEXT FROM RSMPE INTO @DATA(ld_i_windowtitle).
 
 
 
 
 
"SELECT single TABNAME FROM DFIES INTO @DATA(ld_i_tablename).
 
 
"SELECT single FIELDNAME FROM DFIES INTO @DATA(ld_i_fieldname).
 
 
"SELECT single TDSPRAS FROM THEAD INTO @DATA(ld_i_language).
 
 
"SELECT single ACTYPE FROM RCGDIALCTR INTO @DATA(ld_i_actype).
 
DATA(ld_i_flg_window) = ESP1_FALSE.
 
"SELECT single TDLINE FROM TLINE INTO @DATA(ld_i_src_title).
DATA(ld_i_src_title) = ' '.
 
DATA(ld_i_src_text) = ' '.
 
DATA(ld_i_src_ltxtflg) = ESP1_FALSE.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!