SAP J_7L_MCV_FILTER Function Module for NOTRANSL: REA Datenfilter Statistikfortschreibung Faktura









J_7L_MCV_FILTER is a standard j 7l mcv 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 NOTRANSL: REA Datenfilter Statistikfortschreibung Faktura 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 j 7l mcv filter FM, simply by entering the name J_7L_MCV_FILTER into the relevant SAP transaction such as SE37 or SE38.

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



Function J_7L_MCV_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 'J_7L_MCV_FILTER'"NOTRANSL: REA Datenfilter Statistikfortschreibung Faktura
EXPORTING
MATNR = "
* MATKL = "
* MTART = "
* PSTYV = "
BUKRS = "
LAND1 = "
FKART = "
VKORG = "
VTWEG = "
* SPART = "
* KUNNR = "
* PRODH = "

IMPORTING
RETURNCODE = "
.



IMPORTING Parameters details for J_7L_MCV_FILTER

MATNR -

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

MATKL -

Data type: MCVBRP-MATKL
Optional: Yes
Call by Reference: Yes

MTART -

Data type: MARA-MTART
Optional: Yes
Call by Reference: Yes

PSTYV -

Data type: MCVBRP-PSTYV
Optional: Yes
Call by Reference: Yes

BUKRS -

Data type: MCVBRK-BUKRS
Optional: No
Call by Reference: Yes

LAND1 -

Data type: MCVBRK-LAND1
Optional: No
Call by Reference: Yes

FKART -

Data type: MCVBRK-FKART
Optional: No
Call by Reference: Yes

VKORG -

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

VTWEG -

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

SPART -

Data type: MCVBRP-SPART
Optional: Yes
Call by Reference: Yes

KUNNR -

Data type: KNA1-KUNNR
Optional: Yes
Call by Reference: Yes

PRODH -

Data type: MCVBRP-PRODH
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for J_7L_MCV_FILTER

RETURNCODE -

Data type: SY-SUBRC
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for J_7L_MCV_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_matnr  TYPE MCVBRP-MATNR, "   
lv_returncode  TYPE SY-SUBRC, "   
lv_matkl  TYPE MCVBRP-MATKL, "   
lv_mtart  TYPE MARA-MTART, "   
lv_pstyv  TYPE MCVBRP-PSTYV, "   
lv_bukrs  TYPE MCVBRK-BUKRS, "   
lv_land1  TYPE MCVBRK-LAND1, "   
lv_fkart  TYPE MCVBRK-FKART, "   
lv_vkorg  TYPE MCVBRK-VKORG, "   
lv_vtweg  TYPE MCVBRK-VTWEG, "   
lv_spart  TYPE MCVBRP-SPART, "   
lv_kunnr  TYPE KNA1-KUNNR, "   
lv_prodh  TYPE MCVBRP-PRODH. "   

  CALL FUNCTION 'J_7L_MCV_FILTER'  "NOTRANSL: REA Datenfilter Statistikfortschreibung Faktura
    EXPORTING
         MATNR = lv_matnr
         MATKL = lv_matkl
         MTART = lv_mtart
         PSTYV = lv_pstyv
         BUKRS = lv_bukrs
         LAND1 = lv_land1
         FKART = lv_fkart
         VKORG = lv_vkorg
         VTWEG = lv_vtweg
         SPART = lv_spart
         KUNNR = lv_kunnr
         PRODH = lv_prodh
    IMPORTING
         RETURNCODE = lv_returncode
. " J_7L_MCV_FILTER




ABAP code using 7.40 inline data declarations to call FM J_7L_MCV_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.

"SELECT single MATNR FROM MCVBRP INTO @DATA(ld_matnr).
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_returncode).
 
"SELECT single MATKL FROM MCVBRP INTO @DATA(ld_matkl).
 
"SELECT single MTART FROM MARA INTO @DATA(ld_mtart).
 
"SELECT single PSTYV FROM MCVBRP INTO @DATA(ld_pstyv).
 
"SELECT single BUKRS FROM MCVBRK INTO @DATA(ld_bukrs).
 
"SELECT single LAND1 FROM MCVBRK INTO @DATA(ld_land1).
 
"SELECT single FKART FROM MCVBRK INTO @DATA(ld_fkart).
 
"SELECT single VKORG FROM MCVBRK INTO @DATA(ld_vkorg).
 
"SELECT single VTWEG FROM MCVBRK INTO @DATA(ld_vtweg).
 
"SELECT single SPART FROM MCVBRP INTO @DATA(ld_spart).
 
"SELECT single KUNNR FROM KNA1 INTO @DATA(ld_kunnr).
 
"SELECT single PRODH FROM MCVBRP INTO @DATA(ld_prodh).
 


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!