SAP Function TR_F4_HELP - General F4 help (with single/multiple selection)

Parameter Reference Type Length Default Optional Text
IS_SEL_TITLE1 0 ' ' X First header line of the list
IS_SEL_TITLE2 0 ' ' X Second header line of the list
IV_EXTENDED_DISPLAY TRPARI-FLAG C 1 ' ' X X = Detail display possible
IV_MULTIPLE_SELECTION TRPARI-FLAG C 1 ' ' X With multiple selection
IV_NO_OF_KEY_COLUMNS SYST-TABIX I 4 0 X No. of key fields in table
IV_NUMBER_OF_ROWS SYST-TABIX I 4 8 X No. of lines on the dialog box (not exact)
IV_SHOW_ALSO_1 TRPARI-FLAG C 1 ' ' X Also display list with only one entry
IV_START_COLUMN SYST-CUCOL I 4 0 X Column in which the dialog box begins
IV_START_ROW SYST-CUROW I 4 3 X Line in which the dialog box begins
IV_TITLE C C 0 Dialog box title
IV_WIDTH_OF_TITLES TRPARI-FLAG C 1 ' ' X Take into account title length for output width
IV_WITHOUT_SELECTION TRPARI-FLAG C 1 ' ' X Without selection option
IV_WITH_FILTER_ICON TRPARI-FLAG C 1 ' ' X With filter icon
IV_WITH_OTHER_VIEW_ICON TRPARI-FLAG C 1 ' ' X
IV_WITH_PRINTER_ICON TRPARI-FLAG C 1 ' ' X With print icon
IV_WITH_SEARCH_ICON TRPARI-FLAG C 1 ' ' X With find icon
IV_WITH_SORT_ICON TRPARI-FLAG C 1 ' ' X With sort icon

Parameter Reference Type Length Text
EV_EXT_DISPLAY_SELECTED TRPARI-FLAG C 1 'X': Detail display requested
EV_OTHER_VIEW_SELECTED TRPARI-FLAG C 1

Parameter Reference Type Length Default Optional Text
CT_SEL_LINES STR4_SEL_LINES 0 X Selected lines in multiple selection
CV_FIRST_INDEX SYST-TABIX I 4 1 X Index of lines that are shown uppermost
CV_SELECTED_INDEX SYST-TABIX I 4 0 X Selected table index

Parameter Reference Length Optional Text
IT_SEL_TABLE 0 Table

Exception Text
NO_LINES Do not transfer line
NO_LINE_PICKED No line selected

Functionality
With this function module you can simulate the standard F4 help for anyfield. It shows the possible entries transferred with the import table"IT_SEL_TABLE".

Notes

IT_SEL_TABLE
The import table "IT_SEL_TABLE" can have a structure of your choice,however the total length of a row must not exceed 255.

IV_TITLE
The import parameter "IV_TITLE" passes the title on the frame of thedialog box.

IV_SEL_TITLE1 and IV_SEL_TITLE2
The import parameter "IV_SEL_TITLE1" and "IV_SEL_TITLE2" pass thetitles on the list.

IV_START_COLUMN and IV_START_ROW
Use the import parameters "IV_START_COLUMN" and "IV_START_ROW" todetermine in which column and row the dialog box should begin.

IV_NUMBER_OF_ROWS
The import parameter "IV_NUMBER_OF_ROWS" determines how many rows thedialog box contains.

IV_NO_OF_KEY_COLUMNS
The import parameter "IV_NO_OF_KEY_COLUMNS" determines how many columnsare output in the color for key fields.

IV_WIDTH_OF_TITLES
The width of the columns is normally calculated from their contents. Ifthe import parameter "IV_WIDTH_OF_TITLES" is set, the import parameters"IV_SEL_TITLE1" and "IV_SEL_TITLE2" are also taken into account.

IV_WITHOUT_SELECTION
If the import parameter "IV_WITHOUT_SELECTION" is set, then the userhas no selection options.

IV_MULTIPLE_SELECTION
If the import parameter "IV_MULTIPLE_SELECTION" is set, then a checkboxappears on the dialog box for each entry and the user can selectseveral entries simultaneously.

IV_WITH_SORT_ICON, IV_WITH_PRINTER_ICON, IV_WITH_FILTER_ICON,IV_WITH_SEARCH_ICON
You can activate additional application toolbars with the importparameters "IV_WITH_SORT_ICON", "IV_WITH_PRINTER_ICON",IV_WITH_FILTER_ICON", IV_WITH_SEARCH_ICON".

IV_EXTENDED_DISPLAY, EV_EXT_DISPLAY_SELECTED, CV_SELECTED_INDEX
If the parameter "IV_EXTENDED_DISPLAY" is set, and the user selects anentry with a double-click, then the export parameter"EV_EXT_DISPLAY_SELECTED" is filled. The selected index is in theparameter "CV_SELECTED_INDEX", and the function module is exited.

IV_SHOW_ALSO_1
If the value table "IT_SEL_TABLE" only contains one value, then thesingle value is not displayed as standard in a dialog box. Instead, itis passed immediately to the calling program. The parameter"IV_SHOW_ALSO_1" sends the dialog box, even when only one row can beselected.

CV_FIRST_INDEX
Use the changing parameter "CV_FIRST_INDEX" to define which row will bedisplayed uppermost.

CV_SELECTED_INDEX, CT_SEL_LINES
The changing parameter "CV_SELECTED_INDEX" specifies which index wasselected. For multiple selections, the selected indexes are in thetable "CT_SEL_LINES".
If this parameter is selected, you will not be able to select a row in
the list.
This means that the list is only displayed.