SAP SE16N_INTERFACE Function Module for Display table as full screen
SE16N_INTERFACE is a standard se16n interface SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Display table as full screen 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 se16n interface FM, simply by entering the name SE16N_INTERFACE into the relevant SAP transaction such as SE37 or SE38.
Function Group: SE16N
Program Name: SAPLSE16N
Main Program: SAPLSE16N
Appliation area:
Release date: 27-Jul-2005
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SE16N_INTERFACE 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 'SE16N_INTERFACE'"Display table as full screen.
EXPORTING
I_TAB = "Table
* I_VARIANT = ' ' "Layout
* I_OLD_ALV = ' ' "Not ALV grid
* I_CHECKKEY = ' ' "No foreign key check
* I_TECH_NAMES = ' ' "Technical Name as Column Heading
* I_CWIDTH_OPT_OFF = ' ' "Deactivate Column Width Optimization
* I_SCROLL = ' ' "KeyColumnsScrolab.
* I_NO_CONVEXIT = ' ' "Do not use conversion for output
* I_LAYOUT_GET = ' ' "Get last layout automatically
* I_ADD_FIELD = "Additional Field for Exit
* I_ADD_FIELDS_ON = "Use Field Exit
* I_EDIT = ' ' "Single-Character Indicator
* I_UNAME = "User Name
* I_HANA_ACTIVE = ' ' "SAP HANA Mode Active
* I_DBCON = ' ' "Logical Name for a Database Connection
* I_OJKEY = ' ' "Outer Join Definition
* I_DISPLAY_ALL = ' ' "Selection of all Records
* I_SAPEDIT = ' ' "Single-Character Indicator
* I_NO_TXT = ' ' "Do not select any texts
* I_MAX_LINES = 500 "Maximum Number of Hits
* I_LINE_DET = ' ' "Only determine number of entries found
* I_DISPLAY = 'X' "Display Results
* I_CLNT_SPEZ = ' ' "Client-dependent selection
* I_CLNT_DEP = ' ' "Table is client-dependent
IMPORTING
E_LINE_NR = "No. of entries found
E_DREF = "Pointer to the Results List
ET_FIELDCAT = "Output List Field Catalog
TABLES
* IT_SELFIELDS = "Table Display: Selection Criteria
* IT_AGGREGATE_FIELDS = "Aggregation Fields
* IT_TOPLOW_FIELDS = "Top Bottom Fields
* IT_SORTORDER_FIELDS = "Sort Sequence
* IT_OUTPUT_FIELDS = "Table Display: Output Fields
* IT_OR_SELFIELDS = "Transfer Table for Multiple Selection Criteria
* IT_CALLBACK_EVENTS = "Event Table for SE16N
* IT_ADD_UP_CURR_FIELDS = "Table Display: CURR Fields to be Added by Row
* IT_ADD_UP_QUAN_FIELDS = "Table Display: QUAN Fields to be Added by Row
* IT_SUM_UP_FIELDS = "Totaling Fields
* IT_GROUP_BY_FIELDS = "Grouping Fields
* IT_ORDER_BY_FIELDS = "Sort fields
EXCEPTIONS
NO_VALUES = 1
IMPORTING Parameters details for SE16N_INTERFACE
I_TAB - Table
Data type: SE16N_TABOptional: No
Call by Reference: No ( called with pass by value option)
I_VARIANT - Layout
Data type: SLIS_VARIDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OLD_ALV - Not ALV grid
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CHECKKEY - No foreign key check
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_TECH_NAMES - Technical Name as Column Heading
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CWIDTH_OPT_OFF - Deactivate Column Width Optimization
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SCROLL - KeyColumnsScrolab.
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NO_CONVEXIT - Do not use conversion for output
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LAYOUT_GET - Get last layout automatically
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ADD_FIELD - Additional Field for Exit
Data type: CHAR40Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ADD_FIELDS_ON - Use Field Exit
Data type: CHAR1Optional: Yes
Call by Reference: No ( called with pass by value option)
I_EDIT - Single-Character Indicator
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_UNAME - User Name
Data type: SY-UNAMEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_HANA_ACTIVE - SAP HANA Mode Active
Data type: CHAR1Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DBCON - Logical Name for a Database Connection
Data type: DBCON_NAMEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OJKEY - Outer Join Definition
Data type: TSWAPPLDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DISPLAY_ALL - Selection of all Records
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SAPEDIT - Single-Character Indicator
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NO_TXT - Do not select any texts
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MAX_LINES - Maximum Number of Hits
Data type: SYTABIXDefault: 500
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LINE_DET - Only determine number of entries found
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DISPLAY - Display Results
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CLNT_SPEZ - Client-dependent selection
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CLNT_DEP - Table is client-dependent
Data type: CHAR1Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SE16N_INTERFACE
E_LINE_NR - No. of entries found
Data type: SYTABIXOptional: No
Call by Reference: No ( called with pass by value option)
E_DREF - Pointer to the Results List
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ET_FIELDCAT - Output List Field Catalog
Data type: LVC_T_FCATOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SE16N_INTERFACE
IT_SELFIELDS - Table Display: Selection Criteria
Data type: SE16N_SELTABOptional: Yes
Call by Reference: Yes
IT_AGGREGATE_FIELDS - Aggregation Fields
Data type: SE16N_SELTABOptional: Yes
Call by Reference: Yes
IT_TOPLOW_FIELDS - Top Bottom Fields
Data type: SE16N_SELTABOptional: Yes
Call by Reference: Yes
IT_SORTORDER_FIELDS - Sort Sequence
Data type: SE16N_SELTABOptional: Yes
Call by Reference: Yes
IT_OUTPUT_FIELDS - Table Display: Output Fields
Data type: SE16N_OUTPUTOptional: Yes
Call by Reference: Yes
IT_OR_SELFIELDS - Transfer Table for Multiple Selection Criteria
Data type: SE16N_OR_TOptional: Yes
Call by Reference: Yes
IT_CALLBACK_EVENTS - Event Table for SE16N
Data type: SE16N_EVENTSOptional: Yes
Call by Reference: Yes
IT_ADD_UP_CURR_FIELDS - Table Display: CURR Fields to be Added by Row
Data type: SE16N_OUTPUTOptional: Yes
Call by Reference: Yes
IT_ADD_UP_QUAN_FIELDS - Table Display: QUAN Fields to be Added by Row
Data type: SE16N_OUTPUTOptional: Yes
Call by Reference: Yes
IT_SUM_UP_FIELDS - Totaling Fields
Data type: SE16N_OUTPUTOptional: Yes
Call by Reference: Yes
IT_GROUP_BY_FIELDS - Grouping Fields
Data type: SE16N_OUTPUTOptional: Yes
Call by Reference: Yes
IT_ORDER_BY_FIELDS - Sort fields
Data type: SE16N_OUTPUTOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_VALUES - No Values Found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SE16N_INTERFACE 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_i_tab | TYPE SE16N_TAB, " | |||
| lv_e_line_nr | TYPE SYTABIX, " | |||
| lv_no_values | TYPE SYTABIX, " | |||
| lt_it_selfields | TYPE STANDARD TABLE OF SE16N_SELTAB, " | |||
| lv_i_variant | TYPE SLIS_VARI, " ' ' | |||
| lt_it_aggregate_fields | TYPE STANDARD TABLE OF SE16N_SELTAB, " | |||
| lv_i_old_alv | TYPE CHAR1, " ' ' | |||
| lt_it_toplow_fields | TYPE STANDARD TABLE OF SE16N_SELTAB, " | |||
| lv_i_checkkey | TYPE CHAR1, " ' ' | |||
| lt_it_sortorder_fields | TYPE STANDARD TABLE OF SE16N_SELTAB, " | |||
| lv_i_tech_names | TYPE CHAR1, " ' ' | |||
| lv_i_cwidth_opt_off | TYPE CHAR1, " ' ' | |||
| lv_i_scroll | TYPE CHAR1, " ' ' | |||
| lv_i_no_convexit | TYPE CHAR1, " ' ' | |||
| lv_i_layout_get | TYPE CHAR1, " ' ' | |||
| lv_i_add_field | TYPE CHAR40, " | |||
| lv_i_add_fields_on | TYPE CHAR1, " | |||
| lv_e_dref | TYPE CHAR1, " | |||
| lv_i_edit | TYPE CHAR1, " ' ' | |||
| lt_it_output_fields | TYPE STANDARD TABLE OF SE16N_OUTPUT, " | |||
| lv_i_uname | TYPE SY-UNAME, " | |||
| lv_i_hana_active | TYPE CHAR1, " SPACE | |||
| lv_i_dbcon | TYPE DBCON_NAME, " SPACE | |||
| lv_i_ojkey | TYPE TSWAPPL, " SPACE | |||
| lv_i_display_all | TYPE CHAR1, " ' ' | |||
| lv_i_sapedit | TYPE CHAR1, " ' ' | |||
| lv_et_fieldcat | TYPE LVC_T_FCAT, " | |||
| lt_it_or_selfields | TYPE STANDARD TABLE OF SE16N_OR_T, " | |||
| lv_i_no_txt | TYPE CHAR1, " ' ' | |||
| lt_it_callback_events | TYPE STANDARD TABLE OF SE16N_EVENTS, " | |||
| lv_i_max_lines | TYPE SYTABIX, " 500 | |||
| lt_it_add_up_curr_fields | TYPE STANDARD TABLE OF SE16N_OUTPUT, " | |||
| lv_i_line_det | TYPE CHAR1, " ' ' | |||
| lt_it_add_up_quan_fields | TYPE STANDARD TABLE OF SE16N_OUTPUT, " | |||
| lv_i_display | TYPE CHAR1, " 'X' | |||
| lt_it_sum_up_fields | TYPE STANDARD TABLE OF SE16N_OUTPUT, " | |||
| lv_i_clnt_spez | TYPE CHAR1, " ' ' | |||
| lt_it_group_by_fields | TYPE STANDARD TABLE OF SE16N_OUTPUT, " | |||
| lv_i_clnt_dep | TYPE CHAR1, " ' ' | |||
| lt_it_order_by_fields | TYPE STANDARD TABLE OF SE16N_OUTPUT. " |
|   CALL FUNCTION 'SE16N_INTERFACE' "Display table as full screen |
| EXPORTING | ||
| I_TAB | = lv_i_tab | |
| I_VARIANT | = lv_i_variant | |
| I_OLD_ALV | = lv_i_old_alv | |
| I_CHECKKEY | = lv_i_checkkey | |
| I_TECH_NAMES | = lv_i_tech_names | |
| I_CWIDTH_OPT_OFF | = lv_i_cwidth_opt_off | |
| I_SCROLL | = lv_i_scroll | |
| I_NO_CONVEXIT | = lv_i_no_convexit | |
| I_LAYOUT_GET | = lv_i_layout_get | |
| I_ADD_FIELD | = lv_i_add_field | |
| I_ADD_FIELDS_ON | = lv_i_add_fields_on | |
| I_EDIT | = lv_i_edit | |
| I_UNAME | = lv_i_uname | |
| I_HANA_ACTIVE | = lv_i_hana_active | |
| I_DBCON | = lv_i_dbcon | |
| I_OJKEY | = lv_i_ojkey | |
| I_DISPLAY_ALL | = lv_i_display_all | |
| I_SAPEDIT | = lv_i_sapedit | |
| I_NO_TXT | = lv_i_no_txt | |
| I_MAX_LINES | = lv_i_max_lines | |
| I_LINE_DET | = lv_i_line_det | |
| I_DISPLAY | = lv_i_display | |
| I_CLNT_SPEZ | = lv_i_clnt_spez | |
| I_CLNT_DEP | = lv_i_clnt_dep | |
| IMPORTING | ||
| E_LINE_NR | = lv_e_line_nr | |
| E_DREF | = lv_e_dref | |
| ET_FIELDCAT | = lv_et_fieldcat | |
| TABLES | ||
| IT_SELFIELDS | = lt_it_selfields | |
| IT_AGGREGATE_FIELDS | = lt_it_aggregate_fields | |
| IT_TOPLOW_FIELDS | = lt_it_toplow_fields | |
| IT_SORTORDER_FIELDS | = lt_it_sortorder_fields | |
| IT_OUTPUT_FIELDS | = lt_it_output_fields | |
| IT_OR_SELFIELDS | = lt_it_or_selfields | |
| IT_CALLBACK_EVENTS | = lt_it_callback_events | |
| IT_ADD_UP_CURR_FIELDS | = lt_it_add_up_curr_fields | |
| IT_ADD_UP_QUAN_FIELDS | = lt_it_add_up_quan_fields | |
| IT_SUM_UP_FIELDS | = lt_it_sum_up_fields | |
| IT_GROUP_BY_FIELDS | = lt_it_group_by_fields | |
| IT_ORDER_BY_FIELDS | = lt_it_order_by_fields | |
| EXCEPTIONS | ||
| NO_VALUES = 1 | ||
| . " SE16N_INTERFACE | ||
ABAP code using 7.40 inline data declarations to call FM SE16N_INTERFACE
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_i_variant) | = ' '. | |||
| DATA(ld_i_old_alv) | = ' '. | |||
| DATA(ld_i_checkkey) | = ' '. | |||
| DATA(ld_i_tech_names) | = ' '. | |||
| DATA(ld_i_cwidth_opt_off) | = ' '. | |||
| DATA(ld_i_scroll) | = ' '. | |||
| DATA(ld_i_no_convexit) | = ' '. | |||
| DATA(ld_i_layout_get) | = ' '. | |||
| DATA(ld_i_edit) | = ' '. | |||
| "SELECT single UNAME FROM SY INTO @DATA(ld_i_uname). | ||||
| DATA(ld_i_hana_active) | = ' '. | |||
| DATA(ld_i_dbcon) | = ' '. | |||
| DATA(ld_i_ojkey) | = ' '. | |||
| DATA(ld_i_display_all) | = ' '. | |||
| DATA(ld_i_sapedit) | = ' '. | |||
| DATA(ld_i_no_txt) | = ' '. | |||
| DATA(ld_i_max_lines) | = 500. | |||
| DATA(ld_i_line_det) | = ' '. | |||
| DATA(ld_i_display) | = 'X'. | |||
| DATA(ld_i_clnt_spez) | = ' '. | |||
| DATA(ld_i_clnt_dep) | = ' '. | |||
Search for further information about these or an SAP related objects