SAP RRSI_VAL_SID_CONVERT Function Module for Converts a List of Values (Basic Char./Hierarchy Nodes) Into SIDs
RRSI_VAL_SID_CONVERT is a standard rrsi val sid 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 Converts a List of Values (Basic Char./Hierarchy Nodes) Into SIDs 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 rrsi val sid convert FM, simply by entering the name RRSI_VAL_SID_CONVERT into the relevant SAP transaction such as SE37 or SE38.
Function Group: RRSI
Program Name: SAPLRRSI
Main Program: SAPLRRSI
Appliation area: B
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RRSI_VAL_SID_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 'RRSI_VAL_SID_CONVERT'"Converts a List of Values (Basic Char./Hierarchy Nodes) Into SIDs.
EXPORTING
I_IOBJNM = "InfoObject
* I_S_COB_PRO = "
I_TH_VALSID = "Char./Attr. Value (Interne Format)
* I_CHECKFL = RS_C_FALSE "Indicator: Check Against Posted Value
* I_WRITEFL = RRSI_C_WRITEFL-NO "Indicator: SIDs are needed for update
* I_MASTERDATA_CREATE = RS_C_TRUE "Boolean
* I_RNSID = "
* I_NEW_VALUES = RS_C_FALSE "Indicator: true: SIDs are new
IMPORTING
E_TH_VALSID = "Table: Values, SIDs
E_SUBRC = "= 1 if number of lines of output differrs from the input
EXCEPTIONS
X_MESSAGE = 1 CHAVL_NOT_ALLOWED = 2 CHAVL_NOT_FIGURE = 3 CHAVL_NOT_PLAUSIBLE = 4 NO_SID = 5 INTERVAL_NOT_FOUND = 6 FOREIGN_LOCK = 7 INHERITED_ERROR = 8
IMPORTING Parameters details for RRSI_VAL_SID_CONVERT
I_IOBJNM - InfoObject
Data type: RSD_IOBJNMOptional: No
Call by Reference: Yes
I_S_COB_PRO -
Data type: RSD_S_COB_PROOptional: Yes
Call by Reference: Yes
I_TH_VALSID - Char./Attr. Value (Interne Format)
Data type: RRSI_TH_VALSIDOptional: No
Call by Reference: Yes
I_CHECKFL - Indicator: Check Against Posted Value
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: Yes
I_WRITEFL - Indicator: SIDs are needed for update
Data type: RRSI_WRITEFLDefault: RRSI_C_WRITEFL-NO
Optional: Yes
Call by Reference: Yes
I_MASTERDATA_CREATE - Boolean
Data type: RS_BOOLDefault: RS_C_TRUE
Optional: Yes
Call by Reference: Yes
I_RNSID -
Data type: RSD_SIDOptional: Yes
Call by Reference: Yes
I_NEW_VALUES - Indicator: true: SIDs are new
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for RRSI_VAL_SID_CONVERT
E_TH_VALSID - Table: Values, SIDs
Data type: RRSI_TH_VALSIDOptional: No
Call by Reference: Yes
E_SUBRC - = 1 if number of lines of output differrs from the input
Data type: SY-SUBRCOptional: No
Call by Reference: Yes
EXCEPTIONS details
X_MESSAGE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CHAVL_NOT_ALLOWED - Value contains invalid characters
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CHAVL_NOT_FIGURE - Value is not a number
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CHAVL_NOT_PLAUSIBLE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_SID -
Data type:Optional: No
Call by Reference: Yes
INTERVAL_NOT_FOUND -
Data type:Optional: No
Call by Reference: Yes
FOREIGN_LOCK -
Data type:Optional: No
Call by Reference: Yes
INHERITED_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RRSI_VAL_SID_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_i_iobjnm | TYPE RSD_IOBJNM, " | |||
| lv_x_message | TYPE RSD_IOBJNM, " | |||
| lv_e_th_valsid | TYPE RRSI_TH_VALSID, " | |||
| lv_e_subrc | TYPE SY-SUBRC, " | |||
| lv_i_s_cob_pro | TYPE RSD_S_COB_PRO, " | |||
| lv_chavl_not_allowed | TYPE RSD_S_COB_PRO, " | |||
| lv_i_th_valsid | TYPE RRSI_TH_VALSID, " | |||
| lv_chavl_not_figure | TYPE RRSI_TH_VALSID, " | |||
| lv_i_checkfl | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_chavl_not_plausible | TYPE RS_BOOL, " | |||
| lv_no_sid | TYPE RS_BOOL, " | |||
| lv_i_writefl | TYPE RRSI_WRITEFL, " RRSI_C_WRITEFL-NO | |||
| lv_interval_not_found | TYPE RRSI_WRITEFL, " | |||
| lv_i_masterdata_create | TYPE RS_BOOL, " RS_C_TRUE | |||
| lv_i_rnsid | TYPE RSD_SID, " | |||
| lv_foreign_lock | TYPE RSD_SID, " | |||
| lv_i_new_values | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_inherited_error | TYPE RS_BOOL. " |
|   CALL FUNCTION 'RRSI_VAL_SID_CONVERT' "Converts a List of Values (Basic Char./Hierarchy Nodes) Into SIDs |
| EXPORTING | ||
| I_IOBJNM | = lv_i_iobjnm | |
| I_S_COB_PRO | = lv_i_s_cob_pro | |
| I_TH_VALSID | = lv_i_th_valsid | |
| I_CHECKFL | = lv_i_checkfl | |
| I_WRITEFL | = lv_i_writefl | |
| I_MASTERDATA_CREATE | = lv_i_masterdata_create | |
| I_RNSID | = lv_i_rnsid | |
| I_NEW_VALUES | = lv_i_new_values | |
| IMPORTING | ||
| E_TH_VALSID | = lv_e_th_valsid | |
| E_SUBRC | = lv_e_subrc | |
| EXCEPTIONS | ||
| X_MESSAGE = 1 | ||
| CHAVL_NOT_ALLOWED = 2 | ||
| CHAVL_NOT_FIGURE = 3 | ||
| CHAVL_NOT_PLAUSIBLE = 4 | ||
| NO_SID = 5 | ||
| INTERVAL_NOT_FOUND = 6 | ||
| FOREIGN_LOCK = 7 | ||
| INHERITED_ERROR = 8 | ||
| . " RRSI_VAL_SID_CONVERT | ||
ABAP code using 7.40 inline data declarations to call FM RRSI_VAL_SID_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 SUBRC FROM SY INTO @DATA(ld_e_subrc). | ||||
| DATA(ld_i_checkfl) | = RS_C_FALSE. | |||
| DATA(ld_i_writefl) | = RRSI_C_WRITEFL-NO. | |||
| DATA(ld_i_masterdata_create) | = RS_C_TRUE. | |||
| DATA(ld_i_new_values) | = RS_C_FALSE. | |||
Search for further information about these or an SAP related objects