SAP F4_FOR_SL_DIMENSION Function Module for
F4_FOR_SL_DIMENSION is a standard f4 for sl dimension SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 f4 for sl dimension FM, simply by entering the name F4_FOR_SL_DIMENSION into the relevant SAP transaction such as SE37 or SE38.
Function Group: GLF4
Program Name: SAPLGLF4
Main Program:
Appliation area: G
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function F4_FOR_SL_DIMENSION 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 'F4_FOR_SL_DIMENSION'".
EXPORTING
TABNAME = "
FIELDNAME = "
* FIELDNAME_DYNP = ' ' "
* FIELDVALUE = ' ' "
* CHECK_TYP = '0' "
* RECORD_KEY = '' "
IMPORTING
CHOSEN_VALUE = "
TABLES
* KEY_FIELDS = "
EXCEPTIONS
NO_T800D_ENTRY = 1
IMPORTING Parameters details for F4_FOR_SL_DIMENSION
TABNAME -
Data type: T800D-TABOptional: No
Call by Reference: No ( called with pass by value option)
FIELDNAME -
Data type: T800D-FELDOptional: No
Call by Reference: No ( called with pass by value option)
FIELDNAME_DYNP -
Data type: HELP_INFO-DYNPROFLDDefault: ' '
Optional: No
Call by Reference: No ( called with pass by value option)
FIELDVALUE -
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHECK_TYP -
Data type: RGUMD-CHECK_TYPDefault: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)
RECORD_KEY -
Data type: ANYDefault: ''
Optional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for F4_FOR_SL_DIMENSION
CHOSEN_VALUE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for F4_FOR_SL_DIMENSION
KEY_FIELDS -
Data type: DFIESOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_T800D_ENTRY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for F4_FOR_SL_DIMENSION 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 T800D-TAB, " | |||
| lt_key_fields | TYPE STANDARD TABLE OF DFIES, " | |||
| lv_chosen_value | TYPE DFIES, " | |||
| lv_no_t800d_entry | TYPE DFIES, " | |||
| lv_fieldname | TYPE T800D-FELD, " | |||
| lv_fieldname_dynp | TYPE HELP_INFO-DYNPROFLD, " ' ' | |||
| lv_fieldvalue | TYPE HELP_INFO, " ' ' | |||
| lv_check_typ | TYPE RGUMD-CHECK_TYP, " '0' | |||
| lv_record_key | TYPE ANY. " '' |
|   CALL FUNCTION 'F4_FOR_SL_DIMENSION' " |
| EXPORTING | ||
| TABNAME | = lv_tabname | |
| FIELDNAME | = lv_fieldname | |
| FIELDNAME_DYNP | = lv_fieldname_dynp | |
| FIELDVALUE | = lv_fieldvalue | |
| CHECK_TYP | = lv_check_typ | |
| RECORD_KEY | = lv_record_key | |
| IMPORTING | ||
| CHOSEN_VALUE | = lv_chosen_value | |
| TABLES | ||
| KEY_FIELDS | = lt_key_fields | |
| EXCEPTIONS | ||
| NO_T800D_ENTRY = 1 | ||
| . " F4_FOR_SL_DIMENSION | ||
ABAP code using 7.40 inline data declarations to call FM F4_FOR_SL_DIMENSION
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 TAB FROM T800D INTO @DATA(ld_tabname). | ||||
| "SELECT single FELD FROM T800D INTO @DATA(ld_fieldname). | ||||
| "SELECT single DYNPROFLD FROM HELP_INFO INTO @DATA(ld_fieldname_dynp). | ||||
| DATA(ld_fieldname_dynp) | = ' '. | |||
| DATA(ld_fieldvalue) | = ' '. | |||
| "SELECT single CHECK_TYP FROM RGUMD INTO @DATA(ld_check_typ). | ||||
| DATA(ld_check_typ) | = '0'. | |||
| DATA(ld_record_key) | = ''. | |||
Search for further information about these or an SAP related objects