SAP REMD_DECODE_IMKEY Function Module for









REMD_DECODE_IMKEY is a standard remd decode imkey 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 decode imkey FM, simply by entering the name REMD_DECODE_IMKEY 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_DECODE_IMKEY 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_DECODE_IMKEY'"
EXPORTING
* I_MANDT = ' ' "Client
* I_DSTICH = '00000000' "Date and Time, Current (Application Server) Date
* I_IMKEY = ' ' "IMKEY
* I_INTRENO = ' ' "
* I_OBJNR = ' ' "CO Object Number
* I_DABRBEZ = "
* I_NPERSOND = "
* I_FLAG_HIERARCHY = ' ' "
* I_FLAG_WITH_TEXT = ' ' "
* I_FLAG_REFRESH_TABS = ' ' "

IMPORTING
E_OBJTYP = "
E_VIREMASTER = "
E_TEXT = "Object Text

TABLES
* T_VIOB01 = "Business Entity
* T_VIBEAM = "
* T_VICN01 = "Real Estate contract
* T_VIGWARFL = "
* T_VIGWARRA = "
* T_VIGWVMFL = "
* T_VIOB02 = "Land
* T_VIOB03 = "Buildings
* T_VIMI01 = "Rental Unit
* T_VIMIMV = "Lease-Out
* T_VIVW01 = "Management Contract
* T_VIAK03 = "Settlement Unit
* T_VIAK25 = "
* T_VIBEBE = "Correction Items

EXCEPTIONS
OBJECT_DOES_NOT_EXIST = 1 OBJECT_KEY_INCONSISTENT = 2
.



IMPORTING Parameters details for REMD_DECODE_IMKEY

I_MANDT - Client

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

I_DSTICH - Date and Time, Current (Application Server) Date

Data type: SYDATUM
Default: '00000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_IMKEY - IMKEY

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

I_INTRENO -

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

I_OBJNR - CO Object Number

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

I_DABRBEZ -

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

I_NPERSOND -

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

I_FLAG_HIERARCHY -

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

I_FLAG_WITH_TEXT -

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

I_FLAG_REFRESH_TABS -

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

EXPORTING Parameters details for REMD_DECODE_IMKEY

E_OBJTYP -

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

E_VIREMASTER -

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

E_TEXT - Object Text

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

TABLES Parameters details for REMD_DECODE_IMKEY

T_VIOB01 - Business Entity

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

T_VIBEAM -

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

T_VICN01 - Real Estate contract

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

T_VIGWARFL -

Data type:
Optional: Yes
Call by Reference: Yes

T_VIGWARRA -

Data type:
Optional: Yes
Call by Reference: Yes

T_VIGWVMFL -

Data type:
Optional: Yes
Call by Reference: Yes

T_VIOB02 - Land

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

T_VIOB03 - Buildings

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

T_VIMI01 - Rental Unit

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

T_VIMIMV - Lease-Out

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

T_VIVW01 - Management Contract

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

T_VIAK03 - Settlement Unit

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

T_VIAK25 -

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

T_VIBEBE - Correction Items

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

EXCEPTIONS details

OBJECT_DOES_NOT_EXIST -

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

OBJECT_KEY_INCONSISTENT - Object Does Not Exist

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

Copy and paste ABAP code example for REMD_DECODE_IMKEY 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_mandt  TYPE SY-MANDT, "   SPACE
lv_e_objtyp  TYPE TIVA5-VVIMKOB, "   
lt_t_viob01  TYPE STANDARD TABLE OF VIOB01, "   
lv_object_does_not_exist  TYPE VIOB01, "   
lv_i_dstich  TYPE SYDATUM, "   '00000000'
lt_t_vibeam  TYPE STANDARD TABLE OF VIBEAM, "   
lt_t_vicn01  TYPE STANDARD TABLE OF VICN01, "   
lt_t_vigwarfl  TYPE STANDARD TABLE OF VICN01, "   
lt_t_vigwarra  TYPE STANDARD TABLE OF VICN01, "   
lt_t_vigwvmfl  TYPE STANDARD TABLE OF VICN01, "   
lv_i_imkey  TYPE VIOB01-IMKEY, "   SPACE
lt_t_viob02  TYPE STANDARD TABLE OF VIOB02, "   
lv_e_viremaster  TYPE VIREMASTER, "   
lv_object_key_inconsistent  TYPE VIREMASTER, "   
lv_e_text  TYPE VIREMASTER, "   
lt_t_viob03  TYPE STANDARD TABLE OF VIOB03, "   
lv_i_intreno  TYPE VIOB01-INTRENO, "   SPACE
lv_i_objnr  TYPE VIOB01-J_OBJNR, "   SPACE
lt_t_vimi01  TYPE STANDARD TABLE OF VIMI01, "   
lt_t_vimimv  TYPE STANDARD TABLE OF VIMIMV, "   
lv_i_dabrbez  TYPE COBL-DABRZ, "   
lt_t_vivw01  TYPE STANDARD TABLE OF VIVW01, "   
lv_i_npersond  TYPE VIAK25-NPERSOND, "   
lt_t_viak03  TYPE STANDARD TABLE OF VIAK03, "   
lv_i_flag_hierarchy  TYPE VIAK03, "   SPACE
lt_t_viak25  TYPE STANDARD TABLE OF VIAK25, "   
lv_i_flag_with_text  TYPE VIAK25, "   SPACE
lt_t_vibebe  TYPE STANDARD TABLE OF VIBEBE, "   
lv_i_flag_refresh_tabs  TYPE C. "   SPACE

  CALL FUNCTION 'REMD_DECODE_IMKEY'  "
    EXPORTING
         I_MANDT = lv_i_mandt
         I_DSTICH = lv_i_dstich
         I_IMKEY = lv_i_imkey
         I_INTRENO = lv_i_intreno
         I_OBJNR = lv_i_objnr
         I_DABRBEZ = lv_i_dabrbez
         I_NPERSOND = lv_i_npersond
         I_FLAG_HIERARCHY = lv_i_flag_hierarchy
         I_FLAG_WITH_TEXT = lv_i_flag_with_text
         I_FLAG_REFRESH_TABS = lv_i_flag_refresh_tabs
    IMPORTING
         E_OBJTYP = lv_e_objtyp
         E_VIREMASTER = lv_e_viremaster
         E_TEXT = lv_e_text
    TABLES
         T_VIOB01 = lt_t_viob01
         T_VIBEAM = lt_t_vibeam
         T_VICN01 = lt_t_vicn01
         T_VIGWARFL = lt_t_vigwarfl
         T_VIGWARRA = lt_t_vigwarra
         T_VIGWVMFL = lt_t_vigwvmfl
         T_VIOB02 = lt_t_viob02
         T_VIOB03 = lt_t_viob03
         T_VIMI01 = lt_t_vimi01
         T_VIMIMV = lt_t_vimimv
         T_VIVW01 = lt_t_vivw01
         T_VIAK03 = lt_t_viak03
         T_VIAK25 = lt_t_viak25
         T_VIBEBE = lt_t_vibebe
    EXCEPTIONS
        OBJECT_DOES_NOT_EXIST = 1
        OBJECT_KEY_INCONSISTENT = 2
. " REMD_DECODE_IMKEY




ABAP code using 7.40 inline data declarations to call FM REMD_DECODE_IMKEY

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 MANDT FROM SY INTO @DATA(ld_i_mandt).
DATA(ld_i_mandt) = ' '.
 
"SELECT single VVIMKOB FROM TIVA5 INTO @DATA(ld_e_objtyp).
 
 
 
DATA(ld_i_dstich) = '00000000'.
 
 
 
 
 
 
"SELECT single IMKEY FROM VIOB01 INTO @DATA(ld_i_imkey).
DATA(ld_i_imkey) = ' '.
 
 
 
 
 
 
"SELECT single INTRENO FROM VIOB01 INTO @DATA(ld_i_intreno).
DATA(ld_i_intreno) = ' '.
 
"SELECT single J_OBJNR FROM VIOB01 INTO @DATA(ld_i_objnr).
DATA(ld_i_objnr) = ' '.
 
 
 
"SELECT single DABRZ FROM COBL INTO @DATA(ld_i_dabrbez).
 
 
"SELECT single NPERSOND FROM VIAK25 INTO @DATA(ld_i_npersond).
 
 
DATA(ld_i_flag_hierarchy) = ' '.
 
 
DATA(ld_i_flag_with_text) = ' '.
 
 
DATA(ld_i_flag_refresh_tabs) = ' '.
 


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!