SAP MCP_PLANNING_TABLE Function Module for Process Planning Table









MCP_PLANNING_TABLE is a standard mcp planning table SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Process Planning Table 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 planning table FM, simply by entering the name MCP_PLANNING_TABLE into the relevant SAP transaction such as SE37 or SE38.

Function Group: MCPH
Program Name: SAPLMCPH
Main Program: SAPLMCPH
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function MCP_PLANNING_TABLE 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_PLANNING_TABLE'"Process Planning Table
EXPORTING
I_FUNCTION = "Function code => request to module
I_PL_TYPE = "Planning type
I_VERSION = "Planning version

IMPORTING
E_RETURN = "SAP standard - messages
E_T445P = "Planning type settings
E_T445A = "Info structure settings

TABLES
T_FILTER = "Transfer selection
T_KEYS = "Characteristics of info structure
T_SYMB = "Symbol table for existing short texts
T_CHAR_VALUES = "Characteristics combinations
T_COLS = "Columns
T_LINES = "Rows
T_TAB = "Data matrix
T_TAB_OLD = "Before image of planning values
T_TAB_FIX_SUM = "Total fixed values of matrix
T_QUAD = "Units of the key figures
T_DATF = "Planning type key figures that can be expressed as totals
.



IMPORTING Parameters details for MCP_PLANNING_TABLE

I_FUNCTION - Function code => request to module

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

I_PL_TYPE - Planning type

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

I_VERSION - Planning version

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

EXPORTING Parameters details for MCP_PLANNING_TABLE

E_RETURN - SAP standard - messages

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

E_T445P - Planning type settings

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

E_T445A - Info structure settings

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

TABLES Parameters details for MCP_PLANNING_TABLE

T_FILTER - Transfer selection

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

T_KEYS - Characteristics of info structure

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

T_SYMB - Symbol table for existing short texts

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

T_CHAR_VALUES - Characteristics combinations

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

T_COLS - Columns

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

T_LINES - Rows

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

T_TAB - Data matrix

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

T_TAB_OLD - Before image of planning values

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

T_TAB_FIX_SUM - Total fixed values of matrix

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

T_QUAD - Units of the key figures

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

T_DATF - Planning type key figures that can be expressed as totals

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

Copy and paste ABAP code example for MCP_PLANNING_TABLE 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_return  TYPE BAPIRETURN1, "   
lt_t_filter  TYPE STANDARD TABLE OF MCP_FILTER, "   
lv_i_function  TYPE RMCP5-FUNCTION, "   
lt_t_keys  TYPE STANDARD TABLE OF IKEYF, "   
lt_t_symb  TYPE STANDARD TABLE OF MCP6_SYMB, "   
lv_e_t445p  TYPE T445P, "   
lv_i_pl_type  TYPE T445P-SCTYP, "   
lt_t_char_values  TYPE STANDARD TABLE OF MCSLINE, "   
lt_t_cols  TYPE STANDARD TABLE OF PGCOLS, "   
lv_e_t445a  TYPE T445A, "   
lv_i_version  TYPE RMCP2-VRSIA, "   
lt_t_lines  TYPE STANDARD TABLE OF MCP6_LI, "   
lt_t_tab  TYPE STANDARD TABLE OF MXSOP, "   
lt_t_tab_old  TYPE STANDARD TABLE OF MXSOP, "   
lt_t_tab_fix_sum  TYPE STANDARD TABLE OF MXSOP, "   
lt_t_quad  TYPE STANDARD TABLE OF MCP6_SQ, "   
lt_t_datf  TYPE STANDARD TABLE OF IDATF. "   

  CALL FUNCTION 'MCP_PLANNING_TABLE'  "Process Planning Table
    EXPORTING
         I_FUNCTION = lv_i_function
         I_PL_TYPE = lv_i_pl_type
         I_VERSION = lv_i_version
    IMPORTING
         E_RETURN = lv_e_return
         E_T445P = lv_e_t445p
         E_T445A = lv_e_t445a
    TABLES
         T_FILTER = lt_t_filter
         T_KEYS = lt_t_keys
         T_SYMB = lt_t_symb
         T_CHAR_VALUES = lt_t_char_values
         T_COLS = lt_t_cols
         T_LINES = lt_t_lines
         T_TAB = lt_t_tab
         T_TAB_OLD = lt_t_tab_old
         T_TAB_FIX_SUM = lt_t_tab_fix_sum
         T_QUAD = lt_t_quad
         T_DATF = lt_t_datf
. " MCP_PLANNING_TABLE




ABAP code using 7.40 inline data declarations to call FM MCP_PLANNING_TABLE

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 FUNCTION FROM RMCP5 INTO @DATA(ld_i_function).
 
 
 
 
"SELECT single SCTYP FROM T445P INTO @DATA(ld_i_pl_type).
 
 
 
 
"SELECT single VRSIA FROM RMCP2 INTO @DATA(ld_i_version).
 
 
 
 
 
 
 


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!