SAP TERM_TRANSLATE_TEXT Function Module for NOTRANSL: Codepageanpassung für Textfelder in Multiterm









TERM_TRANSLATE_TEXT is a standard term translate 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: Codepageanpassung für Textfelder in Multiterm 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 term translate text FM, simply by entering the name TERM_TRANSLATE_TEXT into the relevant SAP transaction such as SE37 or SE38.

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



Function TERM_TRANSLATE_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 'TERM_TRANSLATE_TEXT'"NOTRANSL: Codepageanpassung für Textfelder in Multiterm
EXPORTING
* O_TABNAME = "Table Name
* O_TABFIELD = "Field Name
* O_VALUE = "
* V_TABNAME = "Table Name
* V_TABFIELD = "Field Name
VALUE_IN = "

IMPORTING
VALUE_OUT = "
.



IMPORTING Parameters details for TERM_TRANSLATE_TEXT

O_TABNAME - Table Name

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

O_TABFIELD - Field Name

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

O_VALUE -

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

V_TABNAME - Table Name

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

V_TABFIELD - Field Name

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

VALUE_IN -

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

EXPORTING Parameters details for TERM_TRANSLATE_TEXT

VALUE_OUT -

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

Copy and paste ABAP code example for TERM_TRANSLATE_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_o_tabname  TYPE DD03L-TABNAME, "   
lv_value_out  TYPE DD03L, "   
lv_o_tabfield  TYPE DD03L-FIELDNAME, "   
lv_o_value  TYPE DD03L, "   
lv_v_tabname  TYPE DD03L-TABNAME, "   
lv_v_tabfield  TYPE DD03L-FIELDNAME, "   
lv_value_in  TYPE DD03L. "   

  CALL FUNCTION 'TERM_TRANSLATE_TEXT'  "NOTRANSL: Codepageanpassung für Textfelder in Multiterm
    EXPORTING
         O_TABNAME = lv_o_tabname
         O_TABFIELD = lv_o_tabfield
         O_VALUE = lv_o_value
         V_TABNAME = lv_v_tabname
         V_TABFIELD = lv_v_tabfield
         VALUE_IN = lv_value_in
    IMPORTING
         VALUE_OUT = lv_value_out
. " TERM_TRANSLATE_TEXT




ABAP code using 7.40 inline data declarations to call FM TERM_TRANSLATE_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 TABNAME FROM DD03L INTO @DATA(ld_o_tabname).
 
 
"SELECT single FIELDNAME FROM DD03L INTO @DATA(ld_o_tabfield).
 
 
"SELECT single TABNAME FROM DD03L INTO @DATA(ld_v_tabname).
 
"SELECT single FIELDNAME FROM DD03L INTO @DATA(ld_v_tabfield).
 
 


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!