SAP FC_GET_SELECT_OPTION Function Module for









FC_GET_SELECT_OPTION is a standard fc get select option 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 fc get select option FM, simply by entering the name FC_GET_SELECT_OPTION into the relevant SAP transaction such as SE37 or SE38.

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



Function FC_GET_SELECT_OPTION 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 'FC_GET_SELECT_OPTION'"
EXPORTING
* E_CACTI = "
* E_TOTAL_FLAG = ' ' "
* E_STATUS = ' ' "Status of consolidation units
* E_MONITOR_FLAG = ' ' "

IMPORTING
I_ANSWER = "
I_COPY_FLAG = "
I_READY_FLAG = "
I_NREADY_FLAG = "
I_ERRALL_FLAG = "
I_INITALL_FLAG = "
I_DMULOCK_FLAG = "
I_INIT_FLAG = "
I_INCOMP_FLAG = "
I_ERR_FLAG = "
I_OK_FLAG = "
I_LOCK_FLAG = "
I_ULOCK_FLAG = "
I_WSIGN_FLAG = "
I_PRELIM_FLAG = "
.



IMPORTING Parameters details for FC_GET_SELECT_OPTION

E_CACTI -

Data type: FC_CACTI
Optional: Yes
Call by Reference: No ( called with pass by value option)

E_TOTAL_FLAG -

Data type: FC_FLG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

E_STATUS - Status of consolidation units

Data type: FC_STATUS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

E_MONITOR_FLAG -

Data type: FC_FLG
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FC_GET_SELECT_OPTION

I_ANSWER -

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

I_COPY_FLAG -

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

I_READY_FLAG -

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

I_NREADY_FLAG -

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

I_ERRALL_FLAG -

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

I_INITALL_FLAG -

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

I_DMULOCK_FLAG -

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

I_INIT_FLAG -

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

I_INCOMP_FLAG -

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

I_ERR_FLAG -

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

I_OK_FLAG -

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

I_LOCK_FLAG -

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

I_ULOCK_FLAG -

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

I_WSIGN_FLAG -

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

I_PRELIM_FLAG -

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

Copy and paste ABAP code example for FC_GET_SELECT_OPTION 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_e_cacti  TYPE FC_CACTI, "   
lv_i_answer  TYPE FC_CACTI, "   
lv_i_copy_flag  TYPE FC_CACTI, "   
lv_i_ready_flag  TYPE FC_CACTI, "   
lv_i_nready_flag  TYPE FC_CACTI, "   
lv_i_errall_flag  TYPE FC_CACTI, "   
lv_i_initall_flag  TYPE FC_CACTI, "   
lv_i_dmulock_flag  TYPE FC_CACTI, "   
lv_i_init_flag  TYPE FC_CACTI, "   
lv_e_total_flag  TYPE FC_FLG, "   SPACE
lv_e_status  TYPE FC_STATUS, "   SPACE
lv_i_incomp_flag  TYPE FC_STATUS, "   
lv_i_err_flag  TYPE FC_STATUS, "   
lv_e_monitor_flag  TYPE FC_FLG, "   SPACE
lv_i_ok_flag  TYPE FC_FLG, "   
lv_i_lock_flag  TYPE FC_FLG, "   
lv_i_ulock_flag  TYPE FC_FLG, "   
lv_i_wsign_flag  TYPE FC_FLG, "   
lv_i_prelim_flag  TYPE FC_FLG. "   

  CALL FUNCTION 'FC_GET_SELECT_OPTION'  "
    EXPORTING
         E_CACTI = lv_e_cacti
         E_TOTAL_FLAG = lv_e_total_flag
         E_STATUS = lv_e_status
         E_MONITOR_FLAG = lv_e_monitor_flag
    IMPORTING
         I_ANSWER = lv_i_answer
         I_COPY_FLAG = lv_i_copy_flag
         I_READY_FLAG = lv_i_ready_flag
         I_NREADY_FLAG = lv_i_nready_flag
         I_ERRALL_FLAG = lv_i_errall_flag
         I_INITALL_FLAG = lv_i_initall_flag
         I_DMULOCK_FLAG = lv_i_dmulock_flag
         I_INIT_FLAG = lv_i_init_flag
         I_INCOMP_FLAG = lv_i_incomp_flag
         I_ERR_FLAG = lv_i_err_flag
         I_OK_FLAG = lv_i_ok_flag
         I_LOCK_FLAG = lv_i_lock_flag
         I_ULOCK_FLAG = lv_i_ulock_flag
         I_WSIGN_FLAG = lv_i_wsign_flag
         I_PRELIM_FLAG = lv_i_prelim_flag
. " FC_GET_SELECT_OPTION




ABAP code using 7.40 inline data declarations to call FM FC_GET_SELECT_OPTION

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_e_total_flag) = ' '.
 
DATA(ld_e_status) = ' '.
 
 
 
DATA(ld_e_monitor_flag) = ' '.
 
 
 
 
 
 


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!