SAP RM_RH_FILL_RULES Function Module for Shiftregeln für historische Simulation zurückliefern
RM_RH_FILL_RULES is a standard rm rh fill rules SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Shiftregeln für historische Simulation zurückliefern 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 rh fill rules FM, simply by entering the name RM_RH_FILL_RULES into the relevant SAP transaction such as SE37 or SE38.
Function Group: RMRH
Program Name: SAPLRMRH
Main Program: SAPLRMRH
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RM_RH_FILL_RULES 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_RH_FILL_RULES'"Shiftregeln für historische Simulation zurückliefern.
EXPORTING
REGELTYP = "
MREG = "
TABLES
* I_MDSIN = "
* I_MDSCR = "
* I_MDSWP = "
* I_MDSIX = "
* I_MDSCO = "Market Data Record: Security Price
* I_PFVO = "
* I_MDSRF = "
E_REGELN = "
IMPORTING Parameters details for RM_RH_FILL_RULES
REGELTYP -
Data type: JBRREG-REGELTYPOptional: No
Call by Reference: No ( called with pass by value option)
MREG -
Data type: VTVFIMAOptional: No
Call by Reference: Yes
TABLES Parameters details for RM_RH_FILL_RULES
I_MDSIN -
Data type: VTVMDSINOptional: Yes
Call by Reference: No ( called with pass by value option)
I_MDSCR -
Data type: VTVMDSCROptional: Yes
Call by Reference: No ( called with pass by value option)
I_MDSWP -
Data type: VTVMDSWPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_MDSIX -
Data type: VTVMDSIXOptional: Yes
Call by Reference: No ( called with pass by value option)
I_MDSCO - Market Data Record: Security Price
Data type: VTVMDSCOOptional: Yes
Call by Reference: Yes
I_PFVO -
Data type: VTVMDSVOOptional: Yes
Call by Reference: No ( called with pass by value option)
I_MDSRF -
Data type: VTVMDSRFOptional: Yes
Call by Reference: No ( called with pass by value option)
E_REGELN -
Data type: VTVFIMAOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RM_RH_FILL_RULES 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: | ||||
| lt_i_mdsin | TYPE STANDARD TABLE OF VTVMDSIN, " | |||
| lv_regeltyp | TYPE JBRREG-REGELTYP, " | |||
| lv_mreg | TYPE VTVFIMA, " | |||
| lt_i_mdscr | TYPE STANDARD TABLE OF VTVMDSCR, " | |||
| lt_i_mdswp | TYPE STANDARD TABLE OF VTVMDSWP, " | |||
| lt_i_mdsix | TYPE STANDARD TABLE OF VTVMDSIX, " | |||
| lt_i_mdsco | TYPE STANDARD TABLE OF VTVMDSCO, " | |||
| lt_i_pfvo | TYPE STANDARD TABLE OF VTVMDSVO, " | |||
| lt_i_mdsrf | TYPE STANDARD TABLE OF VTVMDSRF, " | |||
| lt_e_regeln | TYPE STANDARD TABLE OF VTVFIMA. " |
|   CALL FUNCTION 'RM_RH_FILL_RULES' "Shiftregeln für historische Simulation zurückliefern |
| EXPORTING | ||
| REGELTYP | = lv_regeltyp | |
| MREG | = lv_mreg | |
| TABLES | ||
| I_MDSIN | = lt_i_mdsin | |
| I_MDSCR | = lt_i_mdscr | |
| I_MDSWP | = lt_i_mdswp | |
| I_MDSIX | = lt_i_mdsix | |
| I_MDSCO | = lt_i_mdsco | |
| I_PFVO | = lt_i_pfvo | |
| I_MDSRF | = lt_i_mdsrf | |
| E_REGELN | = lt_e_regeln | |
| . " RM_RH_FILL_RULES | ||
ABAP code using 7.40 inline data declarations to call FM RM_RH_FILL_RULES
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 REGELTYP FROM JBRREG INTO @DATA(ld_regeltyp). | ||||
Search for further information about these or an SAP related objects