SAP MASS_SCRN_CREATE Function Module for Create dynamic screen for mass maintenance
MASS_SCRN_CREATE is a standard mass scrn create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create dynamic screen for mass maintenance 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 mass scrn create FM, simply by entering the name MASS_SCRN_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: MASS_GENERAL_UTILITIES
Program Name: SAPLMASS_GENERAL_UTILITIES
Main Program: SAPLMASS_GENERAL_UTILITIES
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MASS_SCRN_CREATE 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 'MASS_SCRN_CREATE'"Create dynamic screen for mass maintenance.
EXPORTING
I_PROGNAME = "
* I_CHECKBOX = ' ' "
* I_DELETE = ' ' "
I_PROGNBR = "ABAP program, number of current screen
* I_TABNAME = "Table name
* I_ICON = "Icons table
* I_BUTTON = ' ' "
* I_COL_B = '50' "
* I_LINE = '1' "
* I_COL_F = '1' "
* I_KEY = ' ' "
IMPORTING
E_PROGNAME = "
E_PROGNBR = "ABAP program, number of current screen
E_PROGHEADER = "System table D020S (screen sources)
TABLES
T_FLOWLOGIC = "Screen flow logic
T_FIELDLIST = "Screen fields
T_DYNPMATCH = "Screen parameters
* T_FIELDNAME = "Field Name for site mass maintenance
EXCEPTIONS
ERROR_IN_SCREEN_READ = 1 ERROR_IN_SCREEN_SAVE = 2 PROGNAME_AND_DYNPRONBR_EMPTY = 3 ERROR_IN_SCREEN_CREATE = 4
IMPORTING Parameters details for MASS_SCRN_CREATE
I_PROGNAME -
Data type: SY-REPIDOptional: No
Call by Reference: Yes
I_CHECKBOX -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_DELETE -
Data type:Default: SPACE
Optional: Yes
Call by Reference: Yes
I_PROGNBR - ABAP program, number of current screen
Data type: SY-DYNNROptional: No
Call by Reference: Yes
I_TABNAME - Table name
Data type: DD03V-TABNAMEOptional: Yes
Call by Reference: Yes
I_ICON - Icons table
Data type: ICONOptional: Yes
Call by Reference: Yes
I_BUTTON -
Data type:Default: SPACE
Optional: Yes
Call by Reference: Yes
I_COL_B -
Data type: IDefault: '50'
Optional: Yes
Call by Reference: Yes
I_LINE -
Data type: IDefault: '1'
Optional: Yes
Call by Reference: Yes
I_COL_F -
Data type: IDefault: '1'
Optional: Yes
Call by Reference: Yes
I_KEY -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for MASS_SCRN_CREATE
E_PROGNAME -
Data type: SY-REPIDOptional: No
Call by Reference: Yes
E_PROGNBR - ABAP program, number of current screen
Data type: SY-DYNNROptional: No
Call by Reference: Yes
E_PROGHEADER - System table D020S (screen sources)
Data type: D020SOptional: No
Call by Reference: Yes
TABLES Parameters details for MASS_SCRN_CREATE
T_FLOWLOGIC - Screen flow logic
Data type: D022SOptional: No
Call by Reference: Yes
T_FIELDLIST - Screen fields
Data type: D021SOptional: No
Call by Reference: Yes
T_DYNPMATCH - Screen parameters
Data type: D023SOptional: No
Call by Reference: Yes
T_FIELDNAME - Field Name for site mass maintenance
Data type: MASS_FIELD_NAMEOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
ERROR_IN_SCREEN_READ -
Data type:Optional: No
Call by Reference: Yes
ERROR_IN_SCREEN_SAVE -
Data type:Optional: No
Call by Reference: Yes
PROGNAME_AND_DYNPRONBR_EMPTY -
Data type:Optional: No
Call by Reference: Yes
ERROR_IN_SCREEN_CREATE -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for MASS_SCRN_CREATE 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_e_progname | TYPE SY-REPID, " | |||
| lv_i_progname | TYPE SY-REPID, " | |||
| lt_t_flowlogic | TYPE STANDARD TABLE OF D022S, " | |||
| lv_error_in_screen_read | TYPE D022S, " | |||
| lv_i_checkbox | TYPE C, " SPACE | |||
| lv_i_delete | TYPE C, " SPACE | |||
| lv_e_prognbr | TYPE SY-DYNNR, " | |||
| lv_i_prognbr | TYPE SY-DYNNR, " | |||
| lt_t_fieldlist | TYPE STANDARD TABLE OF D021S, " | |||
| lv_error_in_screen_save | TYPE D021S, " | |||
| lv_i_tabname | TYPE DD03V-TABNAME, " | |||
| lt_t_dynpmatch | TYPE STANDARD TABLE OF D023S, " | |||
| lv_e_progheader | TYPE D020S, " | |||
| lv_progname_and_dynpronbr_empty | TYPE D020S, " | |||
| lv_i_icon | TYPE ICON, " | |||
| lt_t_fieldname | TYPE STANDARD TABLE OF MASS_FIELD_NAME, " | |||
| lv_error_in_screen_create | TYPE MASS_FIELD_NAME, " | |||
| lv_i_button | TYPE MASS_FIELD_NAME, " SPACE | |||
| lv_i_col_b | TYPE I, " '50' | |||
| lv_i_line | TYPE I, " '1' | |||
| lv_i_col_f | TYPE I, " '1' | |||
| lv_i_key | TYPE C. " SPACE |
|   CALL FUNCTION 'MASS_SCRN_CREATE' "Create dynamic screen for mass maintenance |
| EXPORTING | ||
| I_PROGNAME | = lv_i_progname | |
| I_CHECKBOX | = lv_i_checkbox | |
| I_DELETE | = lv_i_delete | |
| I_PROGNBR | = lv_i_prognbr | |
| I_TABNAME | = lv_i_tabname | |
| I_ICON | = lv_i_icon | |
| I_BUTTON | = lv_i_button | |
| I_COL_B | = lv_i_col_b | |
| I_LINE | = lv_i_line | |
| I_COL_F | = lv_i_col_f | |
| I_KEY | = lv_i_key | |
| IMPORTING | ||
| E_PROGNAME | = lv_e_progname | |
| E_PROGNBR | = lv_e_prognbr | |
| E_PROGHEADER | = lv_e_progheader | |
| TABLES | ||
| T_FLOWLOGIC | = lt_t_flowlogic | |
| T_FIELDLIST | = lt_t_fieldlist | |
| T_DYNPMATCH | = lt_t_dynpmatch | |
| T_FIELDNAME | = lt_t_fieldname | |
| EXCEPTIONS | ||
| ERROR_IN_SCREEN_READ = 1 | ||
| ERROR_IN_SCREEN_SAVE = 2 | ||
| PROGNAME_AND_DYNPRONBR_EMPTY = 3 | ||
| ERROR_IN_SCREEN_CREATE = 4 | ||
| . " MASS_SCRN_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM MASS_SCRN_CREATE
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 REPID FROM SY INTO @DATA(ld_e_progname). | ||||
| "SELECT single REPID FROM SY INTO @DATA(ld_i_progname). | ||||
| DATA(ld_i_checkbox) | = ' '. | |||
| DATA(ld_i_delete) | = ' '. | |||
| "SELECT single DYNNR FROM SY INTO @DATA(ld_e_prognbr). | ||||
| "SELECT single DYNNR FROM SY INTO @DATA(ld_i_prognbr). | ||||
| "SELECT single TABNAME FROM DD03V INTO @DATA(ld_i_tabname). | ||||
| DATA(ld_i_button) | = ' '. | |||
| DATA(ld_i_col_b) | = '50'. | |||
| DATA(ld_i_line) | = '1'. | |||
| DATA(ld_i_col_f) | = '1'. | |||
| DATA(ld_i_key) | = ' '. | |||
Search for further information about these or an SAP related objects