SAP RDM_OPT_SEL_RES_SELECT Function Module for Price Optimization: Determine Select Restrictions from Customizing









RDM_OPT_SEL_RES_SELECT is a standard rdm opt sel res select SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Price Optimization: Determine Select Restrictions from Customizing 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 rdm opt sel res select FM, simply by entering the name RDM_OPT_SEL_RES_SELECT into the relevant SAP transaction such as SE37 or SE38.

Function Group: RDM_OPT_COMMON
Program Name: SAPLRDM_OPT_COMMON
Main Program: SAPLRDM_OPT_COMMON
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RDM_OPT_SEL_RES_SELECT 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 'RDM_OPT_SEL_RES_SELECT'"Price Optimization: Determine Select Restrictions from Customizing
EXPORTING
I_VKORG = "Sales Organization
I_VTWEG = "Distribution Channel
I_BUSINESS_SYSTEM = "Price Optimization: External Business System AIT_SYSTEM

IMPORTING
E_HIER_ID_DEF = "Hierarchy ID: Default Selection Restriction
ETR_NODE_MDP = "Article Hierarchy Nodes: Markdown Opt.Selection Restrictions
ETR_WRGH_MDP = "Warengruppe / Hierarchieknoten: Abschr. Selektionsrestrikt.
ETR_MATNR_MDP = "Material No.: Markdown Optimization Selection Restrictions
ETR_NODE_PRO = "Artikelhierarchieknoten: Aktionspreisopt. Selektionsrestrikt.
ETR_WRGH_PRO = "Warengruppe / Hierarchieknoten: Aktionsopt. Selektionsres.
ETR_MATNR_PRO = "Material No.: Promo. Price Optimztn Selection Restrictions
ETR_NODE_DEF = "Article Hierarchy Nodes: Default Selection Restrictions
ETR_WRGH_DEF = "Warengruppenhierarchieknoten: Default Selektionsrestrikt.
ETR_MATNR_DEF = "Materialnr.: Default Selektionsrestriktionen
ETR_PLTYP_DEF = "Price List Type: Default Selection Restrictions
ETR_WERKS_DEF = "Werk: Default Selektionsrestriktionen
ETR_NODE_REG = "Art. Hierarchy Nodes: Reg. Price Optimztn Seln Restrictns
ETR_WRGH_REG = "Warengruppe / Hierarchieknoten: Abschriftenopt.Selektionsr.
ETR_MATNR_REG = "Material No. : Reg. Price Opt. Selection Restrictions

EXCEPTIONS
NOT_FOUND = 1
.



IMPORTING Parameters details for RDM_OPT_SEL_RES_SELECT

I_VKORG - Sales Organization

Data type: VKORG
Optional: No
Call by Reference: Yes

I_VTWEG - Distribution Channel

Data type: VTWEG
Optional: No
Call by Reference: Yes

I_BUSINESS_SYSTEM - Price Optimization: External Business System AIT_SYSTEM

Data type: RDM_BUSINESS_SYSTEM
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for RDM_OPT_SEL_RES_SELECT

E_HIER_ID_DEF - Hierarchy ID: Default Selection Restriction

Data type: RDM_HIER_ID
Optional: No
Call by Reference: Yes

ETR_NODE_MDP - Article Hierarchy Nodes: Markdown Opt.Selection Restrictions

Data type: RDM_TR_NODE
Optional: No
Call by Reference: Yes

ETR_WRGH_MDP - Warengruppe / Hierarchieknoten: Abschr. Selektionsrestrikt.

Data type: RDM_TR_WRGH
Optional: No
Call by Reference: Yes

ETR_MATNR_MDP - Material No.: Markdown Optimization Selection Restrictions

Data type: RDM_TR_MATNR
Optional: No
Call by Reference: Yes

ETR_NODE_PRO - Artikelhierarchieknoten: Aktionspreisopt. Selektionsrestrikt.

Data type: RDM_TR_NODE
Optional: No
Call by Reference: Yes

ETR_WRGH_PRO - Warengruppe / Hierarchieknoten: Aktionsopt. Selektionsres.

Data type: RDM_TR_WRGH
Optional: No
Call by Reference: Yes

ETR_MATNR_PRO - Material No.: Promo. Price Optimztn Selection Restrictions

Data type: RDM_TR_MATNR
Optional: No
Call by Reference: Yes

ETR_NODE_DEF - Article Hierarchy Nodes: Default Selection Restrictions

Data type: RDM_TR_NODE
Optional: No
Call by Reference: Yes

ETR_WRGH_DEF - Warengruppenhierarchieknoten: Default Selektionsrestrikt.

Data type: RDM_TR_WRGH
Optional: No
Call by Reference: Yes

ETR_MATNR_DEF - Materialnr.: Default Selektionsrestriktionen

Data type: RDM_TR_MATNR
Optional: No
Call by Reference: Yes

ETR_PLTYP_DEF - Price List Type: Default Selection Restrictions

Data type: RDM_TR_PLTYP
Optional: No
Call by Reference: Yes

ETR_WERKS_DEF - Werk: Default Selektionsrestriktionen

Data type: RDM_TR_WERKS
Optional: No
Call by Reference: Yes

ETR_NODE_REG - Art. Hierarchy Nodes: Reg. Price Optimztn Seln Restrictns

Data type: RDM_TR_NODE
Optional: No
Call by Reference: Yes

ETR_WRGH_REG - Warengruppe / Hierarchieknoten: Abschriftenopt.Selektionsr.

Data type: RDM_TR_WRGH
Optional: No
Call by Reference: Yes

ETR_MATNR_REG - Material No. : Reg. Price Opt. Selection Restrictions

Data type: RDM_TR_MATNR
Optional: No
Call by Reference: Yes

EXCEPTIONS details

NOT_FOUND - No Data Found

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RDM_OPT_SEL_RES_SELECT 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_vkorg  TYPE VKORG, "   
lv_not_found  TYPE VKORG, "   
lv_e_hier_id_def  TYPE RDM_HIER_ID, "   
lv_etr_node_mdp  TYPE RDM_TR_NODE, "   
lv_etr_wrgh_mdp  TYPE RDM_TR_WRGH, "   
lv_etr_matnr_mdp  TYPE RDM_TR_MATNR, "   
lv_etr_node_pro  TYPE RDM_TR_NODE, "   
lv_etr_wrgh_pro  TYPE RDM_TR_WRGH, "   
lv_etr_matnr_pro  TYPE RDM_TR_MATNR, "   
lv_i_vtweg  TYPE VTWEG, "   
lv_etr_node_def  TYPE RDM_TR_NODE, "   
lv_etr_wrgh_def  TYPE RDM_TR_WRGH, "   
lv_i_business_system  TYPE RDM_BUSINESS_SYSTEM, "   
lv_etr_matnr_def  TYPE RDM_TR_MATNR, "   
lv_etr_pltyp_def  TYPE RDM_TR_PLTYP, "   
lv_etr_werks_def  TYPE RDM_TR_WERKS, "   
lv_etr_node_reg  TYPE RDM_TR_NODE, "   
lv_etr_wrgh_reg  TYPE RDM_TR_WRGH, "   
lv_etr_matnr_reg  TYPE RDM_TR_MATNR. "   

  CALL FUNCTION 'RDM_OPT_SEL_RES_SELECT'  "Price Optimization: Determine Select Restrictions from Customizing
    EXPORTING
         I_VKORG = lv_i_vkorg
         I_VTWEG = lv_i_vtweg
         I_BUSINESS_SYSTEM = lv_i_business_system
    IMPORTING
         E_HIER_ID_DEF = lv_e_hier_id_def
         ETR_NODE_MDP = lv_etr_node_mdp
         ETR_WRGH_MDP = lv_etr_wrgh_mdp
         ETR_MATNR_MDP = lv_etr_matnr_mdp
         ETR_NODE_PRO = lv_etr_node_pro
         ETR_WRGH_PRO = lv_etr_wrgh_pro
         ETR_MATNR_PRO = lv_etr_matnr_pro
         ETR_NODE_DEF = lv_etr_node_def
         ETR_WRGH_DEF = lv_etr_wrgh_def
         ETR_MATNR_DEF = lv_etr_matnr_def
         ETR_PLTYP_DEF = lv_etr_pltyp_def
         ETR_WERKS_DEF = lv_etr_werks_def
         ETR_NODE_REG = lv_etr_node_reg
         ETR_WRGH_REG = lv_etr_wrgh_reg
         ETR_MATNR_REG = lv_etr_matnr_reg
    EXCEPTIONS
        NOT_FOUND = 1
. " RDM_OPT_SEL_RES_SELECT




ABAP code using 7.40 inline data declarations to call FM RDM_OPT_SEL_RES_SELECT

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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!