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









EHSB_SCRT_TEXT_INPUT_EDIT is a standard ehsb scrt 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 ehsb scrt text input edit FM, simply by entering the name EHSB_SCRT_TEXT_INPUT_EDIT into the relevant SAP transaction such as SE37 or SE38.

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



Function EHSB_SCRT_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 'EHSB_SCRT_TEXT_INPUT_EDIT'"NOTRANSL: EHS: Bearbeitung von Langtexten mittels SAPscript mit Originalte
EXPORTING
I_WINDOWTITLE = "Short Text
I_TABLENAME = "Table Name
I_FIELDNAME = "Field Name
* I_LANGUAGE = "Language Key
I_ACTYPE = "Activity Type
* I_FLG_WINDOW = ESP1_FALSE "
* I_SRC_TITLE = ' ' "Text Line
* I_SRC_TEXT = ' ' "Source Text
* I_SRC_LTXTFLG = ESP1_FALSE "DE-EN-LANG-SWITCH-NO-TRANSLATION

IMPORTING
E_TXT_CHANGED_FLG = "Generic Type

CHANGING
X_TEXT = "Generic Type
X_LTXTFLG = "DE-EN-LANG-SWITCH-NO-TRANSLATION

TABLES
X_TEXT_TAB = "SAPscript: Text Lines
* I_SRC_TEXT_TAB = "SAPscript: Text Lines

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



IMPORTING Parameters details for EHSB_SCRT_TEXT_INPUT_EDIT

I_WINDOWTITLE - Short Text

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

I_TABLENAME - Table Name

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

I_FIELDNAME - Field Name

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 - Text Line

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

I_SRC_TEXT - Source Text

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

I_SRC_LTXTFLG - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

EXPORTING Parameters details for EHSB_SCRT_TEXT_INPUT_EDIT

E_TXT_CHANGED_FLG - Generic Type

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

CHANGING Parameters details for EHSB_SCRT_TEXT_INPUT_EDIT

X_TEXT - Generic Type

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

X_LTXTFLG - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

TABLES Parameters details for EHSB_SCRT_TEXT_INPUT_EDIT

X_TEXT_TAB - SAPscript: Text Lines

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

I_SRC_TEXT_TAB - SAPscript: Text Lines

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

EXCEPTIONS details

PARAMETER_ERROR - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

DDIC_ERROR - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

EDIT_TEXT_FAILED - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

INTERNAL_ERROR - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

Copy and paste ABAP code example for EHSB_SCRT_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 TTXCT-ED_TITLE, "   
lv_parameter_error  TYPE TTXCT, "   
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 'EHSB_SCRT_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
. " EHSB_SCRT_TEXT_INPUT_EDIT




ABAP code using 7.40 inline data declarations to call FM EHSB_SCRT_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 ED_TITLE FROM TTXCT 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!