SAP RRSV_EX_IN_CONVERT Function Module for Convert External to Internal Format
RRSV_EX_IN_CONVERT is a standard rrsv ex in convert SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Convert External to Internal Format processing and below is the pattern details for this FM, 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 rrsv ex in convert FM, simply by entering the name RRSV_EX_IN_CONVERT into the relevant SAP transaction such as SE37 or SE38.
Function Group: RRSV
Program Name: SAPLRRSV
Main Program: SAPLRRSV
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RRSV_EX_IN_CONVERT 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 'RRSV_EX_IN_CONVERT'"Convert External to Internal Format.
EXPORTING
I_CHAVL_EXT = "
* I_MASK = "
* I_CONVX = "
I_INTTP = "
I_INTLEN = "
I_OUTPUTLEN = "
* I_IOBJNM = "InfoObject
IMPORTING
E_CHAVL_INT = "
EXCEPTIONS
NO_INPUT_GIVEN = 1 INPUT_NOT_NUMERICAL = 2 CONVERSION_NOT_SUPPORTED = 3 DATE_NOT_CORRECT = 4 TIME_NOT_CORRECT = 5 INVALID_FORMAT = 6
IMPORTING Parameters details for RRSV_EX_IN_CONVERT
I_CHAVL_EXT -
Data type: CLIKEOptional: No
Call by Reference: No ( called with pass by value option)
I_MASK -
Data type: RSD_S_COB_PRO-MASKOptional: Yes
Call by Reference: No ( called with pass by value option)
I_CONVX -
Data type: RSD_S_COB_PRO-CONVEXITOptional: Yes
Call by Reference: No ( called with pass by value option)
I_INTTP -
Data type: RSD_S_COB_PRO-INTTPOptional: No
Call by Reference: No ( called with pass by value option)
I_INTLEN -
Data type: RSD_S_COB_PRO-INTLENOptional: No
Call by Reference: No ( called with pass by value option)
I_OUTPUTLEN -
Data type: RSD_S_COB_PRO-OUTPUTLENOptional: No
Call by Reference: No ( called with pass by value option)
I_IOBJNM - InfoObject
Data type: RSIOBJNMOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for RRSV_EX_IN_CONVERT
E_CHAVL_INT -
Data type: CLIKEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_INPUT_GIVEN -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INPUT_NOT_NUMERICAL -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CONVERSION_NOT_SUPPORTED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DATE_NOT_CORRECT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TIME_NOT_CORRECT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INVALID_FORMAT -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RRSV_EX_IN_CONVERT 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_chavl_int | TYPE CLIKE, " | |||
| lv_i_chavl_ext | TYPE CLIKE, " | |||
| lv_no_input_given | TYPE CLIKE, " | |||
| lv_i_mask | TYPE RSD_S_COB_PRO-MASK, " | |||
| lv_input_not_numerical | TYPE RSD_S_COB_PRO, " | |||
| lv_i_convx | TYPE RSD_S_COB_PRO-CONVEXIT, " | |||
| lv_conversion_not_supported | TYPE RSD_S_COB_PRO, " | |||
| lv_i_inttp | TYPE RSD_S_COB_PRO-INTTP, " | |||
| lv_date_not_correct | TYPE RSD_S_COB_PRO, " | |||
| lv_i_intlen | TYPE RSD_S_COB_PRO-INTLEN, " | |||
| lv_time_not_correct | TYPE RSD_S_COB_PRO, " | |||
| lv_i_outputlen | TYPE RSD_S_COB_PRO-OUTPUTLEN, " | |||
| lv_invalid_format | TYPE RSD_S_COB_PRO, " | |||
| lv_i_iobjnm | TYPE RSIOBJNM. " |
|   CALL FUNCTION 'RRSV_EX_IN_CONVERT' "Convert External to Internal Format |
| EXPORTING | ||
| I_CHAVL_EXT | = lv_i_chavl_ext | |
| I_MASK | = lv_i_mask | |
| I_CONVX | = lv_i_convx | |
| I_INTTP | = lv_i_inttp | |
| I_INTLEN | = lv_i_intlen | |
| I_OUTPUTLEN | = lv_i_outputlen | |
| I_IOBJNM | = lv_i_iobjnm | |
| IMPORTING | ||
| E_CHAVL_INT | = lv_e_chavl_int | |
| EXCEPTIONS | ||
| NO_INPUT_GIVEN = 1 | ||
| INPUT_NOT_NUMERICAL = 2 | ||
| CONVERSION_NOT_SUPPORTED = 3 | ||
| DATE_NOT_CORRECT = 4 | ||
| TIME_NOT_CORRECT = 5 | ||
| INVALID_FORMAT = 6 | ||
| . " RRSV_EX_IN_CONVERT | ||
ABAP code using 7.40 inline data declarations to call FM RRSV_EX_IN_CONVERT
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 MASK FROM RSD_S_COB_PRO INTO @DATA(ld_i_mask). | ||||
| "SELECT single CONVEXIT FROM RSD_S_COB_PRO INTO @DATA(ld_i_convx). | ||||
| "SELECT single INTTP FROM RSD_S_COB_PRO INTO @DATA(ld_i_inttp). | ||||
| "SELECT single INTLEN FROM RSD_S_COB_PRO INTO @DATA(ld_i_intlen). | ||||
| "SELECT single OUTPUTLEN FROM RSD_S_COB_PRO INTO @DATA(ld_i_outputlen). | ||||
Search for further information about these or an SAP related objects