SAP IMKEY_TO_INTRENO_WRITE Function Module for
IMKEY_TO_INTRENO_WRITE is a standard imkey to intreno write 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 imkey to intreno write FM, simply by entering the name IMKEY_TO_INTRENO_WRITE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FIMK
Program Name: SAPLFIMK
Main Program: SAPLFIMK
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function IMKEY_TO_INTRENO_WRITE 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 'IMKEY_TO_INTRENO_WRITE'".
EXPORTING
I_INTRENO = "
* I_SVWNR = ' ' "
* I_SMIVE = ' ' "
* I_SMENR = ' ' "
* I_RECNNR = ' ' "
* I_KZ_FORCE_IMKEY = ' ' "
* I_BUKRS = ' ' "
* I_SGENR = ' ' "
* I_SGRNR = ' ' "
* I_SWENR = ' ' "
* I_J_OBJNR = ' ' "
* I_SBERI = ' ' "
* I_SEMPSL = ' ' "
* I_SNKSL = ' ' "
CHANGING
C_IMKEY = "
EXCEPTIONS
WRONG_INTRENO = 1 WRONG_IMMO_KEYS = 2 NO_ACCOUNTING_ALLOWED = 3 IMKEY_NUMBER_INVALID = 4
IMPORTING Parameters details for IMKEY_TO_INTRENO_WRITE
I_INTRENO -
Data type: VIZNRN-INTRENOOptional: No
Call by Reference: No ( called with pass by value option)
I_SVWNR -
Data type: VIZNRN-SVWNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SMIVE -
Data type: VIZNRN-SMIVEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SMENR -
Data type: VIZNRN-SMENRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_RECNNR -
Data type: VIZNRN-RECNNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_KZ_FORCE_IMKEY -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_BUKRS -
Data type: VIZNRN-BUKRSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SGENR -
Data type: VIZNRN-SGENRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SGRNR -
Data type: VIZNRN-SGRNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SWENR -
Data type: VIZNRN-SWENRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_J_OBJNR -
Data type: VIZNRN-J_OBJNRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SBERI -
Data type: VIZNRN-SBERIDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SEMPSL -
Data type: VIZNRN-SEMPSLDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SNKSL -
Data type: VIZNRN-SNKSLDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for IMKEY_TO_INTRENO_WRITE
C_IMKEY -
Data type: VIZNRN-IMKEYOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
WRONG_INTRENO -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
WRONG_IMMO_KEYS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_ACCOUNTING_ALLOWED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
IMKEY_NUMBER_INVALID -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for IMKEY_TO_INTRENO_WRITE 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_c_imkey | TYPE VIZNRN-IMKEY, " | |||
lv_i_intreno | TYPE VIZNRN-INTRENO, " | |||
lv_wrong_intreno | TYPE VIZNRN, " | |||
lv_i_svwnr | TYPE VIZNRN-SVWNR, " SPACE | |||
lv_i_smive | TYPE VIZNRN-SMIVE, " SPACE | |||
lv_i_smenr | TYPE VIZNRN-SMENR, " SPACE | |||
lv_i_recnnr | TYPE VIZNRN-RECNNR, " SPACE | |||
lv_i_kz_force_imkey | TYPE VIZNRN, " SPACE | |||
lv_i_bukrs | TYPE VIZNRN-BUKRS, " SPACE | |||
lv_wrong_immo_keys | TYPE VIZNRN, " | |||
lv_i_sgenr | TYPE VIZNRN-SGENR, " SPACE | |||
lv_no_accounting_allowed | TYPE VIZNRN, " | |||
lv_i_sgrnr | TYPE VIZNRN-SGRNR, " SPACE | |||
lv_imkey_number_invalid | TYPE VIZNRN, " | |||
lv_i_swenr | TYPE VIZNRN-SWENR, " SPACE | |||
lv_i_j_objnr | TYPE VIZNRN-J_OBJNR, " SPACE | |||
lv_i_sberi | TYPE VIZNRN-SBERI, " SPACE | |||
lv_i_sempsl | TYPE VIZNRN-SEMPSL, " SPACE | |||
lv_i_snksl | TYPE VIZNRN-SNKSL. " SPACE |
  CALL FUNCTION 'IMKEY_TO_INTRENO_WRITE' " |
EXPORTING | ||
I_INTRENO | = lv_i_intreno | |
I_SVWNR | = lv_i_svwnr | |
I_SMIVE | = lv_i_smive | |
I_SMENR | = lv_i_smenr | |
I_RECNNR | = lv_i_recnnr | |
I_KZ_FORCE_IMKEY | = lv_i_kz_force_imkey | |
I_BUKRS | = lv_i_bukrs | |
I_SGENR | = lv_i_sgenr | |
I_SGRNR | = lv_i_sgrnr | |
I_SWENR | = lv_i_swenr | |
I_J_OBJNR | = lv_i_j_objnr | |
I_SBERI | = lv_i_sberi | |
I_SEMPSL | = lv_i_sempsl | |
I_SNKSL | = lv_i_snksl | |
CHANGING | ||
C_IMKEY | = lv_c_imkey | |
EXCEPTIONS | ||
WRONG_INTRENO = 1 | ||
WRONG_IMMO_KEYS = 2 | ||
NO_ACCOUNTING_ALLOWED = 3 | ||
IMKEY_NUMBER_INVALID = 4 | ||
. " IMKEY_TO_INTRENO_WRITE |
ABAP code using 7.40 inline data declarations to call FM IMKEY_TO_INTRENO_WRITE
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 IMKEY FROM VIZNRN INTO @DATA(ld_c_imkey). | ||||
"SELECT single INTRENO FROM VIZNRN INTO @DATA(ld_i_intreno). | ||||
"SELECT single SVWNR FROM VIZNRN INTO @DATA(ld_i_svwnr). | ||||
DATA(ld_i_svwnr) | = ' '. | |||
"SELECT single SMIVE FROM VIZNRN INTO @DATA(ld_i_smive). | ||||
DATA(ld_i_smive) | = ' '. | |||
"SELECT single SMENR FROM VIZNRN INTO @DATA(ld_i_smenr). | ||||
DATA(ld_i_smenr) | = ' '. | |||
"SELECT single RECNNR FROM VIZNRN INTO @DATA(ld_i_recnnr). | ||||
DATA(ld_i_recnnr) | = ' '. | |||
DATA(ld_i_kz_force_imkey) | = ' '. | |||
"SELECT single BUKRS FROM VIZNRN INTO @DATA(ld_i_bukrs). | ||||
DATA(ld_i_bukrs) | = ' '. | |||
"SELECT single SGENR FROM VIZNRN INTO @DATA(ld_i_sgenr). | ||||
DATA(ld_i_sgenr) | = ' '. | |||
"SELECT single SGRNR FROM VIZNRN INTO @DATA(ld_i_sgrnr). | ||||
DATA(ld_i_sgrnr) | = ' '. | |||
"SELECT single SWENR FROM VIZNRN INTO @DATA(ld_i_swenr). | ||||
DATA(ld_i_swenr) | = ' '. | |||
"SELECT single J_OBJNR FROM VIZNRN INTO @DATA(ld_i_j_objnr). | ||||
DATA(ld_i_j_objnr) | = ' '. | |||
"SELECT single SBERI FROM VIZNRN INTO @DATA(ld_i_sberi). | ||||
DATA(ld_i_sberi) | = ' '. | |||
"SELECT single SEMPSL FROM VIZNRN INTO @DATA(ld_i_sempsl). | ||||
DATA(ld_i_sempsl) | = ' '. | |||
"SELECT single SNKSL FROM VIZNRN INTO @DATA(ld_i_snksl). | ||||
DATA(ld_i_snksl) | = ' '. | |||
Search for further information about these or an SAP related objects