SAP J_7L_MCV_VRKME_MENGE_FORMEL Function Module for NOTRANSL: REA Formel Statistikfortschreibung Ableitung Menge zu alt. Menge
J_7L_MCV_VRKME_MENGE_FORMEL is a standard j 7l mcv vrkme menge formel 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 Formel Statistikfortschreibung Ableitung Menge zu alt. Menge 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 vrkme menge formel FM, simply by entering the name J_7L_MCV_VRKME_MENGE_FORMEL 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_VRKME_MENGE_FORMEL 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_VRKME_MENGE_FORMEL'"NOTRANSL: REA Formel Statistikfortschreibung Ableitung Menge zu alt. Menge.
EXPORTING
MATNR = "
VRKME = "
BUKRS = "
LAND1 = "
FKIMG = "
FKLMG = "
* MEINS = "
* INDEX = "
IMPORTING
FMENG = "
FMNGP = "
MEINH = "
RETURNCODE = "
IMPORTING Parameters details for J_7L_MCV_VRKME_MENGE_FORMEL
MATNR -
Data type: MCVBRP-MATNROptional: No
Call by Reference: Yes
VRKME -
Data type: MCVBRP-VRKMEOptional: No
Call by Reference: Yes
BUKRS -
Data type: MCVBRK-BUKRSOptional: No
Call by Reference: Yes
LAND1 -
Data type: MCVBRK-LAND1Optional: No
Call by Reference: Yes
FKIMG -
Data type: MCVBRP-FKIMGOptional: No
Call by Reference: Yes
FKLMG -
Data type: MCVBRP-FKLMGOptional: No
Call by Reference: Yes
MEINS -
Data type: MCVBRP-MEINSOptional: Yes
Call by Reference: Yes
INDEX -
Data type: SY-TABIXOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for J_7L_MCV_VRKME_MENGE_FORMEL
FMENG -
Data type: MCVBRP-FKIMGOptional: No
Call by Reference: Yes
FMNGP -
Data type: MCVBRP-J7LMNGP1Optional: No
Call by Reference: Yes
MEINH -
Data type: MARM-MEINHOptional: No
Call by Reference: Yes
RETURNCODE -
Data type: SY-SUBRCOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for J_7L_MCV_VRKME_MENGE_FORMEL 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_fmeng | TYPE MCVBRP-FKIMG, " | |||
| lv_matnr | TYPE MCVBRP-MATNR, " | |||
| lv_fmngp | TYPE MCVBRP-J7LMNGP1, " | |||
| lv_vrkme | TYPE MCVBRP-VRKME, " | |||
| lv_bukrs | TYPE MCVBRK-BUKRS, " | |||
| lv_meinh | TYPE MARM-MEINH, " | |||
| lv_land1 | TYPE MCVBRK-LAND1, " | |||
| lv_returncode | TYPE SY-SUBRC, " | |||
| lv_fkimg | TYPE MCVBRP-FKIMG, " | |||
| lv_fklmg | TYPE MCVBRP-FKLMG, " | |||
| lv_meins | TYPE MCVBRP-MEINS, " | |||
| lv_index | TYPE SY-TABIX. " |
|   CALL FUNCTION 'J_7L_MCV_VRKME_MENGE_FORMEL' "NOTRANSL: REA Formel Statistikfortschreibung Ableitung Menge zu alt. Menge |
| EXPORTING | ||
| MATNR | = lv_matnr | |
| VRKME | = lv_vrkme | |
| BUKRS | = lv_bukrs | |
| LAND1 | = lv_land1 | |
| FKIMG | = lv_fkimg | |
| FKLMG | = lv_fklmg | |
| MEINS | = lv_meins | |
| INDEX | = lv_index | |
| IMPORTING | ||
| FMENG | = lv_fmeng | |
| FMNGP | = lv_fmngp | |
| MEINH | = lv_meinh | |
| RETURNCODE | = lv_returncode | |
| . " J_7L_MCV_VRKME_MENGE_FORMEL | ||
ABAP code using 7.40 inline data declarations to call FM J_7L_MCV_VRKME_MENGE_FORMEL
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 FKIMG FROM MCVBRP INTO @DATA(ld_fmeng). | ||||
| "SELECT single MATNR FROM MCVBRP INTO @DATA(ld_matnr). | ||||
| "SELECT single J7LMNGP1 FROM MCVBRP INTO @DATA(ld_fmngp). | ||||
| "SELECT single VRKME FROM MCVBRP INTO @DATA(ld_vrkme). | ||||
| "SELECT single BUKRS FROM MCVBRK INTO @DATA(ld_bukrs). | ||||
| "SELECT single MEINH FROM MARM INTO @DATA(ld_meinh). | ||||
| "SELECT single LAND1 FROM MCVBRK INTO @DATA(ld_land1). | ||||
| "SELECT single SUBRC FROM SY INTO @DATA(ld_returncode). | ||||
| "SELECT single FKIMG FROM MCVBRP INTO @DATA(ld_fkimg). | ||||
| "SELECT single FKLMG FROM MCVBRP INTO @DATA(ld_fklmg). | ||||
| "SELECT single MEINS FROM MCVBRP INTO @DATA(ld_meins). | ||||
| "SELECT single TABIX FROM SY INTO @DATA(ld_index). | ||||
Search for further information about these or an SAP related objects