SAP VMP_VSM_FILTER_SIMULATION Function Module for Filter nodes based on input object dependencies
VMP_VSM_FILTER_SIMULATION is a standard vmp vsm filter simulation SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Filter nodes based on input object dependencies 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 vmp vsm filter simulation FM, simply by entering the name VMP_VSM_FILTER_SIMULATION into the relevant SAP transaction such as SE37 or SE38.
Function Group: VMP_VSM_PROCESSES
Program Name: SAPLVMP_VSM_PROCESSES
Main Program: SAPLVMP_VSM_PROCESSES
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function VMP_VSM_FILTER_SIMULATION 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 'VMP_VSM_FILTER_SIMULATION'"Filter nodes based on input object dependencies.
EXPORTING
IV_MATNR = "Material Number
* IV_DATE = "Valid-From Date
* IV_LOAD_ECM = "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
* IV_FILTER_ORDER_BOM = "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
* IV_FILTER_WBS_BOM = "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
* IV_PLANT = "Plant
* IV_SCENARIO = "Planning scope scenario ID
IMPORTING
EV_CUOBJ = "Configuration Object
EV_CANCEL = "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
EV_VBELN = "Sales and Distribution Document Number
EV_POSNR = "Item number of the SD document
EV_TYPNR = "Material Number
EV_AUFNR = "Order Number
EV_CO_POSNR = "Order item number
EV_PSPNR = "Work Breakdown Structure Element (WBS Element)
IMPORTING Parameters details for VMP_VSM_FILTER_SIMULATION
IV_MATNR - Material Number
Data type: MATNR40Optional: No
Call by Reference: No ( called with pass by value option)
IV_DATE - Valid-From Date
Data type: DATUVOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_LOAD_ECM - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
Data type: BOOLE_DOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_FILTER_ORDER_BOM - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
Data type: BOOLE_DOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_FILTER_WBS_BOM - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
Data type: BOOLE_DOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_PLANT - Plant
Data type: WERKS_DOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_SCENARIO - Planning scope scenario ID
Data type: VMP_SCENARIOOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for VMP_VSM_FILTER_SIMULATION
EV_CUOBJ - Configuration Object
Data type: CUOBJ_VAOptional: No
Call by Reference: No ( called with pass by value option)
EV_CANCEL - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
Data type: BOOLE_DOptional: No
Call by Reference: No ( called with pass by value option)
EV_VBELN - Sales and Distribution Document Number
Data type: VBELNOptional: No
Call by Reference: No ( called with pass by value option)
EV_POSNR - Item number of the SD document
Data type: POSNROptional: No
Call by Reference: No ( called with pass by value option)
EV_TYPNR - Material Number
Data type: MATNROptional: No
Call by Reference: No ( called with pass by value option)
EV_AUFNR - Order Number
Data type: AUFNROptional: No
Call by Reference: No ( called with pass by value option)
EV_CO_POSNR - Order item number
Data type: CO_POSNROptional: No
Call by Reference: No ( called with pass by value option)
EV_PSPNR - Work Breakdown Structure Element (WBS Element)
Data type: PS_POSIDOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for VMP_VSM_FILTER_SIMULATION 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_ev_cuobj | TYPE CUOBJ_VA, " | |||
| lv_iv_matnr | TYPE MATNR40, " | |||
| lv_iv_date | TYPE DATUV, " | |||
| lv_ev_cancel | TYPE BOOLE_D, " | |||
| lv_ev_vbeln | TYPE VBELN, " | |||
| lv_iv_load_ecm | TYPE BOOLE_D, " | |||
| lv_ev_posnr | TYPE POSNR, " | |||
| lv_iv_filter_order_bom | TYPE BOOLE_D, " | |||
| lv_ev_typnr | TYPE MATNR, " | |||
| lv_iv_filter_wbs_bom | TYPE BOOLE_D, " | |||
| lv_ev_aufnr | TYPE AUFNR, " | |||
| lv_iv_plant | TYPE WERKS_D, " | |||
| lv_ev_co_posnr | TYPE CO_POSNR, " | |||
| lv_iv_scenario | TYPE VMP_SCENARIO, " | |||
| lv_ev_pspnr | TYPE PS_POSID. " |
|   CALL FUNCTION 'VMP_VSM_FILTER_SIMULATION' "Filter nodes based on input object dependencies |
| EXPORTING | ||
| IV_MATNR | = lv_iv_matnr | |
| IV_DATE | = lv_iv_date | |
| IV_LOAD_ECM | = lv_iv_load_ecm | |
| IV_FILTER_ORDER_BOM | = lv_iv_filter_order_bom | |
| IV_FILTER_WBS_BOM | = lv_iv_filter_wbs_bom | |
| IV_PLANT | = lv_iv_plant | |
| IV_SCENARIO | = lv_iv_scenario | |
| IMPORTING | ||
| EV_CUOBJ | = lv_ev_cuobj | |
| EV_CANCEL | = lv_ev_cancel | |
| EV_VBELN | = lv_ev_vbeln | |
| EV_POSNR | = lv_ev_posnr | |
| EV_TYPNR | = lv_ev_typnr | |
| EV_AUFNR | = lv_ev_aufnr | |
| EV_CO_POSNR | = lv_ev_co_posnr | |
| EV_PSPNR | = lv_ev_pspnr | |
| . " VMP_VSM_FILTER_SIMULATION | ||
ABAP code using 7.40 inline data declarations to call FM VMP_VSM_FILTER_SIMULATION
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