SAP MS_STLV_LONG_TEXT Function Module for NOTRANSL: Einsetzen Texte für variable Symbole









MS_STLV_LONG_TEXT is a standard ms stlv 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: Einsetzen Texte für variable Symbole 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 ms stlv long text FM, simply by entering the name MS_STLV_LONG_TEXT into the relevant SAP transaction such as SE37 or SE38.

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



Function MS_STLV_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 'MS_STLV_LONG_TEXT'"NOTRANSL: Einsetzen Texte für variable Symbole
EXPORTING
LBNUM = "Service Type
AUSGB = "Output
SPRAS = "Language
* STLVN = "

TABLES
LTXT_STLV = "DE-EN-LANG-SWITCH-NO-TRANSLATION
VAR_SYMB = "DE-EN-LANG-SWITCH-NO-TRANSLATION
.



IMPORTING Parameters details for MS_STLV_LONG_TEXT

LBNUM - Service Type

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

AUSGB - Output

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

SPRAS - Language

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

STLVN -

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

TABLES Parameters details for MS_STLV_LONG_TEXT

LTXT_STLV - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

VAR_SYMB - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

Copy and paste ABAP code example for MS_STLV_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_lbnum  TYPE ESLA-LBNUM, "   
lt_ltxt_stlv  TYPE STANDARD TABLE OF LTEXT_STLV, "   
lv_ausgb  TYPE ESLA-AUSGB, "   
lt_var_symb  TYPE STANDARD TABLE OF VAR_SYM, "   
lv_spras  TYPE ESLB-SPRAS, "   
lv_stlvn  TYPE ESLZ-TEXTT. "   

  CALL FUNCTION 'MS_STLV_LONG_TEXT'  "NOTRANSL: Einsetzen Texte für variable Symbole
    EXPORTING
         LBNUM = lv_lbnum
         AUSGB = lv_ausgb
         SPRAS = lv_spras
         STLVN = lv_stlvn
    TABLES
         LTXT_STLV = lt_ltxt_stlt
         VAR_SYMB = lt_var_symb
. " MS_STLV_LONG_TEXT




ABAP code using 7.40 inline data declarations to call FM MS_STLV_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 LBNUM FROM ESLA INTO @DATA(ld_lbnum).
 
 
"SELECT single AUSGB FROM ESLA INTO @DATA(ld_ausgb).
 
 
"SELECT single SPRAS FROM ESLB INTO @DATA(ld_spras).
 
"SELECT single TEXTT FROM ESLZ INTO @DATA(ld_stlvn).
 


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!