SAP TERM_SEARCH_LONGTEXT_DIALOG Function Module for NOTRANSL: Langtextsuche mit Dialog









TERM_SEARCH_LONGTEXT_DIALOG is a standard term search longtext dialog 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: Langtextsuche mit Dialog 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 search longtext dialog FM, simply by entering the name TERM_SEARCH_LONGTEXT_DIALOG into the relevant SAP transaction such as SE37 or SE38.

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



Function TERM_SEARCH_LONGTEXT_DIALOG 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_SEARCH_LONGTEXT_DIALOG'"NOTRANSL: Langtextsuche mit Dialog
EXPORTING
* LANGU = SY-LANGU "Language Key
* SEARCH_TEXT = ' ' "Term
* START_ROW = 5 "Predefined Type
* START_COL = 5 "Predefined Type

TABLES
ENTRIES = "Transfer Structure for SAPterm

EXCEPTIONS
NOT_FOUND = 1 USER_CANCELLED = 2
.



IMPORTING Parameters details for TERM_SEARCH_LONGTEXT_DIALOG

LANGU - Language Key

Data type: SYLANGU
Default: SY-LANGU
Optional: Yes
Call by Reference: Yes

SEARCH_TEXT - Term

Data type: STERM_TEXT-TEXT
Default: ' '
Optional: Yes
Call by Reference: Yes

START_ROW - Predefined Type

Data type: I
Default: 5
Optional: Yes
Call by Reference: Yes

START_COL - Predefined Type

Data type: I
Default: 5
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for TERM_SEARCH_LONGTEXT_DIALOG

ENTRIES - Transfer Structure for SAPterm

Data type: STERM_TERM
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

USER_CANCELLED -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for TERM_SEARCH_LONGTEXT_DIALOG 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_langu  TYPE SYLANGU, "   SY-LANGU
lt_entries  TYPE STANDARD TABLE OF STERM_TERM, "   
lv_not_found  TYPE STERM_TERM, "   
lv_search_text  TYPE STERM_TEXT-TEXT, "   ' '
lv_user_cancelled  TYPE STERM_TEXT, "   
lv_start_row  TYPE I, "   5
lv_start_col  TYPE I. "   5

  CALL FUNCTION 'TERM_SEARCH_LONGTEXT_DIALOG'  "NOTRANSL: Langtextsuche mit Dialog
    EXPORTING
         LANGU = lv_langu
         SEARCH_TEXT = lv_search_text
         START_ROW = lv_start_row
         START_COL = lv_start_col
    TABLES
         ENTRIES = lt_entries
    EXCEPTIONS
        NOT_FOUND = 1
        USER_CANCELLED = 2
. " TERM_SEARCH_LONGTEXT_DIALOG




ABAP code using 7.40 inline data declarations to call FM TERM_SEARCH_LONGTEXT_DIALOG

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.

DATA(ld_langu) = SY-LANGU.
 
 
 
"SELECT single TEXT FROM STERM_TEXT INTO @DATA(ld_search_text).
DATA(ld_search_text) = ' '.
 
 
DATA(ld_start_row) = 5.
 
DATA(ld_start_col) = 5.
 


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!