SAP SLS_MISC_F4_HELP Function Module for F4 help for PAW screens
SLS_MISC_F4_HELP is a standard sls misc f4 help SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for F4 help for PAW screens 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 sls misc f4 help FM, simply by entering the name SLS_MISC_F4_HELP into the relevant SAP transaction such as SE37 or SE38.
Function Group: SLS0
Program Name: SAPLSLS0
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SLS_MISC_F4_HELP 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 'SLS_MISC_F4_HELP'"F4 help for PAW screens.
EXPORTING
TABNAME = "Table name
* MULTIPLE_CHOICE = ' ' "DD: truth value
* DISPLAY = ' ' "DD: truth value
* SUPPRESS_RECORDLIST = ' ' "Suppress display of hit list
* CALLBACK_PROGRAM = ' ' "ABAP program, current main program
* CALLBACK_FORM = ' ' "Internal
* SELECTION_SCREEN = ' ' "DD: truth value
FIELDNAME = "Field name
* SEARCHHELP = ' ' "Name of a search help
* SHLPPARAM = ' ' "Name of a search help parameter
* DYNPPROG = ' ' "ABAP program, current main program
* DYNPNR = ' ' "ABAP program, number of current screen
* DYNPROFIELD = ' ' "Field name
* STEPL = 0 "Screens, current table line index
* VALUE = ' ' "Text (length 132)
TABLES
* RETURN_TAB = "Interface Structure Search Help <-> Help System
EXCEPTIONS
FIELD_NOT_FOUND = 1 NO_HELP_FOR_FIELD = 2 INCONSISTENT_HELP = 3 NO_VALUES_FOUND = 4
IMPORTING Parameters details for SLS_MISC_F4_HELP
TABNAME - Table name
Data type: DFIES-TABNAMEOptional: No
Call by Reference: No ( called with pass by value option)
MULTIPLE_CHOICE - DD: truth value
Data type: DDBOOL_DDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DISPLAY - DD: truth value
Data type: DDBOOL_DDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SUPPRESS_RECORDLIST - Suppress display of hit list
Data type: DDSHF4CTRL-HIDE_LISTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CALLBACK_PROGRAM - ABAP program, current main program
Data type: SY-REPIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CALLBACK_FORM - Internal
Data type: SY-XFORMDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SELECTION_SCREEN - DD: truth value
Data type: DDBOOL_DDefault: SPACE
Optional: Yes
Call by Reference: Yes
FIELDNAME - Field name
Data type: DFIES-FIELDNAMEOptional: No
Call by Reference: No ( called with pass by value option)
SEARCHHELP - Name of a search help
Data type: SHLPNAMEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SHLPPARAM - Name of a search help parameter
Data type: SHLPFIELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DYNPPROG - ABAP program, current main program
Data type: SY-REPIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DYNPNR - ABAP program, number of current screen
Data type: SY-DYNNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DYNPROFIELD - Field name
Data type: HELP_INFO-DYNPROFLDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
STEPL - Screens, current table line index
Data type: SY-STEPLOptional: Yes
Call by Reference: No ( called with pass by value option)
VALUE - Text (length 132)
Data type: HELP_INFO-FLDVALUEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SLS_MISC_F4_HELP
RETURN_TAB - Interface Structure Search Help <-> Help System
Data type: DDSHRETVALOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
FIELD_NOT_FOUND - Field does not exist in the Dictionary
Data type:Optional: No
Call by Reference: Yes
NO_HELP_FOR_FIELD - No F4 help is defined for the field
Data type:Optional: No
Call by Reference: Yes
INCONSISTENT_HELP - F4 help for the field is inconsistent
Data type:Optional: No
Call by Reference: Yes
NO_VALUES_FOUND - No values found
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for SLS_MISC_F4_HELP 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_tabname | TYPE DFIES-TABNAME, " | |||
| lt_return_tab | TYPE STANDARD TABLE OF DDSHRETVAL, " | |||
| lv_field_not_found | TYPE DDSHRETVAL, " | |||
| lv_multiple_choice | TYPE DDBOOL_D, " SPACE | |||
| lv_display | TYPE DDBOOL_D, " SPACE | |||
| lv_suppress_recordlist | TYPE DDSHF4CTRL-HIDE_LIST, " SPACE | |||
| lv_callback_program | TYPE SY-REPID, " SPACE | |||
| lv_callback_form | TYPE SY-XFORM, " SPACE | |||
| lv_selection_screen | TYPE DDBOOL_D, " SPACE | |||
| lv_fieldname | TYPE DFIES-FIELDNAME, " | |||
| lv_no_help_for_field | TYPE DFIES, " | |||
| lv_searchhelp | TYPE SHLPNAME, " SPACE | |||
| lv_inconsistent_help | TYPE SHLPNAME, " | |||
| lv_shlpparam | TYPE SHLPFIELD, " SPACE | |||
| lv_no_values_found | TYPE SHLPFIELD, " | |||
| lv_dynpprog | TYPE SY-REPID, " SPACE | |||
| lv_dynpnr | TYPE SY-DYNNR, " SPACE | |||
| lv_dynprofield | TYPE HELP_INFO-DYNPROFLD, " SPACE | |||
| lv_stepl | TYPE SY-STEPL, " 0 | |||
| lv_value | TYPE HELP_INFO-FLDVALUE. " SPACE |
|   CALL FUNCTION 'SLS_MISC_F4_HELP' "F4 help for PAW screens |
| EXPORTING | ||
| TABNAME | = lv_tabname | |
| MULTIPLE_CHOICE | = lv_multiple_choice | |
| DISPLAY | = lv_display | |
| SUPPRESS_RECORDLIST | = lv_suppress_recordlist | |
| CALLBACK_PROGRAM | = lv_callback_program | |
| CALLBACK_FORM | = lv_callback_form | |
| SELECTION_SCREEN | = lv_selection_screen | |
| FIELDNAME | = lv_fieldname | |
| SEARCHHELP | = lv_searchhelp | |
| SHLPPARAM | = lv_shlpparam | |
| DYNPPROG | = lv_dynpprog | |
| DYNPNR | = lv_dynpnr | |
| DYNPROFIELD | = lv_dynprofield | |
| STEPL | = lv_stepl | |
| VALUE | = lv_value | |
| TABLES | ||
| RETURN_TAB | = lt_return_tab | |
| EXCEPTIONS | ||
| FIELD_NOT_FOUND = 1 | ||
| NO_HELP_FOR_FIELD = 2 | ||
| INCONSISTENT_HELP = 3 | ||
| NO_VALUES_FOUND = 4 | ||
| . " SLS_MISC_F4_HELP | ||
ABAP code using 7.40 inline data declarations to call FM SLS_MISC_F4_HELP
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 TABNAME FROM DFIES INTO @DATA(ld_tabname). | ||||
| DATA(ld_multiple_choice) | = ' '. | |||
| DATA(ld_display) | = ' '. | |||
| "SELECT single HIDE_LIST FROM DDSHF4CTRL INTO @DATA(ld_suppress_recordlist). | ||||
| DATA(ld_suppress_recordlist) | = ' '. | |||
| "SELECT single REPID FROM SY INTO @DATA(ld_callback_program). | ||||
| DATA(ld_callback_program) | = ' '. | |||
| "SELECT single XFORM FROM SY INTO @DATA(ld_callback_form). | ||||
| DATA(ld_callback_form) | = ' '. | |||
| DATA(ld_selection_screen) | = ' '. | |||
| "SELECT single FIELDNAME FROM DFIES INTO @DATA(ld_fieldname). | ||||
| DATA(ld_searchhelp) | = ' '. | |||
| DATA(ld_shlpparam) | = ' '. | |||
| "SELECT single REPID FROM SY INTO @DATA(ld_dynpprog). | ||||
| DATA(ld_dynpprog) | = ' '. | |||
| "SELECT single DYNNR FROM SY INTO @DATA(ld_dynpnr). | ||||
| DATA(ld_dynpnr) | = ' '. | |||
| "SELECT single DYNPROFLD FROM HELP_INFO INTO @DATA(ld_dynprofield). | ||||
| DATA(ld_dynprofield) | = ' '. | |||
| "SELECT single STEPL FROM SY INTO @DATA(ld_stepl). | ||||
| "SELECT single FLDVALUE FROM HELP_INFO INTO @DATA(ld_value). | ||||
| DATA(ld_value) | = ' '. | |||
Search for further information about these or an SAP related objects