SAP EXIT_SAPMMCP6_002 Function Module for User Exit for Calculating Macros









EXIT_SAPMMCP6_002 is a standard exit sapmmcp6 002 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for User Exit for Calculating Macros 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 exit sapmmcp6 002 FM, simply by entering the name EXIT_SAPMMCP6_002 into the relevant SAP transaction such as SE37 or SE38.

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



Function EXIT_SAPMMCP6_002 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 'EXIT_SAPMMCP6_002'"User Exit for Calculating Macros
EXPORTING
I_T445A = "Planning Parameters for Info Structure
I_GSTRU = "
I_T445P = "Settings for Planning Type
I_VRSIO = "Current Planned Version
I_MNAME = "Macro to be Executed
I_EVENT = "Time Function Module was Called Up
* I_STRAT = "
I_MEMBER_ANZ = "
IFABKL = "
IBLOCKID = "

TABLES
T_MCOLS = "Current Column Area Selected
T_MB_CI_FULL = "
T_COLS = "Current Column Layout of Matrix
T_TAB = "Current Values in Planning Matrix
T_TAB_OLD = "Previous Values of Changed Lines/Columns
T_LINES = "Current Line Layout of Matrix
T_TAB_ATEL = "
T_SQ = "
* T_KEY_VALUE_AGGREG = "
T_MB_CI = "
.



IMPORTING Parameters details for EXIT_SAPMMCP6_002

I_T445A - Planning Parameters for Info Structure

Data type: T445A
Optional: No
Call by Reference: No ( called with pass by value option)

I_GSTRU -

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

I_T445P - Settings for Planning Type

Data type: T445P
Optional: No
Call by Reference: No ( called with pass by value option)

I_VRSIO - Current Planned Version

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

I_MNAME - Macro to be Executed

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

I_EVENT - Time Function Module was Called Up

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

I_STRAT -

Data type: MCP6_STAT
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_MEMBER_ANZ -

Data type: I
Optional: No
Call by Reference: No ( called with pass by value option)

IFABKL -

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

IBLOCKID -

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

TABLES Parameters details for EXIT_SAPMMCP6_002

T_MCOLS - Current Column Area Selected

Data type: PGCOLS
Optional: No
Call by Reference: No ( called with pass by value option)

T_MB_CI_FULL -

Data type: VESOP
Optional: No
Call by Reference: No ( called with pass by value option)

T_COLS - Current Column Layout of Matrix

Data type: PGCOLS
Optional: No
Call by Reference: No ( called with pass by value option)

T_TAB - Current Values in Planning Matrix

Data type: MXSOP
Optional: No
Call by Reference: No ( called with pass by value option)

T_TAB_OLD - Previous Values of Changed Lines/Columns

Data type: MXSOP
Optional: No
Call by Reference: No ( called with pass by value option)

T_LINES - Current Line Layout of Matrix

Data type: MCP6_LI
Optional: No
Call by Reference: No ( called with pass by value option)

T_TAB_ATEL -

Data type: MCP6_ATEL
Optional: No
Call by Reference: No ( called with pass by value option)

T_SQ -

Data type: MCP6_SQ
Optional: No
Call by Reference: No ( called with pass by value option)

T_KEY_VALUE_AGGREG -

Data type: IKEYF
Optional: Yes
Call by Reference: No ( called with pass by value option)

T_MB_CI -

Data type: VESOP
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for EXIT_SAPMMCP6_002 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_i_t445a  TYPE T445A, "   
lt_t_mcols  TYPE STANDARD TABLE OF PGCOLS, "   
lv_i_gstru  TYPE T445A-GSTRU, "   
lt_t_mb_ci_full  TYPE STANDARD TABLE OF VESOP, "   
lt_t_cols  TYPE STANDARD TABLE OF PGCOLS, "   
lv_i_t445p  TYPE T445P, "   
lt_t_tab  TYPE STANDARD TABLE OF MXSOP, "   
lv_i_vrsio  TYPE RMCP2-VRSIO, "   
lv_i_mname  TYPE T445M-MAKRO, "   
lt_t_tab_old  TYPE STANDARD TABLE OF MXSOP, "   
lv_i_event  TYPE MXSOP, "   
lt_t_lines  TYPE STANDARD TABLE OF MCP6_LI, "   
lv_i_strat  TYPE MCP6_STAT, "   
lt_t_tab_atel  TYPE STANDARD TABLE OF MCP6_ATEL, "   
lt_t_sq  TYPE STANDARD TABLE OF MCP6_SQ, "   
lv_i_member_anz  TYPE I, "   
lv_ifabkl  TYPE T001W-FABKL, "   
lt_t_key_value_aggreg  TYPE STANDARD TABLE OF IKEYF, "   
lt_t_mb_ci  TYPE STANDARD TABLE OF VESOP, "   
lv_iblockid  TYPE MCP6_LI-BLOCKID. "   

  CALL FUNCTION 'EXIT_SAPMMCP6_002'  "User Exit for Calculating Macros
    EXPORTING
         I_T445A = lv_i_t445a
         I_GSTRU = lv_i_gstru
         I_T445P = lv_i_t445p
         I_VRSIO = lv_i_vrsio
         I_MNAME = lv_i_mname
         I_EVENT = lv_i_event
         I_STRAT = lv_i_strat
         I_MEMBER_ANZ = lv_i_member_anz
         IFABKL = lv_ifabkl
         IBLOCKID = lv_iblockid
    TABLES
         T_MCOLS = lt_t_mcols
         T_MB_CI_FULL = lt_t_mb_ci_full
         T_COLS = lt_t_cols
         T_TAB = lt_t_tab
         T_TAB_OLD = lt_t_tab_old
         T_LINES = lt_t_lines
         T_TAB_ATEL = lt_t_tab_atel
         T_SQ = lt_t_sq
         T_KEY_VALUE_AGGREG = lt_t_key_value_aggreg
         T_MB_CI = lt_t_mb_ci
. " EXIT_SAPMMCP6_002




ABAP code using 7.40 inline data declarations to call FM EXIT_SAPMMCP6_002

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 GSTRU FROM T445A INTO @DATA(ld_i_gstru).
 
 
 
 
 
"SELECT single VRSIO FROM RMCP2 INTO @DATA(ld_i_vrsio).
 
"SELECT single MAKRO FROM T445M INTO @DATA(ld_i_mname).
 
 
 
 
 
 
 
 
"SELECT single FABKL FROM T001W INTO @DATA(ld_ifabkl).
 
 
 
"SELECT single BLOCKID FROM MCP6_LI INTO @DATA(ld_iblockid).
 


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!