SAP CBP_MRP_PERFORM_RUN Function Module for For the given materials the specified actions are performed









CBP_MRP_PERFORM_RUN is a standard cbp mrp perform run SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for For the given materials the specified actions are performed 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 cbp mrp perform run FM, simply by entering the name CBP_MRP_PERFORM_RUN into the relevant SAP transaction such as SE37 or SE38.

Function Group: CBPMRP
Program Name: SAPLCBPMRP
Main Program:
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CBP_MRP_PERFORM_RUN 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 'CBP_MRP_PERFORM_RUN'"For the given materials the specified actions are performed
EXPORTING
I_MODEL_TYPE = "type of the model
I_MODEL = "Planning model

TABLES
I_MATERIAL_LIST = "List of all top-level-materials
I_PLANNING_ACTION = "List of all steps of one planning action
I_ACTION_PARAMETERS = "List of all parameters for all steps

EXCEPTIONS
NO_INITIAL_DOWNLOAD = 1 NO_RFCDESTINATION_SPECIFIED = 2 MODEL_LOCKED = 3 NO_AUTHORIZATION = 4
.



IMPORTING Parameters details for CBP_MRP_PERFORM_RUN

I_MODEL_TYPE - type of the model

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

I_MODEL - Planning model

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

TABLES Parameters details for CBP_MRP_PERFORM_RUN

I_MATERIAL_LIST - List of all top-level-materials

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

I_PLANNING_ACTION - List of all steps of one planning action

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

I_ACTION_PARAMETERS - List of all parameters for all steps

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

EXCEPTIONS details

NO_INITIAL_DOWNLOAD - The port of the public plan server is unknown

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

NO_RFCDESTINATION_SPECIFIED - No destination is specified

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

MODEL_LOCKED - The model is already locked by another user

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

NO_AUTHORIZATION - No authorization to plan the model

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

Copy and paste ABAP code example for CBP_MRP_PERFORM_RUN 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_model_type  TYPE TCBP_MOD-MODEL_TYPE, "   
lt_i_material_list  TYPE STANDARD TABLE OF SCBP_MRP_PS, "   
lv_no_initial_download  TYPE SCBP_MRP_PS, "   
lv_i_model  TYPE TCBP_MOD-MODEL, "   
lt_i_planning_action  TYPE STANDARD TABLE OF SCBP_PLACT, "   
lv_no_rfcdestination_specified  TYPE SCBP_PLACT, "   
lv_model_locked  TYPE SCBP_PLACT, "   
lt_i_action_parameters  TYPE STANDARD TABLE OF SCBP_PARDEF, "   
lv_no_authorization  TYPE SCBP_PARDEF. "   

  CALL FUNCTION 'CBP_MRP_PERFORM_RUN'  "For the given materials the specified actions are performed
    EXPORTING
         I_MODEL_TYPE = lv_i_model_type
         I_MODEL = lv_i_model
    TABLES
         I_MATERIAL_LIST = lt_i_material_list
         I_PLANNING_ACTION = lt_i_planning_action
         I_ACTION_PARAMETERS = lt_i_action_parameters
    EXCEPTIONS
        NO_INITIAL_DOWNLOAD = 1
        NO_RFCDESTINATION_SPECIFIED = 2
        MODEL_LOCKED = 3
        NO_AUTHORIZATION = 4
. " CBP_MRP_PERFORM_RUN




ABAP code using 7.40 inline data declarations to call FM CBP_MRP_PERFORM_RUN

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 MODEL_TYPE FROM TCBP_MOD INTO @DATA(ld_i_model_type).
 
 
 
"SELECT single MODEL FROM TCBP_MOD INTO @DATA(ld_i_model).
 
 
 
 
 
 


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!