SAP TEXT_MATRIX Function Module for Represent text window as a special case of pushbutton graphics
TEXT_MATRIX is a standard text matrix SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Represent text window as a special case of pushbutton graphics 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 text matrix FM, simply by entering the name TEXT_MATRIX into the relevant SAP transaction such as SE37 or SE38.
Function Group: BMAT
Program Name: SAPLBMAT
Main Program:
Appliation area:
Release date: 19-Jan-1995
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TEXT_MATRIX 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 'TEXT_MATRIX'"Represent text window as a special case of pushbutton graphics.
EXPORTING
* CSIZE = ' ' "Line width in characters
* WINID = ' ' "Dialog parameters
* WINPOS = ' ' "Window position
* WINSZX = '50' "Window size Y in %
* WINSZY = '50' "Window size X in %
* PWDID = ' ' "Dialog parameters
* RSIZE = ' ' "Minimum number of lines
* SET_FOCUS = 'x' "Set focus during reload
* SHOW_LINES = ' ' "Internal use only
* STAT = ' ' "Dialog parameters
* SUPER = ' ' "Dialog parameters
* TIMER = 0 "Internal Use Only !!
* TTEXT = ' ' "Title text of the window
IMPORTING
B_TYP = "Feedback class
CUA_ID = "Specified CUA return message
M_TYP = "Dialog parameters
RBUFF = "DO NOT USE
RWNID = "Dialog parameters
TABLES
DATA = "Table with text lines
IMPORTING Parameters details for TEXT_MATRIX
CSIZE - Line width in characters
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
WINID - Dialog parameters
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
WINPOS - Window position
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
WINSZX - Window size Y in %
Data type:Default: '50'
Optional: Yes
Call by Reference: No ( called with pass by value option)
WINSZY - Window size X in %
Data type:Default: '50'
Optional: Yes
Call by Reference: No ( called with pass by value option)
PWDID - Dialog parameters
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
RSIZE - Minimum number of lines
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SET_FOCUS - Set focus during reload
Data type:Default: 'x'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SHOW_LINES - Internal use only
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
STAT - Dialog parameters
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SUPER - Dialog parameters
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TIMER - Internal Use Only !!
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
TTEXT - Title text of the window
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for TEXT_MATRIX
B_TYP - Feedback class
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CUA_ID - Specified CUA return message
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
M_TYP - Dialog parameters
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
RBUFF - DO NOT USE
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
RWNID - Dialog parameters
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for TEXT_MATRIX
DATA - Table with text lines
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for TEXT_MATRIX 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_data | TYPE STANDARD TABLE OF STRING, " | |||
| lv_b_typ | TYPE STRING, " | |||
| lv_csize | TYPE STRING, " SPACE | |||
| lv_winid | TYPE STRING, " SPACE | |||
| lv_winpos | TYPE STRING, " SPACE | |||
| lv_winszx | TYPE STRING, " '50' | |||
| lv_winszy | TYPE STRING, " '50' | |||
| lv_pwdid | TYPE STRING, " SPACE | |||
| lv_cua_id | TYPE STRING, " | |||
| lv_m_typ | TYPE STRING, " | |||
| lv_rsize | TYPE STRING, " SPACE | |||
| lv_rbuff | TYPE STRING, " | |||
| lv_set_focus | TYPE STRING, " 'x' | |||
| lv_rwnid | TYPE STRING, " | |||
| lv_show_lines | TYPE STRING, " SPACE | |||
| lv_stat | TYPE STRING, " SPACE | |||
| lv_super | TYPE STRING, " SPACE | |||
| lv_timer | TYPE STRING, " 0 | |||
| lv_ttext | TYPE STRING. " SPACE |
|   CALL FUNCTION 'TEXT_MATRIX' "Represent text window as a special case of pushbutton graphics |
| EXPORTING | ||
| CSIZE | = lv_csize | |
| WINID | = lv_winid | |
| WINPOS | = lv_winpos | |
| WINSZX | = lv_winszx | |
| WINSZY | = lv_winszy | |
| PWDID | = lv_pwdid | |
| RSIZE | = lv_rsize | |
| SET_FOCUS | = lv_set_focus | |
| SHOW_LINES | = lv_show_lines | |
| STAT | = lv_stat | |
| SUPER | = lv_super | |
| TIMER | = lv_timer | |
| TTEXT | = lv_ttext | |
| IMPORTING | ||
| B_TYP | = lv_b_typ | |
| CUA_ID | = lv_cua_id | |
| M_TYP | = lv_m_typ | |
| RBUFF | = lv_rbuff | |
| RWNID | = lv_rwnid | |
| TABLES | ||
| DATA | = lt_data | |
| . " TEXT_MATRIX | ||
ABAP code using 7.40 inline data declarations to call FM TEXT_MATRIX
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_csize) | = ' '. | |||
| DATA(ld_winid) | = ' '. | |||
| DATA(ld_winpos) | = ' '. | |||
| DATA(ld_winszx) | = '50'. | |||
| DATA(ld_winszy) | = '50'. | |||
| DATA(ld_pwdid) | = ' '. | |||
| DATA(ld_rsize) | = ' '. | |||
| DATA(ld_set_focus) | = 'x'. | |||
| DATA(ld_show_lines) | = ' '. | |||
| DATA(ld_stat) | = ' '. | |||
| DATA(ld_super) | = ' '. | |||
| DATA(ld_ttext) | = ' '. | |||
Search for further information about these or an SAP related objects