SAP RM_SELECT_RSNUM Function Module for NOTRANSL: Bestimmung der RSNUMS zu Material/Baugruppe
RM_SELECT_RSNUM is a standard rm select rsnum SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Bestimmung der RSNUMS zu Material/Baugruppe 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 rm select rsnum FM, simply by entering the name RM_SELECT_RSNUM into the relevant SAP transaction such as SE37 or SE38.
Function Group: RMCO
Program Name: SAPLRMCO
Main Program: SAPLRMCO
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RM_SELECT_RSNUM 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 'RM_SELECT_RSNUM'"NOTRANSL: Bestimmung der RSNUMS zu Material/Baugruppe.
EXPORTING
* I_KDAUF = "
* I_KDPOS = "
TABLES
I_WERKS_RANGE = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_MATNR_RANGE = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_VERID_RANGE = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_PSPEL_RANGE = "
* I_KDAUF_RANGE = "
* I_KDPOS_RANGE = "
* E_RSNUM_RANGE = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* E_SESTAX = "
EXCEPTIONS
NO_AUTHORITY = 1
IMPORTING Parameters details for RM_SELECT_RSNUM
I_KDAUF -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
I_KDPOS -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RM_SELECT_RSNUM
I_WERKS_RANGE - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
I_MATNR_RANGE - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
I_VERID_RANGE - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
I_PSPEL_RANGE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
I_KDAUF_RANGE -
Data type: BARM_TYPE_RANGE_KDAUF_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
I_KDPOS_RANGE -
Data type: BARM_TYPE_RANGE_KDPOS_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
E_RSNUM_RANGE - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
E_SESTAX -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_AUTHORITY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RM_SELECT_RSNUM 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_kdauf | TYPE STRING, " | |||
| lv_no_authority | TYPE STRING, " | |||
| lt_i_werks_range | TYPE STANDARD TABLE OF STRING, " | |||
| lv_i_kdpos | TYPE STRING, " | |||
| lt_i_matnr_range | TYPE STANDARD TABLE OF STRING, " | |||
| lt_i_verid_range | TYPE STANDARD TABLE OF STRING, " | |||
| lt_i_pspel_range | TYPE STANDARD TABLE OF STRING, " | |||
| lt_i_kdauf_range | TYPE STANDARD TABLE OF BARM_TYPE_RANGE_KDAUF_TAB, " | |||
| lt_i_kdpos_range | TYPE STANDARD TABLE OF BARM_TYPE_RANGE_KDPOS_TAB, " | |||
| lt_e_rsnum_range | TYPE STANDARD TABLE OF BARM_TYPE_RANGE_KDPOS_TAB, " | |||
| lt_e_sestax | TYPE STANDARD TABLE OF BARM_TYPE_RANGE_KDPOS_TAB. " |
|   CALL FUNCTION 'RM_SELECT_RSNUM' "NOTRANSL: Bestimmung der RSNUMS zu Material/Baugruppe |
| EXPORTING | ||
| I_KDAUF | = lv_i_kdauf | |
| I_KDPOS | = lv_i_kdpos | |
| TABLES | ||
| I_WERKS_RANGE | = lt_i_werks_range | |
| I_MATNR_RANGE | = lt_i_matnr_range | |
| I_VERID_RANGE | = lt_i_verid_range | |
| I_PSPEL_RANGE | = lt_i_pspel_range | |
| I_KDAUF_RANGE | = lt_i_kdauf_range | |
| I_KDPOS_RANGE | = lt_i_kdpos_range | |
| E_RSNUM_RANGE | = lt_e_rsnum_range | |
| E_SESTAX | = lt_e_sestax | |
| EXCEPTIONS | ||
| NO_AUTHORITY = 1 | ||
| . " RM_SELECT_RSNUM | ||
ABAP code using 7.40 inline data declarations to call FM RM_SELECT_RSNUM
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.Search for further information about these or an SAP related objects