SAP MCBI_DEMAND_CC_ANALYSIS Function Module for Read requirement for material









MCBI_DEMAND_CC_ANALYSIS is a standard mcbi demand cc analysis SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read requirement for material 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 mcbi demand cc analysis FM, simply by entering the name MCBI_DEMAND_CC_ANALYSIS into the relevant SAP transaction such as SE37 or SE38.

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



Function MCBI_DEMAND_CC_ANALYSIS 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 'MCBI_DEMAND_CC_ANALYSIS'"Read requirement for material
EXPORTING
I_BDATUM = "
I_MATNR = "
I_MEINS = "
I_MISKZ = "
I_VDATUM = "
I_WERK = "

IMPORTING
E_BEDARF = "
.



IMPORTING Parameters details for MCBI_DEMAND_CC_ANALYSIS

I_BDATUM -

Data type: RMCBI-BDATBED
Optional: No
Call by Reference: No ( called with pass by value option)

I_MATNR -

Data type: MCON-MATNR
Optional: No
Call by Reference: No ( called with pass by value option)

I_MEINS -

Data type: MCON-MEINS
Optional: No
Call by Reference: No ( called with pass by value option)

I_MISKZ -

Data type: MCON-MISKZ
Optional: No
Call by Reference: No ( called with pass by value option)

I_VDATUM -

Data type: RMCBI-VDATBED
Optional: No
Call by Reference: No ( called with pass by value option)

I_WERK -

Data type: MCON-WERKS
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for MCBI_DEMAND_CC_ANALYSIS

E_BEDARF -

Data type: PBED-PLNMG
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for MCBI_DEMAND_CC_ANALYSIS 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_e_bedarf  TYPE PBED-PLNMG, "   
lv_i_bdatum  TYPE RMCBI-BDATBED, "   
lv_i_matnr  TYPE MCON-MATNR, "   
lv_i_meins  TYPE MCON-MEINS, "   
lv_i_miskz  TYPE MCON-MISKZ, "   
lv_i_vdatum  TYPE RMCBI-VDATBED, "   
lv_i_werk  TYPE MCON-WERKS. "   

  CALL FUNCTION 'MCBI_DEMAND_CC_ANALYSIS'  "Read requirement for material
    EXPORTING
         I_BDATUM = lv_i_bdatum
         I_MATNR = lv_i_matnr
         I_MEINS = lv_i_meins
         I_MISKZ = lv_i_miskz
         I_VDATUM = lv_i_vdatum
         I_WERK = lv_i_werk
    IMPORTING
         E_BEDARF = lv_e_bedarf
. " MCBI_DEMAND_CC_ANALYSIS




ABAP code using 7.40 inline data declarations to call FM MCBI_DEMAND_CC_ANALYSIS

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 PLNMG FROM PBED INTO @DATA(ld_e_bedarf).
 
"SELECT single BDATBED FROM RMCBI INTO @DATA(ld_i_bdatum).
 
"SELECT single MATNR FROM MCON INTO @DATA(ld_i_matnr).
 
"SELECT single MEINS FROM MCON INTO @DATA(ld_i_meins).
 
"SELECT single MISKZ FROM MCON INTO @DATA(ld_i_miskz).
 
"SELECT single VDATBED FROM RMCBI INTO @DATA(ld_i_vdatum).
 
"SELECT single WERKS FROM MCON INTO @DATA(ld_i_werk).
 


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!