SAP K_FM_SELECTION_SCREEN_SET Function Module for









K_FM_SELECTION_SCREEN_SET is a standard k fm selection screen set 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 k fm selection screen set FM, simply by entering the name K_FM_SELECTION_SCREEN_SET into the relevant SAP transaction such as SE37 or SE38.

Function Group: FM_SEL_SCREEN_CO
Program Name: SAPLFM_SEL_SCREEN_CO
Main Program: SAPLFM_SEL_SCREEN_CO
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function K_FM_SELECTION_SCREEN_SET 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 'K_FM_SELECTION_SCREEN_SET'"
EXPORTING
I_KOKRS = "
* I_FLG_FUND = 'X' "
* I_FLG_FAREA = 'X' "
* I_FLG_GRANT = 'X' "
* I_FLG_DISPLAY_ONLY = ' ' "
* I_FLG_BUD_PER = "

IMPORTING
E_REPID_SUB = "
E_DYNNR_SUB = "

EXCEPTIONS
INVALID_KOKRS = 1
.



IMPORTING Parameters details for K_FM_SELECTION_SCREEN_SET

I_KOKRS -

Data type: TKA01-KOKRS
Optional: No
Call by Reference: Yes

I_FLG_FUND -

Data type: FMDY-XFELD
Default: 'X'
Optional: No
Call by Reference: Yes

I_FLG_FAREA -

Data type: FMDY-XFELD
Default: 'X'
Optional: No
Call by Reference: Yes

I_FLG_GRANT -

Data type: FMDY-XFELD
Default: 'X'
Optional: No
Call by Reference: Yes

I_FLG_DISPLAY_ONLY -

Data type: FMDY-XFELD
Default: ' '
Optional: No
Call by Reference: Yes

I_FLG_BUD_PER -

Data type: XFELD
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for K_FM_SELECTION_SCREEN_SET

E_REPID_SUB -

Data type: SY-REPID
Optional: No
Call by Reference: No ( called with pass by value option)

E_DYNNR_SUB -

Data type: SY-DYNNR
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

INVALID_KOKRS -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for K_FM_SELECTION_SCREEN_SET 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_kokrs  TYPE TKA01-KOKRS, "   
lv_e_repid_sub  TYPE SY-REPID, "   
lv_invalid_kokrs  TYPE SY, "   
lv_i_flg_fund  TYPE FMDY-XFELD, "   'X'
lv_e_dynnr_sub  TYPE SY-DYNNR, "   
lv_i_flg_farea  TYPE FMDY-XFELD, "   'X'
lv_i_flg_grant  TYPE FMDY-XFELD, "   'X'
lv_i_flg_display_only  TYPE FMDY-XFELD, "   ' '
lv_i_flg_bud_per  TYPE XFELD. "   

  CALL FUNCTION 'K_FM_SELECTION_SCREEN_SET'  "
    EXPORTING
         I_KOKRS = lv_i_kokrs
         I_FLG_FUND = lv_i_flg_fund
         I_FLG_FAREA = lv_i_flg_farea
         I_FLG_GRANT = lv_i_flg_grant
         I_FLG_DISPLAY_ONLY = lv_i_flg_display_only
         I_FLG_BUD_PER = lv_i_flg_bud_per
    IMPORTING
         E_REPID_SUB = lv_e_repid_sub
         E_DYNNR_SUB = lv_e_dynnr_sub
    EXCEPTIONS
        INVALID_KOKRS = 1
. " K_FM_SELECTION_SCREEN_SET




ABAP code using 7.40 inline data declarations to call FM K_FM_SELECTION_SCREEN_SET

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 KOKRS FROM TKA01 INTO @DATA(ld_i_kokrs).
 
"SELECT single REPID FROM SY INTO @DATA(ld_e_repid_sub).
 
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_fund).
DATA(ld_i_flg_fund) = 'X'.
 
"SELECT single DYNNR FROM SY INTO @DATA(ld_e_dynnr_sub).
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_farea).
DATA(ld_i_flg_farea) = 'X'.
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_grant).
DATA(ld_i_flg_grant) = 'X'.
 
"SELECT single XFELD FROM FMDY INTO @DATA(ld_i_flg_display_only).
DATA(ld_i_flg_display_only) = ' '.
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!