Fonction SAP CBP_MRP_PLAN_REQUEST_RFC - Create a production plan

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_MRPCTR SCBP_MRPCTR u 11 Control parameters

Paramètre Reférence Type Long. Description
O_MRPCTR SCBP_MRPCTR u 11 Control Parameters

Paramètre Reférence Long. Facultatif Description
I_MRP_PS SCBP_MRP_PS 104 Material list
I_PARDEF SCBP_PARDEF 106 Step parameters
I_PLACT SCBP_PLACT 259 Steps of a planning run
O_PLATT SCBP_PLATT 179 Problem attributes
O_PLPROT SCBP_PLPROT 259 A log of the planning activities
O_PROLIS SCBP_PROLIS 164 Problems that remain unresolved

Functionality
Starts the planning in the external system. The download of master andtransactional data already took place. The external system has tointerpret the tables I_PLACT and I_PARDEF.
The results of the planning run must be returned in O_PROLIS, O_PLATT,and O_PLPROT.
CBP is only allowed to plan the materials given in the material listand all subordinate parts. If the material list is empty all materialsof the model shall be planned.
The external system identifies the model that has to be planned via thedestination that is specified for the function call.
If the tables I_PLACT and I_PARDEF are empty no steps have to beperformed by the exsternal planning engine. Only the return valuesare sent back to R/3. This is used to get the stored or the currentproduction plan that reside in the external system.

Description
PLHNDL_PUB: (not used)
PLHNDL: If the ID of the plan changed, the external system sends the newID in this field.
LANGU: (not used)

Description
Control parameters that can be used by the external system.
PLHNDL_PUB: (not used)
PLHNDL: This ID is used to differntiate between the stored and thecurrent plan.
LANGU: Language in which the values have to be returned.

Description
List of material-plant-combinations. This list can be interpreted bythe external system in several ways. For example:
only the materials in this list shall be planned, or
all materials in this list and all subordinate parts shall be planned.

Description
Each step that has to be performed by the external system can haveseveral parameters that control the step.
PLACTCNT: Identifies the step that has specific parameters
PARCNT: Counter that can be used by the external system to determinethe sequence of the parameters if more than one parameter exists
PARNAM: This name can also be used by the external system to identifydifferent parameters.
PARVAL: This field contains the value of the parameter. This value canbw interpreted by the external system.

Description
This parameter contains the planning steps that shall be performed bythe external system.
PLACTCNT: Each step has a unique counter. This counter can be used bythe external system to determine the execution sequence.
PLACTCOD: This field contains the coding that has to be performedba the external system. This coding is system specific and has to beinterpreted by the external system.

Description
This table has to be filled with the contents that shall be displayedin the detail screens of the problem window. Each problem category cancontain several problems. When double clicking a problem category inthe problem window the problems belonging to this category are listedin a table. To ensure the correct representation on the screen thefollowing structure of entries in O_PLATT is necessary. The displayedtable consists of several columns and several lines. Each field in thetable is identified by its coordinates in the displayed table. Forevery field in the displayed table an entry in O_PLATT is necessary.
O_platt must contain the following information:
PLREPNAME: (not used)
PROBCAT: category to which the field belongs. All information shown onthe detailed screen are filterd by this category. Within one categorythe structure of lines and columns and display length therefore must beconsistent. The redundant information that are stored for every fieldmust be the same.
PLRLNCNT: line in which the field is displayed. The detail screencontains only lines of one specific category. Therefore the linecounter only must be unique within one category.
PLATTNAM: name of the column in which the field is displayed. Thedetail screen contains only colums of one specific category. Thereforethe name of the column only must be unique within one category
PLATTDES: (not used)
PLATTVAL: value that is displayed in the field
OUTLEN: display length of the field

Description
This table is not used.

Description
If a planning run in the external system is finished some problems maynot be fixed (e.g. capacity constraints are violated). For each probleman entry in this table has to occur. Only the fields PROBCAT andPLRLNCNT are used.
PROBCAT: Category to which this problem belongs. The categoriesare client specific and can be maintained in the customizing. Theexternal system has to know which categories exist and to whichcategory a specific problem belongs.
PLRLNCNT: Within each category each problem has to have a unique ID.