SAP MCP_MATRIX_OTB Function Module for NOTRANSL: Spezialmakro zur OTB-Berechnung









MCP_MATRIX_OTB is a standard mcp matrix otb 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: Spezialmakro zur OTB-Berechnung 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 mcp matrix otb FM, simply by entering the name MCP_MATRIX_OTB into the relevant SAP transaction such as SE37 or SE38.

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



Function MCP_MATRIX_OTB 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 'MCP_MATRIX_OTB'"NOTRANSL: Spezialmakro zur OTB-Berechnung
EXPORTING
I_T445A = "Planning Configuration for Info Structure
I_T445P = "Planning Types: LIS/SOP
I_VRSIO = "Version number in the information structure
I_MNAME = "Macro name
I_EVENT = "
I_MEMBER_ANZ = "Predefined Type
IFABKL = "Factory calendar key
IBLOCKID = "Area in planning screen

TABLES
T_MCOLS = "Vector: SOP
T_COLS = "Column Index for SOP
T_TAB = "Matrix
T_TAB_OLD = "Matrix
T_LINES = "Lines Index: Planning Matrix
T_TAB_ATEL = "Display Attributes: Matrix Elements
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLMCP6_001 User Exit for Extrapolating Sales for OTB
EXIT_SAPLMCP6_002 User Exit for Checking OTB Within a Purchase Order

IMPORTING Parameters details for MCP_MATRIX_OTB

I_T445A - Planning Configuration for Info Structure

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

I_T445P - Planning Types: LIS/SOP

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

I_VRSIO - Version number in the information structure

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

I_MNAME - Macro name

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

I_EVENT -

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

I_MEMBER_ANZ - Predefined Type

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

IFABKL - Factory calendar key

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

IBLOCKID - Area in planning screen

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

TABLES Parameters details for MCP_MATRIX_OTB

T_MCOLS - Vector: SOP

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

T_COLS - Column Index for SOP

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

T_TAB - Matrix

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

T_TAB_OLD - Matrix

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

T_LINES - Lines Index: Planning Matrix

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

T_TAB_ATEL - Display Attributes: Matrix Elements

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

Copy and paste ABAP code example for MCP_MATRIX_OTB 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 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, "   
lt_t_tab_atel  TYPE STANDARD TABLE OF MCP6_ATEL, "   
lv_i_member_anz  TYPE I, "   
lv_ifabkl  TYPE T001W-FABKL, "   
lv_iblockid  TYPE MCP6_LI-BLOCKID. "   

  CALL FUNCTION 'MCP_MATRIX_OTB'  "NOTRANSL: Spezialmakro zur OTB-Berechnung
    EXPORTING
         I_T445A = lv_i_t445a
         I_T445P = lv_i_t445p
         I_VRSIO = lv_i_vrsio
         I_MNAME = lv_i_mname
         I_EVENT = lv_i_event
         I_MEMBER_ANZ = lv_i_member_anz
         IFABKL = lv_ifabkl
         IBLOCKID = lv_iblockid
    TABLES
         T_MCOLS = lt_t_mcols
         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
. " MCP_MATRIX_OTB




ABAP code using 7.40 inline data declarations to call FM MCP_MATRIX_OTB

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 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!