SAP VMP_EFFECTIVITY_FILTER Function Module for Filter BOM items by effectivity params









VMP_EFFECTIVITY_FILTER is a standard vmp effectivity filter 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 BOM items by effectivity params 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 effectivity filter FM, simply by entering the name VMP_EFFECTIVITY_FILTER into the relevant SAP transaction such as SE37 or SE38.

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



Function VMP_EFFECTIVITY_FILTER 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_EFFECTIVITY_FILTER'"Filter BOM items by effectivity params
EXPORTING
IT_PARAMETERS = "
IV_BILLOFMATERIAL = "Bill of Material
IV_BILLOFMATERIALCATEGORY = "BOM category
IV_BILLOFMATERIALVARIANT = "Alternative BOM
IV_BILLOFMATERIALVERSION = "BOM Version
IV_ENGINEERINGCHANGEDOCUMENT = "Change Number
IV_MATERIAL = "Material Number
IV_PLANT = "Plant

IMPORTING
ET_ENG_CHNG_DOC = "Change Number
.



IMPORTING Parameters details for VMP_EFFECTIVITY_FILTER

IT_PARAMETERS -

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

IV_BILLOFMATERIAL - Bill of Material

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

IV_BILLOFMATERIALCATEGORY - BOM category

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

IV_BILLOFMATERIALVARIANT - Alternative BOM

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

IV_BILLOFMATERIALVERSION - BOM Version

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

IV_ENGINEERINGCHANGEDOCUMENT - Change Number

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

IV_MATERIAL - Material Number

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

IV_PLANT - Plant

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

EXPORTING Parameters details for VMP_EFFECTIVITY_FILTER

ET_ENG_CHNG_DOC - Change Number

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

Copy and paste ABAP code example for VMP_EFFECTIVITY_FILTER 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_it_parameters  TYPE CC01_PARAMETER, "   
lv_et_eng_chng_doc  TYPE TTY_AENNR, "   
lv_iv_billofmaterial  TYPE STNUM, "   
lv_iv_billofmaterialcategory  TYPE STLTY, "   
lv_iv_billofmaterialvariant  TYPE STLAL, "   
lv_iv_billofmaterialversion  TYPE CS_VERSN, "   
lv_iv_engineeringchangedocument  TYPE AENNR, "   
lv_iv_material  TYPE MATNR, "   
lv_iv_plant  TYPE WERKS_D. "   

  CALL FUNCTION 'VMP_EFFECTIVITY_FILTER'  "Filter BOM items by effectivity params
    EXPORTING
         IT_PARAMETERS = lv_it_parameters
         IV_BILLOFMATERIAL = lv_iv_billofmaterial
         IV_BILLOFMATERIALCATEGORY = lv_iv_billofmaterialcategory
         IV_BILLOFMATERIALVARIANT = lv_iv_billofmaterialvariant
         IV_BILLOFMATERIALVERSION = lv_iv_billofmaterialversion
         IV_ENGINEERINGCHANGEDOCUMENT = lv_iv_engineeringchangedocument
         IV_MATERIAL = lv_iv_material
         IV_PLANT = lv_iv_plant
    IMPORTING
         ET_ENG_CHNG_DOC = lv_et_eng_chng_doc
. " VMP_EFFECTIVITY_FILTER




ABAP code using 7.40 inline data declarations to call FM VMP_EFFECTIVITY_FILTER

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!