SAP SD_TEXT_DISPLAY Function Module for NOTRANSL: Anzeige eines Textes in modalem Dialogfenster
SD_TEXT_DISPLAY is a standard sd text display 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: Anzeige eines Textes in modalem Dialogfenster 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 sd text display FM, simply by entering the name SD_TEXT_DISPLAY into the relevant SAP transaction such as SE37 or SE38.
Function Group: V45T
Program Name: SAPLV45T
Main Program: SAPLV45T
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SD_TEXT_DISPLAY 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 'SD_TEXT_DISPLAY'"NOTRANSL: Anzeige eines Textes in modalem Dialogfenster.
EXPORTING
I_TDOBJECT = "
* I_SIZE = '1' "
I_TDID = "
I_TDNAME = "
I_TDSPRAS = "
* I_TEXT_MAINTENANCE_ALLOWED = 'X' "
* I_TEXT_DISPLAY_OLD_STYLE = ' ' "
* I_TEXT_HEIGHT_USER = 0 "
* I_TEXT_WIDTH_USER = 0 "
* I_SHOW_EMPTY_TEXT = ' ' "
TABLES
* FXTHEAD = "
EXCEPTIONS
TEXT_NOT_FOUND = 1 EMPTY_TEXT = 2 FORMAT_NOT_SUPPORTED = 3
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLV45T_001 Customer Exits for SD Text Determination
IMPORTING Parameters details for SD_TEXT_DISPLAY
I_TDOBJECT -
Data type: THEAD-TDOBJECTOptional: No
Call by Reference: No ( called with pass by value option)
I_SIZE -
Data type: C1Default: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TDID -
Data type: THEAD-TDIDOptional: No
Call by Reference: No ( called with pass by value option)
I_TDNAME -
Data type: THEAD-TDNAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_TDSPRAS -
Data type: THEAD-TDSPRASOptional: No
Call by Reference: No ( called with pass by value option)
I_TEXT_MAINTENANCE_ALLOWED -
Data type:Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TEXT_DISPLAY_OLD_STYLE -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TEXT_HEIGHT_USER -
Data type: IOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TEXT_WIDTH_USER -
Data type: IOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SHOW_EMPTY_TEXT -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SD_TEXT_DISPLAY
FXTHEAD -
Data type: THEADVBOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
TEXT_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
EMPTY_TEXT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FORMAT_NOT_SUPPORTED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SD_TEXT_DISPLAY 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: | ||||
| lt_fxthead | TYPE STANDARD TABLE OF THEADVB, " | |||
| lv_i_tdobject | TYPE THEAD-TDOBJECT, " | |||
| lv_text_not_found | TYPE THEAD, " | |||
| lv_i_size | TYPE C1, " '1' | |||
| lv_i_tdid | TYPE THEAD-TDID, " | |||
| lv_empty_text | TYPE THEAD, " | |||
| lv_i_tdname | TYPE THEAD-TDNAME, " | |||
| lv_format_not_supported | TYPE THEAD, " | |||
| lv_i_tdspras | TYPE THEAD-TDSPRAS, " | |||
| lv_i_text_maintenance_allowed | TYPE THEAD, " 'X' | |||
| lv_i_text_display_old_style | TYPE THEAD, " SPACE | |||
| lv_i_text_height_user | TYPE I, " 0 | |||
| lv_i_text_width_user | TYPE I, " 0 | |||
| lv_i_show_empty_text | TYPE I. " SPACE |
|   CALL FUNCTION 'SD_TEXT_DISPLAY' "NOTRANSL: Anzeige eines Textes in modalem Dialogfenster |
| EXPORTING | ||
| I_TDOBJECT | = lv_i_tdobject | |
| I_SIZE | = lv_i_size | |
| I_TDID | = lv_i_tdid | |
| I_TDNAME | = lv_i_tdname | |
| I_TDSPRAS | = lv_i_tdspras | |
| I_TEXT_MAINTENANCE_ALLOWED | = lv_i_text_maintenance_allowed | |
| I_TEXT_DISPLAY_OLD_STYLE | = lv_i_text_display_old_style | |
| I_TEXT_HEIGHT_USER | = lv_i_text_height_user | |
| I_TEXT_WIDTH_USER | = lv_i_text_width_user | |
| I_SHOW_EMPTY_TEXT | = lv_i_show_empty_text | |
| TABLES | ||
| FXTHEAD | = lt_fxthead | |
| EXCEPTIONS | ||
| TEXT_NOT_FOUND = 1 | ||
| EMPTY_TEXT = 2 | ||
| FORMAT_NOT_SUPPORTED = 3 | ||
| . " SD_TEXT_DISPLAY | ||
ABAP code using 7.40 inline data declarations to call FM SD_TEXT_DISPLAY
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 TDOBJECT FROM THEAD INTO @DATA(ld_i_tdobject). | ||||
| DATA(ld_i_size) | = '1'. | |||
| "SELECT single TDID FROM THEAD INTO @DATA(ld_i_tdid). | ||||
| "SELECT single TDNAME FROM THEAD INTO @DATA(ld_i_tdname). | ||||
| "SELECT single TDSPRAS FROM THEAD INTO @DATA(ld_i_tdspras). | ||||
| DATA(ld_i_text_maintenance_allowed) | = 'X'. | |||
| DATA(ld_i_text_display_old_style) | = ' '. | |||
| DATA(ld_i_show_empty_text) | = ' '. | |||
Search for further information about these or an SAP related objects