SAP REMD_GET_IMKEY_FOR_SELECT_OPT Function Module for









REMD_GET_IMKEY_FOR_SELECT_OPT is a standard remd get imkey for select opt 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 remd get imkey for select opt FM, simply by entering the name REMD_GET_IMKEY_FOR_SELECT_OPT into the relevant SAP transaction such as SE37 or SE38.

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



Function REMD_GET_IMKEY_FOR_SELECT_OPT 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 'REMD_GET_IMKEY_FOR_SELECT_OPT'"
EXPORTING
* I_BUKRS = "
* I_DSTICH = SY-DATUM "
* I_DVON = "
* I_DBIS = "
* I_REC_ALL = "Checkbox

TABLES
S_SWENR = "
* S_OBART = "
* S_VONBIS = "
E_IMKEYS = "
S_SGENR = "
S_SGRNR = "
S_SMENR = "
S_SMIVE = "
S_SVWNR = "
S_SNKSL = "
S_EMPSL = "
S_RECNNR = "
.



IMPORTING Parameters details for REMD_GET_IMKEY_FOR_SELECT_OPT

I_BUKRS -

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

I_DSTICH -

Data type: VIAK25-DPERBEG
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DVON -

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

I_DBIS -

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

I_REC_ALL - Checkbox

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

TABLES Parameters details for REMD_GET_IMKEY_FOR_SELECT_OPT

S_SWENR -

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

S_OBART -

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

S_VONBIS -

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

E_IMKEYS -

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

S_SGENR -

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

S_SGRNR -

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

S_SMENR -

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

S_SMIVE -

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

S_SVWNR -

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

S_SNKSL -

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

S_EMPSL -

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

S_RECNNR -

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

Copy and paste ABAP code example for REMD_GET_IMKEY_FOR_SELECT_OPT 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_bukrs  TYPE VIOB01-BUKRS, "   
lt_s_swenr  TYPE STANDARD TABLE OF RSOSWENR, "   
lt_s_obart  TYPE STANDARD TABLE OF RSOOBART, "   
lt_s_vonbis  TYPE STANDARD TABLE OF RSODATUM, "   
lt_e_imkeys  TYPE STANDARD TABLE OF VIREKEY, "   
lt_s_sgenr  TYPE STANDARD TABLE OF RSOSGENR, "   
lv_i_dstich  TYPE VIAK25-DPERBEG, "   SY-DATUM
lv_i_dvon  TYPE RFVILSP-DVONDAT, "   
lt_s_sgrnr  TYPE STANDARD TABLE OF RSOSGRNR, "   
lv_i_dbis  TYPE RFVILSP-DBISDAT, "   
lt_s_smenr  TYPE STANDARD TABLE OF RSOSMENR, "   
lt_s_smive  TYPE STANDARD TABLE OF RSOSMIVE, "   
lv_i_rec_all  TYPE RECNFLDS-CHECK_1, "   
lt_s_svwnr  TYPE STANDARD TABLE OF RSOSVWNR, "   
lt_s_snksl  TYPE STANDARD TABLE OF RSOSNKSL, "   
lt_s_empsl  TYPE STANDARD TABLE OF RSOSEMPSL, "   
lt_s_recnnr  TYPE STANDARD TABLE OF RSORECNNR. "   

  CALL FUNCTION 'REMD_GET_IMKEY_FOR_SELECT_OPT'  "
    EXPORTING
         I_BUKRS = lv_i_bukrs
         I_DSTICH = lv_i_dstich
         I_DVON = lv_i_dvon
         I_DBIS = lv_i_dbis
         I_REC_ALL = lv_i_rec_all
    TABLES
         S_SWENR = lt_s_swenr
         S_OBART = lt_s_obart
         S_VONBIS = lt_s_vonbis
         E_IMKEYS = lt_e_imkeys
         S_SGENR = lt_s_sgenr
         S_SGRNR = lt_s_sgrnr
         S_SMENR = lt_s_smenr
         S_SMIVE = lt_s_smive
         S_SVWNR = lt_s_svwnr
         S_SNKSL = lt_s_snksl
         S_EMPSL = lt_s_empsl
         S_RECNNR = lt_s_recnnr
. " REMD_GET_IMKEY_FOR_SELECT_OPT




ABAP code using 7.40 inline data declarations to call FM REMD_GET_IMKEY_FOR_SELECT_OPT

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 BUKRS FROM VIOB01 INTO @DATA(ld_i_bukrs).
 
 
 
 
 
 
"SELECT single DPERBEG FROM VIAK25 INTO @DATA(ld_i_dstich).
DATA(ld_i_dstich) = SY-DATUM.
 
"SELECT single DVONDAT FROM RFVILSP INTO @DATA(ld_i_dvon).
 
 
"SELECT single DBISDAT FROM RFVILSP INTO @DATA(ld_i_dbis).
 
 
 
"SELECT single CHECK_1 FROM RECNFLDS INTO @DATA(ld_i_rec_all).
 
 
 
 
 


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!