Lean Manufacturing Planning Guide
Lean Manufacturing Planning Guide
2024-08-29
This documentation describes the application of the consulting solution Lean Manufacturing Planning and
Control (LMPC).
• The heijunka detailed scheduling planning board in ERP with over 130 functions, which is called using
transaction /LMPC/HJPT.
• LMPC Leveling of Planned Orders, which is called using transaction /LMPC/NIVELLIERUNG.
• The LMPC timetable for generating production plans, which is called using transaction /LMPC/FPL.
• LMPC mass processing of orders, which is called using transaction /LMPC/MP.
The detailed planning in SAP ERP or SAP S4/HANA with the LMPC HJPT planning table is described by means
of simple sample scenarios. The use of the functionalities is shown as an example.
As the name of the consulting solution suggests, the SAP LMPC detailed scheduling planning board not only
facilitates traditional detailed planning and order control in SAP ERP and S4/HANA, but also includes tools and
methods, such as heijunka, from the area of lean manufacturing.
Both approaches – detailed planning and lean manufacturing – have their place in logistics and manufacturing.
Detailed planning is capacity-related, or concerned with the finite planning of capacities based on
requirements, from sales planning, for example. This is also referred to as a “push” approach.
Lean manufacturing, on the other hand, is based on a “pull” approach. Strictly speaking, manufacturing should
take place only in response to an actual sales order or physical consumption.
Both approaches can be combined to great advantage in an SAP system, and this consulting solution can be
used to expand and improve the existing possibilities that are available in the standard SAP system.
Heijunka Planning Table: The planning table for detailed scheduling is the central user cockpit and contains
a full range of production planning functions that create a variety of possibilities for visualizing data and
achieving transparency. It gives users a highly comprehensive view of the current state of production and
production planning, and enables them to influence and change these if required.
The HJPT planning table is based on the capacity planning table from the standard SAP system and has been
enhanced with a number of elements.
Leveling: A standalone transaction that can also be called from the HJPT planning table. The requirements
in the selected period are averaged and daily quantities are set accordingly as fixed planned orders. This
facilitates production smoothing.
Timetable/Weekly Table: A template can be defined in advance in a weekly grid, into which the production
orders can subsequently be entered and dispatched based on capacities. This facilitates shift planning or the
depiction in the system of a heijunka board that is only filled with orders at a later stage. User-friendly sequence
planning is also possible using the specifications from the timetable.
Mass Processing: Certain LMPC functions can be applied to a large number of orders at order header level.
This is used to accelerate the processing of orders.
The LMPC HJPT planning table is a consulting solution that enhances the standard SAP planning table.
The LMPC HJPT planning table is fully usable in both an SAP R/3 system and in an S/4HANA system.
The functions of the HJPT planning table use the full scope of the standard SAP functions for dispatching,
deallocation, and rescheduling.
The “PLAT” function group has been copied in full and enhanced to include some additional functions (grid
display, tree display of some icons). The functions of standard transaction CM25 remain unchanged.
LMPC Framework
The LMPC HJPT planning table offers a range of benefits that make it the ideal planning cockpit for detailed
scheduling in business organizations:
1.4 Prerequisites
Capacity planning is carried out in the HJPT planning table. This means that orders are dispatched to
capacities of machines to create a production plan.
Capacity Requirements
Examples: Planned orders in discrete manufacturing, planned orders in repetitive manufacturing, production
orders, process orders, maintenance orders, orders for networks, orders from collective orders, and so on.
The orders are usually created via material requirements planning using the MRP run. However, they can also
be created manually. This data must already exist in the system before it can be processed.
Orders can only be processed if they have capacity requirements. This means that lead time scheduling must
be carried out in MRP planning.
Master Data
For example, the following master data is required for a standard PP scenario:
The settings for the LMPC planning table have been delivered via a Customizing transport. These settings must
be imported into the system before planning can begin.
All elements of the delivered example profiles for the capacity planning table are delivered with “LMPC” or
“LMP” as the key, so that a unique assignment to the LMPC package is possible.
The delivered settings are only example settings that enable a quick start with the consulting solution.
They must be adapted to the situation in the system.
Tip
If you need help adjusting the settings, an LMPC consultant can help you with this.
The following scenario is used in the test examples of the LMPC documentation:
• Finished products
• Routings for the finished products
• Bills of material for the finished products, each with a semifinished product
• Associated production versions
• Semifinished products with BOMs, each with one or two materials as well as associated with routings in
production versions
• All the work centers have two individual capacities (capacity categories 001 machine and 002 Human
Resources), of which capacity category 001 will be used for scheduling.
• Requirements plan for the materials with different daily quantities per material. The quantities have been
selected in such a way that there is sufficient capacity for the production of the total quantity for each day.
Time Zones
The HJPT planning table reads the capacity requirements from the orders and the available capacities of the
work centers. A graphical time stream is generated from this data, which displays the temporal position of the
capacity requirements on the machines.
The graphic uses a vertical dashed line (time line) to display the current day and time of the user. The planning
function refers to this time line to decide whether an operation is in the past or in the future. With the usual
settings, it is not possible to schedule in the past.
The position of the time line is calculated using the time zone that is set in the user master data. In this way, the
time line always matches the current time of the user.
The planning function itself calculates independently of the time zone of the user. The time zone of the user is
taken into account only if it defines the area that cannot be planned. This is before the current time of the user.
If an incorrect time zone is set in the master data of the user, depending on the time shift, orders can either be
scheduled in the past or only a certain number of hours in the future. Therefore, setting the time zone of the
user correctly is an important prerequisite for planning in the capacity planning table.
This documentation does not claim to be complete documentation in terms of all overall existing or
personalizable options. A standard use case is described for each function.
The standard SAP functionality used is only documented if it is required for the process flow of the scenario.
Additional standard SAP functionality is not part of this documentation.
Caution
LMPC is a consulting solution for SAP GUI for Windows. LMPC can only be used in a Windows environment
via the SAP GUI.
The consulting solution cannot be used in a JAVA or HTML environment. The consulting solution cannot be
used with SAP GUI for JAVA. See SAP Note 312606 .
Web Dynpro and SAP Fiori are not supported. The consulting solution cannot be called via a browser.
LMPC is a consulting solution. Consulting solutions arise from project work in collaboration with customers.
The consulting solutions are developed for specific customer scenarios. All the functions described in this
documentation are available in the scope of functionality described.
Any scenarios that are not described in this documentation are not supported by LMPC. Therefore, if a use
case, planning situation, or functionality available in the standard SAP system is not described, it is not
supported by LMPC.
It is possible that an unspecified scenario may work with the LMPC HJPT planning table. If you want to try out
such a scenario, LMPC consulting can support you after commissioning.
Linguistic inaccuracies in the documentation may give the impression that LMPC functions are supported
that are not actually supported. In such cases, the actual implementation of a function in the consulting
solution is always valid and not the description in the documentation.
If you have a planning requirement that is not yet supported by LMPC, LMPC development can work with you to
develop a new planning function for a scenario.
If you want to request a new function or enhancement, create a ticket under component XX-PROJ-CON-LMPC
and describe your requirements there. We will then create an estimate of the effort required to implement this
new requirement.
If you do not have budget for a new development, you can use “Idea Place” to submit proposals for functions.
The LMPC consulting team welcomes your proposals and will look into them. Suggestions directly from the
user are very helpful. These suggestions can be implemented in future LMPC cycles. However, there is no
guarantee that submitted proposals will be implemented.
Remember
The LMPC delivery provides you with sample Customizing for the LMPC functions and for the settings
of the capacity planning table. The sample Customizing makes it easier for you to start using the HJPT
planning table.
The configurations for the LMPC functions and the settings of the capacity planning table for use in
the HJPT planning table are consulting services and not troubleshooting. LMPC consulting support does
not check the Customizing settings and does not answer any configuration questions. LMPC consulting
support does not explain how the LMPC HJPT planning table works.
Related Information
Idea Place
The LMPC consulting solution is being developed continuously. As a rule, a new cycle with enhanced functions
appears once a year. During the year, levels for the respective cycle appear at regular intervals; these levels
contain error corrections.
You can access the information about which cycle is available in your system by simply choosing the
information button above the ALV Grid in the HJPT planning table.
Information Button
A popup window appears with information about the cycle and level.
The latest level with error corrections for a cycle can be downloaded via the SCM delivery platform. Only the
last level is available to download since this transport contains all previous corrections.
Check regularly to see whether a new level is available for your LMPC cycle, and if so, import this level into
your system. In this way, you keep the consulting solution up to date.
The LMPC HJPT planning table is a further development of the graphical capacity planning table for the
enhanced capacity leveling of the standard SAP ERP system.
Depending on the Customizing settings in your system, the individual elements may be arranged differently.
The SAP LMPC HJPT detailed scheduling planning board provides a large number of planning functions
for a wide range of requirements. For example, HJPT standard dispatching can be used to dispatch orders
individually. However, they can also be dispatched as a group in a predefined sequence in line with the
timetable specifications, or grouped as order pools. A specific planning strategy can be assigned for each
planning function. In contrast to the standard SAP system, in which only one planning strategy can be assigned
and other planning strategies must be selected again each time.
Planning changes within the HJPT planning table only come into operational effect when you save.
Therefore, executed actions that have not been saved can be voided by refreshing the planning table,
without you having to exit the transaction. Planning takes place in simulation mode.
There are four transactions with which you can call the LMPC planning table:
These transactions all start the LMPC HJPT planning table. However, they have different selection parameter
entries.
There is also the /LMPC/HJPT program, which can be used to realize a nightly automatic planning run.
Program /LMPC/HJPT Background Processing [page 23]
The individual call options are described briefly in the following chapters.
The LMPC HJPT planning table is a detailed planning solution. The HJPT planning table is not intended to be
used for rough-cut planning, long-term planning, or mass planning.
• The planning period stretches between a few weeks and a few months.
• The number of open work centers is below 20.
• The number of orders displayed is below 1000.
• The number of different materials in the orders is below 100.
Data sets above these standard values can lead to long runtimes when you call the planning table.
It is important that you specify work centers for the data selection, to limit the number of orders that are
loaded. It is possible to make a selection with only the plant specified, but this is not recommended. Long
runtimes for a plant selection are not a runtime problem; this is normal runtime behavior for large volumes of
data.
Various buffers are set up the first time the HJPT planning table is called each day. These are, for example,
buffers for field information of the ALV Grid, buffers for ABAP program code, or buffers for database
queries. The first call per day therefore takes longer than all subsequent calls.
Runtime Improvement
If runtime problems occur when you call the planning table, this usually has the following causes:
The HJPT planning table has been optimized for runtime by programming.
Long runtimes when calling the HJPT planning table can be reduced by changing the configuration:
• Deactivate those HJPT data providers whose data is not required. The documentation describes in detail
which data is provided by the individual data providers. LMPC HJPT Data Provider [page 395]
• Some data providers contain parameters to restrict the loaded data. Subareas of the data can be
deactivated. C06 Transaction /LMPC/DPRO: HJPT Data Provider Configuration
• Reducing the field catalog for the ALV Grid can save runtime. Change ALV Grid Fields of HJPT Planning
Table
• Keep additional chart windows and evaluations closed for the start of the planning table and open them
only if necessary. Additional Windows [page 65]
• If the graphic is not required, it can be deactivated. This provides a small runtime advantage when loading
and saving the data. HJPT Planning Table Without Graphic [page 23]
• Coloring the bars in the graphic and the additional lines between the bars costs runtime. Reduce the
settings for this to a minimum. Coloring of Graphic Bars, Connecting Lines Between Bars
• Reduce the coloring of the ALV Grid. Coloring fields and rows in the ALV Grid consumes a lot of runtime.
Classic coloring consumes significantly less runtime than coloring with formulas. Settings for Color
Application in LMPC HJPT ALV Grid
• Check whether the parallelization of the reading of data offers runtime advantages. This is deactivated in
the standard delivery. C16 Transaction /LMPC/STEU LMPC: Control Parameter
• Define groups of planners with the same planning requirements. For each application scenario, create a
separate HJPT overall profile that contains only the data that is required for the respective use case. A
profile that covers all planning requirements may contain a planning period that is too large or a data
selection that is too extensive. Configuration of HJPT Overall Profile
• Use the work center filter and the filter functions in the ALV Grid carefully. It is inefficient to first load all
data of a plant and then use the work center filter to restrict the data records to a single work center
S_WPFLT Work Center Filter [page 381]. Instead, create variants for the transaction and open the planning
table with only a few selected work centers that are actually needed for the current planning session.
Transaction /LMPC/HJPT LMPC Heijunka Planning Table [page 19]
• In the standard delivery, saving is configured in such a way that runtime is saved. Check whether this
setting is set and, if not, whether you do not need to reload the data completely. Configuration of HJPT
Overall Profile
• If you want to save the data during planning to save intermediate statuses, use the temporary save
function. This can be configured in such a way that it requires less runtime. S_SAVEI Save Temporarily
[page 377]
Note
A runtime check and optimization in a customer system is an individual service provided by LMPC
consulting for customers and is not a task for LMPC consulting support.
The HJPT planning table has a built-in check on the loaded data volume. If you call it with a data volume that is
larger than the recommended maximum data volume of 4000 data records, a warning is displayed.
This warning informs the user that they are outside the maximum recommended volume of data for planning in
the HJPT planning table. Long runtimes are expected with this volume of data.
If this message appears, a reduction in the volume of data is indicated by adjusting the selection. LMPC
consulting can help you create an optimum planning scenario.
The maximum volume of data allowed for processing is 10,000 data records. If the maximum volume of data
allowed is exceeded, runtime errors can occur. If the volume of data loaded exceeds this number, a message
appears and processing is terminated.
Termination Message
Caution
There is a strict restriction on data for production or process orders. A maximum of 4000 data records for
production or process orders can be loaded into the planning table. If more data is read, a runtime error
occurs. For more information, see SAP Note 39248 .
There is also a strict restriction with regard to the total number of shifts loaded, that is, a maximum number
of time windows with and without a capacity offer across all work centers. If the number 9999 is exceeded,
a runtime error also occurs.
The LMPC HJPT planning table is a detailed scheduling planning board. It is not intended for orders to be mass
processed.
If you use action codes to process one or a few operations, processing will be very quick. In the HJPT planning
table, there is no restriction on the number of processed data records. In theory, you could put all open
operations into one function.
If a very large number of operations are transferred to a function, long runtimes may occur.
This is not an error; it is due to the fact that a very large number of operations are being processed.
It is not possible to improve the runtime behavior of individual functions since it is always ensured that the
functions are created in a way that optimizes runtime.
This is the transaction for automatic starting the LMPC planning table. The planner can access the HJPT
planning table without entering selection parameters.
You can only use this transaction if you have defined user variants for the autostart in Customizing. The
planning table always opens with the variant that is stored as the autostart variant.
When transaction /LMPC/HJPT_AS is called, an additional button appears in the menu bar of the ALV Grid;
this button can be used to select the autostart variants.
The button displays an icon, the descriptive text AutoStart, and the number of the selected variant. The display
can be adjusted using settings in Customizing. S_HJPTAS Configuration: Adjust Autostart Button
The dropdown menu for the button contains the available variants. The current variant is indicated by a black
dot. The name of the variant consists of the sequential number of the entry, the HJPT overall profile used in the
variant, and the name of the transaction variant of transaction /LMPC/HJPT.
Note
When you switch to another variant, all data is reloaded. In the case of unsaved data, the system issues a
warning to the user that changes have not been saved. The user then has the option of discarding or saving
the unsaved changes. If the data is discarded, the system switches to the selected variant. If you choose
Save, the system does not automatically switch to the selected variant. The data of the currently selected
autostart variant is saved. After saving the data, the user can switch to another variant.
The settings for the auto start variants are described in the LMPC Configuration Guide.C02 Transaction /
LMPC/AS_CUST, M04 Transaction /LMPC/AS_CUSTS: LMPC HJPT Planning Table Autostart
Transaction /LMPC/HJPT is the standard transaction for opening the LMPC HJPT planning table by entering
selection parameters.
During the call, a popup appears for the selection of the overall HJPT profile.
A work center and the plant should be specified. At least one of these two parameters must be specified. You
can use the optional fields capacity category and planner group to further restrict the selection.
Restriction
• There is a pushbutton for filter settings on the selection screen. These additional settings are not
supported by the HJPT planning table. Do not use filters.
• You can use the settings for the capacity planning table to change the fields of the selection screen.
All functions of the HJPT planning table have been aligned with this selection screen. If other selection
fields are used, the consulting solution may not work correctly. Therefore, you should avoid changing
the selection screen. Errors that occur due to a change to the selection screen are not within the remit
of LMPC Consulting Support.
You can save variants for the selection screen. This allows you to predefine selection settings for the user. This
makes it easier to select the data. Variants can also be used for background processing in the program /LMPC/
HJPT. Program /LMPC/HJPT Background Processing [page 23]
From the selection screen, you can branch to the settings for the time profile. The time profile is assigned to
the overall profile used for capacity evaluation and is prefilled automatically. It determines the evaluation period
and the planning period for the data.
The evaluation period is the period for which the data is read.
The planning period is the period in which the data can be changed. Note that orders can never be dispatched
in the past. However, it is possible to deallocate orders that are in the past and reschedule them into the future.
You can select a different time profile or change the evaluation or planning period manually. The manual
changes to the periods are only valid for this one call of the planning table. They are not stored in the
time profile. If you want to permanently change the settings for the time periods, you need to adjust the
Customizing of the time profile.
Remember
• It is possible to define a period in which dispatching is not allowed. If, for example, you define the
planning period so that it does not start until 14 days in the future, the earliest point at which you can
dispatch is two weeks from today. This allows you to prevent replanning in a certain period. You cannot
prevent deallocation in this period, only repeated dispatching.
• You can use a user parameter to store a separate time profile for each user. Also see the description of
the user parameters in the LMPC Configuration Guide. Default Time Profile
To go from the selection screen to the capacity planning table, choose Execute or F8 or the Enter key. This
takes you to the enhanced graphical planning table.
Tip
If the work center entered is a node work center of a work center hierarchy, all work centers that are below
this node in the hierarchy are opened. The prerequisite for this is that you have defined a work center
hierarchy and have set the explosion of the work center hierarchy in the evaluation profile. For details on
configuring the hierarchy explosion, see the LMPC Configuration Guide. Use of Work Center Hierarchies in
the HJPT Planning Table
Transaction /LMPC/HJPT_2 has the same input fields as transaction /LMPC/HJPT with the only difference
that the HJPT overall profile is queried in a full window and not in a popup window.
The selection fields are queried on two separate screens. First the overall profile, then the other selection
criteria.
Transaction /LMPC/HJPT_3 has the same input fields as transaction /LMPC/HJPT with the only difference
being that all input fields are displayed in a window.
When you call the HJPT planning table, you do not have to display the graphic. Then, only the data is displayed
in the ALV Grid. The position of the orders on a time line is not visible. With this setting, the HJPT planning table
can be used as a purely tabular planning table.
This type of call of the planning table can be used with each of the HJPT transactions:
Tip
Omitting the graphic has a small runtime advantage, since the graphical objects do not have to be
generated.
When called without the graphic, the functions of the graphic menu bar are not available.
The planning table log and the scheduling log can be accessed using additional buttons above the toolbar of
the ALV Grid.
The graphic is hidden using the settings for the HJPT overall profile. Configuration of HJPT Overall Profile
You can use the program /LMPC/HJPT to apply an action code to all data records of the selection.
The program can be used, for example, to execute a nightly automatic planning run.
After the job for creating new orders has run with the MRP run, the newly generated orders can then be
dispatched automatically, for example.
The next day, the planner has a finished production plan and can fine-tune the planning manually.
When the program is executed, all operations that are opened by the HJPT planning table are processed.
Before the transfer to the action code, the operations are sorted according to work center and start times of
the capacity requirements.
In contrast to dialog processing, the data records in background processing are not sorted according to the
sort settings of the ALV Grid layout. Therefore, if you want the operations to be processed in a specific
sequence, use action codes that have their own sort routine for operations.
Tip
For the action code S_EPSRT, you can use parameters to sort the data records before dispatching.
S_EPSRT Sorted Dispatching [page 190]
You can use the action code S_SETSEL to select and sort data records before they are transferred to other
functions. This enables sequencing and restriction of the processed data records. However, this only works
with functions that are prepared for concatenation with S_SETSEL. Concatenation with S_SETSEL [page
389]
The function for the limitation of action codes can be implemented to restrict the data records processed.
Action Code Limits [page 87]
Only some of the HJPT action codes are suitable for background processing. The following action codes can be
used in background processing.
Note
Refer to the notes on runtime behavior in the section on calling the HJPT planning table. They are also valid
for background processing.
It is possible to activate a lock check that removes or terminates locked orders from the selection, if there are
locked orders in the selection. In addition, a log can be created for each run.
For details on creating a background job with the program /LMPC/HJPT, see the LMPC Configuration
Guide.Configuration: Program /LMPC/HJPT LMPC HJPT Planning Table in the Background
Restriction
LMPC background processing was created to execute functions in a nightly planning run. During the day,
no background jobs should be executed to schedule operations because this can lead to locking conflicts.
Orders cannot be planned by a production planner and a planning program at the same time. Planning
functions of the production planner can terminate if locks are set by a background program. Similarly, two
or more production planners should not work with the same data at the same time. This is because there
may also be locking conflicts here. Locking conflicts are not errors, but an indication that the planning
processes in the company need to be checked and changed.
The standard LMPC delivery contains six test profiles, which can be used as a template for HJPT overall profiles
in planning.
Remember
These test profiles contain sample profiles for the capacity planning table. These profiles are only examples
that must be adjusted in the customer system to the specific requirements of the customer. It is
recommended that you use these test profiles as templates for your own profiles.
The sample profiles were created for planning with the latest point in time. The bars of the operations
display the latest dates of the capacity requirements. For further information on the earliest and latest
dates, see the following section: Layout Groups [page 55]
Restriction
• The test profiles of the capacity planning table for LMPC have been created for LMPC and the HJPT
planning table. They have been aligned exactly with this consulting solution. These profiles must not be
used in other consulting solutions or other SAP applications.
2.2.1 LMPC_T01
The HJPT overall profile LMPC_T01 is the standard template for planning.
HJPT profile LMPC T01 is divided into three areas. It has an area for the capacity planning table (above). An
area for the ALV Grid (below) and a range for the window for charts (dialog box).
• The time when the data was last updated. Date and time. The data is updated when the application is
called, saved, and reloaded.
• The technical name of the overall profile of the capacity planning table.
• The technical name of the strategy profile that is used in planning with drag and drop in the graphic.
The profile of the capacity planning table is set up such that there are three charts.
Chart 1 displays the open work centers. You can see at what time the operations at the work centers are
dispatched.
Chart 2 displays a list of operations. It displays the dispatched operations in chronological order.
Chart 3 displays the order pool. The list of all open and not yet dispatched operations.
When you open the window for charts it displays the capacity load graphically, supplemented with the ALV Grid
of the capacity data. You can use the buttons to switch to the development of the stocking situation, the order
relations, and the equipment check. Chart Window [page 66]
2.2.2 LMPC_T02
The HJPT overall profile LMPC T02 is divided into four parts. It has an area for the capacity planning table. An
area for the ALV Grid, an area for the HJPT charts, and an area for the window for completed orders.
However, the profile of the capacity planning table is set up such that there are only two charts. The second
chart from profile LMPC_T01 has been removed.
Chart 1 displays the open work centers. You can see at what time the operations at the work centers are
dispatched.
Chart 2 displays the order pool. The list of all open and not yet dispatched operations.
The window for the charts displays the order relations when it is opened. You can use the buttons to switch to
the capacity utilization or to the development of the stocking situation. Chart Window [page 66]
The window for completed orders displays information on orders that have been finally confirmed, completed,
or technically completed. Window for Completed Production and Process Orders [page 83]
2.2.3 LMPC_T03
The HJPT overall profile LMPC_T03 is also a template for a planning profile.
The profile LMPC_T03 is also divided into three parts. It has an area for the capacity planning table. An area for
the ALV Grid and an area for the window for the charts.
The capacity planning table is only divided into two charts here.
Chart 1 shows the work center view with all the operations that are dispatched to the respective work centers.
Chart 2 also shows the work center view, but with all operations that have been scheduled for the respective
work centers but have not been dispatched. Automatic drilldown shows multiple commitments. Two lines are
displayed in chart 2 for each work center and capacity. The first line contains all operations that have been
deallocated and that already have a status object. The second line contains all transactions that are new and do
not have a status object. Once a planning activity has been executed with an operation, it is given a status.
Dispatching, deallocation, and rescheduling using drag and drop is also possible within the charts as well as
across charts. It is only possible to reschedule an operation from one work center to another in the chart of the
The window for charts displays the development of the stocking situation when it is opened. You can use the
buttons to switch to the capacity utilization or to the order relations. Chart Window [page 66]
2.2.4 LMPC_T05
You cannot use the settings for this profile to perform planning operations. Planning using drag and drop is not
possible here. Otherwise, no changes can be made to the operations.
For example, the profile can be used as a template for a production monitor in manufacturing.
The HJPT profile LMPC_T05 is also divided into three parts. It has an area for the capacity planning table. An
area for the ALV Grid and an area for the window for the charts. All three elements are displayed separately on
separate screens. This setting is a view for a wide monitor or a view with 2 or 3 monitors.
The profile of the capacity planning table is set up such that there are only two charts. The work center view of
the dispatched operations and operations that have not been dispatched.
The window for charts displays only the capacity utilization. Capacity requirements from the past are added to
the current day to be able to identify the backlogs in production. The other charts are hidden. Chart Window
[page 66]
Tip
Above the ALV Grid there is a button for saving. This function is used to save the position of the windows,
since when you save, the planning table remembers the size and position of the windows.
The HJPT overall profile LMPC_T06 is a test profile for the process industry (PI).
The HJPT overall profile LMPC T06 is based on the HJPT overall profile LMPC T01. The graphic also consists of
three charts.
Graphic Bars
In chart 1, the material number and the order number are displayed on the bars.
In charts 2 and 3, the order number, operation number, material short text, and material number are displayed
on the bars. Bar Chart Bar Label [page 40]
An additional coloring of the graphic bars was defined for the profile, which overrides the standard coloring.
Partially confirmed process orders are colored yellow. As in the other profiles, process orders are colored
green, and planned orders are blue. Coloring of Bars of the Bar Chart [page 40]
The ALV Grid layout /LMPC_PI_1 was created for the HJPT overall profile LMPC_T06.
The layout was defined as the standard layout in the settings for the overall profile. As a result, the layout is
used each time the HJPT planning table is called. If different layouts are to be used for the user, this fixed
assignment of the profile must be removed. Parameter Settings for the HJPT ALV Grid
There is a coloring for the fields of the ALV Grid that is designed differently than the coloring in the test profiles
LMPC_T01 to LMPC_T05. For details, see the sections on coloring the ALV Grid.
Data Provider /LMPC/CL_DP_COLOR ALV Grid Classic Color Customizing [page 418]
Action Codes
The profile contains a series of action codes that are often used in the planning processes in the process
industry.
Action codes that have been configured specifically for this profile are all based on the standard S_* action
codes. The action codes have been configured in such a way that companies from the process industry can
easily access the functions.
Action codes configured specifically for this profile all start with S_6_*.
If the settings allow, these action codes can also be used for discrete manufacturing.
Double-Click on Fields
The action code with which a function is called by double-clicking on individual fields of the ALV Grid has been
configured differently for this profile than in the test profiles LMPC_T01 to LMPC_T05.
The function is executed with a double-click and not with a hotspot click. The description of the configured
functions can be found in the section on double-clicking. S_DBCLCK Double-Click and Hotspot Click on Fields
in the ALV Grid [page 355]
Filter Functions
Since one or more BOM components are often relevant for sequencing or the adjustment of production
quantities in the process industry, 3 preset filters have been added to the ALV Grid menu to improve usability:
The pool ID function is used to group planned orders and process orders. These groups of orders can be
dispatched with different planning functions.
Campaign Planning
Simple pool formation for orders in campaign planning can be performed using manual selection in the ALV
Grid and the action code “Create Order Pool Manually”. S_POOLID Create Order Pool Manually [page 259]
As an alternative, you can use the action code “Pool Formation by Material Group” to group all selected orders
with the same material group in an order pool. Instead of the material group, other ALV Grid fields can also
be used for pool formation. This requires a corresponding adjustment to the configuration of the action code
“Automatic Pool Formation”. S_POOLA Automatically Create Order Pool [page 261]
If certain orders are always to be planned together on one or different resources – in terms of campaign
planning – dispatching using the “Single-Level Dispatching Pool” action code is possible. When you select at
least one operation with a pool ID, all other operations of this pool are also dispatched. S_EPSELP Single-Level
Dispatching with Pool ID [page 263]
Afterwards, the setup times can be adjusted using the setup matrix. S_AVRU Adjust Setup Time Automatically
[page 94]
After dispatching, cleaning orders can also be created using the transition matrix. Creation of cleaning orders
during material group transitions [page 120]
Some production processes require a strong link between two manufacturing levels, such as semifinished and
finished product.
This can mean, for example, that after the production of a semi-finished product in a mixed resource, the
semifinished product is to be filled into different packaging units (finished products) directly afterwards. In this
case, the time interval between the two production stages should ideally be as small as possible in order not
to block the mixed resource for an unnecessarily long time or to carry out the filling as quickly as possible for
process-related reasons.
Alternatively, it may be necessary for the production of the two production levels to be dispatched in parallel
because, for example, packaging takes place almost parallel to production.
If it is necessary to block the resource of the semi-finished product (for example, mixed resource) during the
production of the finished product, this can be implemented by an operation of the finished product using the
resource of the semifinished product as a secondary resource (suboperation).
For two-level planning, the following action codes are assigned in the selection menu for pool planning:
In the process industry, it is often necessary to perform cleaning or maintenance on the installation after a
certain time interval or after a product change. For this, LMPC cleaning orders can be created automatically
in the HJPT planning table . LMPC cleaning orders are process orders without header material that occupy
capacity for non-producing activities such as cleaning or tool changes. S_CRCLOR Create LMPC Cleaning
Orders [page 118]
In the selection menu for the cleaning orders, two action codes have been defined as examples:
• S_6_CLMA: Creation of cleaning orders using the transition matrix for PI.
• S_6_CLOR: Creation of cleaning orders using time interval for PI.
Remember
Settings must be made before these action codes can be used for the first time. Among other things,
cleaning recipes and an order type must be created for the cleaning orders and entered in the settings of
the relevant action code. S_CRCLOR Configuration: LMPC Cleaning Orders
The HJPT overall profile LMPC_T07 is a test profile for using the LMPC HJPT planning table as part of
demand-driven planning (DDP).
Demand-driven planning is a planning concept that uses the functions of various SCM consulting solutions.
In DDP, the HJPT planning table is used for chronological sorting and dispatching of the orders. The DDP data
is not generated in the HJPT planning table. It can be displayed in the HJPT planning table so the dispatching of
the orders can be aligned with it.
Note
For details on the DDP logic, see the documentation on generating key figures in the documentation for
SCM consulting solutions. The DDP logic is not explained in the LMPC documentation.
The HJPT overall profile LMPC T07 is based on the HJPT overall profile LMPC T01. The graphic also consists of
three charts.
Graphic Bars
In chart 1, the material number and the order number are displayed on the bars.
In charts 2 and 3, the order number, operation number, material short text, and material number are displayed
on the bars. Bar Chart Bar Label [page 40]
An additional coloring of the graphic bars was defined for the profile, which overrides the standard coloring.
Layout /LMPC_DD_PL was defined as the standard layout in the settings for the overall profile. As a result, the
layout is used each time the HJPT planning table is called. If different layouts are to be used for the user, this
fixed assignment of the profile must be removed. Parameter Settings for the HJPT ALV Grid
Layout /LMPC_DD_PL
It focuses on essential DDP-relevant fields that support scheduling using DDP key figures and priorities. These
include:
Layout /LMPC_DD_EX
These include:
Further DDP fields can be displayed using the layout settings of the ALV Grid. The fields can be found in the
layout group Demand-Driven Planning.
The data provider colors the DDP fields in the ALV Grid. There are no settings for this in LMPC Customizing.
Data Provider /LMPC/CL_DP_DDP Demand-Driven Planning [page 430]
Data Provider /LMPC/CL_DP_COLOR ALV Grid Classic Color Customizing [page 418]
Data Provider /LMPC/CL_DP_COLOR_FORMULA ALV Grid Color Customizing with Formulas [page 420]
Action Codes
The profile contains a range of action codes that can support users in the DDP process.
Action codes that have been configured for this profile are all based on the standard S_*. The action codes have
been configured in such a way that users using demand-driven planning have easy access to the LMPC HJPT
planning table.
Double-Click on Fields
The action code with which a function is called by double-clicking on individual fields of the ALV Grid has been
configured differently for this profile than in the test profiles LMPC_T01 to LMPC_T05.
The function is executed with a double-click and not with a hotspot click. The description of the configured
functions can be found in the section on double-clicking. S_DBCLCK Double-Click and Hotspot Click on Fields
in the ALV Grid [page 355]
Filter Functions
To improve usability, two preset filters have been added to the ALV Grid menu:
These are typical filter criteria that can be used for scheduling within a DDP process. These filters are also used
in the overall profile LMPC_T06. S_FILTR, S_FILTRE Set and Remove Filters [page 353]
Planning Functions
The sorted scheduling function is particularly useful for scheduling in the DDP scenario. S_EPSRT Sorted
Dispatching [page 190]
For this function, two differently configured action codes have been inserted as buttons in the profile:
S_7_SOEX and S_7_SOPL.
• Calendar week
• MRP type
• Planning priority
• Requirement date
• Calendar week
• MRP type
• Execution priority
• Requirement date
These functions are configured in such a way that a sorted dispatching based on the planning or execution
priority for the demand-driven materials (MRP type DD) is executed in the relevant calendar weeks (sorted
in ascending order). The non-demand-driven materials (MRP type, for example PD) are then dispatched in
ascending order according to their requirement date. This means that a combined approach for dispatching
and sequencing demand-driven materials and other planned materials is also possible.
Sorted dispatching first takes place based on calendar week and execution priority or planning priority.
Then, using the calendar week filter, operations with the latest start date are displayed, for example, for the
next week.
For the dispatched operations, for example, for the next week, the setup time can now be adjusted based on
the setup matrix. S_AVRU Adjust Setup Time Automatically [page 94]
If the sequence within a week is not relevant, the operations of a week can also be rescheduled using the
function for reducing the setup time. Here, the setup time is reduced and gaps are closed with a function call.
S_EPRST Dispatching Using Setup Matrix [page 234]
Remember
To ensure that the DDP data is available in the ALV Grid, the data provider for the DDP data must be
activated and a field enhancement of the ALV Grid must be carried out. Data Provider /LMPC/CL_DP_DDP
Configuration: Demand-Driven Planning
The HJPT planning table uses the bar chart of the capacity planning table (CM21 / CM25) of the standard SAP
system.
For each operation of an order, a capacity requirement is displayed in the HJPT planning table. This capacity
requirement is assigned to a capacity of a work center.
The bar chart displays the temporal location of the capacity requirements in the capacities of the work centers.
The bar chart is controlled by the standard Customizing settings for the capacity planning table.
The LMPC delivery provides you with example Customizing profiles for the capacity planning table, for use with
the HJPT planning table. HJPT Test Profiles [page 26]
In the LMPC example profiles, there are separate charts for dispatched and deallocated operations.
The bar chart is not only for display purposes. You can execute various functions on the operations of the
orders that are represented by the bars.
You can use drag and drop to dispatch, deallocate, and reschedule operations. Action codes can be executed
on selected operations using the application toolbar or using the context menu of the bar. Features of the Bar
Chart [page 43]
Restriction
It is not possible to display or plan for the individual phases of PP-PI operations in the HJPT planning table.
Planning is only possible at the level of whole operations.
Capacity planning table Customizing for the LMPC HJPT test profiles is configured such that the order number
for the capacity requirement is displayed on the bars.
It is possible to display the contents of any field of the ALV Grid of the HJPT planning table on the bars.
You can use LMPC Customizing to specify up to 4 fields, the contents of which are displayed on the bar. The
maximum length is 80 characters.
This means that additional data such as the material number or the quantity of an order can be displayed.
Example Bar Text with Order Number, Material Number, and Order Quantity
A configuration has been defined for the LMPC test profiles LMPC_T06 and LMPC_T07.
In chart 1 of the graphic, the material number and the order number are displayed on the bars.
In charts 2 and 3 of the graphic, the order number, operation number, material short text, and material number
are displayed on the bars.
For details on configuring the label, see the LMPC Configuration Guide.Label of Graphic Bars
The colors of the graphical bars are preset in the delivered Customizing for the LMPC test profiles. This
Customizing has been set in the Customizing of the graphic and is delivered with the test profiles.
The Customizing for coloring in the graphic is very complex. It is not recommended to change the basic
coloring delivered.
However, you can use LMPC Customizing to modify the color of the bars easily.
Rules are created for this. The rules can be based on all data available in the ALV Grid of the HJPT planning
table.
For example, it is possible to color by material number, material group, order status, and so on.
Tip
The LMPC test profiles LMPC_T06 [page 31] and LMPC_T07 [page 35] contain examples of the coloring of
the graphic bars. The standard coloring of the graphic is overridden by rules.
For details on configuring the coloring, see the LMPC Configuration Guide. Coloring of Graphic Bars
It is possible to display the connections between operations in the bar chart of the HJPT planning table.
These are displayed as arrows. The start of the arrow has two vertical lines and the end of the arrow has a
double tip. This enables the direction to be read.
Arrows are displayed between all operations of an order pool for the connecting lines for order pools. The
arrows run between the operations in the direction in which they are scheduled. This means that they do not
run from every operation to every other operation, but only throughout the entire pool in terms of time.
If connecting lines between pool orders and operations are active, the pool lines override the lines between the
operations. In this case, the lines between the operations are no longer displayed.
The connecting lines of the requirement relationships are only formed between the last operation of the
preceding operation and the first operation of the subsequent order. Therefore, if only the lines for order
relations are activated, no lines are displayed between the operations of an order.
The connecting lines of the requirement relationships are not supported for co-production. There are no
connecting lines between an order that uses the co-product or by-product of another order as a component.
The colors of the arrows can be defined using LMPC Customizing. The settings are made in the respective
LMPC overall profile. This is where you also define whether arrows are displayed for all operations, or only for
dispatched or deallocated operations. Connecting Lines Between Bars
In the case of the order relations, you can also differentiate between the firmed and unfirmed order relations.
The system displays only lines between the capacity requirements that are relevant for scheduling. These
are capacity requirements whose capacity is specified as the basis for scheduling in the work center.
Caution
For runtime and clarity reasons, it is recommended that you choose the use of the lines carefully. If you
activate all lines, the display will soon become unclear. In addition, calculating a large number of lines can
impair runtime.
Example
In this example, the blue arrows show the relationship between the linked orders. That is, the demand
relationships. The direction always goes from the predecessor to the successor in the direction of the finished
product.
The black lines show the relationships between the operations of an order.
Related Information
Note
All descriptions in this section refer to the settings that are delivered with the HJPT test profiles. Other
functions can be set in your system.
There are three ways of executing action codes on selected operations in the bar chart of the HJPT planning
table:
Menu Bar
The menu bar at the top of the screen contains both standard functions of the capacity planning table and
specific functions of the HJPT planning table.
Menu Bar
There are two menu options that contain LMPC HJPT functions:
• Graphic Functions
• ALV Grid Functions
The HJPT functions that are on the application toolbar are listed in the menu option "Graphic Functions" (see
the description of the pushbuttons in the next section). You are in the submenu "HJPT Action Codes".
The operations for the functions are selected using the graphic. The functions can also be executed using
shortcuts. The menu text for the functions contains information about executing the functions using shortcuts.
The second menu option for HJPT functions called ALV Grid Functions contains a list of action codes that are
applied to selected operations in the ALV Grid using keyboard shortcuts. The description of these functions is
contained in the section on the ALV Grid. Action Code Call Using Keyboard Commands [page 63]
All other functions that are called via the menu bar of the graphic are standard functions of the capacity
planning table. For these functions, the operations are selected only using the bar chart.
The standard functions of the capacity planning table are controlled by the GUI status. The usage of these
functions cannot be changed. Two different GUI statuses are delivered with the LMPC delivery: LMPCST, and a
status with fewer functions, LMPCST2. G01 Transaction /LMPC/OPDE: Control Profile
Print -> Chart 1-8 Print function for the charts of the
graphic.
Highlight in Color -> Related Objects Highlight in color those objects that be-
long together.
Goto Work Center -> Display Display the work center in the same
way as in transaction CR03.
-> Display
-> Qualification
-> Components
-> Prod.Resource/Tool
-> Variable
-> Hide
-> Off
Select -> Table Objects Marking with inverse colors or with the
standard color marking.
-> Inverse
-> Bordered
-> Inverse
Help Application help and other help You can choose “Application Help” to go
to the online documentation for LMPC.
Above the graphic, there are two application toolbars that can be used to execute different functions. Here,
you can execute standard functions of the capacity planning table as well as functions of the HJPT planning
table. There is a pushbutton for each function. For some functions, it is also possible to execute the respective
function using a keyboard shortcut.
Pushbuttons
In the top bar next to the command field, there are the following buttons:
Save Ctrl + S
Return F3
Exit Shift + F3
Cancel F12
Find Ctrl + F
Create Shortcut -
Help Function F1
Below the top menu bar is the title of the transaction, and below that the second application toolbar.
The second application toolbar contains a mixture of standard functions of the capacity planning table and
HJPT action codes. A maximum of 12 HJPT action codes can be displayed as pushbuttons on the bar.
In the LMPC test profiles, two of the 12 possible locations are already prefilled with the functions: “Select
Operations in ALV Grid” and “Reset All Windows”.
The functions of the second application toolbar refer to the graphic. This means that for certain functions, such
as changing an order or dispatching and deallocating, the bars must first be selected before the respective
function can be executed.
Tip
You can select several bars by holding down the SHIFT key when you click the bars.
The HJPT action codes for the application toolbar are created via Customizing with the trigger "Menu Bar
Graphical Planning Table". For details on the triggers, see the LMPC Configuration Guide. Action Code
Trigger
The following table provides an overview of the functions with their respective keyboard shortcuts.
Dispatch Operation F5
Deallocate Operation F6
Dispatching and deallocating with the graphic pushbuttons uses the strategy profile that is stored in the
graphic. The strategy profile specifies how the dispatching function behaves. The technical name of the
strategy profile is displayed as the last element in the header of the graphic.
You can use the button for changing the strategy profile to call an overview of the available strategy profiles.
You can use this function to change the strategy profile for planning in the graphic. The settings of the
respective strategy profile can also be changed temporarily. The changed settings are not saved. You can only
make a permanent change to the settings of the strategy profile in Customizing for the capacity planning table.
Configuration of Strategy Profiles
Restriction
You can use the function for changing the capacity to simulate changes to the available capacity at the work
centers. When you save, the changes are posted to the database. Changing the available capacity is not
recommended.
The strategy profile that is stored in the capacity planning table is also used if operations are dispatched,
deallocated, and rescheduled to other times and work centers by dragging and dropping bars.
Dispatching takes place by dragging the bar of an operation from a chart of the non-dispatched operations
(pool) to the time stream of a work center of a chart of the dispatched operations. Dragging in the opposite
direction results in the deallocation of an operation.
Bars can be moved forwards or backwards within their chart to adjust the times of the operations. The
operations are moved to the time stream. Moving is possible for both dispatched and deallocated operations.
However, when you move deallocated operations, an HJPT function is used since the standard version of
the capacity planning table does not support moving of deallocated operations. S_MVEORD Move Order
Operations in the Pool [page 210]
The standard function for dragging and dropping in the graphic can be replaced by an LMPC HJPT action code.
If the standard function has been replaced, the logic and the strategy profile of the defined action code are
used when dragging and dropping. Action Code Trigger
Context Menu
You can use the context menu of a bar to execute HJPT action codes for the operation of this order.
You access the context menu by selecting a bar and then right-clicking.
The action codes displayed depend on the Customizing settings of the context profiles for the HJPT overall
profile. In the delivered sample profiles, action codes are already preset for the context menu of the graphic
bars.
Remember
The HJPT action codes for the context menu are created using Customizing with the trigger “Context Menu
Graphic Bar”. For details on the triggers, see the LMPC Configuration Guide.Action Code Trigger
Use
This function enables you to create simulative production and process orders. The orders are simulative
because they do not yet exist in the database. The system does not write the orders to the database until you
choose Save.
If you discard the planning without saving, for example by reloading the data, the simulative orders are lost.
Tip
The HJPT planning table contains an action code for creating simulative orders. This can be used as an
alternative. S_CRORD Create Simulative Order [page 135]
Procedure
Creating Order
The system displays a dialog box for querying the input parameters.
Entering Values
The operations of the newly created order appear in the ALV Grid. The order has a temporary order number.
A sequence order number from the regular number range is only assigned once you have saved.
Restriction
The use of simulative production orders and process orders is subject to a number of restrictions. For a
detailed list of the restrictions, see the action code S_CRORD. S_CRORD Create Simulative Order [page
135]
If you want to use a function that does not work with the simulative orders, save once. This writes the
orders to the database. You can then use the orders as normal orders.
One of the three subareas of the HJPT planning table is the ALV Grid.
The ALV Grid contains the data for the operations of the orders that are open in the HJPT planning table.
There is one line in the ALV Grid for each capacity requirement of an operation on a capacity.
A large number of fields are available in the ALV Grid of the HJPT planning table. The layout settings of the ALV
Grid determine which fields are displayed.
The LMPC delivery delivers test layouts that show examples of a field selection:
Layouts can be saved for all users (standard layout) or on a user-specific basis for the individual user.
Saving Layouts
You can use the selection field for the default setting to save layouts as initial variants. When you open the
planning table, the saved initial variant is selected automatically. The following rule applies: User-specific initial
variant before variant for all users.
Layouts can be grouped together. Groups of layouts can be assigned to an HJPT profile so that the layouts are
only available to users for a specific HJPT overall profile.
In the HJPT planning table, it is also possible to predefine a layout for an HJPT profile. If a layout is predefined,
this overrides all other settings. The layout is therefore predefined for all users for this HJPT overall profile.
It is also possible to protect layouts against changes. The respective layout can then no longer be changed by
the user.
For the description of grouping, predefining, and protecting ALV Grid layouts, see the LMPC Configuration
Guide. Parameter Settings for the HJPT ALV Grid
The data in the displayed fields is filled using data providers. The data providers and the available data are
described in a separate section of the documentation. LMPC HJPT Data Provider [page 395]
The fields of the ALV Grid can be colored using rules in Customizing. This means that you can increase the
clarity and make the planner aware of problematic situations. For example, if the requirements date is not met,
the field is colored red. Coloring the ALV Grid [page 58]
Functions can be executed for selected data records in the ALV Grid using keyboard commands. Action Code
Call Using Keyboard Commands [page 63]
By right-clicking on the fields of the ALV Grid, you can call the functions of the context menu. Action codes can
also be defined here. Action Code Call via the Context Menu [page 64]
By double-clicking or clicking the hotspot on certain fields of the ALV Grid, you can call additional action
codes. For example, you can navigate to the material master display using the material number.S_DBCLCK
Double-Click and Hotspot Click on Fields in the ALV Grid [page 355]
The function options in the HJPT planning table are described in the action codes section. Action Codes -
Functions of the HJPT Planning Table [page 86]
Currently, more than 1100 fields are available in the ALV Grid of the HJPT planning table.
To make it easier to find fields, ALV Grid layout groups were created.
The LMPC documentation does not explain every available field of the ALV Grid.
Most of the fields come from the data tables of the capacity planning table. These standard fields are not
described.
In addition to the standard fields, the data providers are used to read additional information. The description
of the additional fields can be found in the individual chapters for the data provider. LMPC HJPT Data Provider
[page 395]
Since the data records in the ALV Grid are based on the capacity requirements of the order operations, the
“Capacity Requirements” group is particularly important for planning in the HJPT planning table.
The temporal position of the operations can be read from the fields for the capacity requirements dates. There
are fields for the earliest date and fields for the latest date. Both dates are always calculated in scheduling.
The start times of the latest date start only after the wait time. Meaning an operation must wait before
production is started. The wait time cannot be reduced for the latest date. It is not possible to reduce the wait
time for the latest date in a dispatching function to start an operation earlier. This is only possible manually by,
for example, changing the wait time entered in the operation of the production order before dispatching.
The earliest date of the operations is calculated in PP using backward scheduling with reference to the
latest date. It is possible to reduce the wait time. To do this, a reduction is set in the strategy profile used
during dispatching. For the explanation of configuring the strategy profile, see the LMPC Configuration Guide.
Configuration of Strategy Profiles
Which date you use for your production planning is a decision about how to model your processes. An LMPC
consultant can be of assistance.
In the HJPT planning table, the bars display the position of the operations according to the latest date. The
related fields in the ALV Grid are:
• Latest start/date
• Latest start/time
• Latest end/date
• Latest end/time
If you have not set a wait time for production orders and PP planned orders, these times in these fields are
identical to the times of the earliest dates. These can be found in the following fields:
• Earliest start/date
• Earliest start/time
• Earliest end/date
• Earliest end/time
It is possible to display the start time of the earliest date in the graphic. To do this, show additional graphical
elements. For the explanations on this, see the LMPC Configuration Guide, in the following section: Additional
Graphic Elements
Remember
The application updates the fields of the capacity requirements for each planning activity. Other fields
that are additionally read can only be updated by saving, for example. This is different for each field. For
example, for the basic dates of orders, it depends on the scheduling settings whether the fields are updated
during planning or only when planning is saved.
With your LMPC HJPT delivery, you receive sample layouts for the ALV Grid that show the most important
fields for planning.
If you have any questions about available data or the correct field selection, please contact your LMPC
consultant.
Restriction
The system does not supply all the fields of the ALV Grid with data. Since standard structures of the
standard SAP system were used in the definition of the basic structure of the ALV Grid, there are fields that
are not filled with data. This is not an error, it is due to the architecture of the consulting solution.
It is possible to create your own groups and to sort fields there. For instructions on this, see the LMPC
Configuration Guide.C11 Transaction /LMPC/GRP: Group ALV Grid Fields in Layout Groups
It is possible to rename fields and remove them from the field list. For instructions on this, see the LMPC
Configuration Guide.Change ALV Grid Fields of HJPT Planning Table
The ALV Grid can be colored using freely configurable rules. Individual fields or entire rows can be colored,
depending on the data in the ALV Grid.
There are two data providers for coloring the fields of the ALV Grid:
• Data Provider /LMPC/CL_DP_COLOR ALV Grid Classic Color Customizing [page 418]
• Data Provider /LMPC/CL_DP_COLOR_FORMULA ALV Grid Color Customizing with Formulas [page 420]
For a description of using coloring, see the sections for the respective data providers.
Prerequisite
The layout settings of the ALV Grid determine which fields the ALV Grid list is sorted by.
Use
For dispatching and rescheduling functions, this sequence is used to determine the sequence for dispatching.
For many dispatching functions, the selected orders are dispatched in the sequence in which they are sorted in
the ALV Grid.
Procedure
Automatic Sorting
In the header bar of the ALV Grid, call the layout settings and call the “Sorting” tab page.
Sorting Example
• Dispatching status
• Latest start date for the capacity requirement
• Latest start time for the capacity requirement
• Order number
You can adjust the sort settings as required. You can save them using the layout.
When you call the HJPT planning table, the preset layout settings are called. If no user-specific layout is saved,
the settings are read from a general layout.
Tip
You can use the settings for the HJPT profile to predefine a layout. This setting overrides all user-specific
predefined profiles. For details on this, see the LMPC Configuration Guide. Parameter Settings for the HJPT
ALV Grid
If you want to arrange the data in the ALV Grid according to the predefined sorting, you can do this in four ways:
Note that sorting has an effect on the LMPC planning functions since the data records are transferred to the
functions according to the sorting sequence.
Manual Sorting
In this way, you create your own manual sequence. The operations are transferred to the relevant planning
function in this sequence.
Remember
When you refresh the data, the manually created sequence is lost because the data records are then sorted
according to the sort criteria of the ALV Grid.
Selection
Drag it to the desired position. To do this, click on one of the selection fields at the left-hand edge, hold down
the mouse button, and move the rows to the desired position. Then release the mouse button.
Result of Move
Result: The data has been moved to the desired position. When the data records are moved, they remain
selected so that an action code can be executed on them if necessary. The "Last Action" field displays a drag
and drop icon for identifying the moved records.
Note
You can only move operations if the work center of the selected operations is identical to the target
operation work center that you are moving these operations to. It is only possible to move operations within
work centers. If you want to use manual sorting and have several work centers open in the HJPT planning
table, it is recommended that you sort the data records by work center. This makes it easier to work with
the function.
Individual Configuration of ALV Grid Menu Bar and ALV Grid Context Menu
Navigation profiles create an option for adjusting the menu bar of the ALV Grid and the context menu to meet
the requirements of the planner.
To be able to use navigation profiles, they must be activated in Customizing for the HJPT overall profile. After
lockout/tagout, the button for the navigation profile is next to the standard functions of the ALV Grid as the
first or second button. (As a second button, if the optional work center filter is also activated).
For details on configuring the navigation profiles, see the LMPC Configuration Guide.ALV Grid Navigation
Profiles
The advantage of using navigation profiles is that each user can assemble the action codes they need for their
daily work.
This allows a user to structure the toolbar above the ALV Grid and the context menu of the ALV Grid itself.
Users with different tasks can use the same HJPT overall profile and only see the functions that are important
for them.
In addition to the HJPT action codes, you can add any SAP transactions to the navigation profiles.
Note
Navigation profiles allow the individual planner to individually configure the function selection. Therefore,
they can only be saved on a user-specific basis.
The standard way to configure LMPC functions and SAP transactions for use in the HJPT planning table
is the context profile of the HJPT overall profile. These settings are the same for all planners who use the
same overall profile. HJPT Context Profiles
In conjunction with transaction /LMPC/HJPT_AS for starting the HJPT planning table automatically, the
user need only click to open the work cockpit. Transaction /LMPC/HJPT_AS LMPC HJPT Planning Table
Autostart [page 18]
The row with buttons for executing LMPC HJPT functions is located above the ALV Grid. In addition to the
standard functions of the ALV Grid, such as sorting, filtering, and so on, the buttons for the LMPC HJPT action
codes are displayed.
The functions of the HJPT planning table can be displayed individually or as a group.
In this example, the functions for reloading the data and saving the data are set to individual buttons. This is
also possible for all other LMPC action codes.
All other action codes are grouped according to their functionality in this example.
For example, all the functions for dispatching are behind the Dispatch button.
The advantage of grouping is that the number of function keys above the ALV Grid can be reduced and
therefore display space can be saved.
Whether the LMPC HJPT action codes are displayed or grouped as individual buttons depends on the
Customizing settings. The settings are made using the action code triggers.
For details, see the LMPC Configuration Guide. Action Code Trigger
To process operations in the HJPT planning table using the ALV Grid, you can map HJPT action codes to
keyboard commands.
This simplifies and accelerates the execution of action codes. After the operations have been selected in the
ALV Grid, the keyboard is executed for the desired action code.
Action codes are assigned to the toolbar commands using action code triggers. For detailed information, see
the section on action code triggers in the LMPC Configuration Guide. Action Code Trigger
You can find out which action codes are mapped to each of the keyboard commands via the menu of the HJPT
planning table.
• In the quick info for the action code button in the menu bar of the ALV Grid.
• In the function text of the action codes for dropdown function keys in the menu bar of the ALV Grid.
• In the context menu for calling action codes via the operations in the ALV Grid.
Remember
If you are using a navigation profile, enter the keyboard command manually in the quick info text, as this is
not filled automatically.
Ctrl + F1 S_MAGR
Ctrl + F2 S_SELCAP
Ctrl + F3 S_MD04
Ctrl + F4 S_AK02
Ctrl + F5 S_EPSEL
Ctrl + F6 S_MANPL
Ctrl + F7 S_EPSEQ
Ctrl + F8 S_EPTBSQ
Ctrl + F9 S_EPML
It is possible to define functions of the HJPT planning table in the context profile of the ALV Grid.
To call the context profile, click in a field of the ALV Grid and then press the right-hand mouse button.
The first two functions are standard functions of the ALV Grid:
All other functions are provided in Customizing for the HJPT planning table. It is possible to change the
selection of functions.
• Display
• Plan
These menu options contain the HJPT functions as subitems. To execute the respective function, use the
mouse to select it.
If the settings for the functions have been changed, the functions can also be available directly in the context
menu.
The field of the data record that you clicked defines the data record that is processed with the selected
function.
If you have selected several data records in the ALV Grid, you can also click in any field of these data records
and execute the required function. The function is then executed for all selected data records.
Related Information
Windows for displaying additional data are delivered for the LMPC planning table.
These are charts with additional information on the planning data, such as capacity load, development of the
stocking situation, and the list of order relations.
The window for the data for completed production and process orders enables you to display data that is not
available in the ALV Grid of the HJPT planning table.
The additional windows can be displayed either as a separate window or integrated in the main window. The
display of charts is already configured in the delivered test profiles.
For instructions on showing additional windows, see the LMPC Configuration Guide. HJPT Window
Configuration
Note
The planning table remembers the size and position of the window each time you save. If a window is
closed, when you save, the planning table remembers that the window was closed and no longer opens the
For SAP GUI 7.70 patch level 10, the buttons for minimizing and maximizing modeless dialog boxes have been
removed. As of this SAP GUI version, there is only the pushbutton for closing the windows. For details, see SAP
Note 3297294 .
Related Information
In the HJPT planning table, there is a window for additional charts. It is possible to display up to four charts
there.
For the settings for the charts, see the LMPC Configuration Guide.Parameter Settings for Chart Window
The window for charts can be displayed as a separate dialog box or integrated into the main window. In the
LMPC HJPT sample profiles delivered, the window is displayed as a separate dialog box. For the settings for
displaying windows, see the LMPC Configuration Guide. HJPT Window Configuration
If the window is used as a dialog box, the planning table remembers the position and size of the window when
you save. Saving takes place with reference to the user name and the HJPT overall profile. When you reload the
data or access the planning table again, the window is displayed in the position in which it was last saved.
Tip
If you do not use the window all the time, it is recommended that you close the window and then save it.
The window will then no longer open in the future. It can be reopened using the action code S_RES_CV.
The action codes for calling the data for the individual charts also open the window.
The chart shows the capacity load by category. A maximum of five categories can be configured in Customizing
(see LMPC Configuration Guide C04 Transaction /LMPC/CUSTCAP: Categories for Capacity Utilization Chart).
The capacity offer is represented by a line. The load can be read by comparing the requirements and the offer.
Each capacity from the planning table selection can be accessed and switched by means of a button. If the
corresponding setting has been made in Customizing, data can also be displayed aggregated over the work
center hierarchies. A button with the label 'HR' plus the name of the hierarchy is displayed in the selection for
each hierarchy (HJPT Window Configuration).
If the HISTORY parameter is set in Customizing, all requirements from the past are aggregated to the current
date. The remaining offer for the current date is then also calculated to the exact minute.
Dispatched operations with HJPT firming indicators: If the function for dispatching using HJPT-fixed
operations is used, operations are dispatched in parallel to operations with an HJPT firming indicator. In the
period that the operation with the HJPT firming indicator occupies, operations set in parallel do not have a
capacity requirement. An HJPT-fixed operation acts like a break for the parallel operation. This is extended
accordingly. In the chart, no capacity requirement is calculated for this period for the operation set in parallel.
Planning with Consideration of HJPT Firming Indicator [page 291]
Note
The calculation for HJPT-fixed operations is correct only if the capacity offer has not been changed since
dispatching.
The display always starts with the current date. You can use the forward and backward buttons to scroll
forwards and backwards through time.
You can use the filter buttons to change the display period. You can define the length of the display
period in Customizing.
If you have made the corresponding Customizing settings, you can use the buttons Day, Week, Month to
choose the data aggregation.
Whenever the display period is changed, the display is always reset to the current period. This is the current
day, week, or month.
You can use the button h /% to switch the axis for the load between hours and percent. Percentages are
displayed in the chart as a number with two decimal places.
If you click on a bar in the chart, you select the related operations in the ALV Grid of the LMPC planning table.
Conversely, you can use the action code S_SELCAP to display the capacity requirements of selected rows of
the ALV Grid as a white bar range. S_SELCAP Selecting Detailed Capacity List in the Chart [page 308]
If bars were marked white using S_SELCAP, these white bars cannot be used to select the data records in
the ALV Grid by clicking them. Selecting data records in the ALV Grid only works for colored bars.
An ALV Grid with key figures for the chart is displayed below the chart line. This key figure list can be hidden
using Customizing settings.
• Available capacity (h or %)
• Capacity load (h or %)
• Overload (h or %)
• Cumulative overload (h or %)
• Number of operations
• Number of orders
The cumulated overload adds the overload in the displayed area, not for the entire evaluation period.
The number of operations or orders counts the elements on their start day. If an operation or order is longer
than one day, it is counted only on the start day.
You can use the key “Load<->Offer” to toggle between the overall capacity load and the
pure capacity offer.
All other keys have the same functionality as in the chart for the capacity load. Capacity Load (Categories)
[page 67]
This chart shows the offer of the respective capacity per day. If the 'HISTORY' parameter is set in Customizing,
the remaining offer for the current day is displayed; otherwise, the overall offer is displayed.
The capacity requirement results from the operations that are scheduled at the respective work center. It does
not matter whether an operation has been dispatched.
The assignment of which capacity requirement is counted for the load or overload results from the
chronological sequence of the start time of the operations of orders. Depending on the distribution key set,
sorting takes place according to either the earliest or latest start times of the capacity requirements.
Clicking on a blue bar in the chart selects the operations of the normal load belonging to the capacity
requirement in the ALV Grid of the HJPT planning table.
Clicking on a red bar in the chart selects the overload operations belonging to the capacity requirement in the
ALV Grid.
Remember
An operation can be counted as both normal load (blue) and overload (red) since the capacity
requirements of an operation can exceed the available capacity offer. Therefore, clicking on a blue bar
can select the same operation as clicking on a red bar.
Restriction
The action code S_SELCAP, with which selected data records from the ALV Grid are marked in white in the
chart, cannot be used for this chart. S_SELCAP Selecting Detailed Capacity List in the Chart [page 308]
The development of the stocking situation for a selected material number is displayed over time.
The material stock is calculated from the material stock and the material requirement quantities of transaction
MD04, against which the receipt quantities of the planned, production, and process orders are calculated that
are open in the LMPC planning table.
The date of the MD04 list for the requirement element is used as the requirement dates for a material issue for
the calculation.
The earliest end dates of the respective capacity requirement are read as receipt dates from the respective
orders (fields FENDD_KB, FENDU_KB). The end time is always rounded up to the nearest quarter of an hour.
The receipts are displayed for these dates.
The dates of the capacity requirements were intentionally used and not the basic dates of the respective orders
or the MRP availability. When dispatching or rescheduling operations in the planning table, the dates of the
capacity requirements change in the simulation. By using these dates for the calculation, changes to the stock
situation can be displayed approximately in the simulation.
The stock of materials is displayed only for orders open in the HJPT planning table. The stock for component
materials of the orders is not displayed.
In Customizing, you can also specify that the materials are aggregated for each storage location. If this is set,
the storage location is also used as a selection criterion when selecting the materials.
Use
Remember
• The order relations display in the list of order relations (this chapter)
• The display of the order relations via lines in the graphical part of the HJPT planning table. Chapter:
Connecting Lines for Bars in Bar Chart [page 41]
• The dropdown field in the ALV Grid with the information on the dependent requirements of the order
relations. Chapter: Data Provider /LMPC/CL_DP_BED LMPC Requirement Date and Order Relations
[page 401]
• The time for the successor. Chapter: Data Provider /LMPC/CL_DP_GAP Calculate Dispatching Gaps
and Time for Successor [page 433]
• Multilevel planning with the action code S_EPML. Chapter: Multilevel Planning via Order Relations
[page 277]
• The order relations are firmed with the action code S_ORFIRM. Chapter: S_ORFIRM, S_ORFREL Firm
Order Relations and Undo Firming [page 279]
Only the list of order relations is described here. For a description of the other elements, see the relevant
section.
Overview
The order relations are created dynamically according to the FIFO principle (First-In-First-Out). The
requirements are calculated against the receipts and the receipts are assigned to the requirements in this
way.
The display always refers to the cyan-colored order in the chart at level 0. When you open the LMPC HJPT
planning table, an order is automatically pre-assigned.
The relationships are always determined in relation to the order at level 0. The relationships are determined
using the requirement quantities and receipts of the data in transaction MD04.
The relationships are not only determined with those orders that are currently open in the HJPT planning table,
but via all the orders in the system.
In the direction of raw material, there are also links to the warehouse stock, which is visible in MD04.
The system displays the stock with the date of the start of the read period for MD04 data. Since the stock was
created before the start of the reading period of the data, it is specified with the date of the start of the reading
period.
If a requirement is covered by warehouse stock, the order relations are displayed at the level with the
warehouse stock. This is because the requirement coverage element that creates the stock is before the
reading period of the MD04 data. In this case, the generating requirement coverage element for the stock
cannot be determined.
To see how the on-hand stock is to be structured, the reading period for the MD04 data can be enhanced using
the Customizing settings in the control table. Then requirement coverage elements are visible for a longer
period in the past.
If the quantity of a component for an order has already been withdrawn, there is no longer any requirement for
this component. In this case, no entry is displayed for the component. If, when determining the relations in the
direction of the raw materials to individual components, the system does not find quantities linked by orders
or stock, an entry with the MRP indicator FMAT = missing material is created for the relevant component.
The column for the MD04 error messages also contains a message about the missing material quantity. The
material number is colored red.
Tip
• If, when determining the relations in the direction of the raw materials to individual components, the
system does not find quantities linked by orders or stock, by default, the order relation is displayed
from left to right from the raw material via the semifinished products to the finished products and the
requirement element. This display can be reversed using a parameter in Customizing. This means that
the display runs from the finished product to the raw material. Parameter Settings for Chart Window
• The entries on the respective levels are sorted in ascending order according to the receipt date and, if
available, according to the latest end times of the capacity requirements.
• As of level +3/-3, elements can be displayed more than once. For each entry on level +2/-2, there is at
least one entry on level +3/-3. If there are multiple elements on level +2/-2 and each of these elements
has the same element assigned on level +3/-3, this element is listed in level +3/-3 more than once. This
is to display the linked quantities between level +2/-2 and +3/-3 correctly. This also applies to levels
with higher numbers.
Order Selection
If the parameter ORMWM is set in the Customizing settings, the order numbers are grouped according to the
work center and the material. This makes it easier to select an order. If the parameter is not set, the selection is
made via a simple list of all order numbers. Parameter Settings for Chart Window
• Select an order operation in the ALV Grid of the LMPC planning table.
If the list of order relations is not open, it is opened. The prerequisite for this is that the list is defined in
Customizing for the HJPT overall profile. When you save the data, the planning table remembers the position
and size of the windows. The list opens in the last opened size and position.
Tip
A reverse selection in the direction of the LMPC ALV Grid is also possible. If you double-click on an order
number in the list of order relations and this order is open in the planning table, the corresponding line is
selected in the ALV Grid of the LMPC HJPT planning table.
The display is divided into two areas. On the left-hand side you can see the hierarchy of the elements (orders,
purchase requisitions, planned independent requirements, sales orders), and on the right-hand side you can
see the data for these elements.
On the right-hand side you can see the data for these MRP elements.
Data List
The starting point is always the selected order on level 0. This is highlighted in cyan. The upwards direction in
this example is the direction of the finished product, planned independent requirements, or sales orders, and
so on. Downwards, you see raw materials, purchase requisitions, and so on.
You can use the layout settings of the ALV Grid to show or hide fields. You can use the print function to export
the data.
Example
View from level 0 down to raw material. Explanation of the fields, from left to right.
Data Downwards
Level 0 shows element 60007918. The fields "Indicator MRP Element" and "MRP Element Short Description"
show that this is a production order. The material LMPC_HALB_34 is produced with the material short text
LMPC Semi 34.
Transaction MD04 determined the receipt date for this order as March 25, 2019. Since the receipt date is
before the requirement date, the field is colored green. The receipt quantity is 10 pieces. At the time of receipt,
the available quantity of the material according to MD04 is 31 pieces. The available quantity at the time of
receipt already contains the quantity of the order as a receipt. Meaning that there is sufficient coverage for the
material here. The requirement date for the order based on the requirements for the level -1 (not shown here)
is March 27, 2019. The requirements date is the earliest requirements date of all requirement elements that are
linked to this order. If there are several elements at level -1 that consume the receipt quantity of the order, then
The field "Available Quantity for Requirement Date" is next. The available quantity for the requirements date
displays the quantity according to MD04, after deduction of the material requirements that have already been
made for this date. The amount here is 196 pieces.
The next field displays the requirement quantity for the requirement date. In this case, this is 34 pieces. There
is a sufficient quantity of material for the requirement date. The requirement quantity is the sum of the required
quantities for all pegged requirements for this material. In this case, there is only one order as the pegged
requirement.
The next field displays the related quantity. The related quantity is always considered upwards. 10 elements are
linked here. The order itself has 10 receipt elements. So, all 10 receipt elements of the order are linked to the
requirements on level -1.
The next 2 fields display, if available, the error number and the error message from transaction MD04. In this
case, there is no error message for the order.
On level 1 you can see 2 elements: 10072239 and 10072278. These are purchase requisitions for the raw
material LMPC_ROH_3 or LMPC_ROH_4. Both are received on March 4, 2019.
The receipt quantity is 347 or 234 pieces. At the time of receipt, 563 or 884 pieces of this material are available.
The requirement date for material LMPC_ROH_3 is March 22, 2019. The requirement date for material
LMPC_ROH_4 is on February 27, 2019, because the material enters the manufacturing process earlier. The
available quantity for the requirement date is negative for material LMPC_ROH_4. The field is highlighted in red.
Therefore, there are not enough parts to start production.
The related quantity for the respective semifinished material is 10 pieces. According to the MD04 error
message, the deadline for both purchase requisitions is already in the past.
Data upwards 1
Data upwards 2
To make the data easier to read, the data has been displayed in 2 parts.
The order 60007918 of the semifinished material serves 2 orders for the finished material LMPC_FERT_34 on
level -1. They have different receipt quantities for the finished material.
One level further down: The order 60007918 on level 0 has 10 pieces of receipt quantity, which is consumed by
the orders for the finished material on level -1. Related quantity here 9 + 1 = 10.
So, looking at the area from level 0 upwards, the related quantity of materials is the link to the level below. In the
level 0 area downwards, this is the other way around.
If you want to view the scheduled start times of the orders, you can look at the last columns of the order report.
The earliest start of order 60007918 is on March 22, 2019, the earliest end on March 23, 2019. The earliest
start and the earliest end dates are the times from the capacity requirements of the order. The earliest start is
read from the first operation and the earliest end of the operation is read from the last operation, in order to
illustrate the entire production period of an order.
Remember
If the operations of the respective order are open in the HJPT planning table, the times for the capacity
requirement are determined from the simulative data and show the current planning status. If the
operations are not open, the data is read from the database.
The required quantity field shows the quantity of material required by the elements in the next higher level.
There is another field that is not shown in this example: The requirement quantity of the components. This field
specifies how much of the components that are one level lower is required. In the case of planned independent
requirements, this field displays the required quantities of the material. This field is only filled upwards to
determine the data, since the data is unique here. This field is not filled downwards since several components
can exist for a material to be produced.
In the "Requirement Date Components" column, the desired dates for the materials are displayed for planned
independent requirements. These desired dates for the planned independent requirements also correspond to
the requirements date for the elements that lie one level lower.
There are still two fields for the buffer time for the subsequent element, which are not shown in this example.
In these fields, the linear time between the end of the last operation of an order and the start of the
subsequent pegged requirement is calculated. For more details about these fields, see the following section:
Data Provider /LMPC/CL_DP_GAP Calculate Dispatching Gaps and Time for Successor [page 433]
You can use the settings for the chart to deactivate the calculation of the buffer time to save runtime. C05
Transaction /LMPC/CUSTOREL: Settings for the List of Order Relations
Another field, which is also not shown, displays the number of the first requirements element for the respective
order. You can use this field to create a reference to the pegged requirement if several elements exist at a level.
If an order in the HJPT planning table is rescheduled to a different date, the order relations may also change,
since the order is likely to serve other requirements. Planning takes place in simulation mode. The list of order
relations is designed for this purpose. The receipt dates, requirement dates, available quantities, and start
times of orders opened adapt to the changed data.
Caution
The order relations are only displayed correctly if the orders use the same units of measure across the
levels. An automatic quantity conversion is not planned.
• The order relations chart only depicts data constellations for which it has been developed. This is
make-to-stock production within a plant and make-to-order production within a plant.
It does not map every customizable use case in the SAP software. If the data for a use case is not
displayed correctly, this is not an error. This is a scenario that is not supported. Scenarios that are not
supported include cross-plant planning or co-product manufacturing.
• In co-production, the co-products and by-products for the respective order are not displayed. Likewise,
the pegged requirements of the co-products and by-products are not taken into account when the
requirement date is calculated. If other orders use the co-products or by-products as consumables, the
links are only displayed in the direction from the finished material to the source material. In the other
direction with the order of the co-product as the starting point in the direction of the consumption of
the co-products, the links are not generated.
• There are also restrictions for displaying simulative orders. Since simulative orders do not exist in the
database, no rescheduling date and no error messages from transaction MD04 can be determined for
these orders. S_CRORD Create Simulative Order [page 135]
• However, any other cases that are not described in this documentation are not supported either.
Related Information
The equipment check chart shows the overlaps between maintenance orders for equipment of the orders and
the dispatching dates of the orders.
To exclude a piece of equipment from use for a certain period of time, a maintenance order is created for
this piece of equipment. This is created as a normal maintenance order for the equipment, for example, using
transaction IW31. Creation takes place outside of the HJPT planning table.
In the period of the maintenance order, an operation of a planned order or production order that uses this
equipment must not be dispatched for production.
The chart compares the operation times of the produced orders with the maintenance orders of the equipment
used. If there is an overlap, the system issues a colored warning.
The chart can remain open at all times during planning in the HJPT planning table. It updates itself with each
planning operation.
All maintenance orders are determined for the equipment of the orders:
• Their processing phase is either open, on hold, or released. Other phases, such as technically completed,
are not determined since these orders are no longer used.
• Their basic dates overlap with the planning period of the HJPT planning table.
You can use filter settings to make further restrictions with regard to the pieces of equipment and
maintenance orders displayed. C17 Transaction /LMPC/PRT_CUST, M06 Transaction /LMPC/PRT_CUSTS:
Filter for Production Resources/Tools
For the check, the earliest start dates (date and time) of the capacity requirements of the operations are
used as start dates for planned and production orders. The latest end dates (date and time) of the capacity
requirements are used as the end dates.
Different fields are used for the operations of the maintenance orders depending on the data situation:
• If there is a constraint that the operation must start or end at a certain time, the basic dates (date and
time) of the constraint are used for the comparison.
• If there is no constraint that an operation must start or end at a certain time, the earliest scheduled start
for execution (date and time) is used for the operation start. The latest scheduled end for execution (date
and time) is used for the operation end.
Data in Chart
• Work Center
• Order Number
• Operation Number for Order
• Material Number
• Earliest Start of Operation (Date)
• Earliest Start Time of Operation
• Latest End of Operation (Date)
• Latest End Time of Operation
• Equipment Number
• Maintenance Order Number
• Order number
• Operation number
• Equipment Number
• Maintenance order number
• Maintenance order operation
Restriction
• There are only entries in the chart if equipment could be determined for the order and if these pieces of
equipment have maintenance orders in the planning period.
• The data is only determined up to operation level. Suboperations are not taken into account.
• No data can be determined for simulative orders. S_CRORD Create Simulative Order [page 135]
Color Logic
The data in the chart has color logic to indicate problematic situations. The logic colors the entries according to
the following rules:
• If there are no errors, the fields for the times (date and time) of the orders and maintenance orders are
highlighted in green.
• If the start date of the operation of the maintenance order has a non-fixed start time and this start time
does not have the constraint "must start on", the fields of the start date of the maintenance operation are
highlighted in yellow. This rule informs the user that the start time of the maintenance order may change.
• If the end date of the operation of the maintenance order does not have a fixed end time and this end time
does not have the constraint "must finish on", the fields of the end date of the maintenance operation are
highlighted in yellow. This rule informs the user that the end time of the maintenance order may change.
• If the times of production and maintenance are identical, all fields for dates are highlighted in red (rare
case).
• If the times of production fall completely within the maintenance times, the fields for the operation times
are red and the fields for the maintenance orders are green. The order cannot be produced at the desired
time.
• If the maintenance times fall completely within the production times, the production times are green and
the maintenance times are red. Maintenance cannot be carried out.
• Left position or left overlap of maintenance: Maintenance starts before production and ends during
production or at the same time. Or, maintenance starts at the same time as production and ends during
production: Highlight the maintenance start time in green. Highlight both the start time of production and
the end time of maintenance in red. The end time of production is green again.
• Right position or right overlap of maintenance. Maintenance starts during production and ends at the same
time as production or after production. Or, maintenance starts at the same time as production and ends
Tip
• There is a logic for selecting the corresponding entries in the equipment check chart for the data
records from the ALV Grid of the HJPT planning table. S_SELEQ Select Data Records in Equipment
Check Diagram [page 310]
• You can use the action code S_IW38EQ to change maintenance orders for the equipment of the orders.
S_IW38EQ Change Maintenance Orders for Equipment [page 336]
• The data provider CL_DP_USER_103 reads production resources/tools and displays them in fields in
the ALV Grid. The equipment check can also be activated for this data provider. In this case, conflicts
for pieces of equipment are also displayed in the ALV Grid. Data Provider /LMPC/CL_DP_USER_103
Production Resource/Tool [page 469]
• The LMPC alerts contain an alert for the equipment check that considers the conflict fields of the
equipment check. Data Provider /LMPC/CL_DP_ALERT Alert Processing [page 397]
• The planning function of rule-based planning enables you to consider maintenance orders for
equipment and to dispatch the operations at times at which there are no overlaps with maintenance
orders of equipment. S_RBPL Rule-Based Dispatching [page 212]
Restriction
This chart only allows you to check equipment for operations of orders, since maintenance orders can
only be created for equipment. No check is possible for other PRTs, such as materials, documents, or
miscellaneous PRTs.
Additional Data
Finally confirmed, completed, and technically completed operations of production and process orders cannot
be displayed and processed as planning data in the HJPT planning table. This is because either the capacity
requirements are missing or the status settings do not allow planning with these orders.
The delivered example configuration is designed so that only data for orders with the statuses completed,
technically completed, and confirmed is displayed. By changing the Customizing, you can also display the data
for orders with other statuses.
The data in this window is independent of the data processing of the remaining HJPT planning table. The
window has its own read routines. The data is read from the database and only displayed.
The selection parameters from the initial screen of the HJPT planning table are used to read the data:
• Plant
Restriction
• The data is for display purposes only. You cannot use the window to change this data. Also, no HJPT
action codes can be applied to this data.
• To save runtime, the data is read once only, when the HJPT planning table is started. To refresh the
data, you must either save, reload the data (action code S_RELOAD), or exit the planning table and call
it again.
• Only data for production and process orders can be read. Data for other order types, such as planned
orders, is not read.
• The data is displayed at the level of operations of the orders. Data for individual phases of process
orders is not displayed.
There is one row in the ALV Grid for each order number and operation of the order.
Above the ALV Grid there is a toolbar that can be used to execute standard functions of the ALV Grid:
• Details
• Sort in ascending order
• Sort in descending order
• Find
• Set filters
• Print
• Export
• Layout settings
You can use the layout settings to show or hide fields. 145 fields are available.
• Order Operation
• Order Header
• Operation Quantities and Dates
• Work Center Header
• Order Item
• Status
• Alternative Units of Measure
Layout Groups
For the window to be displayed, it must be attached to the HJPT overall profile. For instructions, see the LMPC
Configuration Guide. HJPT Window Configuration
It is possible to color fields or rows of the ALV Grid. Data providers are used to color and read the data. If
certain data is not required, individual data providers can be deactivated. The example configuration delivered
for the data providers is designed so that only data for orders with the statuses completed, technically
completed, and finally confirmed is displayed. By changing the Customizing settings, you can also display the
data for orders with other statuses.
For instructions on configuring the coloring and the data providers, see the Configuration Guide. C14
Transaction /LMPC/VIEW: Settings for Additional Windows
Tip
The HJPT planning table remembers the position and size of the window each time you save. The planning
table also remembers whether the window was closed and no longer opens the window the next time you
start the planning table. The closed window can be reopened using the action code S_RESSIZ. S_RESSIZ
Open or reset all HJPT dialog boxes [page 374]
Related Information
LMPC has a large number of functions (>140), known as action codes. The following description of the LMPC
functions is not intended to be exhaustive. For a list of all possible action codes, see the LMPC Configuration
Guide.Catalog of Action Codes
The labels and icons used for the functions are taken from the standard LMPC delivery. Depending on the
settings in your system, the labels and icons in your system may differ; the functions may also behave
differently. The following descriptions each reflect prototypical behavior of the functions. If you have any
questions about functions, please contact your LMPC consultant.
• The function keys in the header of the ALV Grid enable you to perform the corresponding actions after
selecting orders.
• You use the right-hand mouse button to access the functions defined in the context menu of the ALV Grid.
• You can double-click or click the hotspot on individual ALV Grid fields to call functions.
• You can use the key combinations Ctrl + function keys 1-12 to call action codes.
• You can right-click on a graphical element to call functions in the context menu of the graphic.
• In the menu bar of the capacity planning table, you can execute standard functions of the capacity planning
table as well as LMPC functions.
• In the capacity planning table, you can use drag and drop to dispatch, reschedule, and deallocate the
operations of orders. Features of the Bar Chart [page 43]
For instructions on configuring each access option, see the context profiles in the LMPC Configuration Guide.
HJPT Context Profiles
The action codes are divided into the following 6 groups according to their nature:
Each time an action code is called, the system checks whether the data that is processed in the HJPT planning
table is still up to date.
It could be that while planner 1 is working in the planning table, another planner 2 opens the planning table with
the same data, changes the data and saves.
To ensure that planner 1 is informed about changes that they cannot see, the system checks whether the data
is up to date each time action codes are executed.
When you save the data using the planning table, the system uses a time stamp to record in a database table
when the data was last saved for each plant and work center.
When an action code is executed, the latest data record of the time stamp for each work center and plant is
read from the database and compared with the time stamp available in the consulting solution.
If the time stamp is older than the time stamp in the database, this indicates that the data has changed in the
meantime.
The user is informed and asked whether they would prefer to update the data rather than execute the action
code.
If the user rejects the reload of the data, the action code is executed anyway.
If the user agrees, the action code currently called is not executed and the data is reloaded instead.
This check is not performed when the action code S_RELOAD for reloading the data is executed. In this case,
the user wants to reload the data.
The check also does not take place when the save is executed.
The check for obsolete data can be deactivated in the settings for the control table. C16 Transaction /LMPC/
STEU LMPC: Control Parameter
Note
Two or more users working with the same data at the same time can be avoided through the structuring of
the planning processes in the company. Users who work with the same data at the same time can obstruct
each other through locks.
You can use Customizing settings to limit the execution of action codes.
The limit is made by evaluating rules. The rules check values of fields of the operations in the ALV Grid.
For details on defining rules, see the LMPC Configuration Guide. Action Code Limitation
• Processing is terminated
• The operation in question is removed from the quantity of the selected operations
Examples of rules:
• Sort out dispatched operations so that only operations that have not been dispatched are processed.
• Block the execution of an action code if an operation has a specific status
• Allow execution of action codes only for a specific material group
• Allow execution of action codes only for a specific order type
• Define a time limitation for action codes. Allow conversion of planned orders to production orders only
within a certain time horizon.
The restriction of action codes works for certain types of call known as action code triggers:
Only the listed triggers are supported. All other triggers cannot be used with the action code restriction. Action
Code Trigger
The limitation of action codes can also be applied in LMPC HJPT background processing. Program /LMPC/
HJPT Background Processing [page 23]
Restriction
• Before action codes are executed, the rules are evaluated only for the operations that have been
selected. If the logic of action codes still reads other orders, these orders are not taken into account in
the evaluation.
• Dragging and dropping operations in the graphic to dispatch, deallocate, or reschedule these
operations is not action code processing. Therefore, the restriction of action codes for dragging and
dropping in the graphic does not work. The action code restriction only works if drag and drop is
replaced in the graphic by an HJPT action code. Action Code Trigger
Overview of the action codes for creating, displaying, and changing operations and orders in the SAP LMPC
HJPT detailed scheduling planning board.
In the HJPT planning table, there are three action codes for adjusting the setup times of operations:
There are various ways of reading the setup times of the operations in the HJPT planning table.
In the graphic, you can see the setup time for PP planned orders and production orders on the bar of the
operation. The bar has a separator between the setup time and the processing time.
All Orders in PP
You can read the capacity requirements for setup using the capacity requirements fields.
Remember
For all orders in PP-PI, only the capacity requirements for processing are filled because only one field for
capacity requirements exists in PP-PI. The setup times are not displayed separately.
Production Orders in PP
You can branch to the order display. There, you can find the setup times in the detail data for the operation.
You can find this data for the ALV Grid in the field group for the order operation.
However, these fields are only filled for production orders. For planned orders, these fields remain empty.
Remember
For PP-PI process orders, only the fields for the processing time are filled from these fields, since only one
field for the processing time exists in PP-PI.
Use
You can use the action code (S_AVRR) to adjust the setup time of operations manually by
direct input. For this purpose, the system displays a popup window with the selected operations, in which you
can adjust the setup times.
Since adjusting the setup time results in the deallocation of the corresponding operations, the function
automatically dispatches previously dispatched operations back to their old position. Automatic dispatching
can be deactivated using a parameter.
Caution
Procedure
• Situation at start:
Initial Situation
• Order 2770241 operation 0010 has a setup capacity requirement of 1 hour. In the orders pool, you can see
a partial bar that is slightly longer than 1 hour. Since the machine only has 80% availability, the partial bar
is slightly longer than 1 hour.
• Select the desired operation in the ALV Grid of the LMPC planning table.
Selection of Operation
Result
Note
This guide shows the procedure for a PP scenario. In PP-PI, this is almost identical. However, there is no
separate bar for the setup time for process orders.
Use
The action code (S_AVRU) is used for automatic setup time adjustment. It changes the setup
time automatically based on the setup matrix for all selected dispatched operations. The setup times are
adjusted for all selected operations. The first selected order operation is also adjusted. This is either adjusted
according to the preceding, unselected operation or, if there is no predecessor, set to the initial setup time.
When the setup time is changed, the standard SAP system cancels dispatching. However, the action code
executes immediate dispatching again so that the orders remain dispatched.
If the operations were planned without gaps before the adjustment, a sequence without gaps will also be
created after the adjustment. If the operations are shorter due to the setup time change, the connections are
retained and the subsequent operations are brought forward. However, this only applies to a production plan
without gaps.
If there are gaps between the operations before the adjustment, these are retained. For a production plan with
gaps, the operations are dispatched to the same start time again and the gaps are retained if the gaps are not
filled by extending the operations.
Restriction
• Setup times are only adjusted for dispatched operations. The function has no effect for operations not
yet dispatched.
• It is not possible to change the setup time for operations in the past. The operations are rescheduled
during the adjustment. Therefore, when the function is executed on past operations, these operations
shift to the present.
• The setup time adjustment is not available for PI planned orders.
Remember
• Automatic redispatching requires a strategy profile, which is transferred to the action code via a
Customizing parameter. The LMPC standard delivery includes a strategy profile with a corresponding
configuration.
• The prerequisites of action code S_EPRST are also valid here.
Procedure
Initial Situation
• To check the setup time, execute action code (S_AVRR) to adjust the setup time manually.
•
Information on Current Setup Time
The current setup time for the order operations is displayed. The function is canceled because the setup
time should not be changed manually.
Setup Matrix
A look at the setup matrix (transaction OPDA) shows the setup times for the transitions. The groups here
have the same names as the materials.
• Select the operations for which the setup time is to be adjusted automatically on the basis of the setup
matrix settings.
Selection of Operations
• You can use the action code (S_AVRR) for the manual setup time adjustment to check the
new setup times.
Check Changes
Compared with the setup matrix, you can see that the setup times have been adjusted according to the
defined settings.
Use
You use the action code S_OSC to change the setup times of previously dispatched operations. The rules for
the setup time change are defined in Customizing. S_OSC works in a similar way to S_AVRR except that the
rules for adjusting the setup times can be freely defined and are not based on the setup matrix.
The action code can be used in a scenario in which a production plan was created manually by the planner.
After dispatching has been carried out, the correct setup time of the operations is calculated with the action
code S_OSC and the orders are shifted accordingly so that the plan remains gap-free.
This function can also be used in background processing. Program /LMPC/HJPT Background Processing
[page 23]
Restriction
• Setup times are only adjusted for dispatched operations. The function has no effect for operations not
yet dispatched.
• It is not possible to change the setup time for operations in the past. The operations are rescheduled
during the adjustment. If the function is executed on past operations, these operations shift to the
present.
• For process orders, the requirements for the design of the individual phases apply in the same way as
for PP-PI optimum dispatching.
• The setup time adjustment is not available for PI planned orders.
• The function cannot process parallel operations. The operations must be dispatched to the capacity
sequentially.
• The adjustment is carried out for each selected work center. Rules are not taken into account across
work centers.
Remember
When you change the setup times, the operations are deallocated and then rescheduled. If the operations
were previously dispatched without gaps, they are dispatched again without gaps. This prevents gaps from
occurring when the setup time is reduced.
Automatic redispatching requires a strategy profile, which is transferred to the action code via a parameter.
The LMPC standard delivery includes a strategy profile with a corresponding configuration.
Procedure
Select the operations for which the setup times are to be adjusted.
Result:
The setup times were adjusted. You can see this in the column for the target setup times. You can also see the
adjusted setup times when looking at the adjusted bars in the graphic.
For instructions on configuring the function, see the LMPC Configuration Guide. S_OPL, S_OSC Configuration:
Optimized Dispatching and Optimized Adjustment of Setup Time
Execute the action code (S_AK02) or double click or hotspot click on the order number.
The system displays a screen with the order header data. The data can now be changed, for example, the
quantity.
Choose the Back button to exit the screen for changing the order. For planned orders that have already been
dispatched, you may have to confirm the changes.
The order has been changed. If the operation was dispatched previously, it remains dispatched.
If the order operation was dispatched before the change, the change by the standard SAP system cancels
the dispatching. This is necessary because the change executes rescheduling that recalculates the capacity
requirements. To ensure that the operations remain dispatched, this function executes automatic dispatching
again. The operation is returned to the dispatching function with its original date.
Note
When you return to the HJPT planning table, the changes to the data must be processed. To do this, all
data providers for the changed data records are run once and the ALV Grid is refreshed. Dispatching the
operation again, if necessary, and loading the changed data may require a certain runtime.
If a quantity change is made, this can affect a production plan without gaps:
• If the quantity is reduced, the duration of the operation is reduced. If the operation is within a group of
dispatched operations, this results in a gap in the production plan.
• If the quantity is increased, the duration of the operation becomes longer. If the operation is within a group
of dispatched operations, all subsequent operations move into the future because this operation requires
more capacity.
If an order is for a date in the past and is changed, rescheduling results in the order receiving a new start time.
This new start time will be in the present because an operation cannot be dispatched in the past. As a result,
it moves in planning. To prevent this, you could, for example, create a rule with the function of restricting the
action code, which prevents orders that are in the past from being changed. Action Code Limits [page 87]
The action code can be executed for one or more operations. For execution in multiple processing, the
configuration must be converted. Action Codes: Creating, Displaying, and Changing Operations and Orders
Multiple processing is executed as if the function were individually called several times in succession. The
current date of the first operation is read. The change screen is called. After the change, the first operation is
redispatched to the previously read date. Afterwards, the second operation is processed. The current date of
the second operation is read, and so on.
Remember
It is not possible to change externally locked orders. It is also not possible to change orders with fixed
operations. If there are externally locked orders or fixed operations in the selection, the function terminates
with an error message.
You can use this action code to branch to the display of the details for the order header.
The detailed data for the order is displayed. The data cannot be changed.
Application
You use this action code to change the long text of production or process orders.
Procedure
Select an operation of a production order or process order, for example, by means of the ALV Grid.
You can now change the long text for the order.
Use the Back button to return to the LMPC planning table. The changes are adopted.
Result:
Result
The system displays the newly entered text in the field for the order text.
Note
Special feature of process orders: If the long text is still empty, the system automatically displays the order
short text. You can simply change the text, which has no effect on the order short text.
Restriction
The system only displays the first 72 characters of the first row of the text in the ALV Grid of the HJPT
planning table.
Operation Detail
• You use the Back button to return to the LMPC planning table. The changes are adopted.
• Result:
Result
The operation has been changed and remains dispatched, if it has already been dispatched.
• The action code only works for production orders and process orders.
• The action code can only be executed for one order.
Usage
You can use the action code S_AV77 to branch to the change mode of the operation view of networks.
Procedure
Select an operation of a network in the ALV Grid of the HJPT planning table.
Tip
For the processing of networks, see the notes in the section on the project system. LMPC and Project
System (PS) [page 523]
Bill of material explosion and component quantity update for planned orders
Use
The action code (S_BOMEXP) performs a BOM explosion and a component quantity update
for planned orders. It can be used as a stand-alone action code, or as a follow-up action code for planning
functions. When it is used, orders are always rescheduled completely, together with a BOM update and a
component quantity determination.
The BOM explosion and quantity update of the components takes place for dispatched orders with the help of
a range of standard SAP function modules. If an order has been dispatched, the BOM explosion and quantity
update take place with the planning data of the planned order. If the action code is applied to planned orders,
which have not yet been dispatched, the BOM explosion takes place on the date that the MRP run has specified
for the order.
Restriction
If the date of an order is in the past, the BOM explosion takes place on the current date. An explosion for
times in the past is not possible.
The action code works for planned orders only. If the action code is applied to other order types, such as
production orders or process orders, there is no BOM explosion. Orders of these order types are simply
ignored.
4 use cases:
The explosion date can be displayed in the ALV Grid of the HJPT planning table. The technical field name for
the field with the explosion date is PLAUF_KO. It is located in the fields for the capacity requirements header.
• Select one or more operations in the ALV Grid of the LMPC HJPT planning table.
Result S_BOMEXP
The result shows that the BOM explosion has been performed for the planned orders. The explosion date
has changed. The selected production orders have not changed.
For example, you use Customizing settings to combine the action code S_MANPL for manual planning with the
action code S_BOMEXP.
The order operation from order 2714698 has not been dispatched. The date of the last explosion BOM is
June 29, 2018.
• The operation is selected in the ALV Grid of the LMPC HJPT planning table.
• The action code (S_MANPL) with automatic successor action code S_BOMEXP is
executed.
• The desired dispatching date is entered.
Dispatching Result
The operation of order 2714698 has been dispatched on the desired date. The BOM explosion also took
place on this date.
Caution
This combination of action codes does not exist in the LMPC delivery and must be configured in the system
if required.
• Initial situation:
The order operation from order 2714698 is dispatched on July 25, 2018. The BOM explosion date is June
29, 2018.
• Move the dispatched order in the Dispatched Orders chart to a different date.
Caution
The action code S_BOMEXP is configured for this use case with the trigger for rescheduling in the graphical
planning table. This is not supported in the standard delivery of LMPC and must first be configured in the
relevant system.
Related Information
Use
You can use this action code to change the quantities and start times for production and process orders.
The changes are entered in a dialog box. This differentiates this action code from the action codes S_AK02 and
S_AV02, for which there is a jump to the relevant order. S_AK02 Change Order [page 99]S_AV02 Changing
Operations of the Production Order or Process Order [page 103]
This action code uses the same class as the action code for creating simulative production orders and process
orders. S_CRORD Create Simulative Order [page 135]
You can use this action code to change both simulative orders that were created with the action code
S_CRORD and persistent orders that already exist in the database.
Procedure
Selection
You must select an operation of a production order or process order, otherwise the function terminates with an
error message.
The system displays a dialog box in which you can enter the changes.
You can enter the quantity of the order and the desired start date.
The other fields on the screen are for information purposes only. These values cannot be changed.
The system checks the change of data. If no data has been changed, processing is terminated.
There is a check routine for the start date. It is not possible to schedule into the past. If you enter a date in the
past, the system displays an error message.
If changes are made, the order must be rescheduled. Dispatching is lost due to scheduling.
In a first step, the order is scheduled in such a way that the basic start date is set to the entered date.
If the selected operation has been dispatched previously and dispatching is set, the entire order is dispatched
in the second step. All operations of orders that are open in the planning table are dispatched. The first
operation is dispatched to the start time entered. If the order has multiple operations, they are dispatched one
after the other, meaning that each operation does not start until the predecessor has been completed. The
operations are planned sequentially – parallel planning is not supported.
Result:
Result
The operation of the order was dispatched again after the change. The start time of the order and the total
order quantity have changed.
Restriction
• Only the total order quantity can be changed. The operation quantities automatically adjust to the total
order quantity.
Usage
You can use the action code S_CHVGW to change the standard values of the selected operations. This changes
the duration and capacity requirements of operations (depending on the formulas for scheduling).
The capacity requirements and durations of operations are usually dependent on the quantity produced.
However, there may be a requirement to adjust the durations of individual operations independently of the
production quantity.
For example, when a new product is introduced, production may take longer initially because workers need to
learn the production process. Induction into production is required, which slows down production.
To ensure that the routings of the material do not have to be changed in this initial phase, this action code
enables you to adjust the duration and capacity requirements of operations for individual orders.
Remember
The standard values are changed within the (planned) order operation, not in the routing itself. The change
only takes place for the selected operations. The routings involved remain unchanged.
When you call planned orders in the process industry and for externally locked orders, the data is only
displayed. When you select maintenance orders, the function terminates with an error message.
Procedure
Select one or more operations that are to be changed in the ALV Grid of the HJPT planning table.
A dialog box appears in which the standard values of the selected operations are displayed. You configure
which of the standard values of the operations are displayed and which of these standard values can be
changed via Customizing for the function. S_CHSDV Configuration: Change to Standard Value
Only columns for standard values that exist in at least one of the operations are displayed. If the standard
value descriptions are identical for all selected operations, they are used as the header of the editable columns,
otherwise the columns are labeled with the relevant standard value number.
Enter the desired standard values. During entry, the input rules configured at the respective work center are
checked and, if necessary, displayed for the user as a message.
When you confirm the dialog box, the changes are made.
The confirmation can be executed by clicking the mouse or by pressing the F8 or Enter key. You can cancel the
window by clicking the mouse or pressing the ESC key.
When the change is made, the operations are rescheduled. The following applies to operations that have
already been dispatched: When you change the standard values, the dispatching status is reset. To ensure that
the operations remain dispatched, the function dispatches them again on the original start date.
Result:
Result
By changing the start times, you can see that the duration of the operations has changed.
The changes are made in the simulation. They only become persistent when they are saved.
If operations of process orders are selected, the individual phases of the respective operation are listed in the
dialog box. The phases of planned orders of the process industry whose change is not supported are displayed
but cannot be changed.
Additional Functions
The functions are only executed on selected values. You can make the selection by:
You can make a multiple selection by pressing the CTRL key while making the selection.
If you do not make a selection and execute one of the functions, the function is executed on the cell in which
the cursor is positioned at this time. This is the first input-enabled field when the window is called.
When you reset the standard values, the standard values are reset to the values of the routing on the explosion
date that is in the order header. If this date is in the past, the explosion is carried out with the current date.
In the case of setting the standard values to zero, the selected standard values are set to zero.
Resetting and zeroing standard values is only possible for input-enabled standard values. You use the
Customizing settings for the function to define the input enablement for standard values. S_CHSDV
Configuration: Change to Standard Value
Calculating a Duration
When you execute the function for calculating a duration, the system displays input fields for the start time and
end time.
Entry of Period
The date fields are prefilled with the current date. The fields for the times are prefilled with 00:00 or 23:59.
This function calculates the linear time between the two specified times in minutes.
When the window is confirmed, the duration is calculated and transferred to the previously selected standard
values.
The result is calculated as an integer. Any resulting decimal places are omitted.
Caution
Only the linear duration between two times is calculated. The system does not take available capacity or a
plant calendar into account. The time specifications are only used to calculate the duration. Entering times
does not mean that the changed operations then have exactly this duration or that they start or end at
Resetting and placing zeroes before standard values can also be done without a dialog box. Corresponding
settings need to be made in Customizing for this. S_CHSDV Configuration: Change to Standard Value
When processing without a dialog box, all standard values that are flagged as changeable in Customizing for
the action code are reset or set to zero.
Recording of Changes
As soon as a standard value of an operation is changed, the planning table remembers this change. A change
indicator is set and the change time and the user who made the change are saved. You can see this in the
following fields:
The fields are in the layout settings in the group of HJPT help fields.
The data provider /LMPC/CL_DP_OP_ADD must be activated for the display to work correctly. Data Provider /
LMPC/CL_DP_OP_ADD Additional Data for Operations [page 442]
Remember
If the changes to the standard values were made using the function for resetting standard values for all
standard values of an operation, the standard values were reset to the values of the work center. In this
case, the fields for displaying a standard value change are emptied. This is because the operation has the
original values again.
If only individual standard values are reset to the values of the routing and other standard values of the
same operation do not correspond to the values of the routing, the fields for recording changes are not
reset because there are still changes to the operation.
If the function for setting the standard values to zero creates the values of the routing, the fields for
displaying the change are also emptied.
If the user randomly enters the original standard values through a manual entry, the change is not reset
because this is a manual change made by a user.
The information about the changes is stored for one year and is then deleted automatically.
Caution
• Changing the standard values can lead to inconsistencies if, for example, the standard values are
changed in such a way that they do not match the scheduling formulas used. This may mean that
operations can no longer be scheduled, no longer dispatched, or that the operations can no longer
be processed in the HJPT planning table. The user is responsible for maintaining the standard values
correctly.
The LMPC logic supports the user with a basic check of the rules for input for the standard value.
However, incorrect entries cannot be excluded.
• This function dispatches the operations back to their original start times after the standard values
have been changed. However, it does not take the sequence of the operations into account. If several
Tip
By creating rules for coloring the bars in the graphic or for coloring the ALV Grid, the change of standard
values can be indicated visually.
The action code can also be used for background processing using the program /LMPC/HJPT, to reset
standard values or to set them to zero. Program /LMPC/HJPT Background Processing [page 23]
Related Information
Use
You can use this function to change the production version of an order.
When changing production orders, the BOM and the routing can also be re-exploded (not possible for planned
orders).
In addition, parameter settings can be used to exclude the processing of certain order types. For example, you
can exclude the changing of the production version for production orders (PP01).
There is also a status check to prevent changes to orders with certain statuses.
In contrast to action code S_CPV1, which calls the standard function of the graphical planning table to change
the production version of a planned order, this action code can also be executed for production orders and
process orders.
Note
Since the S_CPV2 function is an enhancement of the S_CPV1 function, there is no separate documentation
for the S_CPV1 function. The difference being that S_CPV1 only works for planned orders and does not
allow re-dispatching.
Procedure
For production/process orders: If the order operation contains a status that is not allowed (setting via
Customizing), the function terminates at this point. If the status check is positive, a selection window for
the production version appears next.
This example shows the change of a production order. For planned orders, you do not have the option of
exploding the BOM and routing. The date for exploding the BOM and the date for exploding the routing
cannot be specified for a planned order either.
Result:
In the new production version, the execution takes place in another work center. The order is now in a different
work center and has been dispatched again immediately. The prerequisite is that this work center is open in the
LMPC HJPT planning table.
Result
Restriction
• It is possible to process several orders at the same time, but a selection window for changing the
production version appears for each order.
• The production version can be changed for planned, production, and process orders. Dispatched
operations remain dispatched. If new operations are added when the production version is changed,
these are not dispatched. Only those operations that existed before the change are dispatched again.
Identification is made using the operation number of the respective order.
• Only valid production versions can be used for the switch. It is not possible to switch to invalid
production versions.
Related Information
You can use this action code to create cleaning orders in the HJPT planning table.
The LMPC cleaning orders can be used as an alternative to maintenance orders. Maintenance orders must be
created individually by the user using transaction IW31. The LMPC cleaning orders, on the other hand, can be
created simultaneously in any number according to predefined rules.
The use of LMPC cleaning orders is useful if no rigid cleaning cycles are required on the machines, for example
if cleaning is to be carried out when a material group is changed or after a certain number of operations.
If you choose the variant with material groups, the cleaning times when transitioning between materials of one
material group to materials of another material group are stored in the transition matrix. The cleaning orders
are created based on these times for the transitions.
When creating the cleaning orders according to number of operations, the cleaning orders are always inserted
into the production plan after a certain number of operations.
When creating the cleaning orders by time, the cleaning orders are created periodically at the respective work
center at predefined time intervals.
Special feature of planning with suboperations: The cleaning orders can only be created between the
operations. No cleaning orders can be created between suboperations. During processing for the creation
of cleaning orders, only the operations are taken into account. The corresponding suboperations are not taken
into account.
Tip
• It is possible to execute the action code using a nightly planning run in the background using the
program /LMPC/HJPT. This is only possible for the creation of cleaning orders by operation number
and time interval. Background processing is not possible during the transition of material groups.
During background processing, the cleaning orders are created in the entire planning period. Program /
LMPC/HJPT Background Processing [page 23]
• If an individual cleaning order is to be created manually at a specific time, the rule set of the action
code S_CRCLOR is too time-consuming. To create an individual order with cleaning material, you can
also use the function for creating simulative orders. S_CRORD Create Simulative Order [page 135]
For information on settings for the LMPC cleaning orders, see the LMPC Configuration Guide. S_CRCLOR
Configuration: LMPC Cleaning Orders
The action codes S_6_CLMA and S_6_CLOR are variants of the action code S_CRCLOR that are configured
differently.
Note
The topic of cleaning orders is very complex. Extensive Customizing settings and correct master data are
required to achieve the desired result. We recommend that you request the support of an LMPC consultant
for the setup.
In the transition matrix, the cleaning times for the transitions from one material group to the next are
maintained for each work center.
Select at least two consecutive dispatched orders in the LMPC planning table. The logic checks the transitions
of the material groups from the operations of the selection. Cleaning orders are only created between selected
operations.
Selection of Operations
Restriction
The action code generates cleaning orders only between dispatched orders within the same plant and the
same work center.
The cleaning orders are created and dispatched according to the settings in Customizing.
Result:
The created cleaning orders are inserted between the existing orders. They are temporary until the planning is
saved by the user. The temporary order numbers indicate this. You can delete them by reloading the planning
data. After you save the data, the orders are assigned specific numbers.
It is possible to replace existing cleaning orders with new cleaning orders. To do this, the the parameter REMOVE
must be activated in Customizing for the action code.
Select the existing cleaning orders together with the dispatched orders.
The existing cleaning orders have been completed technically and new temporary cleaning orders have been
created.
Note
This logic can also be used for two-level pool orders that consist of semifinished and finished goods orders.
To do this, you need to switch the logic using the Customizing settings of the action code.
If the action code for order pools with semifinished and finished goods orders is used, the cleaning
orders are only created between the semifinished material orders. When you move the semifinished
material orders, the corresponding finished goods orders are rescheduled using the logic of the action
code S_EPBKFG. The planning logic is described in the documentation for the action code S_EPBKFG.
Related Information
Remember
When creating cleaning orders after a number of operations, only dispatched operations at the work
centers are taken into account. The logic only creates cleaning orders between already dispatched
operations.
Settings for counting operations have already been made in Customizing for LMPC cleaning orders.
Maintenance of Number of Operations
The HJPT planning table has been opened. There are already dispatched operations at the work centers.
There are two options for using the settings to define how the period in which cleaning orders are to be created
is to be determined:
If the function is configured in such a way that no dialog box appears for querying the period, the period is
determined using the selected operations. In this case, the period starts with the earliest start time of the first
selected operation and ends with the latest end time of the last selected operation.
For the description of the specification of the period using the selection of operations, see the section on logic
3 of the creation of cleaning orders by time intervals. Logic 3: Creation After Duration of Operations with Rule
Check [page 132]
In this example, it is configured that the function queries the period for the creation of cleaning orders using a
dialog box. In this case, only one operation needs to be selected.
Select the operation from which the logic should start counting the operations.
Select Operation
The fields in the dialog box are prefilled. The start date and start time of the selected operation are entered as
the start date and start time. The end date is the end of the current planning period. The end time is 23:59:59.
Remember
The selected operations are only used as information providers for the work centers and the start time of
processing. The period over which processing is to take place is defined in the dialog box and not by the
selected operations.
The period can be changed by the user. You can select a date in the past. The counting of operations can start
from this date. However, no cleaning orders can be created in the past.
If the result of the function is that a cleaning order is to be created in the past, it does not create it.
When you confirm the window, the rules are read from Customizing. This is used to calculate the times at which
a cleaning order is to be created.
By selecting several operations from different work centers, you can also simultaneously create cleaning orders
for different work centers. The dialog box appears only once. The data in the dialog box is prefilled with the data
of the first selected operation. The evaluation period entered is valid for all work centers in the selection.
The logic works through the work centers from the selection one after the other.
The logic reads all dispatched operations in the selection period and applies the check routines defined in the
settings. A check routine can have several rules.
You can use the rules to define which operations are to be taken into account during counting. The rules for a
check routine can be linked with AND or OR. AND linked means that all rules for a check routine must apply
for an operation to be counted. OR linked means that one of the rules must apply for an operation to be
counted. If no counting rules are defined in the check routines, each operation is counted. In this case, rules are
not checked. For details on creating the rules, see the LMPC Configuration Guide. Maintenance of Number of
Operations
Whenever the logic has determined the last operation of a counting group, it reads the end time of that
operation. This end time is used as the start date/time for dispatching the cleaning order. The cleaning order
is created and dispatched on this date. It moves between the operations that have already been dispatched.
The prerequisite for this is that the settings for the strategy profile have been made accordingly ("Insert
operation").
The cleaning orders have been created in the simulation. The temporary order numbers indicate this. The
cleaning orders only become persistent in the database when you save.
For example, existing cleaning orders can be deleted when the function is executed and replaced by new
cleaning orders.
The function can also be set up in such a way that it closes gaps in the production plan when the cleaning
orders are inserted, to enable continuous planning.
You can use another setting option to check whether another cleaning order already exists at the point at which
a cleaning order is to be created, and skip the creation of this order.
The counting function can also be influenced. It is possible to choose whether operations that do not comply
with the rules are simply ignored or whether such operations cause the counter to be reset and counting to be
restarted at this point (strict function execution).
Note
If you have questions about the settings, please contact your LMPC consultant. The LMPC Configuration
Guide can also be of help. S_CRCLOR Action Code Customizing
Tip
It is possible to execute the action code using a nightly planning run in the background using the program /
LMPC/HJPT. During background processing, the cleaning orders are created in the entire planning period.
Program /LMPC/HJPT Background Processing [page 23]
With this type of creation, the cleaning orders are created at regular intervals at the work centers.
There are three different logics for creating cleaning orders after time intervals:
Tip
It is possible to execute the action code using a nightly planning run in the background using the program /
LMPC/HJPT. During background processing, the cleaning orders are created in the entire planning period.
Program /LMPC/HJPT Background Processing [page 23]
The cleaning orders are created according to the time interval without a rule check regardless of whether
operations have already been dispatched at the relevant work center.
The cleaning orders are created and dispatched strictly after a certain time interval, without checking the
position of other orders. They are created in the simulation. The orders are not written to the database until the
planning is saved.
In Customizing for cleaning orders in transaction /LMPC/CLOR_CUST, the time interval and the duration of the
cleaning order have already been maintained for the work center used.
There are two options for using the settings to define how the period in which cleaning orders are to be created
is to be determined:
If the function is configured in such a way that no dialog box appears for querying the period, the period is
determined using the selected operations. In this case, the period starts with the earliest start time of the first
selected operation and ends with the latest end time of the last selected operation.
In this example, it is configured that the function queries the period for the creation of cleaning orders using a
dialog box. In this case, only one operation needs to be selected.
This operation informs the logic of the work center at which the cleaning orders are to be generated and the
start time at which creation is to be started.
The system displays a dialog box for entering the period in which the cleaning orders are to be created.
The fields in the dialog box are prefilled. The start date of the selected operation is entered as the start date.
The end date is the end of the current planning period.
The period can be changed by the user. The planner can select a date in the past. The calculation of the time
intervals can start from this date. However, no cleaning orders can be created in the past.
If the result of the function is that a cleaning order is to be created in the past, it does not create it.
When you confirm the window, the rules for the time intervals are read from Customizing. This is used to
calculate the days on which a cleaning order is to be created.
Only factory calendar days are taken into account, not standard calendar days. The factory calendar used is
the factory calendar that is entered in the capacity of the work center. Therefore, non-working days according
to the factory calendar are not taken into account when calculating the intervals. For example, if an interval
starts on Friday, lasts for two days, and Sunday is a non-working day, the next cleaning order is created on
Monday.
The cleaning orders are created and dispatched for the desired duration, on the calculated day.
You can use the settings for the action code to activate an additional check using the parameter CHK_CLOR.
If the check is active, before a cleaning order is created, the system checks whether a cleaning order already
exists on that day. If a cleaning order already exists, no new cleaning order is created.
The cleaning orders are created in the simulation. This can be seen from the temporary order numbers. Only
when you save the planning do the cleaning orders become persistent in the database.
The actual position of the orders depends on the available capacity, the settings of the strategy profile used,
and the operations already dispatched on this day.
As a rule, the "Insert Operation" checkmark should be set in the strategy profile for the cleaning orders. If other
operations have already been dispatched on the relevant day, use this setting to include the cleaning orders in
the production plan. They are then the first operation that starts on this day.
The actual duration of the cleaning order results from the interaction between the Customizing settings for the
duration, the selected scheduling type, and the scheduling formulas at the work center. For details on this, see
the LMPC Configuration Guide. Maintenance of Time Interval
By selecting several operations from different work centers, you can simultaneously create cleaning orders for
different work centers. The dialog box appears only once. The evaluation period entered is valid for all work
centers and is taken from the first operation selected.
Related Information
Logic 2 of creating cleaning orders after time interval creates orders after a certain number of days if all
dispatched orders in the time interval at this work center adhere to the specified rules.
In the settings for the cleaning orders, check routines are defined with a duration in days after which a cleaning
order is to be created.
In addition to this time interval, you can also maintain rules that check the data of the operations. These can be
linked using either AND or OR.
With the AND operation, an operation is valid if all maintained rules apply to it. With the OR operation, an
operation is valid if one of the maintained rules applies.
For details on maintaining the configuration, see the LMPC Configuration Guide. Maintenance of Time Interval
The call variant with dialog box has been described in logic 1, where it can be read. Logic 1: Creation by Time
Interval Without Rule Check [page 127]
At this point, the call via the selection of the operations is described.
The check can only be performed using dispatched operations. Operations that have not been dispatched
are ignored.
Select the dispatched operations that are to be checked in the ALV Grid.
Selection of Operations
The logic reads the check routines and related rules from the settings.
For each work center, the determined check routines are processed in sequence. First, the first check routine is
processed for all selected transactions, then the second routine, and so on.
The following description explains the process flow of the check of a check routine with several rules.
The number of days that comprise a check period is defined in the check routine.
If operations that are already in the past have been selected, the check starts in the past. However, no cleaning
orders can be created in the past. If the result of the logic is that a cleaning order is to be created in the past,
this cleaning order will be omitted.
If the parameter for planning without gaps is activated (CLOSEGAP), first all selected operations are
rescheduled without gaps. The start time of the first selected operation serves as the start time. If this is
in the past, the current time is used as the start time.
The check routine reads the first selected operation at this work center. The start date of this operation defines
the first day of the check period. The check period comprises the defined number of days maintained, whereby
the start day is counted. For example, if the check period is over two days, all operations that start on the day of
the start operation and on the next day are checked.
The check period only includes working days of the factory calendar in the calculation. The factory calendar
stored in the work center is used. This means that non-working days, such as a Sunday, are not included in the
check period.
Note
When the action code is executed without the popup window, only those operations that were selected
are considered on the start day. For example, if an operation is before the first selected operation, this
operation is not checked, even if it is on the same start day.
The rule check processes the activities in the check period one after the other. It starts at the first operation. If
the rules have an AND operation, all rules must apply to this operation for the check to be positive. If the rules
have an OR operation, then only one rule must apply to this operation for the check to be positive.
The start time of the operations is determined using the fields of the capacity requirement. It is either the
earliest start time or the latest start time, depending on the scheduling settings (FSTAD_KB, FSTAU_KB, or
SSTAD_KB, SSTAU_KB).
All other dispatched operations that start in the check period are checked.
If the rule check is positive for all operations in the check period, a cleaning order is created.
If, during the sequential check, an operation starts in the check period that does not fulfill the rules, the system
checks whether the logic has already reached the last day of the check period and whether the previous
operation ends on the last day of the check period. In this case, a cleaning order is created after the previous
operation. The sequence of the operations that belong together is ended and the condition that all operations
in the check period fulfill the rules is met.
If an operation occurs in the sequence of operations that does not fulfill the rules and the last day of the
check period has not yet been reached, no cleaning order is created. In this case, the check terminates and the
system starts the check again with the next operation in the sequence.
A cleaning order is only created if there is an operation that fulfills the rules on the last day of the check period.
If there is no operation on the last day of the check period, no cleaning order is created because the logic
assumes that the check period is not completely occupied. A cleaning order is only created for completely
occupied periods.
The start time of the cleaning order depends on the following conditions:
• If the last operation considered ends on the last day of the check period, the cleaning order is created after
this operation. This means that the end time of the operation is adopted as the start time for the cleaning
order.
• If the operation does not end on the last day of the check period because it starts in the check period but
lasts longer than one day and ends after the check period, the creation is dependent on the parameter
POSITION.
• If the parameter POSITION has the value BEFORE, the cleaning order is created at the start time of the
last operation. As a result, the cleaning order moves before the last operation in the check period. The
check for the next sequence starts with the next operation after the cleaning order. The last operation
of the previous period is now the start operation of the next period.
• If the parameter POSITION has the value AFTER, the end time of the operation is used as the start
time for the cleaning order. This means that the cleaning order is placed after the last operation
considered. The check then continues to the next operation and starts a new check period with this.
The start date of this operation is changed to the start date of the next check period.
You can use the settings for the action code to activate an additional check using the parameter CHK_CLOR.
If the check is active, before a cleaning order is created, the system checks whether a cleaning order already
exists at the relevant point. If a cleaning order already exists, no new cleaning order is created.
If the end of the calculated check period is greater than the end day of the selection period, the rule evaluation
is ended and a cleaning order is no longer created.
Cleaning orders have been created between the operations that have already been dispatched.
The cleaning orders are created in the simulation and can be discarded by reloading the data. The system does
not write the orders to the database until you choose Save.
Related Information
Logic 3 of the creation of cleaning orders by time interval contains a check for the duration of orders.
In the settings for the cleaning orders, a duration in days, hours, and minutes is defined in the check routine,
after which a cleaning order is to be created.
This time is not the capacity requirements of the operations, but the linear duration of the operations.
In addition to this duration, you can also maintain rules that check the data of the operations. For details on
maintaining the configuration, see the LMPC Configuration Guide. Maintenance of Time Interval
The call variant with dialog box has been described in logic 1, where it can be read. Logic 1: Creation by Time
Interval Without Rule Check [page 127]
At this point, the call via the selection of the operations is described.
Select the dispatched operations that are to be checked in the ALV Grid.
Remember
The check can only be performed using dispatched operations. Operations that have not been dispatched
are ignored.
If the parameter for planning without gaps is activated (CLOSEGAP), first all selected operations are
rescheduled without gaps. The start time of the first selected operation serves as the start time. If this is in the
past, the current time is used as the start time. If the parameter is not activated, this step is not executed.
In the next step, the logic reads the check routines and related rules from the settings.
For each work center, the check routines found are processed in sequence.
The following description explains the process flow of a check for a check routine with several rules.
First, a check period is calculated from the Number of Days, Number of Hours, and Number of Minutes fields,
after which a cleaning order is created.
If the setting is such that all rules are linked with AND, the check is only positive if all rules apply to this
operation. If the setting is such that all rules are linked with OR, the check is positive if at least one rule applies
to the operation. If the check is negative, the logic continues to the next operation.
If the check is positive, the duration of the operation is calculated. The duration is calculated according to the
linear time. Depending on the planning setting, the system evaluates either the fields for the earliest start time
or the latest start time of the capacity requirements of the operations to calculate the duration. These are the
fields FSTAD_KB, FSTAU_KB, FENDD_KB FENDU_KB, or SSTAD_KB, SSTAU_KB. SSEND_KB, SENDU_KB.
When calculating the duration, the available capacity at the work center is not taken into account. Only the
linear time is calculated from the start time of the operation to the end time of the operation. For example, if an
operation starts on a Friday and ends on a Monday and no work is done at the weekend, Saturday and Sunday
are still calculated in full for the duration of the operation.
After the calculation of the operation duration, a comparison is made. If the duration is less than the duration of
the check period, the next operation is checked.
If the next operation also fulfills one of the rules of the check routine, its duration is calculated and added to the
previous total duration of the operations.
A check is carried out again. If the total duration is still smaller than the check period, the next operation is
checked, and so on.
However, if the total duration of the two operations is longer than the check period, a cleaning order is created
after the second operation.
Afterwards, the counter is reset for the duration and the next selected operation is checked.
If an operation for which the check is negative occurs in this series of operations, the behavior of the function
depends on the settings of the action code.
If the parameter STRICT is set, a strict check takes place, as the parameter implies. If the check is negative for
an operation, the check is stopped at this point, no cleaning order is created, and the counter is reset for the
duration. The system then proceeds with the search for the next operation for which the check is positive. The
check then starts again with this operation.
This check continues until the last selected operation has been processed. If, at the end, the sum of the
operation durations is longer than the calculated check period, a cleaning order is created after the last
selected operation.
It is possible to check whether a cleaning order is to be created. This can be controlled using parameter
CHK_CLOR. If this parameter is active, the system checks whether a cleaning order already exists for this item
before each cleaning order is created. If a cleaning order already exists, no new cleaning order is created at this
point. Cleaning orders are identified using the parameter ORD_TECH.
All orders that are identified by the function as cleaning orders are not included in the calculation of the
duration.
Result:
Cleaning orders have been created between the operations that have already been dispatched.
The cleaning orders are created in the simulation and can be discarded by reloading the data. The system does
not write the orders to the database until you choose Save.
Remember
Each time operations are rescheduled, the durations of the operations can change. By inserting a cleaning
order, an operation shifts in such a way that it goes over a period without capacity offer and therefore
becomes longer, for example. Therefore, the function continuously checks the duration of the operations
during processing. The durations of the operations are calculated using the position of the operations that
results from the insertion of the cleaning orders, not with the position of the operations before the insertion
of the cleaning orders. This ensures that the cleaning orders are dispatched after the desired duration of
the operations after the function has been executed.
Related Information
Use
You can use the action code S_CRORD to create a simulative production order or process order.
You can use this order to continue processing in the HJPT planning table after creation.
The order does not exist in the database and only becomes persistent upon saving. As long as it is not saved,
the order can be discarded by reloading the data.
You can use this function to create exactly one order for each call.
The simulative order cannot be processed with all HJPT functions. See restrictions below.
Procedure
Input Screen
The fields for material, quantity, unit of measure, start date, and start time are mandatory and must be filled.
Production version and order type are optional. If you do not specify the order type, it is determined
automatically.
If you have selected a data record, the data from the selected operation is transferred to the input screen for
creating the order. You can duplicate an existing order in this way.
If you do not select anything, the first data record of the ALV Grid is automatically selected and used to prefill
the data.
You can deactivate this automatic preassignment through a Customizing setting. S_CRORD and S_CHORD
Configuration: Create Simulated Order and Change Order
The field for the plant is for information purposes only and is prefilled. It cannot be changed
Whether the other fields on the input screen are input-enabled also depends on the settings in Customizing for
the function.
The production version field is optional and can be left blank. There is an F4 search help for the field,
which displays the production versions for the plant and material. All production versions for the material
are displayed, regardless of whether they are valid.
Check Routines
The order type field can be left blank. If the field is left blank, the order type is determined automatically using
the following check hierarchy:
• Reading the production scheduling profile from the material master on the Work Scheduling tab page.
Determining the order type for make-to-stock production from the production scheduling profile.
• Reading the production scheduling profile using the production supervisor entered in the material master
on the Work Scheduling tab page. Determining the order type for make-to-stock production from the
production scheduling profile.
• If an order type for converting planned orders to production orders is entered in the plant-dependent
parameters for MRP, the order type for production orders is used.
If the check routine does not find an order type, the system prompts the user to fill the required entry fields.
Note
This check routine has only been developed for the creation of production orders. For the creation
of process orders, we recommend that you specify the order type using a parameter or maintain the
production scheduling profile in the material master on the Work Scheduling tab page.
You can use Customizing to specify the order types allowed for creating the order. If you have specified order
types, they are checked after the input fields are confirmed. The automatically determined order type is also
checked.
If the user enters an order type, the system checks whether this order type exists. If the order type entered
cannot be found, the function terminates with an error message.
If the user enters a production version, the system checks whether this production version exists. If the
production version cannot be found, the function terminates with an error message.
The only permitted units of measure are the base unit of measure and the alternative units of measure from the
material master. The system checks the unit of measure entered.
Dispatch
After the simulated order is created, it is dispatched immediately, provided that this is set in Customizing. The
first operation of the newly created production order or process order is dispatched to the desired start time.
The operation can only be dispatched there if there is sufficient free capacity at the time. If there is not enough
capacity, the operation is dispatched to the next item with sufficient free capacity.
Note
During order creation, the requested start time is transferred to the order as the basic start date. The
start time of the first operation of the order results from standard scheduling. For example, if floats are
maintained, the first operation will not start at the same time as the basic start date. For creation without
immediate dispatching, the transferred start date is the basic start date of the order.
If immediate dispatching is activated, the first operation of the order with the desired start time is passed
to the dispatching function. Scheduling during dispatching can shift both the basic start date and the start
dates of the operations. You can only carry out forward scheduling by entering a start time.
Result:
Result
A new simulative order is visible. Only one order can be created per function call.
Remember
The simulated orders are created using a standard SAP module. If data is required or discrepancies occur
(warnings or errors) when the order is being created, an input screen appears for entering or correcting
data. For example, if the requested date is not a working day, the module requires separate confirmation.
Restrictions
You use this action code to create simulative production orders or process orders that do not yet exist in the
database. Simulative orders are subject to certain restrictions and cannot be executed with all HJPT functions.
Restriction
• If orders are created and not all machines containing operations for this material are open in HJPT
planning table, only the operations in the open machines can be dispatched. Since operations that are
not open are not taken into account in scheduling, the chronological sequence may not be correct for
these operations.
• The functions of the order information system cannot be executed for simulative orders because all
functions are executed in the database and these orders do not yet exist in the database. Action Codes
for Mass Processing [page 314]
• Transaction calls that read or change the data of orders cannot be performed for simulative orders
because the order does not yet exist in the database. Transaction Calls [page 324]
• The equipment check chart cannot process simulative orders. The assignment of the equipment to the
orders is read from the database. Since simulative orders do not exist in the database, no data can be
determined for these orders. Equipment Check [page 80]
• The requirement date and the order relations can be generated for a simulative order. However, not all
data for the order relations chart can be generated because the orders do not yet exist in the database.
List of Order Relations [page 72]
The following data providers deliver no data or only restricted data for simulative orders:
• Data Provider /LMPC/CL_DP_AFVG Order Operation Data Planned Order [page 396]
• Data Provider /LMPC/CL_DP_ALERT Alert Processing [page 397]
• Data Provider /LMPC/CL_DP_BED LMPC Requirement Date and Order Relations [page 401]
• Data Provider /LMPC/CL_DP_MEASURES Tasks, Resubmissions, Comments [page 439]
• Data Provider /LMPC/CL_DP_OP_ADD Additional Data for Operations [page 442]
• Data Provider /LMPC/CL_DP_PS_AFAB Relationships [page 444]
• Data Provider /LMPC/CL_DP_USER_001 Ranges of Coverage and Exception Messages [page 454]
• Data Provider /LMPC/CL_DP_USER_003 Quantities [page 462]
Tip
• This action code can be chained with other action codes. For details, see the section on concatenating
action codes. Concatenation with S_CRORD [page 387]
• A simulative order can be changed with the action code S_CHORD. S_CHORD Change Orders via Input
Window [page 109]
• Simulative orders have a number of disadvantages. To avoid these disadvantages, you can link the
action code S_CRORD with the action code S_SAVE for saving the planning data. In this way, when a
new order is created, it is immediately saved and receives a permanent order number. S_SAVE Save
Planning [page 376]
Selection of Operations
Result
Tip
Deletion works in simulation mode. The orders are only actually deleted if you then save.
Use
You can use the action code S_DMOORD to create data for testing functions in the HJPT planning table.
Depending on the settings in the action code, one or more planned orders can be created. The period for
creating new orders always starts on the next Monday.
Tip
This action code is suitable, for example, for creating data for testing the LMPC timetable.
Restriction
Since this is a function for generating test data, it is not intended to be used in productive environments.
Procedure
Situation at Start
Result:
If the data is to be renewed, the action code can be executed again. If the deletion of planned orders is set in the
action code, all planned orders at the work center are deleted before the new creation.
It is not necessary to select operations using the ALV Grid. The action code does not require selection.
Related Information
• Select an order operation in the ALV Grid of the LMPC HJPT planning table.
Select Operation
Pegged Requirements
Restriction
Use
You can use the action code S_ORDCL to technically close production orders or process orders individually.
Procedure
Selection of Operation
Result
Tip
The orders are closed in simulation mode and this is only written to the database when you save.
Use
You can use the action code S_ORDCLM to technically complete any number of production orders at the same
time. However, the action code S_ORDCPI contains the same function for process orders.
Procedure
Use
For a production order, the LMPC order report shows an overview of the upstream planned and production
orders for all low-level codes of the materials used. It has a similar structure to the material tree of the standard
SAP transaction MD4C. You can only access it via a production order. It is not possible to display data for
planned and process orders. The order report is called either via the action code S_ORDREP in the LMPC
planning table, or via transaction /LMPC/ORDER_REP.
It is possible to color entire rows, as well as individual fields of the ALV Grid. There are 5 status fields that are
filled with the status information of the orders depending on the settings made.
Tip
The enhancement and settings options enable the customer to make flexible modifications to the
transaction.
Procedure
• Select an operation for a production order in the ALV Grid of the LMPC HJPT planning table.
Selection
Use
You use the action code S_PCONV to convert planned orders into either process orders or production orders.
If the planned order was dispatched previously, the newly generated process order or production order is also
dispatched after conversion.
Procedure
Restriction
Conversion Message
• You use the Back button to return to the LMPC planning table.
• Now, automatic dispatching is performed, provided the SKIP parameter is not set in Customizing.
• Result: The two orders (newly generated order and existing planned order) are dispatched at the start
time at which the planned order was scheduled previously. First the new process/production order is
dispatched, then the planned order. These make use of the same capacity as the planned order on its own
did previously. The two orders are then selected automatically, to make them more visible in the ALV Grid.
Tip
If the parameter BOMEXPL is set, then after dispatch, a new BOM explosion is performed for the planned
order with the remaining quantity on the dispatching date.
Related Information
Use
Procedure
• Select an operation of a process order in the ALV Grid of the LMPC HJPT planning table.
Selection
Tip
• The changes are made in the buffer of the capacity planning table and only come into effect when the
planning result is saved. Changes may be discarded by exiting the planning table without saving, or by
reloading the data.
• When a phase is changed, it is deallocated automatically. You can make settings in Customizing so that
automatic rescheduling takes place when the change is made.
Example
Use
This action code enables you to enter a firmed production scrap for planned, production, and process orders.
This is possible for both dispatched and deallocated orders. The total quantity of the order is changed by the
corresponding amount and also recorded as scrap. The production scrap can be increased and reduced. The
order quantity is adjusted accordingly. Note that dispatched orders are deallocated automatically after you
change the quantity. However, you can configure automatic re-dispatching. It is also possible to process several
orders at the same time. The action code works for planned, production, and process orders. You make the
changes in the buffer of the graphical planning table. The system does not write the values to the database
until you choose Save. You can discard changes simply by exiting the LMPC planning table without saving, or by
refreshing the data.
Procedure
• Select one or more orders in the ALV Grid of the LMPC planning table.
After the quantity has been changed, the orders are rescheduled since the capacity requirements change as a
result of the change. Orders that have already been dispatched are automatically deallocated by the quantity
change. The parameter settings determine whether orders already dispatched are dispatched again.
Tip
The changes are transferred to the system after you save, or can be discarded via a refresh.
Related Information
Use
You can use the action codes S_SARBPL and S_HARBPL to change the work centers used in operations of
production and process orders. Only the work center assignment is changed in the operation. The production
version is not checked or changed. You can move operations to any work centers. The change is made in the
simulation mode.
Caution
If dispatched operations are changed, they lose their dispatching and must be dispatched to the new work
center again after the change.
The change is possible for several operations at the same time. All operations are moved to the same work
center.
It is also possible to move suboperations of production orders and process orders to other work centers. If the
suboperations are to be dispatched again after the change, a special feature must be taken into account for
process orders. For process orders, dispatching cannot take place by selecting the suboperation. Therefore, a
suboperation cannot be moved in the graphic by dragging and dropping. To dispatch process orders, the data
record must be selected for the operation.
Restriction
This function is not possible for planned orders. If the settings in the strategy profile allow it, you can
move planned orders to any work centers for which no production versions exist by dragging and dropping
them in the graphic. However, these moves are not stable. When the planned order is rescheduled, these
operations return to the original work center. Therefore, the option to reschedule planned orders has been
deactivated for the action codes S_SARBPL and S_HARBPL. If you want to move operations from planned
orders to other work centers, you should change the production version. A description of this can be found
in action code S_SARBFV. S_SARBFV Change of Work Center for Operations by Changing the Production
Version [page 152]
Procedure
• If the action code (S_SARBPL) was executed without a parameter list, the system displays a
popup window with an entry field.
• If the action code (S_SARBPL) was executed with a parameter list, the system displays a
selection list.
• If the action code (S_HARBPL) has been executed, or the action code
(S_SARBPL) with the settings for the hierarchy has been selected, the system displays the selection list
from the work center hierarchy.
Tip
When you save the LMPC HJPT planning table, the result is written to the database. You can refresh the
data without saving to discard the changes.
Caution
Note that the system logic for determining the work centers in the hierarchy differs depending on the
selected action code. For details, see the LMPC Configuration Guide.
Related Information
Use
You can use the action code S_SARBFV to change the work center used for operations in planned, production,
and process orders. The change is made by changing the production version. Therefore, the change is also
possible for planned orders.
Prerequisite
There are production versions for the material, which contain different work centers. The function reads the
work center selection for the operation from the production versions.
• Select one or more data records with the same operation number and the same material in the ALV Grid of
the LMPC HJPT planning table.
Caution
The move to another work center does not take place in simulation mode, it is implemented in the database
and therefore cannot be undone by refreshing the data. If the orders have been dispatched, they will be
deallocated by the change. Automatic dispatching after the change is not possible.
Procedure for Changing the Production Version Using Drag and Drop
If you want to reschedule an operation to another work center and you want to change the production version,
you can also do this using drag and drop in the graphic.
Drag an operation from the chart of operations not yet dispatched to a capacity in the first chart of the capacity
planning table. The first chart is the chart for dispatching.
You can also use drag and drop to reschedule an operation that has already been dispatched to another
capacity.
If the new target work center exists in a valid production version for this material, the production version in the
planned order is changed.
If the new target work center does not exist in a valid production version, planning is either terminated or the
work center is changed without changing the production version.
The system behavior depends on the settings of the strategy profile used. In the HJPT planning table, when
dragging and dropping in the graphic, the strategy profile used is the one stored in the overall profile as the
strategy profile for drag and drop.
For the production version to be changed, the “Reschedule with Production Version” checkbox must be set.
The system response in the event of an error is controlled by the “Cancel on Rescheduling with Prod.Vers.”
checkbox.
If the checkmark is set, the planned order cannot be rescheduled to a work center for which no production
version exists. Planning terminates with an error message in the planning log.
If the checkmark is not set, the planned order can be rescheduled. However, since no new production version
exists for the new work center, the previous production version is retained and the operation is scheduled with
the previous standard values using the formulas at the work center.
Restriction
The check for the change of the production version when dragging and dropping in the graphic only works
for planned orders. For production or process orders, on the other hand, the production version is not
changed. For these orders, there is also no check to see whether a production version exists for the desired
target work center. You cannot prevent operations from being moved to another work center via drag and
drop. This means that you can switch these orders to other work centers as you wish.
Use
With this function, the capacity requirements of the operations of production orders are distributed manually
from main capacities to individual capacities.
Planning Scenario
This action code is used in a scenario with individual capacities. The main capacity of a work center contains
further subordinate individual capacities here.
In the next step, the planner uses the action code S_SPLIT to manually assign the capacity requirements that
are on the main capacity to the subordinate individual capacities. As a result, finite planning is carried out on
the individual capacities.
Restriction
• Only operations of production orders can be processed. Planned orders cannot be processed.
• The function requires work centers with individual capacities.
• It is not possible to split an operation into several operations.
Caution
This action code is only listed in the HJPT documentation for the sake of completeness. This is a special
function for very rare use cases.
To distribute capacity requirements to individual capacities, you can only use the S_SPLIT function in the
HJPT planning table.
With all other HJPT planning functions, direct dispatching to individual capacities is not possible. The
planning functions of the HJPT planning table all use the standard dispatching function of the capacity
planning table. This does not support dispatching to individual capacities. This is a technical restriction that
cannot be lifted by changing the programming.
The LMPC profiles for the capacity planning table, which are contained in the standard LMPC delivery, do
not support the display and processing of individual capacities either.
If you want to work with individual capacities, you must define your own profiles for the capacity planning
table and activate the display of individual capacities there.
Due to these restrictions, the use of a planning scenario with individual capacities in the HJPT planning
table is not recommended.
It is recommended that you map the machines as separate work centers with main capacities instead of
individual capacities. You can then also use all standard planning functions of the HJPT planning table.
Procedure
Selection
Remember
Function S_SPLIT is a function of the capacity planning table. The function is standard to SAP and cannot
be changed or influenced by the HJPT planning table. Since this function is a standard function of the
capacity planning table, this function is not described in detail in the LMPC documentation. For more
information about the functions of order splits, prerequisites, and restrictions, see the standard SAP
documentation.
The following chapters introduce, all planning functions of the SAP LMPC HJPT detailed scheduling planning
board.
Scheduling takes place when dispatching and deallocating operations. The dates of the operations and the
basic dates of the orders are recalculated.
When dispatching, the start time of the operations is defined by the respective planning function. The basic
dates of the orders are adjusted to the operation dates of the operations if this is defined in the scheduling
settings (transactions OPU3 and OPU5).
During deallocation, the operation dates are also recalculated because scheduling is also run during
deallocation.
When deallocating, scheduling not only checks the dates of the operations, but also the basic dates of the
orders. Scheduling always works such that the basic dates and the operation dates are both correct.
The basic start date must never be in the past, meaning that the basic start date can take the current date at
the earliest when deallocating.
When deallocating, no start time is specified for the operations. The dates of the operations are recalculated
starting from the basic start date, taking the available capacity into account. Any configured float before
production in days is taken into account. The float before production is a buffer in days between the basic start
date and the scheduled start date for production. Scheduling works forwards.
The first operation starts at the earliest available capacity of the day after the float before production, for
example 06:00. If there is no float before production, the basic start date is the start day of the first operation
of an order.
If planning in non-working times is set in the strategy profile for deallocation, the operation starts at 00:00,
since this is the earliest date on this day.
This description shows that it is not possible to obtain the operation dates of the previous dispatching during
deallocation, except in the special case where the operation was dispatched to the earliest available capacity
on a day before deallocation.
Restriction
• All planning functions were developed independently of one another. It is not possible to deduce the
behavior of one planning function from the behavior of another function.
• None of the LMPC HJPT planning functions were developed for the use of pooled capacities in work
centers. Individual planning functions may work with pooled capacities. However, the use of pooled
capacities is not officially supported.
Note
If you require help with selecting or configuring planning functions to achieve your planning goal, please
contact LMPC Consulting. LMPC Consulting Support does not provide any information about the function
or the correct configuration of planning functions. These are consulting topics.
Use
You can use this function to deallocate all dispatched operations. You do not have to select any operations. All
open dispatched operations are simply deallocated.
This function can be used to undo all dispatches with one click.
Procedure
Situation at start:
Initial Situation
Result:
Result
Since the action code makes the selection itself, the action code limitation function cannot be applied.
Tip
This action code can also be used in background processing to deallocate all operations. Program /LMPC/
HJPT Background Processing [page 23]
Use
Procedure
Initial situation:
Selection
Result:
Planning result
The operations have been deallocated. The gaps have been closed, the subsequent operations have been
brought forward.
How the function behaves depends on the strategy profile settings. You can configure that gaps are closed
only up to the next gap, or to the end of the planning period. Configuration of Strategy Profiles
This action code can also be used in background processing. Program /LMPC/HJPT Background Processing
[page 23]
Use
This is the standard function for deallocating order operations. Operations are selected and then deallocated.
Procedure
Select Operations
• The charts of the work centers and dispatched orders show the capacity situation of the orders.
Result of Deallocation
The operations have been deallocated. In the ALV Grid, the orders are now marked as deallocated (flag
"dispatched" - 2nd column is not set). The orders are moved down because the dispatched orders are
displayed first. In charts 1 (work centers) and 2 (orders dispatched) of the capacity planning table capacities
have become free. Chart 3 (orders pool) displays the deallocated orders.
Remember
• You can deallocate orders by dragging and dropping them from the chart of dispatched orders to a
chart of the order pool in the graphic.
• You can also call deallocation from the context menu of a graphic bar.
Use
You can use this function to dispatch order operations individually to the next possible point in time.
Restriction
Procedure
Select Operation
Result
Use
Restriction
Procedure
• Initial situation:
Situation at Start
Selection
Result
Use
Restriction
You can only reschedule one operation at a time. If you select and move several operations, only the first
operation is dispatched.
Depending on the setting of the action code in Customizing, two planning variants can be realized:
• Immediate dispatch automatically at the point to which the operation was dragged.
• Two-step procedure: First move the operation to the required position, then dispatch by manually
triggering the action code.
Procedure
Initial situation:
Initial Situation
Select an operation that has not been dispatched and drag it between the dispatched operations.
The further behavior of the action code depends on the action code trigger set. The trigger for the action code
is set in the LMPC configuration. For instructions on configuring the action code, see the LMPC Configuration
Guide. S_D&D Configuration: Dispatching Operations with Drag and Drop in the ALV Grid
Caution
For this action code, drag and drop must be executed in a specific way. This is the only way in which the
ALV Grid recognizes that data records have been pulled from one position to another position and reports
this information.
When you drag and drop, the data record is first selected with the selection field on the left edge of the
ALV Grid. To drag and drop, you then click on any field of the selected row with the mouse, hold the mouse
button, and move this field to the desired target row. You release the mouse button when you are in the
desired target row.
The data records must not be moved by holding down the selection field. This type of shift does not work
for this function.
If the action code with the trigger “Drag and Drop in the ALV Grid” is set in the context profile, dispatching
immediately takes place at the target point. No further action is required by the user. Dispatching is done.
Result:
Result
The operation was inserted into the production plan at the target point. The following operations have been
moved. The operation receives the start time of the operation to which it was dragged. The operation to which
an operation was dragged is moved and is dispatched immediately after the newly dispatched operation.
With the immediate dispatching setting, operations can also be moved to other items individually and
rescheduled immediately. Therefore, this function can be used for both initial dispatching and rescheduling.
• The operations are always scheduled without gaps. If you insert an operation, all subsequent operations
are connected without gaps.
• The operation to be inserted is inserted at the desired position. The inserted operation starts at the same
time as the operation that was previously at this position. As a result, the operation that was previously
dispatched is moved into the future and follows the new operation directly. Other operations that lie further
in the future and are not affected by the shift remain where they have already been dispatched. Gaps in the
production plan are retained.
Note
In the standard delivery of LMPC, the action code is not configured in this way. If you want to use this type
of planning, you must first configure this.
Caution
If this function is set, you can no longer use drag and drop to sort the operations in the ALV Grid.
Dispatching is always executed during drag and drop. If dispatching is not possible, drag and drop is not
executed and the operation jumps back to its previous position.
Two-Step Procedure
Moving Operations
Now select the moved order and execute the action code (S_D&D).
Result:
Result
All orders are dispatched according to the list sequence without having to be deallocated.
Restriction
• You can only move operations if the work center of the selected operation is identical to the target
operation work center to which you are moving this operation. It is only possible to move and dispatch
operations within work centers.
• Planning with this action code only works if the operations in the ALV Grid are sorted according to the
work center and the start time.
• It is only possible to store operations on the target entry if the target entry has already been
dispatched.
Use
Action code for dispatching all order operations immediately. You can use this function to quickly generate
a production plan. It can also be used to dispatch all operations automatically in a nightly planning run. This
means that the planner has a suggestion for a production plan the next morning.
Procedure
• Initial situation:
Situation at Start
All operations are in the pool. No operation is dispatched (second column with indicator for dispatching in
ALV Grid is empty, no operation in charts 1 and 2).
• You do not need to select operations. The action code (S_EPALL) can be executed directly.
• Result:
The third chart of the pool is empty. All operations are dispatched. The capacity commitment can be read
in the first and second chart of the capacity planning table. In the ALV Grid the dispatching indicator is set
in all rows.
Tip
• If you remove the option for earliest dispatch in the strategy profile used, the planning function tries
to dispatch the operations at the times at which the operations are scheduled. If the operations have
not been adjusted since the MRP run, the operations are dispatched as intended by the MRP run.
However, the prerequisite for this is that there is sufficient capacity at the work centers. Configuration
of Strategy Profiles
• The action code can also be used in background processing. Program /LMPC/HJPT Background
Processing [page 23]
Restriction
Since the action code has its own selection routine, the action code limitation function does not work for
this action code. Action Code Limits [page 87]
Use
This function enables you to dispatch operations by entering planning dates in the LMPC HJPT ALV Grid.
Either a start date or an end date can be entered. The function can therefore be used for forward and backward
scheduling.
The ALV Grid of the HJPT planning table contains four input-enabled fields for operation times:
These fields are in the ALV Grid layout group of the HJPT help fields.
In this example, forward scheduling is used. Therefore, the start times of the operations are entered.
In the input-enabled fields, enter the desired start times for the operations. Multiple fields can be maintained.
You can enter the times directly or use input help. The input help for the date allows you to select the date using
a calendar.
If you enter a start date and start time, the operation is dispatched at this time, provided there is sufficient
capacity at the work center.
If you only enter a start date, 00:00 is transferred to the dispatching function as the start time. The operation is
then dispatched on this day at the earliest possible time.
If you only enter a start time, the latest start date of the operation from the capacity requirement data is
automatically used as the date for dispatching.
Operations that have already been dispatched can be rescheduled by entering new planning dates.
For backward scheduling, the description applies in the same way, with the difference being that if a start
time 23:59:59 is missing and if a date is missing, the latest end date of the operation is transferred to the
dispatching function. It is not possible to dispatch into the past. If the function recognizes that an operation is
to be planned into the past, it either terminates with an error message or dispatches the operation as early as
possible. This depends on the settings in the strategy profile.
The times entered are always valid for the latest dates of the operations. Planning in the HJPT planning
table always uses the latest date. The operations are dispatched in such a way that the operation dates of
the latest dates are set to the desired dates. For more information, see the section on the layout groups.
Layout Groups [page 55]
Dispatching is only started when you choose the Enter key. This allows you to maintain the times for multiple
operations and to start dispatching for all operations with one key. You do not need to select any data records.
It is sufficient if the cursor is positioned in one of the fields that are ready for input. All data records are
processed that have data in one of the fields for date or time.
Result:
Result of Planning
Tip
Instead of entering the start times in the fields, manual dispatching can be used as an alternative. S_MANP
Manual Dispatching [page 205]
Caution
The ALV Grid does not check whether data has changed only when you choose the Enter key. The system
also checks for changed data when you execute action codes using other triggers, for example, when you
click a pushbutton above the ALV Grid. For technical reasons, the check for changed data is always run
before all other actions. Therefore, if you "Maintain Times" and do not execute "Enter" and then execute
a different action code, the system first dispatches to the maintained data and then executes the other
action code. This is a technical restriction. Changed data in the ALV Grid always takes precedence and is
always executed.
Use
This action code allows operations to be dispatched according to a sequence defined in the material master.
The system reads a Z field that is stored in the database table of the material master for the order material. The
sequence of operations is determined according to this Z field.
To ensure that the relevant planning variant works correctly, settings must be made in the action code and in
the strategy profile. For the explanations for this, see the LMPC Configuration Guide. S_EPMSQ Configuration:
Dispatch Using Material Master Sequence.
Procedure
Result:
Dispatching Result
The operations have been dispatched according to the order specified in the material master.
The planner can change this sequence manually. Dispatching can then be performed using the action code
S_EPSEQ. S_EPSEQ Dispatch According to the Sequence Entered [page 187]
The action code can be set in such a way that the user can enter a start time for dispatching. In this case, when
you execute the action code, the system displays a dialog box for entering the start time for the first operation.
The function dispatches the selected operations in the determined sequence from the field in the material
master in such a way that the end time of the predecessor is also the start time for the subsequent operation.
The operations are dispatched directly one after the other without gaps.
With this logic, it is also possible to realize a sequence across several work centers. The next operation at a
work center does not start until the previous operation has been completed at another work center.
During dispatching, only the times of the capacity requirements of the operations are taken into account.
Meaning the start and end times of the operations.
The action code can be set in such a way that the user can enter an end time for dispatching. In this case, when
you execute the action code, the system displays a dialog box for entering the end time for the last operation.
The function dispatches the selected operations in the determined sequence from the field in the material
master in such a way that the end time of the predecessor is also the start time for the subsequent operation.
The operations are dispatched in such a way that the last operation in the sequence ends on the desired end
date.
With this logic, it is also possible to realize a sequence across several work centers. The next operation at a
work center does not start until the previous operation has been completed at another work center.
During dispatching, only the times of the capacity requirements of the operations are taken into account.
Meaning the start and end times of the operations.
Remember
If the capacity offer is not sufficient and the operations must be dispatched in the past, dispatching
terminates and does not dispatch the operations.
The action code can be used in background processing. Program /LMPC/HJPT Background Processing [page
23]
Usage
You can use this action code to dispatch network operations in the correct sequence.
Remember
For the planning function to work, the data provider for the PS data must be activated. Data Provider /
LMPC/CL_DP_PS_AFAB Relationships [page 444]
Procedure
For each operation of a network, there is a row in the ALV Grid of the HJPT planning table. The operations were
scheduled in the correct sequence by the standard SAP system when they were created. The operations are
sorted in the ALV Grid by the earliest start date and time. As a result, the first operation of the entire project is
first in the ALV Grid.
The operations must be dispatched individually in this planning function. If you select more than one operation,
only the first operation is dispatched.
Tip
You can only dispatch operations that have not yet been dispatched. If the operation has already been
dispatched, the function terminates. If you want to reschedule the networks of a project to another time,
first deallocate all operations and then start dispatching again.
If you have set manual dispatching, a window appears to query the required start time of the operation.
The input fields are preset with the scheduled start time of the operation.
If the scheduled start time is already in the past, the current date and time are preset, since earlier dispatching
is not possible.
You can enter the desired start time and confirm the window.
If manual dispatching is not set, the current scheduled start time of the operation is transferred to the
dispatching function as the start time.
Tip
If you do not want the operation to be dispatched at the current scheduled start time, but as early as
possible, set the strategy profile accordingly. For details on configuring strategy profiles, see the separate
section on strategy profiles. Configuration of Strategy Profiles
Result:
The first operation has been dispatched to the desired start time.
You can see that the scheduled start times of the other operations of the same project have changed. When an
operation of a project is dispatched, the times of all other operations in the project are updated automatically.
The times at which the operations can be dispatched are stored in the operations.
It does not make sense to dispatch earlier than the updated times, since otherwise the operation sequence
cannot be adhered to.
Now select the second operation that has not yet been dispatched.
If manual dispatching was chosen, the window for entering the start time appears again.
The input fields are prefilled with the currently scheduled time of the operation. Dispatching is not possible
earlier. If you enter an earlier time, the dispatching function corrects the time to this earliest possible time
automatically.
Tip
Manual planning is useful if you want to create gaps between the operations and want to dispatch an
operation later than specified by scheduling. If you want to dispatch the operations as early as possible, you
do not need to activate manual planning. In this case, the operations are dispatched after the scheduled
dates, as early as possible.
If you have not set manual planning, the current scheduled time of the operation is transferred to the
dispatching function.
Result:
Result of Dispatching of Second Operation
You can use the relationship fields to check that dispatching is correct. The explanations for these fields can be
found in the chapter on the data provider. Data Provider /LMPC/CL_DP_PS_AFAB Relationships [page 444]
Repeat these steps until all operations of the project are dispatched at the desired times.
Note
This function was developed to enable dispatching in the correct sequence. Follow the procedure described
above. If operations are dispatched before their predecessors have been dispatched, this can lead to an
Related Information
Use
You can use this action code to dispatch orders in such a way that the material receipt occurs on time for the
requirement date.
In this planning function, dispatching does not take place for each operation, but always for all operations of an
order.
The planning function dispatches the orders as late as possible. The idea is to only produce a material when it
is needed, thus avoiding unnecessary warehousing.
Only operations that have a requirement date are dispatched. Operations without dates are not dispatched.
Tip
Using settings for the action code, dispatching can also take place for the rescheduling date instead of
for the requirement date. The documentation only describes dispatching on the requirement date. The
action code is used in the same way for the rescheduling date. For the differences between the requirement
date and the rescheduling date, see the section on the data provider /LMPC/CL_DP_BED. Data Provider /
LMPC/CL_DP_BED LMPC Requirement Date and Order Relations [page 401]
Procedure
Select Operation
Planning result
The order consists of only one operation. This operation has been dispatched in time so that the MRP
availability of the material is on 11/11/2021. The requirement date was met exactly. For this, the operation
had to be dispatched at the end of the day on November 2, 2021.
It is possible to dispatch several orders at the same time. For each order, it is sufficient to select one operation
of an order. The function automatically reads the other operations of the order that are also open in the
planning table.
If several orders are transferred to planning, the orders are presorted first. Orders with an earlier requirement
date are dispatched first. This follows the assumption that earlier orders are more important than later orders.
The closer a requirement date is, the more urgent production becomes.
If orders have the same requirement date, the orders that are scheduled earlier are dispatched before the
orders that are scheduled later. This follows the assumption that earlier orders are also to be dispatched
earlier.
For dispatching, the function calculates a date on which the operations must end for the receipt to be on time.
For dispatching, this date is transferred to the planning function that performs dispatching using backward
scheduling. If there is not sufficient capacity offer at the work center, the function can either cancel dispatching
or change the search direction to forward scheduling and thus choose the next possible dispatching date. The
behavior depends on the settings of the strategy profile. For details on this, see the LMPC Configuration Guide.
S_EPRQD Configuration: Dispatch on Requirement Date
Restriction
• The planning function only runs correctly if all operations of an order are open in the planning table,
because then all operations are also taken into account during dispatching. Only operations that are
open in the planning table are dispatched. If operations are not open in the planning table, it is possible
that the order will be dispatched too late.
• When planning orders for make-to-stock production, note the following: Since the requirement date is
updated for each planning activity, the requirement date may have changed after dispatching. Due to a
shift in the sequence of the orders, this order may now be assigned to a different requirement date. For
details on calculating the requirement date, see the section on the data provider /LMPC/CL_DP_BED.
Data Provider /LMPC/CL_DP_BED LMPC Requirement Date and Order Relations [page 401]
• When dispatching, the wait time from the scheduling margin key and the goods receipt processing
time are also taken into account. The function uses the factory calendar of the plant for these days.
The factory calendar of the work center should have the same workdays as the factory calendar of the
plant. The capacity offer at the work center must match the working days of the factory calendar of the
Tip
The function can also be used for automatic dispatching in the background. Program /LMPC/HJPT
Background Processing [page 23]
Use
The selected operations of the orders are dispatched at the earliest possible time. This ensures seamless
planning. The capacities of the work centers are utilized fully.
Procedure
Selection of Operations
In chart 2, you can see the current timeline 2 as a vertical line. All operations are dispatched without gaps
at the earliest point in time.
Tip
• The function can be used for background processing. Program /LMPC/HJPT Background Processing
[page 23]
• The function contains additional logic for operations with timetable allocation. The function recognizes
that the operations have a timetable allocation and schedules these operations using the strategy
profile for timetable dispatching, which is maintained per parameter in the action code. For operations
with timetable allocation, dispatching does not take place on the earliest date, but on the date that the
timetable allocation specifies. For more information, see the description of the LMPC timetable. S_FPL
Dispatch by LMPC Timetable [page 196]
This action code has the same processing logic as the action code S_EPSEL. The difference is in the strategy
profile used for dispatching. Here, you select the “Cancel dispatching due to error” indicator. Meaning that if
errors occur during dispatching, the respective order is not dispatched.
Use
Procedure
Initial situation:
The operations in the ALV Grid are sorted according to the start time and the work center. There are
dispatched operations. There are gaps between operations with free capacity.
In the column Start time disposition gap, the start time of the gap can be read. The column Free capacity gap
displays the free capacity.
The planner uses drag and drop to drag order operations that have not yet been dispatched to the place with
the gap to fill this gap. The shifted operations belong to the same work center as the operation that displays a
gap.
The shifted orders are highlighted and the action code (S_EPSELL) is executed.
The function now checks whether the capacity requirements of the operations fit into the planning gap. If the
gap is not large enough, the system displays an error message and aborts planning.
Error Message
If the gap was large enough, the operations will be dispatched. The function determines the end of the capacity
requirement of the predecessor order operation and dispatches the operations into the gap at this time. If the
operations have been moved to the first position in the ALV Grid, no predecessor can be determined. In this
If the predecessor operation ends at a time that is in the past, then the current date and time are used as the
start time for dispatching. It is not possible to dispatch into the past.
The function can also process pool orders. If pool orders are to be processed, only orders from one order pool
can be dispatched. It is sufficient to move one order operation of an order pool. The other related operations
are read automatically.
Restriction
• The operations to be dispatched must be in a single block, only then can they process the function.
This means that the operations in the ALV Grid must be directly one after the other.
• The function is always oriented to the operation that is directly before the new operations to be
dispatched in the ALV Grid. The size of the dispatching gap is read from this operation.
• You can only dispatch operations that belong to the same work center.
• Since the start time and the work center are relevant for this planning function, it is recommended that
you sort the ALV Grid according to the start time and the work center of the operations.
Remember
You use the Data Provider /LMPC/CL_DP_GAP Calculate Dispatching Gaps and Time for Successor [page
433] to calculate planning gaps.
Use
This function enables order operations to be inserted between dispatched orders or to be inserted at the
beginning of planning. The action code works in a similar way to the action code S_EPSELL, except that there is
no gap check.
Procedure
Initial situation:
Operations are dispatched. The operations are sorted by work center, start date, and start time.
One or more operations are dragged and dropped either at the beginning of planning or between dispatched
operations.
The shifted operations are highlighted and the action code (S_EPSELX) is executed.
Result:
Dispatching Result
The function determines the end of the capacity requirement of the immediately preceding operation at the
work center and dispatches the orders for this time. The orders are inserted and the subsequent operations
moved.
If the orders have been moved to the first position, no predecessor can be determined. In this case, the current
date and time are transferred to the planning function as the start time for the orders.
If the predecessor ends at a time that is in the past, then the start time is the current date and time for
dispatching. It is not possible to dispatch into the past.
The function can also process pool orders. If pool orders are to be processed, only orders from one order pool
can be dispatched. It is sufficient to move one order operation of an order pool. The other related operations
are read automatically.
The operations should be sorted by work center and start time in the ALV Grid, but this is not necessary. The
function is always based on the previous order of the same capacity.
If the operations to be dispatched are dragged before operations already in the past, these dispatched
operations are automatically included in the list of operations to be scheduled. Thus, these operations are
rescheduled after the new orders to be dispatched. The production plan is shifted.
Restriction
The operations to be dispatched must be in a single block, only then can they be processed by the function.
Use
You can use this action code to dispatch the selected operations to the times at which the order is currently
scheduled.
For example, if you want to dispatch the orders in the same way that the MRP run scheduled the orders, you do
not have to do anything more than dispatch the orders after creation by the MRP run with this action code. This
can also be done using an automatic nightly planning run with program /LMPC/HJPT.
It is also possible that with the function for shifting orders, S_MVEORD, you have already moved the orders
in the order pool as they are to be dispatched. You can use S_EPSELT to simply dispatch the orders to the
scheduled times after the shift.
The action code uses the same logic as the action code S_EPSEL. The contrast with S_EPSEL is in the settings
of the strategy profile used. The strategy profile delivered is set in such a way that dispatching takes place on
the date that is stored in the operation.
Procedure
An MRP run has been carried out at night. Now, you simply want to dispatch the operations on the dates
specified by the MRP run, to meet the requirement dates for the orders.
Selection of Operations
Result:
The operations were dispatched at exactly the times at which they were already scheduled. The times of the
operations have not changed. However, they are now dispatched and occupy the capacity.
Result of Selection
Remember
The strategy profile for the action code is set in such a way that finite planning takes place. Always
remember that a capacity check is carried out. If an operation has already been dispatched to the
corresponding capacity at the scheduled time of the operation, the new operation to be dispatched cannot
be dispatched there and moves to the next available capacity. Since the “Insert Operation” setting is set in
the strategy profile, it is also possible that a new operation to be dispatched moves an operation that has
already been dispatched. If you want to plan infinitely, that is, without checking the available capacity, you
can change the settings in the strategy profile accordingly.
Tip
• Pool Orders: You can also use this function to dispatch operations of an order pool. In contrast to the
action code S_EPSELP for pool dispatching, only those operations of the order pool that were selected
are dispatched. For the action code S_EPSELP, however, it is sufficient to select an operation of an
order pool to dispatch all operations of this pool. When dispatching operations with a pool ID, the
function recognizes that these are orders of this type and dispatches the operations using the strategy
profile for pool dispatching that is stored in the HJPT overall profile.
S_EPSELP Single-Level Dispatching with Pool ID [page 263]
• Timetable Orders: Using this function, you can dispatch operations that have already been assigned a
distribution according to the LMPC timetable. For more information, see the description of the LMPC
timetable. The function recognizes that the operations have a timetable allocation and dispatches
these operations using the strategy profile for timetable dispatching, which is maintained per
parameter in the action code. If no strategy profile has been maintained, dispatching is carried out
using the strategy profile for timetable dispatching, which is stored in the HJPT overall profile.
S_FPL Dispatch by LMPC Timetable [page 196]
Use
You can use this action code to dispatch operations in the sequence that has been entered in an input-enabled
field in the ALV Grid.
There are three possible planning variants for this action code:
To ensure that the relevant planning variant works correctly, settings must be made in the action code and in
the strategy profile. For the explanations for this, see the LMPC Configuration Guide. S_EPSEQ Configuration:
Dispatch According to Sequence Entered
Procedure
The ALV Grid of the LMPC HJPT planning table contains a column ready for input with the heading
“Dispatching Sequence”. If the field is not shown, you can find it in the layout group of the HJPT help fields.
The planner can enter the desired dispatching sequence of the orders.
Selection of Operations
Result:
Dispatching Result
The selected orders have been dispatched in the desired sequence at the earliest possible time.
Tip
It is possible to set the action code in such a way that dispatching is triggered when you choose the Enter
key. All data records that have a sequence number are then processed. With this setting, it is no longer
necessary to select the data records and then choose the pushbutton for the action code. For details on
this, see the LMPC Configuration Guide. S_EPSEQ Configuration: Dispatch According to Sequence Entered
The action code can be set in such a way that the user can enter a start time for dispatching. In this case, when
you execute the action code, the system displays a dialog box for entering the start time for the first operation.
With this logic, it is also possible to realize a sequence across several work centers. The next operation at a
work center does not start until the previous operation has been completed at another work center.
During dispatching, only the times of the capacity requirements of the operations are taken into account.
Meaning the start and end times of the operations.
The action code can be set in such a way that the user can enter an end time for dispatching. In this case, when
you execute the action code, the system displays a dialog box for entering the end time for the last operation.
The function dispatches the selected operations sequentially in such a way that the end time of the
predecessor is also the start time for the subsequent operation.
The operations are dispatched in such a way that the last operation in the sequence ends on the desired end
date.
With this logic, it is also possible to realize a sequence across several work centers. The next operation at a
work center does not start until the previous operation has been completed at another work center.
During dispatching, only the times of the capacity requirements of the operations are taken into account.
Meaning the start and end times of the operations.
Remember
If the capacity offer is not sufficient and the operations must be dispatched in the past, dispatching
terminates and does not dispatch the operations.
Use
The action code S_EPSIM is a planning function in which all selected operations are transferred to the standard
planning function of the capacity planning table simultaneously. Dispatching is executed without additional
LMPC logic, solely on the basis of the settings of the strategy profile.
When you use this function, all settings of the strategy profile apply as they can be defined in the standard
SAP system of the capacity planning table. This means that you can only plan in the same way as the standard
capacity planning table, without additional logic.
Tip
You can also use the “Date Entry During Dispatching” option in the assigned strategy profile to carry out
manual planning with a dialog box for entering the desired start date.
Related Information
Use
The action code S_EPSRT is a planning function. Before dispatching, the orders are sorted into a sequence
that is configured in Customizing. Any field in the ALV grid of the HJPT planning board can be used as a sort
criterion. You can use any number of sort criteria.
To ensure that the relevant planning variant works correctly, settings must be made in the action code and in
the strategy profile. For the explanations for this, see the LMPC Configuration Guide. S_EPSRT Configuration:
Sorted Dispatching
The action codes S_6_ESOR, S_7_SOEX, and S_7_SOPL are variants of the action code S_EPSRT that are
configured differently.
Procedure
Result:
The function determined the sequence in the “Sequence” field. The "Sequence" field is input-enabled. The
planner can now adjust the sequence and, for example, use the function for dispatching by sequence entered
(S_EPSEQ) to dispatch the sequence. S_EPSEQ Dispatch According to the Sequence Entered
[page 187]
Tip
If the field for the sequence is not shown, you can find it in the layout group of the HJPT help fields.
If the setting for dispatching is set and manual planning is not activated, the numbers are not assigned. The
operations are immediately dispatched in the determined sequence at the earliest point in time.
The action code can be set in such a way that the user can enter a start time for dispatching. In this case, when
you execute the action code, the system displays a dialog box for entering the start time for the first operation.
With this logic, it is also possible to realize a sequence across several work centers. The next operation at a
work center does not start until the previous operation has been completed at another work center.
During dispatching, only the times of the capacity requirements of the operations are taken into account.
Meaning the start and end times of the operations.
The action code can be set in such a way that the user can enter an end time for dispatching. In this case, when
you execute the action code, the system displays a dialog box for entering the end time for the last operation.
The function dispatches the selected operations in the determined sequence in such a way that the end time of
the predecessor is also the start time for the subsequent operation.
The operations are dispatched in such a way that the last operation in the sequence ends on the desired end
date.
With this logic, it is also possible to realize a sequence across several work centers. The next operation at a
work center does not start until the previous operation has been completed at another work center.
During dispatching, only the times of the capacity requirements of the operations are taken into account.
Meaning the start and end times of the operations.
Remember
If the capacity offer is not sufficient and the operations must be dispatched in the past, dispatching
terminates and does not dispatch the operations.
The action code can be executed in a nightly planning run using the program /LMPC/HJPT. For details, see the
separate section on background processing. Program /LMPC/HJPT Background Processing [page 23]
Use
A sequence of materials or material groups is maintained for this action code, using the LMPC Customizing
transaction /LMPC/MAT_SEQ.
For each work center, the system determines the sequence in which the order operations for particular
materials are to be dispatched.
The "Maximum Number" field specifies the maximum number of order operations that can be dispatched
consecutively.
You can use wildcards (*) when you enter the materials and material groups.
The logic of the action code S_E_TBSQ processes the selected order operations and assigns a sequence
number for the order in the “Sequence” column of the ALV Grid of the HJPT planning table, taking the
Customizing table into account.
In the LMPC delivery, the action code is configured such that numbers are assigned for all order operations.
The logic runs until all order operations have been assigned a number. Order operations that cannot be
assigned based on the table are assigned a sequence number at the end.
Procedure
Selection of Operations
A sequence for the order operations was generated in the “Sequence” column. The planner can adjust this
sequence and then use the action code (S_EPSEQ) to dispatch the sequence.
You can use Customizing settings to adjust the behavior of the action code. If you have any questions, contact
your LMPC consultant.
Restriction
• In sequencing, either the material number or the material group is taken into account. The material
number takes precedence. The material group is checked only if no material number is specified for an
entry. A combination of entries with material number and material group is possible.
• The logic is not suitable for the sequencing of orders that have operations at different work centers.
This logic cannot check the sequence of the order operations at the different work centers. You can
only use this logic to dispatch orders that have only one operation or that only have operations at the
same work center.
• If an order has several operations at the same work center and all of them are selected, the same
sequence numbers are assigned for all operations of the order. Sequencing takes place per order per
work center.
Related Information
The action code (S_EPTBSQ) uses the same class as action code S_E_TBSQ. However, the
Customizing settings are such that the operations are immediately dispatched in the determined sequence.
The action code can be set in such a way that the user can enter a start time for dispatching. In this case, when
you execute the action code, the system displays a dialog box for entering the start time for the first operation.
The function dispatches the selected operations sequentially in such a way that the end time of the
predecessor is also the start time for the subsequent operation. The operations are dispatched directly one
after the other without gaps.
During dispatching, only the times of the capacity requirements of the operations are taken into account.
Meaning the start and end times of the operations.
The action code can be set in such a way that the user can enter an end time for dispatching. In this case, when
you execute the action code, the system displays a dialog box for entering the end time for the last operation.
The function dispatches the selected operations sequentially in such a way that the end time of the
predecessor is also the start time for the subsequent operation.
The operations are dispatched in such a way that the last operation in the sequence ends on the desired end
date.
During dispatching, only the times of the capacity requirements of the operations are taken into account.
Meaning the start and end times of the operations.
Remember
If the capacity offer is not sufficient and the operations must be dispatched in the past, dispatching
terminates and does not dispatch the operations.
Dispatching at the earliest point in time with the maximum gap from the requirement date
If the operation exceeds a certain gap from the requirement date, the system resets dispatching for this
operation. The system then searches for the next operation that can be dispatched. Further iterations are
carried out for the quantity of the selected operations until either all operations have been dispatched or
dispatching can no longer be performed.
The aim of the logic is to dispatch the operations on time, but not unnecessarily early. This can help to keep the
on-hand stock low for a product.
Restriction
• This is a logic that searches for an approximate result using iterations. Therefore, the set quantities of
operations for each material may not always be achieved in the sequence.
• The logic for checking the requirement date works only for immediate dispatching. It cannot be used
for pure sequencing.
• This logic cannot be combined with manual planning.
Tip
The action code can also be used in background processing. Program /LMPC/HJPT Background
Processing [page 23]
Related Information
Use
The function for dispatching by LMPC timetable reads the timetable settings from the LMPC customizing
(transaction /LMPC/FPL) and then distributes the selected operations to the capacity based on these settings.
The operations are assigned a start date and a start time and can be dispatched either immediately or later
(using the standard dispatching function S_EPSEL).
Two different logics are available for the distribution. The logic used is chosen via a parameter in Customizing
(see LMPC Configuration Guide).
Tip
• The LMPC timetable can be used in background processing. Program /LMPC/HJPT Background
Processing [page 23]
• The LMPC timetable can also be used in the consulting solution CTC - Capable to Confirm. When a
sales order is created, the availability of a material can be checked using CTC. If there is not sufficient
Restriction
When you set the operations to the time slots, no operation sequences are taken into account. Planning
with timetable should therefore not be used with orders that have several operations. An application of the
timetable with such orders is only possible if only the operation of the bottleneck resource is planned for
each order. If you have any questions, contact your LMPC consultant.
Procedure
To execute the function, first select the desired order operations in the ALV Grid. However, this is not
mandatory.
In the following dialog box, you specify which order operations are to be processed:
Selection of Operations
After confirmation, the operations are loaded into the processing queue. The system checks whether all
selected operations belong to one capacity. If not, the logic terminates. Only operations that have not been
dispatched are processed, all dispatched operations are removed from the list of operations.
Next, the settings window appears. This varies depending on the logic used. There are two different logics:
The timetable allocation action code S_FPL fills 5 fields in the ALV Grid:
The fields are only filled if immediate dispatching was not selected when the function was executed. Only
then does the function "simulate" the distribution of the orders and display the calculated start times and the
assignment of the operations to the timetable blocks.
The block ID indicates the block to which the operation was assigned. The block ID consists of 5 elements
separated by a '#'. The first element is the timetable. The second element is the plant. The third element is
the work center. The 4th element is the block number. The fifth element is the day of the week. 1 stands for
Monday, 2 for Tuesday, and so on.
The start date and start time indicate the time calculated by the logic for which the operation is to be
dispatched. With immediate dispatching, this time is transferred to the planning function as the start time.
If you really want to dispatch the orders after this simulation, you have two options:
• Execute the action code S_FPL again and select immediate dispatching this time.
• Select the operations to which a distribution by timetable was assigned and execute the action code
S_EPSEL or the action code S_EPSELT. Both action codes recognize the timetable assignment and
schedule the operations according to the calculated start times.
S_EPSEL Dispatch Selected Operations [page 181]
S_EPSELT Dispatching for Date [page 186]
Restriction
The data in the timetable fields is not saved to the database. If you reload the data or terminate planning,
this data is lost.
It is possible to use the timetable functionality with work centers that have several individual capacities.
The design of the formulas at the work center is particularly important here.
While the formulas for calculating capacity requirements may not be dependent on the number of
individual capacities, the formulas for scheduling must be explicitly dependent on the number of individual
capacities in order to calculate the correct duration of the operations.
The specific individual case must be checked and, if necessary, the settings in the system must be changed
in order to use the LMPC timetable with several individual capacities.
Related Information
Settings
• Start date: Specifies the date from which the logic should start.
• No. of days: Number of days from the start date for which a distribution is to be made. This value can be
preset via a parameter (see LMPC Configuration Guide).
• Log Level: Defines which messages are to be displayed after the generation of the allocation. 0 = all
messages (green, yellow, and red), 1 = error and warning messages (yellow and red), 2 = only error
messages (red). This value can be preset via a parameter (see LMPC Configuration Guide).
After this window is confirmed, the logic for creating the distribution by timetable starts.
If the corresponding setting is made in Customizing, the system checks whether firmed order operations exist
in the processing queue. These may then be removed from the queue.
Logic 1 loops over the days. The number of days is calendar days, not days of the factory calendar. The logic
therefore also runs for days without production.
First, the logic calculates the capacity-related situation in the calculated time period. It reads the available
capacity at the relevant work center. This available capacity is reduced by the capacity consumption of the
orders that have already been dispatched. The logic notes the times at which there is available capacity.
It reads the timetable settings from Customizing for the day in question.
A loop runs over the blocks. The production groups in the respective block are read.
The operations are processed in the sequence in which they are passed to the function. No additional sorting
exists. In dialog processing, this is the sequence in which the operations are displayed in the ALV Grid. In
background processing, this is the sequence in which the operations are provided by the database.
The system checks whether the respective order fits the respective production group. If so, this order is
assigned to the respective block. The available capacity is taken into account. You can only assign as many
operations in a block as free capacity is available for dispatching.
An operation is only assigned if it fits completely into a free capacity gap. The logic does not move operations
that have already been dispatched.
If operations have already been dispatched to the capacities, gaps may occur in the production plan because
the operations of the selection do not fit exactly into these gaps. It is therefore recommended that you only use
the timetable to plan days on which no orders have yet been dispatched.
The loop over the operations continues until a termination condition is reached.
The termination conditions are defined in Customizing using the production groups: Minimum and maximum
order quantity, or minimum and maximum number of orders, or minimum and maximum capacity
requirements in minutes.
You can set whether the termination conditions are "critical". If the conditions for the quantities are “not
critical”, only warning messages are created in the application log when the order quantity, number of orders, or
capacity requirement falls short of or exceeds the specified limits.
If, on the other hand, the conditions are “critical”, the limits are adhered to strictly. This means that if the lower
limit for a production group in a block is not reached, no operations are distributed during this pass. For the
If no termination condition applies, the loop continues until all operations have been checked once.
Then the same logic runs for the next production group in the block. When all production groups in a block have
been processed, the entire process is repeated until the maximum number of repetitions for a block has been
reached, or until no further operation can be assigned.
If all blocks of a day have been processed and there are still operations that were not yet able to be distributed,
the system continues to the next day.
This continues until either no more operations can be distributed or until the maximum number of days has
been reached. At this point the logic ends.
These are output at the end of processing. The selected log level determines whether messages are displayed.
• The generated distributions are written to the fields of the ALV Grid, or
• The operations are dispatched immediately
Restriction
Logic 1 can only process order operations with a duration shorter than one day, because the capacity check
is only performed for the blocks of one day.
Settings
• Log Level: Defines which messages are to be displayed after the generation of the dispatching proposals.
0 = all messages (green, yellow, and red), 1 = error and warning messages (yellow and red), 2 = only error
messages (red). (Can be preset via a parameter – see LMPC Configuration Guide).
• Dispatch: Empty = The timetable is generated and displayed in the corresponding ALV Grid fields. 'X' = The
dispatching proposals are generated and the selected operations are dispatched immediately according to
the allocation target times. (Can be preset via a parameter – see LMPC Configuration Guide).
After this window is confirmed, the logic for creating the dispatching proposals starts.
If the corresponding setting is made in Customizing (see Customizing – “hard firming”), the system checks
whether firmed order operations exist in the processing queue. These may then be removed from the queue.
In logic 2, unlike in logic 1, it is possible to process order operations with a duration that is longer than one
day. For this purpose, the concept of planning time windows was developed. A planning time window can last
several days and summarizes the available capacity in the blocks in this period. The bracket for a planning time
window is the production group. Logic 2 first generates a table of planning windows (for more details, see the
LMPC Configuration Guide).
In the first step, the operations are assigned to the planning time windows. The system compares the available
capacity with the demand. In the second step, the operations assigned to the planning time windows are
sorted, and then the dispatching proposals are generated for the operations.
There is a loop over the order operations. The logic attempts to set the order operations such that they end at
the desired target time.
The target time is a date and time that come from the LMPC ALV Grid data. For example, the latest end date,
the latest end time, or basic dates. You can use parameter settings on the action code to define which fields are
to be read for the target time. (Action Code S_FPL Parameter Settings ).
Tip
The logic is intended for setting the operations to target times. If you want the operations to be
dispatched as early as possible, you can use Customizing to specify the planning period start date as the
You can also use the implementation of a BAdI method in the customer system to implement your own logic to
determine the target time.
If no parameters have been set and no BAdI method has been implemented, the planning times latest end date
and latest end time are used by default.
The logic tries to place the relevant operation into the blocks of a planning time window that belongs to the
target time.
If this is not possible, the search will continue going back in time until the earliest end of the search period is
reached. This is either the start of the planning period if it is in the future, or the current date if the start of the
planning period is in the past, or it is a day calculated from the parameter settings for the maximum period in
days, which is to be considered backwards.
When this point in time has been reached, the logic switches to searching into the future. It will continue to
search into the future until the end of the search period is reached. The end is either the end of the planning
period or a day calculated using parameter settings for the maximum period in days, which is to be considered
going forward.
As soon as a suitable time window has been found, the order operation is assigned to this time window.
If no time window is found, a message for the application log is generated and the next operation is processed.
Special case "soft firming": If the soft firming has been set in Customizing, only the time windows that exist on
the date of the target time will be considered for the order operation with status "firmed". There is no search
in time either backwards or forwards. The operation can only be processed on the date of the target time. The
soft firming is not useful for dispatching at the earliest point in time.
When searching for a suitable planning time window, the logic considers the timetable settings.
Here, in contrast to logic 1, the logic only checks whether the order operation matches the production group
and whether there is enough capacity in the respective planning time window. Order quantities, order count,
and so on have no influence.
Operations already dispatched before execution of the action code S_FPL reduce the available capacity in the
planning time window. This ensures that only as much capacity load is placed on a window as is available.
In the overload Customizing setting, an overload can be defined at the end of the planning time window for
each production group.
If an overload has been maintained, this overload is calculated as an additional capacity offer if the capacity
supply of a planning time window is not sufficient for an order operation.
If the overload is used and the overload extends into a subsequent block, the available capacity of the following
block is reduced accordingly.
After all order operations have been processed in step 1, the logic executes the second step.
2nd Step: Sorting per Planning Time Window and Generating Dispatching Proposals
The loop takes place forward from the present into the future. Per planning time window, all the order
operations that were assigned to this window in step 1 are collected.
Then sorting is applied to these collected order operations per planning time window.
The sorting parameters are usually specified in Customizing. You also have the option of using a BAdI method
to sort the orders in the Z namespace in the customer system. If no parameters have been maintained or no
BAdI method has been implemented, sorting remains unchanged. Then the operations are processed in the
sequence in which they exist in the queue table.
After the sorting, the start times of the order operations are calculated per planning time window.
The logic starts with the start date and the start time of the first planning time window. The start time is the
first available capacity offer in the window. This is the starting point for the first order operation.
Then the end time of this order operation is calculated, considering the available capacity at the work center
and the block limits from the timetable settings.
This end time is the start time for the next operation.
The logic continues until all operations in the planning time window have been processed.
Then the logic proceeds to the next planning time window and processes the order operations of this window.
First sorting, then calculating the start times.
The end time of the last operation of the previous planning time window has been saved. The logic now checks
whether this time is later than the start time of the current planning time window. If so, then the end time is
used as the new start time for the allocation. If not, then the new start time is the start time of the planning
time window. That way, the order operations are placed correctly one behind the other and there is no overlap.
At the end of the second step, the capacity utilization is calculated for the blocks of the days and one message
per block is generated in the application log. The application log is displayed depending on the selected log
level.
After confirming the application log, the generated dispatching proposals are written to the associated fields of
the ALV Grid and, if this has been selected beforehand, immediate dispatching is performed.
This is necessary so that the user can also execute dispatching manually, using the standard S_EPSEL action
code.
Tip
Special Case "No Rescheduling": You can use parameter settings to define that order operations already
dispatched are not to be rescheduled.
If this setting is selected, operations already dispatched will not be considered. This can lead to gaps within
the planning time windows, since it is likely that the new orders to be allocated cannot be placed exactly
around the orders already dispatched. In this case, the block utilization is not evaluated.
For this special case it is recommended that you use the setting "Insert Operation" in the strategy profile.
However, this will result in operations that have already been dispatched being moved slightly in order to
obtain a production plan without gaps. This is a conflict of objectives. Either you get a gap-free production
plan, or you prevent operations that have already been dispatched from being rescheduled and thereby
create gaps. Both are not possible at the same time because new operations to be dispatched fit exactly
into the gaps in rare cases only.
Use
In manual dispatching, you can enter the desired start or end times for an operation in a popup window. The
selected operation is then dispatched accordingly.
The entry depends on the scheduling direction configured in the strategy profile used:
• If forward scheduling is configured, enter the desired start date and time.
• If backward scheduling is configured, enter the requested end date and time.
Whether a dispatched operation ends up starting or ending at the desired time also depends on the settings of
the strategy profile. If it is configured that an operation is to be inserted, the operation to be dispatched moves
between the operations already dispatched. If this setting is not set, the operation is dispatched to the next
time with free capacity.
For the settings for the strategy profile, see the LMPC Configuration Guide. Configuration of Strategy Profiles
Tip
It is also possible to dispatch several order operations simultaneously with the action code.
Procedure
Dispatching Result
Remember
The times entered are always valid for the latest dates of the operations. Planning in the HJPT planning
table always uses the latest date. The operations are dispatched in such a way that the operation dates of
Related Information
Use
You can use the action code S_MANPL to dispatch orders at any time in the future. The planner assigns the
start time of the order manually via a popup window. The function checks whether sufficient work center
capacity is available at the desired time. If not, dispatching is aborted.
The function also checks for the pool ID. If a selected order has a pool ID, all orders with the same pool ID are
dispatched. You can use the function to reschedule dispatched orders.
Restriction
• You can only dispatch orders for one pool ID at the same time.
• You can only dispatch operations for one work center at the same time.
• The function was developed for inserting one or a few operations into an existing production plan.
The function is not suitable for mass dispatching a large number of operations. This can lead to long
runtimes.
Procedure
There are two options for planning with this action code.
• Manual planning
• Drag and drop with manual planning
Manual planning
Selection
Error Message
• If the gap is large enough, the operations are dispatched into the gap.
Result of Planning
• Initial Situation
Initial Situation
• Select one or more operations
Selection
• Drag the orders to a planning gap. The following order always displays the gap that exists before it.
Result
The order was planned to the predecessor without gaps. Since the order does not completely fill the gap,
there is still free capacity after the order.
Remember
You use the Data Provider /LMPC/CL_DP_GAP Calculate Dispatching Gaps and Time for Successor [page
433] to calculate planning gaps.
Use
You can use the action code S_MANPLX to dispatch operations at any time in the future. The user assigns the
start time for all selected operations manually via a popup window.
In contrast to the S_MANPL function, this function does not check whether sufficient work center capacity is
available at the desired time. The operations are inserted at the desired position. If operations have already
been dispatched at this position, they are moved to the future.
Procedure
The planning can be done in two ways, as for the action code S_MANPL (S_MANPL Manual Dispatching List
with Gap Check [page 207]).
However, the system does not perform a gap check and the operations are inserted at the desired time.
Subsequent operations are moved if necessary.
Restriction
• You can only dispatch orders for one pool ID at the same time.
Use
You can use this action code to move operations in the order pool of the LMPC HJPT planning table. The
operations get new start times.
Restriction
You can only move operations in the pool, meaning operations that have not been dispatched.
Procedure
• Select an operation
Selection
• The operation is currently scheduled for December 28, 2018 at 06:00 a.m. It is to be moved to 04:00 p.m.
Result
Caution
You can move several operations at the same time, all of which then receive the same start times. The
available capacity in the resource is not taken into account.
Move using drag and drop in the graphical part of the LMPC HJPT planning table
You can also use drag and drop to move operations manually in the order pool of the graphical planning table.
This is the same function.
• Select a bar of the operation in chart 3 (Orders (pool)) of the graphical planning table.
Moved Operation
• Result: The order operation has been rescheduled for the desired time.
Operations are always moved in simulation mode. The system does not write the changed data to the database
until you choose Save.
Note
The operations are moved by scheduling the operations infinitely and then revoking the scheduling status.
With infinite planning, the available capacity on the resource is taken into account, but not the capacity
commitment of orders that have already been dispatched. Dispatching uses a special strategy profile called
“LMP_MVEORD”, which is contained in the LMPC standard delivery. This strategy profile is set up in such
a way that dispatching is also possible in nonworking times. This means you can move the operations
in the graphic as you wish. You can change the settings of this strategy profile at any time so that it is
only possible to move operations in working times. As with all LMPC HJPT planning functions, moving
operations into the past is not possible.
Caution
Do not move an operation of an order if another operation of the same order has already been dispatched.
When you move the operation that has not been dispatched, the system reschedules the entire order,
Related Information
Use
Various rules can be defined for this planning function that define at which times and at which work centers
dispatching of operations is allowed.
Applying the rules reduces the available capacity offer at the work centers. The function searches either
forwards or backwards for suitable dispatching dates in the remaining available capacity offer, depending
on the selected logic. If necessary, the work center is changed during planning by changing the production
version.
As a result, the operations are dispatched at a time at which all rules are fulfilled simultaneously.
The settings for the function can be found in the following chapters:
Tip
This type of planning is highly complex and has a large number of setting options. Therefore, it is
recommended that you commission consulting support for the implementation of this action code.
Procedure
Selection of Operations
Check Routines
The function first performs various checks on the selected data records.
The system checks whether there is only one operation per order in the selection. If the selection contains
several operations for an order, only the first operation found for the scheduling-relevant capacity is retained.
All other operations for the same order are removed from the selection.
If there are operations with a certain pool ID in the processing, the system includes all operations with this pool
ID in the selection.
The system checks whether production orders have the status "created". Production orders that do not have
this status in the order header and operation are removed from the selection since they cannot be changed.
This also applies to related operations with the same pool ID.
In addition, a check for external locks and the standard firming of operations is performed. These operations
cannot be changed either. Depending on the function settings, either the operations are removed from the
selection or processing is terminated if the check is positive.
If it was defined in Customizing that the settings can be adjusted again before dispatching, a dialog box
appears.
Change Settings
If the dialog box is not activated, the planning function is executed with the settings that are defined in
Customizing.
Dispatching Logic
The dispatching logic used is defined in Customizing and cannot be changed using the dialog box for the
settings.
If manual planning is activated, the function queries the desired start date for dispatching.
The box does not appear for the other two logics.
In the next step, the dispatched operations contained in the selection are removed from planning to release
the occupied capacity. If no new scheduling date can be determined for one of these operations based on the
set rules, the operation remains deallocated and is not dispatched back to its original date. It is not possible
to return to the original planning since the original date has been released and may be being used by another
operation.
Dispatched operations that are not contained in the selection reduce the available capacity offer.
In the next step, the activated rules are processed and the capacity offer is further reduced. For details on the
individual rules, see the following sections:
In the last step, the function uses the remaining capacity offer to search for and dispatch dispatching times for
the operations.
Depending on the dispatching logic selected, the search for a dispatching time differs:
• If dispatching at the earliest point in time was selected, the system searches for the earliest point at
which an operation can be dispatched. The search starts from the current date and time and runs forwards
towards the future.
• If manual dispatching was selected, the function searches forwards into the future for the next possible
dispatching date from the selected start date.
• If dispatching close to the requirement date was selected, the function reads the requirement date for
each operation from the corresponding order. The requirement date is a date. The time used is 00:00
in the morning. If necessary, the days of the float after production are subtracted from this date/time
from the scheduling margin key, as is the goods receipt processing time. The function assumes that the
operation that is to be dispatched is the last operation of an order. Other operations of the same order
cannot be taken into account. This calculation provides a date on which the operation must end at the
latest in order for the order to fulfill the requirement date. From this date, the system searches backwards
for the next possible date on which the operation can be dispatched. The search is performed backwards
to position the operation as close as possible to the requirement date. If the backward search does not find
a date, the function switches to the forward search and dispatches the operation as early as possible. If an
order does not have a requirement date, the logic for dispatching at the earliest possible time is used.
If the rule of the production version is activated, it is possible to search for a dispatching date sequentially or
in parallel using the available production versions. The search for a dispatching date can take place at various
alternative work centers. The function enables you to change the work center by changing the production
version. For more information, see the section on the production version rule. S_RBPL Production Version Rule
[page 219]
Log
Log
During dispatching taking into account the HJPT firming indicator (see notes on the special logic below),
dispatched operations with HJPT firming indicators are handled like breaks in the capacity offer. These thus
During parallel dispatching with pool ID (see the notes on special logic below), only one operation is processed
for each pool ID. Therefore, only the capacity requirement and the dispatching date of one operation per
order pool are output in the log. However, for the number of dispatched and non-dispatched operations, all
operations are counted, including all operations in order pools.
Tip
You can use the log to get a rough impression of how the rules used influence the available capacity offer
when you set up the function. It is recommended that you deactivate the log in production operation. If
there is a large number of operations, the log can become very long and unclear.
The log cannot provide information about why an operation was dispatched on a specific date or why an
operation was not dispatched. All rules collectively reduce the capacity offer. Therefore, it is not possible to
determine which rule is responsible for this if an operation cannot be dispatched.
The log from dialog processing is not saved. Only in LMPC HJPT background processing are the messages
of the log transferred to the application log of background processing and can be saved using this. Program /
LMPC/HJPT Background Processing [page 23]
Dispatching Result:
Dispatching Result
To enable the user to identify the processed data records, all processed data records are selected, regardless of
whether they have been dispatched.
• Parallel dispatching of operations with pool ID: Operations with the same pool ID all have the same start
time and are dispatched in parallel.
• Planning taking the HJPT firming indicator into account: Operations that have the HJPT firming
indicator remain in their positions. All new operations to be dispatched lie above these operations and
become longer by the corresponding time.
For information about how these special logics work, see the following sections:
The planning function can also be used in background processing. Program /LMPC/HJPT Background
Processing [page 23]
The planning function can be used together with the action code S_SETSEL. Concatenation with S_SETSEL
[page 389]
• The more rules applied and the more complex the restrictions per rule, the longer the runtime of the
function and the less likely it is that a dispatching date can be found.
• All active rules restrict the capacity offer. An operation occupies the capacity offer that is still available
after the rule evaluation. It is therefore not possible to see which rule is responsible for an operation
landing at a specific position or why it cannot be dispatched. The reason for an operation not being
dispatched is always missing free capacity.
• This function is not intended to create a production plan without gaps. The operations are processed
in the sequence in which they are passed to the function. Each operation occupies the first available
capacity offer found. Since operations do not always fit exactly into free capacity gaps, it is very likely
that this function will create gaps in the production plan that cannot be closed.
• Since this planning function enables the parallel dispatching of operations, the scheduling formulas in
the work center must be configured in such a way that the duration of the operations is independent of
the number of individual capacities. For more information, see the following section: Parallel Planning
with Several Individual Capacities [page 247]
You use the exclusion interval rule to specify for each material and work center the periods in which a material
may not be produced. Orders or operations that contain the respective material as a header material cannot be
dispatched in these time intervals.
The intervals can be defined as an entire period over several days with start date, start time and end date, end
time, or as daily repeating intervals, which exclude an interval from start time to end time in the period from
start date to end date.
Instead of specific material numbers, an operation can also be identified using the material group or the
classification of a material.
In the period of the exclusion intervals, the capacity offer is set to zero for orders that contain the
corresponding material as the header material. As a result, the operation cannot be dispatched in the relevant
interval.
If you use this rule, a capacity offer is calculated for each material and work center.
You can maintain exclusion intervals in transaction /LMPC/RBPL_CUST. M08 Transaction /LMPC/
RBPL_CUST: Rule-Based Planning Master Data
Related Information
With this rule, the production version determines the work centers at which dispatching is allowed at which
times. You can use this rule to move operations to other work centers.
If the rule is active for the production version, the valid production versions are retrieved for each material.
The production version uses the routing to determine the work center at which an operation is dispatched.
With this function, the production versions also use their validity period to determine the period in which
dispatching is possible.
The start day of the validity of a production version determines the earliest possible start date of the capacity
requirement of an operation if the date is within the planning horizon. If the start day is before the start of the
planning horizon, the current day is the earliest possible start date.
A different logic applies to the end day of the validity. In the standard SAP system, the validity of a production
version for changing an order is measured according to the basic end date of an order. To ensure that the
standard scheduling that is used for this function works correctly, the basic end date of an order must be in
the validity period and not just the end date of the capacity requirement of an operation. Therefore, the day
on which a capacity requirement must end at the latest is calculated from the end date of the validity of the
production version using the scheduling margin key from the material master so that the basic end date of
the order is still in the validity period. As a result, the end day of the validity of the production version is not
identical to the end day of the capacity offer. Depending on the scheduling margin key, the end of the capacity
offer is at least one day before the end of the validity period of the production version. This must be taken into
consideration when modeling the data.
In this calculation, it is assumed that the operation for dispatching is the last capacity-relevant operation of this
order. No other operations of an order are taken into account.
When checking whether a production version is valid for an order, the specified range of lot sizes is also taken
into account. The order quantity is compared with the specified minimum and maximum lot size. If no lot sizes
are maintained in the production version, this is valid for all orders for this material.
Only production versions that provide for a change to work centers that are currently open in the HJPT
planning table are processed. It is not possible to switch operations to work centers that are not open.
If the production version rule is active, the available capacity offer is calculated for each order and production
version of the corresponding material.
These three logics for changing the production version are combined with the three options for selecting
the start date for dispatching, which are described in the main chapter for S_RBPL. S_RBPL Rule-Based
Dispatching [page 212]
Remember
It is possible that the production version with which the respective order was created is not valid in the
current planning horizon. In addition, if the change of the production version is not allowed, it will not be
possible to dispatch the operation of this order since no free capacity offer can be calculated.
If the search is performed in parallel, a capacity offer is calculated for each production version that is possible
for an operation. For each production version, the system then calculates when the earliest dispatching date
can be realized. The possible dates are then compared with each other. The production version with which the
earliest date can be realized is selected. The earliest date is the date at which the operation ends at the earliest.
If the date is the same, the first of the two production versions is used. The first production version is always
the production version that is currently used in the order. Afterwards, all other production versions found are
processed.
This applies to the logic of manual dispatching and the logic of dispatching on the earliest date. In the
dispatching for the requirement date logic, the system first searches backwards in time across all production
versions starting from the requirement date and uses the latest date found so that the operation is as close to
the requirement date as possible. The latest date is the date at which the operation ends at the latest. If no date
can be found backwards, the search switches logic to the forward search. As with the other logics, the system
then searches for the earliest date.
If the search is sequential, the system first searches for a dispatching date using the production version that
is currently used in the order. If a date is found, it is used for dispatching. If no date can be found, the system
searches for a date with the next production version found for the material. This continues until a date is found
or until all production versions have been checked. In the case of the requirement date, the system also first
searches backwards from the requirement date. If no date can be found backwards for all production versions,
the system searches forwards.
If the logic leads to the result that a change of production version is necessary, the change is made and the
order is then dispatched.
When you change the production version, the BOM and routing are exploded again at the future basic finish
date of the order. To this end, the basic end date of the order is calculated. The explosion is necessary to
update the operation data. It must take place on the order finish date because an explosion is only allowed in
the validity period of the production version and the standard SAP logic checks for the order finish date during
explosion.
Caution
• If there is a large number of production versions and operations, this rule can cause a large runtime
load. Therefore, the use of different production versions should be handled sparingly.
• Switching the production version requires a certain runtime since the BOM and routing are exploded
again. If a large number of production version changes have to be made, the runtime of the function
can become very long.
• Most runtime can be saved if the change of the production version is not allowed, after which the serial
search is performed. The parallel search requires the largest runtime since the parallel search has to
calculate the dates for all available production versions.
There is a special check logic for processing parallel operations with a pool ID.
An order pool uses the operation that has the largest capacity requirement to search for a dispatching date,
that is, the operation that lasts the longest. This is the leading operation for an order pool.
For the other parallel operations, the system does not search for a dispatching date since these operations are
parallel to the leading operation.
When you change the production version of the leading operation, the orders of the parallel operations that
belong to the same pool ID must also be moved. They are moved to the same work center.
For the parallel operations, the logic searches for possible production versions for the same work center to
which the leading order is moved.
The system checks the following for the production version of the parallel material:
The first production version found for the new work center is used for the parallel materials. If there are several
production versions for the same work center, the logic cannot recognize which production version is to be
used and uses the first production version found that is valid according to the check. The user must use the
modeling of master data to ensure that the production versions can be assigned uniquely.
If no suitable production version can be found for a parallel material, all operations of the order pool are
excluded from processing.
Restriction
• In all alternative production versions for a material, the operation numbers of the operations used
for dispatching must be identical in the routing. When an order is moved to another production
version, the operation number of the operation must remain the same during processing. It is not
possible to move an order to another production version and change the operation number of the
operation in processing. The user must create the master data accordingly. Production versions
that use other operation numbers for the capacity-relevant operations are not recognized and are
excluded from processing.
• Only production versions that are valid in the planning period are processed.
• Locked production versions are not processed.
• Production versions must be checked. Only production versions whose check status is OK (green
traffic light) can be processed.
• Only routings can be processed. Line routings cannot be processed.
• For parallel materials, the capacity requirements of the leading material in all production versions for
the respective work center must be greater than the capacity requirements of the parallel materials in
all production versions for the respective work center. When moving the leading operation to another
work center, the capacity requirement of the leading operation must always be greater than the
capacity requirement of any other parallel operation at this work center.
The quota arrangement rule extends the rule for the production version.
If the quota arrangement rule is activated, the rule for the production version is also activated automatically.
The quota arrangements that overlap with the planning period are read for each material and plant. The
quota arrangement header data specifies the validity of the data. In the quota arrangement items, you specify
whether internal procurement or external procurement is used for a material.
External procurement
The entry for external procurement is only processed if there is an entry for external procurement in the items
and no further entries for in-house production.
In the period entered in the quota arrangement, all capacity offers for the material are updated. The period
of the quota arrangement is marked as occupied for the capacity on which the operation is currently located
and also for all alternative capacities (production version) that may exist. The entry for external procurement
specifies that the material cannot be scheduled anywhere in the period of the quota arrangement.
Internal procurement
The system only checks items for which "In-House Production" is entered in both the column for the
procurement type and in the column for the special procurement. All other items are ignored. Therefore, if
an additional item is entered for external procurement, it is not taken into account.
The system checks which production versions are specified in the quota arrangement items.
In the period of the quota arrangement, it is possible to reschedule operations to the work centers of the
specified production versions. Dispatching cannot take place to other production versions and therefore to
other work centers. All capacity offers of the material that do not belong to the maintained production versions
are locked for the period of the quota arrangement.
However, this does not apply conversely. For all periods in which no quota arrangements are maintained, you
can switch between the production versions and therefore work centers within the validity of the respective
production version.
The quota arrangement is an additional option to restrict the dispatching of operations in a certain period to
specific work centers using production versions (in-house production) or to prevent dispatching completely
(external procurement).
Since the materials that are planned with a pool ID are all planned at the same start time, all quota
arrangements for the parallel materials must be identical.
Restriction
• The percentages that can be entered in the quota arrangement have no influence on the logic. The
system only checks for internal or external procurement.
• The function does not check whether the periods of the quota arrangement match the validity periods
of the production versions. The maintenance transaction for the quota arrangements contains a check
of the validity of the production versions, but this check can be overridden by the user. The consistent
maintenance of the settings is the responsibility of the user.
Related Information
You can use the settings for the function to select whether both or only one of the two logics are active. S_RBPL
Configuration: Rule-Based Planning
The required equipment is read for each operation in processing. The relevant check is then performed.
The check for maintenance orders works according to the same logic as the equipment check chart. The
operations are dispatched at times at which no maintenance order exists for a specific piece of equipment.
The maintenance orders for the pieces of equipment that are to be executed in the planning period are then
determined.
During the period in which maintenance orders exist for the equipment, the capacity offer is blocked at all work
centers that are possible for dispatching the operation. The information about which work centers are possible
comes from the production versions.
This means that the operation cannot be dispatched if at least one piece of equipment is occupied during a
certain time period due to a maintenance task.
This logic ensures that operations that use the same equipment are not dispatched at the same time. The logic
assumes that a piece of equipment can only be used once per period.
If an operation is dispatched in a certain period, the capacities are blocked in the same period for all other
operations that use the same equipment. This ensures that no other operation that uses the same equipment
is dispatched at the same time.
In this check routine, the capacity offer is only reduced during the calculation of the dispatching dates. The
application log does not show a reduction in capacity for this logic.
In contrast to the other logics, the equipment check checks all operations of a pool ID, not just the leading
operation. The pieces of equipment are maintained for an operation and can differ from order to order.
Therefore, all equipment for a pool ID must be included in the check.
Restriction
If the production version rule is active, a simplification is applied: The logic assumes that the equipment
used in the routings that are contained in the alternative production versions for a material are identical.
The equipment is read either from the current operation of the production order or from the routing of the
planned order. Alternative equipment from routings in alternative production versions are not taken into
account. Therefore, if a piece of equipment is occupied in a certain time period, the order cannot switch to
another production version that has a different piece of equipment available during this time period. This is
because the logic does not recognize the alternative equipment.
Caution
If the equipment check is active, the available capacity offer is calculated for each operation in processing
and for each production version, as well as for the parallel operations with a pool ID. This can lead to a long
runtime of the function if there is a large number of operations in the selection.
Related Information
Use
This action code can also be used to dispatch the operations in a new sequence if you have previously used
drag and drop to change the sequence of the dispatched operations.
Procedure
• Select an order operation in the ALV Grid of the LMPC HJPT planning table, as of which rescheduling is to
be performed.
Result
All dispatched orders have been rescheduled. You can recognize this from the start date of the orders.
In the outbound delivery, the action code is configured such that all operations as of the first selected operation
are rescheduled. In Customizing, you can make settings so that all dispatched orders are rescheduled.
Special feature of pool ID: If an operation with a pool ID is found during processing, all operations with the same
pool ID are dispatched after this operation. The function combines operations with a pool ID.
Tip
The action code can also be used in background processing. Program /LMPC/HJPT Background
Processing [page 23]
Remember
The planning function processes the operations in the sequence in which they are displayed in the ALV
Grid. For the planning function to work correctly, the operations in the ALV Grid must be sorted according
to the start times of the capacity requirements. Since sorting by the ALV Grid does not exist in background
processing, the operations in background processing are automatically sorted according to the start times
of the capacity requirements before processing.
Operations that are locked externally cannot be rescheduled. External locks arise when an operation is
being processed at the same time. You can identify external locks in the column for locks. Data Provider /
LMPC/CL_DP_ENQUEUE Order Locks (Icon) [page 431]
Similarly, operations of production and process orders that have the firming indicator cannot be
rescheduled. S_FIX, S_FIXE Firm and remove firming of orders [page 291]
Operations that are fixed or locked externally are not rescheduled. This can result in gaps in the production
plan when the function is executed.
Use
In the HJPT planning table, planning is simulated. This means that all planning steps can be discarded. The
configured planning is not written to the database until you save.
You can use the action code S_PLVERS to create up to 5 different versions of a production plan during the
simulation without having to save these versions to the database.
This allows production planners to try out different sequences of orders at the same time.
In one version, the start times of the operations are stored for each user name and selection criteria of the
HJPT planning table.
Procedure
Create Version
The created production plan can be saved in one of the five possible versions.
If data already exists for a version, the date and time at which this version was created is displayed. If no data is
stored for a version, the relevant version is empty.
The data of a version is always saved per user name and per selection criteria. If you want to restore a saved
version when you call the HJPT planning table later, you must use the same selection criteria. This means that
you can only restore the data for the version if you reenter with exactly the same work center selection.
The data for a version is stored for 28 days. It is then deleted automatically.
To save the data, use the radio buttons to select a version and choose the Save button.
The start times of the operations are stored in the respective version for recovery at a later point in time.
Restore Version
Initial situation:
Use the radio buttons to select the version you want to restore and click the Restore button.
Result:
The production plan from the planning version has been restored.
The function restores not only the times of the dispatched operations. It also restores the dates of the
non-dispatched operations if these are not in the past.
If planned orders have been converted to production orders or process orders since a version has been saved,
the new orders are set to the defined start times of the earlier planned orders.
If you now want to use this production plan for production, use the standard save function to save it. This writes
it to the database.
Restriction
• Restoring a planning version involves dispatching operations to saved start times in the simulation.
• The plan versions are not a function for completely restoring a dataset. This function can only be used
to restore the planning sequence of operations. To do this, the operations are scheduled for the times
stored in the plan version.
• It is not possible to dispatch into the past. If the times of the operations that are stored in the version
are already in the past, these times are transferred to the dispatching function anyway. Since the
dispatching function does not dispatch into the past, the operations are dispatched in the saved
sequence into the future, from the current point in time. As a result of this procedure, the saved
production plan of the version is moved to the present.
• When operations are moved to the present, no planning logic of other LMPC HJPT planning functions
are taken into account, such as the LMPC HJPT timetable, two-step dispatching, or dispatching by
Use
You can use this action code to temporarily adjust the settings of strategy profiles to be able to perform
subsequent dispatching with changed settings.
The changes are only retained for as long as the planning table is open and until the planning table is reloaded.
The changes are not stored in the database.
Changing the settings of strategy profiles is helpful for production planners who want to plan in the traditional
way, as they do in the capacity planning table.
Tip
It is not usually necessary to adjust the settings of strategy profiles. A parameter can be used to transfer
a strategy profile for each planning function. This allows you to predefine the most diverse planning
functions.
Procedure
If no strategy profile is defined using a parameter for the action code, the system displays a dialog box for
selecting the strategy profile that is to be changed:
You can choose from the strategy profiles that are defined in the HJPT overall profile.
Strategy Profile
The selected profile or the profile that was specified using a parameter is stored in the window.
When you then execute the planning function, the changed settings are taken into account.
Tip
Also see the section on the configuration options for strategy profiles in the LMPC Configuration Guide.
Configuration of Strategy Profiles
Use
With this action code, production plans containing operations on different resources/work centers can be
shifted forward and backward in time.
The function calculates an offset for shifting the selected operations. The start time of each selected operation
is shifted by this offset. As a result, the position of the operations to each other remains constant and the gaps
are retained.
Procedure
Initial situation:
One operation is dispatched to one work center. The gap between the operations is approximately 1 ½ hours.
Only operations that were selected are processed. For operations with a pool ID, depending on the settings in
Customizing, the operations with the same pool ID are added to the selection.
A popup window appears, in which you can enter the new start time of the production plan. By default, the
system displays the start time of the earliest operation. If the operation is in the past, the suggested time is the
current time.
Enter the desired new start time, and confirm the window. The operations are to be moved to the right,
meaning forward in time.
The function now calculates the linear time by which the first operation is moved in the work center. The
calculation considers only the times for which the work center has available capacity. This time is the shifting
time. The shifting time is then used to calculate the new start time of all other selected operations in the
production plan. These will also be moved to the future by the shifting time.
Result:
Planning result
The operations have been moved. The gaps between the operations remain the same, at approximately 1 ½
hours.
Result:
The operations have been moved to the left, meaning backwards. The gap is still approximately 1 ½ hours.
Restriction
• It is only possible to move operations up to the present point in time. It is not possible to shift into the
past.
Tip
The data provider /LMPC/CL_DP_GAP calculates the free capacity in the dispatching gaps. You can use
these fields to ensure that the gaps remain the same when they are shifted.
Data Provider /LMPC/CL_DP_GAP Calculate Dispatching Gaps and Time for Successor [page 433]
Action codes for dispatching taking into account the setup time of operations.
In the HJPT planning table, there are three dispatching functions for which the setup time of the operations is
taken into account and, if necessary, changed:
Use
You can use this function to dispatch operations using a heuristic for minimizing the setup times.
• It dispatches the selected operations in a sequence that minimizes the total setup time.
• It adjusts the setup time of the operations according to the settings of the setup matrix.
Order operations from several work centers can be processed simultaneously. Dispatching always takes place
per work center. Dispatched operations can be rescheduled. They can, therefore, be included in the selection
and are then rescheduled together with all other selected operations.
The optimum dispatching sequence is determined from the settings in the setup matrix (transaction OPDA)
using a heuristic. The heuristic for PI follows the heuristic for PP.
The setup time of the operations to be dispatched is adjusted automatically according to the transitions in the
setup matrix.
If no valid setup sequence can be determined for the order operations, since setup transitions were prohibited
in the setup matrix, no dispatching takes place.
The operations to be dispatched are always placed after the last dispatched operation. Already dispatched
operations that have not been selected are not changed.
If there is no dispatched operation for the respective resource, or if the last dispatched operation is in the past,
the order operations are dispatched at the current time. Then the dispatching is seen as initial dispatching. The
setup time of the first operation is adjusted if an initial state has been maintained via the strategy profile (see
Initial Setup State checkbox).
Remember
• Action codes S_AVRU and S_AVRR can be used to adjust the setup time of operations already
dispatched.
• If no entry was maintained in the matrix for a transition, then no change is made to the setup time for
this transition.
• To ensure that setup-optimized dispatching works, the strategy profiles used must be configured
correctly. The LMPC delivery includes preconfigured strategy profiles that can be used.
Restriction
No setup time adjustment is possible for PI planned orders (planned orders for the process industry).
However, PI planned orders can be scheduled in an optimum setup time sequence. This means that
PI planned orders, if they are processed with this function, are dispatched in an optimum setup time
sequence, but the setup times are not adjusted. This is a technical restriction and cannot be changed.
These restrictions do not apply to process orders.
Prerequisites
For information about the prerequisites and corresponding settings, see the LMPC Configuration Guide.
Procedure
Selection
Result
The operations have been dispatched in an optimum setup time sequence. The entire setup time over all
operations, including the initial setup transition, has been minimized.
Related Information
S_EPRST and S_EPRSIN Configuration: Dispatching and Inserting Using Setup Matrix
LMPC planning function for adding orders to a position at which the setup time is minimized
Use
This action code inserts the selected operations one after the other into an existing production plan. For each
adjacent pair of dispatched operations, it calculates how the total setup time would change if the operation to
be dispatched were placed between these two operations. The dispatching position chosen is the position at
which the difference between the current total setup time and the future total setup time is the lowest, and
the operation is dispatched there. If this is the best place for dispatching, the operation can also be dispatched
before the first or the last dispatched operation. If several items are equally good, the last item is chosen.
Restriction
When inserting, the setup time is not adjusted, neither for the operation to be dispatched, nor for its new
successor after dispatching. You can use the action codes S_AVRU and S_AVRR for setup time adjustment.
Remember
• Special feature when dispatching at the beginning: If the function finds out that the new operation to be
dispatched is to be set at the beginning before all operations already dispatched, it dispatches the new
operation at the start time of the order that is dispatched first. This will postpone this operation.
• If the setup transitions are prohibited for all possible dispatching positions in the setup matrix, the
operation is placed after the last dispatched operation in the work center, even if this transition is
prohibited in the setup matrix.
• If one of the transitions in question is not maintained in the setup matrix, the current setup times from
the operation are accepted in PP. In PP-PI, on the other hand, a setup time of 0 is assumed in this case.
• The same prerequisites apply as for action code S_EPRST
Procedure
• Situation at start:
Initial Situation
Orders are already dispatched. An operation should be inserted into the production plan in such a way that
the overall setup time increases as little as possible.
• Select the operation that is to be dispatched.
Selection
Planning result
In this case, the best position for insertion was the first position before all other operations. The order
operation was dispatched there.
Related Information
S_EPRST and S_EPRSIN Configuration: Dispatching and Inserting Using Setup Matrix
Dispatching with an algorithm for sequencing with or without adjustment of setup times
Use
You can use this function to optimize the dispatching of operations and adjust the setup times of the
operations. The dispatching function uses a heuristic to determine the dispatching sequence in such a way
that the setup times of the operations become minimal.
For the function, rules must be defined in Customizing that are evaluated to determine the optimum sequence.
The adjustment of the setup times can also be deactivated. You can do this using the parameter settings for
the action code. In this case, the setup times defined in Customizing serve as costs for the optimization.
Tip
Since the configuration for this function is very complex, it is recommended that you contact SAP for
consulting to set up the function.
Restriction
You can use this function to process operations of planned orders, production orders, and process orders.
For planned orders in the process industry (PP-PI), the adjustment of setup times is excluded due to
technical restrictions. Only sequencing is possible for PP-PI planned orders. For orders in the process
industry, the requirements for the design of the individual phases apply in the same way as for PP-PI
optimum dispatching.
Procedure
Selection of Operations
If you have specified that you want to execute manual dispatching or/and specify the number of iterations for
the optimization run, a popup appears.
Choose the required start time and/or the required number of iterations for the sequence heuristic or
improvement heuristic. Confirm your selection.
Processing starts.
The messages in the log show the process flow of the function.
The operations of the orders are always processed for each work center.
Preprocessing
First, preprocessing is started. The rules for the work center are read.
The selected operations are reduced to different operations with regard to the rules. For the same operations,
it is sufficient if only one operation is entered as a representative for all other operations in the sequence
optimization. This saves runtime. After the sequence has been optimized, the operations that were sorted out
are included in the number of operations again and are sorted where the representative operation is.
Sequence Heuristic
This randomly selects an operation from the quantity of reduced operations as the start operation. Now,
another operation is selected randomly. All possible positions of this operation are checked and the operation
is placed where the fewest additional costs are incurred. In the case of two operations, there is only before
or after. If there are several operations, there are therefore more possible positions. This procedure continues
The placement process is now repeated as many times as the number of iterations set in the settings. The total
costs are calculated each time.
At the end of sequencing, the sequence that has the lowest total costs is selected. If the costs are the same for
different sequences, the first sequence with the lowest total costs is selected.
If there are already dispatched operations at the work center, the last dispatched operation is determined and
also taken into account in the heuristic. This operation is then assumed to be a fixed start operation. The
determination of the start operation depends on the configured dispatching strategy: as early as possible, last
dispatched operation on the resource, or block planning. The system searches for the operation that the new
operations to be dispatched are to follow.
Remember
If you want to dispatch operations in a dispatching gap, note that the logic determines the last dispatched
operation at the start of the gap and takes this into account. However, it does not take into account which
operations are already dispatched at the end of the gap. This means that the logic is not aligned with the
operations that follow. Only ever with the preceding operations.
Improvement Heuristic
If an improvement of the result is set using the improvement heuristic, it is executed next.
The improvement heuristic is only recommended for very complex planning scenarios. As a rule, the
improvement heuristic is not required because sequencing will already deliver a very good result.
The improvement heuristic works according to the following principle: Cut and paste.
It selects a random section of a random number of operations from the determined sequence. This section is
removed from the sequence and an attempt is made to insert this section into all remaining possible positions.
All possible positions are tried out and the position with the lowest total costs is selected. This is an iteration.
A new section with a random number of operations is selected for each iteration.
If the improvement heuristic is used, it should be set with a high number of iterations. An improvement can
only be made if many alternatives are tried out.
The total costs of the respective iteration are written to the log. In this way, you can see whether the total costs
improve at all with additional iterations.
The improvement heuristic can only be executed if there are at least three different operations in the reduced
selection.
Log
It is recommended that you only use the log when setting up the function. The log will probably not be relevant
for a user who wants to dispatch operations.
The log is not lost. It is stored in the database each time the function is called. When you save, the system
transfers an expiration date that is six months in the future.
You can use the log to find out how the total costs or the total setup time improve for each iteration. This
enables you to identify the number of iterations that make sense in the respective system for each maintained
rule set. There is always a conflict of aims between the runtime and the improvement of the result. As the
number of iterations increases, the result will usually improve further, but the runtime of the function will
increase. By choosing Try Out, you define a number of iterations in which an acceptable runtime is achieved
with a sufficiently good solution.
After sequencing and improvement have been completed, the setup times of the operations are adjusted if this
is activated via a parameter in Customizing.
If you have specified that only one sequence is to be created, you see the proposal for the dispatching
sequence in the “Sequence” column.
If the change to the setup times is set, you see the changed setup requirements in the column for the target
setup values. The bars in the graphic are adjusted accordingly.
If the sequence of the orders meets your requirements, you can now dispatch them using the action code for
dispatching by sequence entered (S_EPSEQ). S_EPSEQ Dispatch According to the Sequence Entered [page
187]
Immediate Dispatching
If you have set direct dispatching in the action code, the operations are dispatched immediately in the
determined sequence and, if set, the setup times are also adjusted.
In block planning, the earliest start time is determined from the currently scheduled times of the selected
operations and dispatching begins at this time. The operations thus remain in the “block” for which the first
operation was scheduled. The dispatching strategies are defined using a parameter in Customizing.
Optimized dispatching can also be executed in the background via a nightly planning run. For this, a job
is defined for the program /LMPC/HJPT. You can use transaction SLG1 to evaluate the log for dispatching.
Program /LMPC/HJPT Background Processing [page 23]
The functionality described here is only an example. The behavior may differ depending on the selected
settings in your system.
Tip
You can temporarily save the sequence that the function created in the LMPC HJPT function of the
planning version. This enables you to save a plan that the function has created for later use. This is useful
if the function is executed repeatedly to generate and compare different production plans. S_PLVERS HJPT
Read/Save Plan Version [page 226]
Restriction
• The planning logic is always executed per work center. Relationships between operations at different
work centers cannot be taken into account. This is particularly important if an order exists with
operations at different work centers. For such planning, it is recommended that you only execute
optimized dispatching on the bottleneck machine. Due to midpoint scheduling, the operations at the
other work centers are scheduled correctly in the time sequence.
• The planning logic is pure sequencing. During sequencing, dates, such as MRP availability or
requirement date, cannot be taken into account. This is a technical restriction and cannot be changed.
This function is a heuristic. A mathematical optimization, which would be required to take dates into
account, cannot be provided in the LMPC HJPT planning table.
With the HJPT planning table, it is possible to plan operations in parallel for capacities of work centers.
Most HJPT action codes are intended for sequential planning, for which operations are in sequence and cannot
overlap. However, with a few action codes, it is possible to plan operations in parallel.
There are different use cases as to why operations must lie in parallel. Parallel operations can be used, for
example, to map the occupancy of tools. Tools that are used in the production of different materials are
mapped as work centers for this purpose.
In the HJPT planning table, there are three different approaches for implementing parallel dispatching:
Tip
If you have any questions about the configuration of the master data and the configuration of the planning
functions for setting up parallel planning, please contact LMPC Consulting.
Usage
In parallel planning with suboperations, suboperations are created for the main operations via the routing for
the respective material.
The suboperations, for example, occupy the capacity of a tool that is mapped as a separate work center.
A large number of LMPC HJPT planning functions can be used for orders with suboperations.
You can use the following functions to plan operations with suboperations:
Restriction
The functions can only be used with suboperations if the capacities of the work centers are only utilized by
one operation each. The functions do not support multiple utilization of capacities.
Example
There is an order with an operation at a work center and a suboperation belonging to this operation at another
work center.
In the ALV Grid, select the operation or suboperation. It is sufficient to select one operation, the operation or
the suboperation. Both operations are always dispatched.
In this example, the operation is on work center MA1 and the suboperation on work center MA5.
Execute the required HJPT planning function. For example, Dispatching for Date. (S_EPSELT).
Dispatching Result
Remember
• When dispatching, the operation and suboperation are always dispatched together. It is not possible to
dispatch only the operation or only the suboperation. The same applies to deallocation.
• Unlike other planning functions, dispatching also takes place if the work center of the suboperation
is not open in the planning table. The operation and suboperation always have the same dispatching
status.
• It is recommended that you open all work centers in the planning table that contain the suboperations
for the operations. When dispatching, only the capacity offer of open work centers can be taken into
account. If you dispatch an operation and the work center of the suboperation is not open, the capacity
offer of the unopened work center is not taken into account. Dispatching takes place infinitely for the
suboperation. This can lead to an overload on the unopened work center.
• It is not possible to dispatch suboperations if the work center of the related operation is not open in the
planning table. It is not possible to dispatch only suboperations without the corresponding operation.
Use
You can set the capacities of work centers in such a way that several operations can be planned at the work
centers in parallel.
If these settings are made in this form, the number of individual capacities specifies how many operations can
be parallel.
You can use the following LMPC HJPT dispatching functions to dispatch operations in parallel to a capacity that
contains several individual capacities:
You should pay particular attention to the function S_EPPRLP. This function dispatches operations with the
same pool ID so that they start at the same start time. The creation of the order pools for this function and the
function itself are described in the following chapters.
The rule-based planning function S_RBPL also uses this planning logic.
No other planning functions can be used for this planning scenario. If you have questions about the selection
and functioning of the LMPC HJPT planning functions, please contact LMPC Consulting.
Restriction
Planning with several individual capacities should not be confused with planning on the individual
capacities. It is not possible to use an HJPT planning function to plan the operations to individually defined
individual capacities and to assign the operations to a specific individual capacity. Planning is only possible
for a total capacity that contains several individual capacities.
Use
The function S_PBPRLL belongs to the function for parallel dispatching with pool ID S_EPPRLP, which is
described in the following section. Function S_PBPRLL forms the order pools for the dispatching function.
Using the pool ID that is assigned to the order operations, you define which operations are to start at the same
time later when dispatching.
A maximum of as many operations of a work center as individual capacities are available for the scheduling-
relevant capacity of the work center can be added to an order pool.
S_PBPRLL and S_EPPRLP can be used for PP planned and production orders, as well as for PP-PI planned and
process orders.
Procedure
Selection of Operations
In this example, there are four individual capacities for the scheduling-relevant capacity of the machine, so up
to four operations can be selected.
Execute the action code for forming order pools for parallel dispatching (S_PBPRLL).
Result:
The operations have all been assigned the same pool ID.
You can only use this function to set the pool ID. You can use the function S_POOLID to remove the pool ID.
S_POOLID Create Order Pool Manually [page 259]
Restriction
• Only data records without a pool ID can be processed. The function terminates if operations with a pool
ID were selected. It is not possible to add operations to an existing order pool.
• It is not possible to manually assign a pool ID by making an entry in a popup window. The pool ID
is determined using a number range. If no number range is maintained, a 12-digit random number is
generated.
• Only data records for the same work center can be processed.
• It is not intended that more than one operation for the same order is processed at the same work
center. Only orders that have exactly one operation at the work center can be processed.
• The number of individual capacities is checked using the capacity offer at the work center. The offer
is determined on the first day of the planning period. If the first day of the planning period is in the
past, the user’s local date is used. If the day being checked does not have capacity offer, the next
day with capacity offer is checked. The number of individual capacities should be identical throughout
the planning period. When forming the pool IDs, the time at which the operations of the order pool
are dispatched is not yet defined. During later dispatching, operations can be dispatched in the entire
planning period. The planning function can only work correctly if the number of individual capacities is
constant in the entire planning period.
• The pool ID is always assigned for the entire order. All order operations receive the pool ID, even if only
one operation was selected. However, in this planning scenario, it is not intended for orders to have
more than one operation. Note also the restrictions for processing in the associated planning function.
Use
Operations are grouped in an order pool for this function using the function S_PBPRLL, which was described in
the preceding section. S_PBPRLL Form Order Pool for Parallel Dispatching with Pool ID [page 248]
S_PBPRLL and S_EPPRLP can be used for PP planned and production orders, as well as for PP-PI planned and
process orders.
Certain settings must be made in the master data so that this planning function can be used. The settings are
described in the section on parallel planning with several individual capacities. Parallel Planning with Several
Individual Capacities [page 247]
You use parameter settings to define the logic used. S_EPPRLP Configuration: Parallel Dispatching with Pool ID
Several order pools can be dispatched at the same time. The function searches for the last dispatched
operation at the work center. At its end time, the new operations to be dispatched are connected without gaps.
If there are no dispatched operations at the work center, dispatching takes place at the current time. Both
operations with and without a pool ID can be selected. Operations with a pool ID are dispatched in parallel.
Operations without a pool ID are dispatched sequentially. Operations that have already been dispatched can be
included in the selection. They will be rescheduled.
A popup window is used to query the desired start time for the selected operations. If an operation has already
been dispatched at the desired start time, the behavior of the function depends on the parameter settings.
For the standard logic, the start time is corrected to the end time of the operation that has already been
dispatched. The selected order pools are inserted after this operation. All operations that are dispatched after
this time are shifted.
You can use a parameter to activate a special logic for insertion. If the special logic is active, the selected
operations are inserted at the desired start time. The operations that have already been dispatched at this
point are also shifted to all subsequent operations.
Operations that have already been dispatched are moved in order pools in such a way that the operations have
parallel start times. Operations that have not been assigned a pool ID are rescheduled sequentially. This means
that they are scheduled one after the other.
Operations that have already been dispatched are rescheduled without gaps. All operations that lie after the
desired time are rescheduled. The operations then connect to the newly dispatched operations without gaps.
Both operations with and without a pool ID can be selected. Operations with a pool ID are dispatched in
parallel. Operations without a pool ID are dispatched sequentially.
Operations that have already been dispatched can be included in the selection. They will be rescheduled.
If operations that have already been dispatched are rescheduled into the future, gaps remain in the
previous positions. Only those operations that lie after the dispatching date are connected without gaps.
There are three options for dispatching using drag and drop:
When planning using the ALV Grid, one or more operations are drawn between operations that have already
been dispatched. In the two-step procedure, these operations must still be selected for dispatching and
the action code must be executed. In the one-step procedure, immediate dispatching takes place when the
respective operation is stored.
Note
For this type of planning, the operations in the ALV Grid must be sorted in ascending order, according to the
start times of the capacity requirements.
When planning using the capacity planning table, operations can be dispatched, deallocated, and rescheduled.
Operations with a pool ID are dispatched in parallel. Operations without a pool ID are dispatched sequentially.
Restriction
• With this function, only forward scheduling is possible. Backward scheduling is not supported.
• The system does not check whether there is a sufficient number of individual capacities for parallel
dispatching of the operations. This check is already implemented in the function for creating the order
pool S_PBPRLL. Therefore, this planning function can only be used to process order pools that were
formed with the action code S_PBPRLL.
• The logics were developed for dispatching operations at a work center. Dispatching across work
centers is not supported. Therefore, it is also not possible to dispatch all operations of an order
to different work centers at the same time. If you want to process orders with several operations
at different work centers, it is recommended that you only plan the bottleneck work center. Using
midpoint scheduling, the times of the operations at the other work centers are adjusted automatically.
• The logics have been developed in such a way that only one operation per order exists at a work center.
• Operations from several work centers can be planned at the same time, but the operations are only
processed for each work center. The order pools are only created for operations of a work center. For
the function for inserting for each work center, the system displays a dialog box for querying the start
time.
• Using the LMPC action code limitation is only possible for this function with limitations because the
function reads operations independently and no check for action code limitation is applied to these
operations that have been read. Action Code Limits [page 87]
Procedure
Initial Situation
To start with, an order pool with three operations has already been dispatched.
Select one or more operations from order pools. It is sufficient to select only one operation for each order pool.
The function reads all operations that belong to an order pool and have not been selected.
Selection of Operations
Dispatching Result
The two selected order pools have been dispatched in such a way that they connect directly to the order pool
that has already been dispatched. The operations of the subsequent order pool do not start until all operations
of the preceding order pool have been completed.
Initial situation:
Situation at Start
Two order pools are to be inserted between the operations that have already been dispatched.
Selection of Operations
In this example, the start time is chosen so that it is during the first dispatched operation.
The logic automatically corrects the start time internally to the end of the operation that has already been
dispatched, and inserts the new operations to be dispatched after this operation.
Tip
A parameter can be used to change the logic in such a way that the operations are dispatched exactly at
the start time entered. S_EPPRLP Configuration: Parallel Dispatching with Pool ID
Result:
Dispatching Result
The operations of the two order pools were inserted into the production plan in parallel. An operation that has
already been dispatched has been moved.
Initial Situation
An order pool with two parallel operations and a single sequential operation has already been dispatched.
Using drag and drop in the ALV Grid, the operation of an order pool is now placed between the dispatched
order pool and the sequential operation. It is sufficient to move one order operation of an order pool.
Result:
The logic reads the end time from the predecessor operation and dispatches the operations of the order pool
at this time. The order pool, consisting of two operations, was dispatched between the operations that have
already been dispatched. The operations are parallel.
Several operations can also be dragged and dropped between operations that have already been dispatched
and transferred to the planning function at the same time.
Processing can be configured in such a way that dispatching takes place immediately when an operation is
dragged and dropped. S_EPPRLP Configuration: Parallel Dispatching with Pool ID
The action code can also be defined for processing when dragging and dropping in the graphic.
• Rescheduling an individual operation without a pool ID to another time at the same work center. Dragging
into the past and into the future: Subsequent operations at the same work center are connected to the new
start time without gaps. When moving into the future, a gap remains in the old position that is not closed.
If the operation is to be planned at a point for which an operation already exists, it must be moved in such
a way that it is placed a little before the operation that has already been dispatched and whose position it
is to occupy. If another operation already exists at this point (inserting between two operations), the new
operation to be dispatched connects directly to the end of the predecessor. In the case of a collision with
an operation that has already been dispatched, the start time is corrected to the end of the predecessor.
This procedure makes it easier to insert operations into an existing production plan without gaps.
• Rescheduling parallel operations for a pool ID by using drag and drop to move one of the operations to the
same work center. It is sufficient to move one order operation of an order pool. The other operations with
the same pool ID follow. Rescheduling takes place in the same way as for the individual operation without a
pool ID (see previous description).
• Dispatching an individual operation without a pool ID at the work center of the operation by dragging
from the chart of operations that have not been dispatched to the chart of the dispatched operations.
Dispatching takes place according to the same logic as rescheduling.
• Parallel dispatching all operations of a pool ID at the work center of the operations by dragging an
operation with a pool ID from the chart of operations that have not been dispatched to the chart of
dispatched operations. Dispatching takes place according to the same logic as rescheduling.
• Deallocating an individual operation without a pool ID by dragging from the chart of dispatched operations
to the chart of operations that have not been dispatched. The resulting gap is not closed.
• Deallocating all parallel operations for a pool ID by deallocating one of the operations using drag and drop.
The resulting gap is not closed.
• Simultaneous selection of multiple bars and moving these bars in one step.
• Dispatching operations with a change of work center.
• Rescheduling operations with a change of work center.
If you try to reschedule an order to another work center, the function terminates with an error message.
Use
You can use this action code to dispatch operations across work centers in parallel. There is then an operation
at each work center with the same start time. This function can only be used for operations that are defined as
parallel sequences.
If you have defined parallel sequences in the routing, this action code ensures that the operations of the parallel
sequences are actually dispatched in parallel to the corresponding operation of the standard sequence.
Restriction
The function can only be used for planned orders and production orders in PP. This function is not available
for PP-PI (planned and process orders).
Procedure
Select one or more data records in the ALV Grid. You can dispatch one or more orders at the same time.
All operations for an order are always dispatched if they are open in the HJPT planning table. It is therefore
sufficient to select one operation of an order.
Select Operation
If you have configured manual planning, the system displays a popup window for querying the start time.
Dispatching is executed.
Result:
In the ALV Grid, you can see that all operations of the selected order have been dispatched.
In the graphic, you can see that operations were dispatched in parallel. The parallel operations all start at the
same start time.
The second operation of the order, which is dispatched to machine 2, has an additional parallel operation on
machine 3 and an additional parallel operation on machine 4.
The fourth operation, which is also dispatched to machine 2, has an additional parallel operation on machine 5.
The function has a capacity check that searches for a time slot for which the parallel operations can be
placed on the capacities in parallel. Dispatching only takes place if the parallel operations for an event can be
dispatched in parallel. Otherwise, the function terminates dispatching and informs the user which order could
not be dispatched.
You can see that the operations of the second order have been placed in the planning gaps. The condition that
the operations must lie in parallel is adhered to.
The function can also be executed in background processing. Program /LMPC/HJPT Background Processing
[page 23]
For the settings for the function and other SAP Notes, see the LMPC Configuration Guide. S_EPPRLL
Configuration: Parallel Dispatching and Tool Planning
When planning with pool ID, orders are grouped using an indicator, the pool ID. These groups can then be
dispatched using planning functions.
There are four action codes for single-level planning with pool ID:
Use
Procedure
The procedure is explained using an example. There are, for example, several planned orders for the
materials LMPC_FERT_01 and LMPC_FERT_02 on multiple days. Instead of using the start dates resulting
from requirements planning, you want to dispatch all orders, each for one material, for the coming days in
immediate succession. To do this, you create an order pool for each material.
The data in the ALV Grid list is as follows at the beginning of planning:
Now select all the operations for the first material. You can also sort the list by material before selecting.
You then choose the button (S_POOLID) and confirm the popup window.
Order operations that are assigned to the same order pool are assigned the same identification number in the
field “Order Pool”. If the field is not shown, you can find it in the group of the HJPT help fields.
Then repeat the selection and pool generation for the next material.
If you forgot operations when forming a pool, you can simply add them to an existing pool. To do this, you must
select at least one order operation from the order pool and the operations that you want to add. Then execute
Result: You have now created two order pools. The start dates for the orders have not been changed.
Select the orders for which you want to remove the pool ID.
Related Information
Use
This action code enables you to group orders according to rules. These rules are predefined in the Customizing
settings.
This makes it possible to simplify and accelerate the creation of order pools.
Rules are defined by specifying grouping fields. For example, orders can be grouped in order pools
automatically by work center and material number. In addition, it is possible to specify the maximum number
of orders per order pool and to specify that header materials can only occur once per order pool.
The action code is usually used in dialog processing. However, it can also be used to execute the pool ID
assignment at regular intervals using a job in the background. This can be useful, for example, if there are new
orders in the system after an MRP run. Program /LMPC/HJPT Background Processing [page 23]
For details on configuring the action codes, see the LMPC Configuration Guide. S_POOLID, S_POOLA
Configuration: Creation of Order Pools
Procedure
Initially, no pool IDs have been assigned. In this example, the settings in Customizing are set in such a way that
the orders are grouped for each work center and material number.
Initial Situation
Execute the action code for automatic pool generation from (S_POOLA).
You can see that a pool ID has been assigned for each work center and material number.
In this example, a maximum number of orders per order pool has been defined. A maximum of 4 orders can be
contained in an order pool. Since the maximum number of orders was not reached in the second order pool,
the conflict field for the order pool is filled.
Grouping Logic
To enable automatic pool formation, the selected data records are sorted according to the grouping fields and
the fields "Earliest Start Date" (FSTAU_KB) and "Earliest Start Time" (FSTAD_KB). As a result, the data records
are sorted by the grouping fields as well as by time. Then, using loop processing, the data records are collected
into groups of pools that have the same values for the grouping fields. As a result, orders that are close to each
other in terms of time are grouped in an order pool.
If orders are added to an existing order pool, the existing order pool is filled before new order pools are created.
An existing order pool is therefore always filled with the earliest available orders for the same grouping.
Tip
• The pool IDs can also be removed again. For this, all orders in the selection must have a pool ID. If
orders have been removed from an order pool and then this order pool no longer has the required
maximum number of orders, the conflict field is filled to display an incomplete order pool.
• You can use the action code to add further orders to an existing order pool. This is also done according
to the specified rules. To do this, you must select at least one operation of the existing order pool and
at least one operation of an order that is to be added. If an order pool reaches the maximum number
of orders as a result of this adding, the conflict field is emptied. If an order pool already contains the
maximum number of orders, a new pool ID is assigned for the order that is to be added.
Related Information
Use
The action code (S_SEPSELP) can be used to dispatch order pools. Orders with the same pool
ID are dispatched consecutively.
The prerequisite for this function is that you have previously used a function for creating order pools to assign
a pool ID for the respective operations. Order pools are created manually by the planner or automatically
according to predefined properties of the operations.
This function allows you to dispatch operations that have the same properties in a block.
Procedure
S_EPSELP Selection
Result:
Dispatching Result
All operations that belong to the same pool ID were dispatched at the same time. They were dispatched at the
earliest possible time.
You can dispatch several different order pools at the same time. If you select several order pools at the same
time, the system sorts by pool ID before dispatching. Operations with a lower pool ID are dispatched first, then
the operations with the higher pool ID.
Within an order pool, the operations are sorted according to their start time before dispatching. The
assumption behind this is that operations that are scheduled earlier should also be dispatched earlier.
If you have operations in the pool grouping that belong to different work centers, you can use this function
to carry out cross-work-center planning. Subsequent operations do not start until the operations are finished.
Only the times of the operations are taken into account, meaning the times of the capacity requirements.
Remember
You can use a parameter in Customizing to activate manual planning. In this case, the function first asks for
the desired date for dispatch in a dialog box. Depending on the settings in the strategy profile used, this is
the start date or the end date for dispatching.
In backward scheduling, note the following: If the capacity offer is not sufficient and the operations must be
dispatched in the past, dispatching terminates and does not dispatch the operations.
Related Information
Use
You can use this action code to deallocate orders that have a pool ID collectively. This means you can
deallocate by group.
Procedure
Selection
Result:
Result of Deallocation
Tip
Dispatching and deallocation of pools is also possible for more than one order pool at a time. It is also
possible to use background processing. Program /LMPC/HJPT Background Processing [page 23]
This action code can also be used to deallocate two-step order pools. If two-step planning is planned
according to the sequence of the Customizing table, item numbers are assigned for the semifinished
material orders. This function deletes the item numbers during deallocation. S_EPBKFG Two-Step
Dispatching with Pool ID [page 270]
The function for two-step planning with pool ID, also known as the combined planning of semifinished and
finished products, consists of two action codes:
In the first step, a pool of semifinished and finished product orders is created, using the action code S_PBLKFG.
In the second step, you use the action code S_EPBKFG to schedule the previously formed pool.
Tip
This type of planning is highly complex and has a large number of setting options. Therefore, it is
recommended that you commission consulting support for the implementation of this action code.
This action code is used to create an order pool of orders whose materials are connected via the BOM.
The action codes S_6_PBFG and S_6_PFGB are variants of the action code S_PBLKG that are configured
differently.
Procedure
Select one or more orders of a semifinished product in the LMPC ALV Grid.
You then execute the action code for forming the order pool (S_PBLKFG).
• Check if the selected orders have already been dispatched. Termination if this is not allowed by the
parameter settings.
• Check whether the orders have already been assigned to a pool. Termination or removal of the orders with
pool ID from the selection, depending on the parameter settings of the parameter SELCORR.
• If adding to a pool via the parameter SELCORR is allowed, check whether all selected operations contain a
maximum of one pool ID. Different pool IDs are not allowed in the selection. Termination if this condition
has been violated.
• Check whether the orders all have the same material number. Termination if this condition is not met.
• If adding to a pool is activated via the parameter SELCORR and an order pool is available in the selection, it
is checked whether all orders of the order pool that belong to this material have been selected. If not, the
missing orders for this material are added to the selection. This is necessary so that the quantities of the
semifinished material of a pool can be correctly assigned to the quantities of the finished material.
• Collect all orders that use this material as input and are open in the HJPT planning table for the orders of
the semifinished product using the BOM information. Only orders that do not have a pool ID and have not
yet been dispatched are selected. You can use parameter settings to allow orders that have already been
dispatched and orders with the same pool ID as in the selection.
• Use the sort criteria from Customizing to sort the orders found, if criteria exist.
Then the popup window for selecting the finished goods orders for pool formation is displayed.
You can use the layout settings of the ALV Grid to select the fields that are to be displayed. The ALV Grid
contains all fields of the LMPC ALV Grid.
• Checkbox
• Input quantity
• Related quantity
• Cumulated related quantity
• Unit of related quantity
The layout also contains the layout groups of the LMPC ALV Grid to facilitate selection of the fields. Users can
create and save their own profiles.
For this ALV Grid there is an additional group for the fields of the pool formation.
Users can use the checkboxes in the first column of the ALV Grid to select the orders that are to be grouped in a
pool.
Selection of Orders
The input quantity column returns the quantity that originates from the selected orders. In this example, this is
the cumulated quantity of the orders of the semifinished material.
The "Related Quantity" column returns the quantity that comes from the order in question in the popup
window. In this example, this is the requirement quantity of semifinished materials that this order requires for
the production of the finished product.
The "Cumulated Related Quantity" column is the sum from the top to the bottom of the related quantity via the
orders. This makes it easier to select the orders for pool formation. The user can easily see which orders he
needs to add for the input quantity to be the same as the related quantity.
The user chooses the OK button at the bottom right of the popup window to confirm the selection.
All orders that were selected using the selection field for creating the order pool are now combined into one
order pool.
If a pool ID already exists in one of the orders in the selection, this is transferred to all orders. If a pool ID does
not yet exist, a new pool ID is generated and entered in the selected orders.
As in the single-level pool function, the new pool ID is read from the number range that is maintained in the
overall profile. If no number range is maintained there, a random GUID is generated. The pool ID is not intended
to be assigned manually.
Finally, the system selects the operations of the orders that were grouped in a pool in the LMPC ALV Grid.
Operations for which the pool ID was removed are not selected.
The pool ID is entered in simulation mode. Only after planning has been saved in the HJPT planning table are
the values actually stored in the database tables.
In this example, the pool formation was performed from the semifinished product to the finished product.
Pool formation is also possible in the opposite direction, from the finished product to the semifinished product.
This can be controlled using a parameter.
It is possible to automate the combination of the orders. It can be set that the orders are automatically selected
and added by the logic. In this case, the system no longer displays a popup window. This is semi-automatic
execution.
Full automation using background processing, such as a planning job at night, is also possible. Grouping
settings can be used to control the grouping of orders in order pools. This is similar to the automatic pool
formation of the action code S_POOLA. Program /LMPC/HJPT Background Processing [page 23]
For details on the configuration options, see the LMPC Configuration Guide.
Related Information
Use
You can use this action code to dispatch an order pool that was created with the function “Pool Formation with
BOM Information” (S_PBLKFG).
This order pool consists of orders that are used to produce materials that are linked to one another through the
bill of material. For example, these are manufacturing orders of a semifinished material that are included in the
manufacturing orders of a finished product.
The action codes S_6_2NPA and S_6_2NPG are variants of the action code S_EPBKFG with other settings.
Procedure
Selection of Operations
Check Routines
Sorting
• No Setting: If no sorting is set, the sequence of the selected operations of the semifinished material in the
ALV Grid specifies the processing sequence of the order pools.
The operations of the finished goods are read from the pool of all operations for the respective pool ID. If no
sorting is set, the operations of the finished goods are processed in the sequence of the raw data, which is
sorted by order number.
• Parameter SRTFLD: You can use the parameter SRTFLD to sort the data records easily. The operations
are sorted according to the specified criteria before processing. The sequence in which the selected
order pools are processed results from the sorting of the operations of the semifinished materials. The
Tip
For example, if you set the earliest start date (field FSTAD_KB) and the earliest start time
(field STAU_KB) of the capacity requirements as sort fields, the operations are dispatched in the
chronological sequence that they had before the function was processed.
Sorting according to the times of the capacity requirements is recommended if you have put the
operations into a specific sequence before scheduling and this sequence is to be retained when the
operations are rescheduled.
• Parameter EPTBSQ: If the parameter EPTBSQ is activated, the order pools are sorted according to
a sequence that is specified using Customizing tables. The sequence is specified here using material
numbers or material groups. For details on sequencing, see the section on maintaining the sequence for
2-step dispatching.
M07 Transaction /LMPC/EPBKFG_CUST: Dispatching Sequence Two-Step Dispatching
S_EPBKFG Configuration: Two-Step Dispatching
When sorting with parameter EPTBSQ, a sequence number is assigned for the operations of the
semifinished materials. The sequence number is displayed in field PLSEQBFG_AX (group of HJPT help
fields). This number consists of two numbers, separated by a forward slash. Example: 005/008. The
first number is the sequence number of the data record from Customizing to which this order pool was
assigned. The second number represents the total number of entries in Customizing for this work center
and plant. The sequence is read as follows: The order pool belongs to entry number 5 of 8 entries.
The sequence number is saved with reference to the dispatched operation since dispatching takes place
at operation level (no saving at order level). When you deallocate an order pool using the function for
deallocating order pools, this number is deleted. S_APSELP Deallocate with Pool ID [page 264]
Deallocating
• If operations of the orders have already been dispatched, these are deallocated. This enables orders that
have already been dispatched to be rescheduled.
• First, the semifinished products of the first order pool are dispatched. The start time for the semifinished
products can be defined using settings of the strategy profile and parameters.
• Definition of the start time using the strategy profile without further parameters:
• Earliest point in time: Dispatching uses the strategy profile, from the Customizing parameter STRBLK.
If no strategy profile has been transferred, dispatching uses the strategy profile for single planning
from the HJPT overall profile. If the “Dispatching at earliest point in time” checkbox is set in the
strategy profile used, the orders of the semifinished product are dispatched as early as possible and
therefore also the entire order pool is dispatched as early as possible. The insertion of operations must
not be activated for this use case.
• Currently scheduled time: If the checkmark for "Dispatching at earliest point in time" is not activated,
dispatching takes place at the time at which the operation is currently scheduled. For newly generated
operations, this is the date from the MRP run.
Configuration of Strategy Profiles
• Definition of the start time using parameters:
When using parameters, the checkbox for dispatching at the earliest point in time must not be set in the
strategy profile.
• After dispatching the semifinished product orders, the dispatching date/time for the finished goods orders
is determined. You have two options:
• End-Start-Relationship (semifinished to finished goods): Parameter DISPREL, value ENST or
initial/not set. The operation dispatched as the last semifinished material order in terms of time is
determined. The end time is determined from this operation. This is where dispatching starts for the
operations of the finished goods.
If several order pools are dispatched one after the other, the first operation of the semifinished product
orders of the subsequent order pool starts directly after the end of the operations of the finished
products of the preceding order pool.
• Start-Start-Relationship (semifinished to finished goods): Parameter DISPREL, value STST. The
order dispatched as the last semifinished material order in terms of time is determined. The start
time is determined from this order. This is where dispatching starts for the associated finished goods.
Dispatching therefore takes place in parallel.
Dispatching Result
The semifinished material orders have been dispatched as early as possible. The finished goods orders start at
the end of the last semifinished material order of the order pool.
Inserting an order pool into existing planning could result in shift effects for order pools already dispatched. To
avoid these effects, parameter RESCFOL was developed. If the parameter RESCFOL is set, after a pool has been
dispatched the system checks whether there are dispatched pools that are after the newly dispatched pool in
terms of time. These will all be rescheduled.
Tip
The action code can also be configured for background processing using the program /LMPC/HJPT.
Program /LMPC/HJPT Background Processing [page 23].
• The function can only be used for precisely the use cases described here. The function cannot be used
for other cases that are not described here.
• Individual capacities are not supported.
• There are basically two different variants for dispatching:
• The operations of the semifinished materials of an order pool start in parallel with the operations of
the finished products of an order pool.
• The operations of the semifinished product of an order pool start first and are processed
completely. The operations of the finished materials of an order pool do not start until all
operations of the semifinished material for this pool have been completed. The production of the
finished materials therefore starts at the end of the last operation of the semifinished materials of
the order pool.
• Other planning situations of the operations, such as starting the finished products offset while the
production of semifinished products is still running, are not possible. Overlapping of orders is not
supported.
• It is not possible to plan operations with suboperations.
• The planning of operations only works with the following data configuration:
• All semifinished materials of an order pool have the same material number. The finished products
of an order pool can have different material numbers.
• All operations of the semifinished materials of an order pool are dispatched to the same work
center.
• All operations of the finished materials of an order pool are dispatched to a different work center
than the semifinished materials.
• The operations of the finished materials of an order pool are also all dispatched to the same work
center.
• The orders of the semifinished material each consist of only one operation. It is not possible to use
this function to plan orders that have two or more operations that are in different work centers. The
same applies to all operations of the finished material for an order pool.
Related Information
If context profile and action code are configured accordingly, two-level planning can be performed using drag
and drop in the graphical planning chart.
The logic for two-level planning is only used for dispatching or rescheduling. When you deallocate
operations or when you move operations in the order pool, the logic is not run. When deallocating and
moving, the standard logic for dragging and dropping is executed.
The function starts a check routine. When dragging and dropping, the system checks whether the moved
operation is an operation with a pool ID. If the operation has a pool ID, an additional check is carried out to
determine whether the order pool contains orders for semifinished and finished goods.
If the moved operation does not have a pool ID or if it is not possible to create a relationship between
semifinished and finished goods, processing is not carried out in this function and the operation is transferred
to the standard planning function for dragging and dropping. The standard logic for dragging and dropping
then runs.
You can use the configuration to adjust this check routine (parameter GR_BKFGN). If the check is active, the
entire processing terminates if no link between semifinished and finished products could be created for orders
with a pool ID. The check ensures that only operations with a pool ID are moved for which the order pool
contains orders of semifinished and finished goods.
1. A semifinished product order operation of a pool is dispatched or rescheduled using drag and drop.
When rescheduling, the operation can be moved to the same capacity. But it can also be rescheduled from
one resource to another resource's capacity.
Important: Moving operations always calculates the time by which a task shifts. The whole order pool will
also be shifted by this time.
This is independent of whether the operation is moved to the same capacity or to a capacity of another
resource. So if you want to move an operation to another capacity, it is sufficient to move it up or down in
the graphical planning chart.
The time at which it is then dispatched depends on the start time of the order pool, the sequence of the
operations, and whether operations of the same pool are already in the capacity to which it is dragged.
If there are multiple semifinished product operations in an order pool, the sequence of these operations
cannot be changed using drag and drop.
You use drag and drop to specify only the time shift and the capacity for the operation. The sequence of the
operations is determined by the sorting of the operations, which is set via the parameter SORTFLD.
Result:
The entire pool is rescheduled.
If an operation is moved to a capacity of another resource, only that operation is rescheduled to the new
resource. The other operations of the order pool remain in their existing resources and are shifted only in
terms of time.
All semifinished goods operations are given the same start time for the dispatching function.
If an order pool consists of several semifinished goods order operations, when an operation is shifted to
another resource, the operations will be parallel in time, if no relationships are maintained between the
orders, since they all have the same start time.
The operations on the same capacity will be in succession because parallel dispatching is not possible on
the same capacity.
If finished goods orders have been moved individually, these changes will be lost. The finished goods are
dispatched or rescheduled according to the set logic.
2. A finished goods order operation of a dispatched pool is rescheduled/moved
Restriction
Using drag and drop to dispatch an order pool between other order pools that have been dispatched is not
supported. When using drag and drop, the subsequent order pools are not rescheduled or scheduled. The
insertion of pools into an existing production plan can result in the operations of a subsequent pool being
moved in such a way that the start dates of the semifinished products and finished products are no longer
correct.
Note
Also note the restrictions in the unit on two-level dispatching. These are also valid. S_EPBKFG Two-Step
Dispatching with Pool ID [page 270]
Since an order often supplies several other orders in multilevel hierarchies of orders, the pool ID cannot be
used in a multilevel scenario to determine a dispatching hierarchy across multiple levels.
If you want to plan orders across several low-level codes, use multilevel planning via order relations.
Remember
• Although the pool ID cannot be used to define a scheduling hierarchy over several levels, it can be
used to combine orders on one level into groups. In this way, groups of orders can be formed that are
simultaneously transferred to the dispatching function to be dispatched in a block. A description of this
can be found in action code S_EPML. S_EPML Multilevel Planning [page 286]
• The pool ID can also be used to form firmed order relations. S_ORFIRM, S_ORFREL Firm Order
Relations and Undo Firming [page 279]
For a description of the parallel dispatching of operations with a pool ID, see the section on parallel planning in
the HJPT planning table.
The rule-based planning function can also be used to dispatch operations with a pool ID in parallel.
It is often the case that a product is manufactured in several levels. Semifinished products are produced from
the output materials, which are then included in the production of the finished product.
For production, orders are created at each stage for each intermediate and end material.
In the LMPC HJPT planning table, the order connections are determined using FIFO (first-in-first-out) logic via
the MD04 data. These are updated dynamically each time data is changed.
However, it is also possible for the planner to define the links between the orders in order to establish links
between the orders and their predecessors and successors.
In the LMPC HJPT planning table, several elements exist that can be used to read the order relations using the
low-level codes.
Using the list of the order relations, you can use the low-level codes to display the production route with all
upstream and downstream elements, starting from an order.
The links to the orders in the graphical part of the HJPT planning table can also be used to read the
connections.
In the ALV Grid, you can display a dropdown field that contains the current assigned dependent requirements
for each order.
The field is called Dependent Requirements Order Relations and is in the layout group of the MD04 data.
The field is filled using the data provider /LMPC/CL_DP_BED. Data Provider /LMPC/CL_DP_BED LMPC
Requirement Date and Order Relations [page 401]
There are two functions for planning the order operations via the low-level codes that can be adapted to the
planning requirements using extensive configuration options.
• S_ORFIRM, S_ORFREL Firm Order Relations and Undo Firming [page 279]
• S_EPML Multilevel Planning [page 286]
You can use the LMPC elements for multilevel planning to ensure that:
• The planner has an overview of delays, bottlenecks, or free production capacities at the respective low-
level codes at all times.
• Dispatching is such that preliminary products are completed on time before the production of the finished
materials is started.
• The correct quantity of preliminary product that is required for the production of the finished product is
produced. This can help to reduce stockholding.
Use
In the HJPT planning table, "order relations" are the relationships between the orders across low-level codes.
For order relations, the (partial) quantity of one or more orders of a semifinished material is assigned to
the requirement quantity of the components of one or more orders of a finished material. The relation is
determined via the material BOM. The relationships can run on multiple levels via all low-level codes.
The HJPT planning table calculates the order relations using the material BOMs dynamically according to
the first-in-first-out principle and displays these in the list of the order relations, in the ALV Grid field of the
dependent requirements, and as lines between orders in the graphic.
However, you may want certain orders of a component material to be firmly assigned to higher-level orders
independently of first-in-first-out.
You can use the action code for firming order relations (S_ORFIRM) to establish precisely this firm
relation between orders.
The firmed quantities of these orders can then no longer be used to create relations to other orders.
In multilevel dispatching, these firm relations are also taken into account to determine the correct sequence of
the orders and their dispatching dates. (S_EPML Multilevel Planning [page 286])
You can use the action code for undoing the firm order relations (S_ORFREL) to undo the firm
relations.
Tip
During the order conversion of planned to production or process orders, the order relations are retained.
Restriction
• The firming of the order relation works only between orders. It is not possible to firm the warehouse
stock or a sales order.
• Firm relationships can only be formed between operations that are open in the HJPT planning table.
Caution
The firming of order relations affects the "available quantity" field for an order in the ALV Grid. When the
order is received, if it is linked to a dependent requirement, the linked quantity is not added to the available
quantity because the quantity has already been assigned.
On the other hand, when the dependent requirement retires the quantity, this quantity is then subtracted
from the outgoing quantity and reduced so that the dependent requirement only consumes the quantity
that has not yet been firmed.
Prerequisites
To firm using a suggestion list, the data provider must be active for the BOMs and the corresponding materials
must be displayed in the BOM data so that they are found.
Procedure
• Selection of orders
• Automatic firming
• Firming using suggestion list
The action code can also only be used for the following actions:
Application Example:
If the action code is set so that it only displays the existing order relations, then the system determines
all firmed order relations for the selected operations forwards towards the finished material and backwards
towards the starting material. This is displayed in a popup window.
If the action code is set in such a way that the system searches for relationships between the selected
operations, the BOMs of the orders are evaluated and relationships are created. The system searches for
components for an order with a specific material. These quantities are then linked together.
The user can now decide whether these relationships are to be firmed. You can use the checkbox in the first
column to select or deselect entries.
The maximum possible quantity of an order for the component material is always linked to the higher-level
order. It is not possible to change the quantity.
You can then see the firmed relationships in the ALV Grid field of the "dependent requirements order relations"
and in the list of the order relations.
This field shows all dependent requirements that are assigned to an order. These can be orders, planned
independent requirements, and sales orders.
In the list of order relations, there is a column that shows whether the linked quantities are firmed or not
firmed.
If the action code is set to display a selection list, the system searches for suitable orders for each operation
selected. Depending on the setting, the system searches either backwards in the direction of the source
material only, forwards in the direction of the finished material only, or in both directions. The system always
searches for each selected operation.
For each order selected, the system displays all the orders that can be linked.
Since the relations can be over several levels depending on the layout of the BOMs, a dialog box appears for
each level.
In the first column of the window, you can specify which quantity is to be linked firmly. The system generates a
proposal.
In addition to the fields listed, all fields of the ALV Grid of the HJPT planning table are also available.
You can use the layout settings to define the sequence of the fields and to show and hide fields.
If more than one component can be firmed for each order, the system first displays all orders for the first
component in the window and then all orders for the next component, and so on.
If an order is already fully firmed, it is no longer available in the selection list. Existing firmings are also no
longer displayed in the selection list.
The system then displays another window that displays the selected firmed relationships.
The generated firmings can be checked. You can use the selection field to deselect individual elements. The
firmed order relations are created via the confirmation of the window.
If the action code is set to automatic determination of the connections, the system searches for suitable
orders for the selected operations using the BOM. In this way, the number of orders is linked in a forward and
downstream process until the total order quantity is served.
Depending on the action code setting, the search can only be performed backwards in the direction of the
starting material, or only forwards in the direction of the finished material, or in both directions.
The logic searches for suitable orders here, in the same way as for the list of the order relations, using FIFO
(first-in-first-out) logic. The orders that are linked forwards and backwards can be read beforehand using the
list of the order relations, since the same logic is applied here. (List of Order Relations [page 72])
If it is not deactivated in Customizing, the popup window that displays the relationships to be created opens
before the installation.
Consistency check
A consistency check is performed automatically after each installation. The system checks whether the related
quantities correspond to the maximum possible quantities.
The system checks all new relationships to be created and all existing relationships in the system.
If an overbooking of the quantities is determined, the data records that are too much are offered for deletion.
New data records take precedence over old data records. This means that the older data record is deleted if
there is a conflict.
The underlying idea is that a user can create new data records without first having to delete old data records.
The consistency check automatically deletes the data for the user.
If the user does not want certain data records to be deleted, they can use the checkbox at the beginning of the
line to deselect those data records.
When you confirm, the selected firmed relationships with errors are deleted.
Resolving firmed order relations works in the same way as creating these.
Selection
Depending on the logic you set, the system searches for the firmed order relations either forwards and
backwards, or only forwards, or only backwards.
A dialog box with the firmed order relations appears. The user can select which firmed relationships are to be
resolved.
Caution
• If the order quantity in the order is changed, this information is not passed on to the firmed order
relations. Therefore, when the order quantity is changed, the firmings must be adjusted.
• The logic of the automatic creation and the logic for the selection can be used to resolve the firming.
The logic for the selection list cannot be used.
Tip
• The creation and resolving of the firmed order relations both take place in simulation mode. The
firmings are only written to the database when you save.
• If you do not want to check the firmings to be created and firmings to be resolved, you can deactivate
the dialog box in Customizing.
• You can also create the firmed order relations in the background using a job. Program /LMPC/HJPT
Background Processing [page 23]
Restriction
The firming of order relations does not support co-production. If orders use the co-products or by-products
as consumable materials, the links are only generated in the direction from the finished material to the
source material. In the other direction with the order of the co-product as the starting point in the direction
of the consumption of the co-products or by-products, the links are not generated.
Related Information
Use
You can use the action code for multilevel dispatching (S_EPML) to dispatch operations across
multiple low-level codes in such a way that preliminary products are completed before finished products are
produced.
The logic uses the logic of the order relations to search for the connected orders for each selected operation.
Depending on the setting, the logic searches either backwards from the finished product in the direction of the
raw material, or forwards from the raw material in the direction of the finished product, or in both directions
(List of Order Relations [page 72]).
The order relations are usually created dynamically according to first-in-first-out logic via the material BOM.
However, the system also considers the firmed order relations that can be created by the user. The firmed
order relations override the first-in-first-out logic. (S_ORFIRM, S_ORFREL Firm Order Relations and Undo
Firming [page 279])
If one of the selected operations belongs to a pool ID and the replenishment of the selection with pool ID orders
is switched on via a parameter, all operations for this pool ID are included in the selection.
Restriction
Only operations and orders that are open in the HJPT planning table are determined for the action code,
since only these operations can be planned. If all operations of an order are to be put into a correct
sequence, all operations of this order must be opened in the planning table. The function cannot take into
account any operations that are not open.
In the list of order relations, you can see a list of related orders across the low-level codes.
You want to dispatch this list completely in such a way that all operations at a lower low-level code are already
completed before production of the next order is started at the next highest low-level code.
In this example, an operation of the order is selected at the highest low-level code.
If you have defined that the dispatching start is to be defined manually, a dialog box for entering the start time
appears.
It may also be the case that the start time is determined from the first selected operation. Or, that dispatching
should take place as early as possible. In these cases, the dialog box would not appear.
In the next step, the logic determines the order relations across all low-level codes. For action code S_EPML,
the search is always performed forwards in the direction of the finished product and backwards in the direction
of the raw material. In this case, the system does not find a further order when looking forwards because the
order has already been selected with the finished product. The action code can be configured in such a way
that the determination is carried out forwards only or backwards only.
You can define that only orders of firmed relationships are taken into account during determination. This
means that you can only dispatch the orders that were previously linked together.
The operations are planned from raw material to finished material. Depending on which dispatching logic is
set, either the entered start time or the start time of the first selected order is used. If logic 1 is used, the
start time is used as the dispatching time for the operation that must be dispatched as the first operation in
the order relation sequence. Dispatching takes place forwards, starting with the first operation in the network
determined. If logic 2 is used, the start time is considered to be the start time for the first operation of the first
selected order. Dispatching takes place backwards for all orders before the selected order and forwards for all
orders from the selected order onwards.
In logic 2, the system first checks whether it is possible to dispatch the operations so that the first selected
operation can be positioned on the desired date.
If this is not possible because there is not enough available capacity available and, according to the calculation,
an operation had to be dispatched in the past, a warning is displayed. It is queried whether dispatching can be
as early as possible instead.
If this SAP Note is confirmed, dispatching takes place at the earliest possible for all orders. If the note is not
confirmed, the function terminates without dispatching.
In this example, there is sufficient capacity. Dispatching takes place on the desired date.
In the ALV Grid, you can see that the first selected operation has been dispatched for the desired start time:
In the graphical part of the HJPT planning table, you can see the dispatching sequence for the different work
centers.
Remember
• Multiple operations can be selected. In this case, the relationships are determined for each selected
order.
• The logic works at the level of order numbers. When dispatching, all open operations of an order are
therefore always dispatched. If operations of an order are not open in the planning table, they cannot
be taken into account.
• Orders that have already been dispatched are rescheduled so that the sequence of the orders is
consistent.
• The action codes can also be used for dispatching in the background in a nightly planning run.
Program /LMPC/HJPT Background Processing [page 23]
• It is possible to process operations with pool IDs. If the corresponding parameter is set in the settings,
it is sufficient to select one operation from an order pool. All operations for the same pool are
automatically included in the selection. The pool ID does not have any other functions. No order
relations can be created with the pool ID. To create firm relations, you must use the function for firming
the order relations.
• You can set whether the capacity requirements are to be planned without gaps or whether additional
times are to be taken into account. If planning is carried out without gaps, the operations are
dispatched across the low-level codes in such a way that the first operation of an order with a setup
directly follows the end of the teardown of the last operation of the preceding order. In this case,
the logic assumes that components are immediately available for further processing at the end of
production. The only capacity-relevant times are setup, processing, and teardown.
However, if additional times are to be taken into account, production of the order cannot start until all
its components are available for MRP.
Not all times that can be set in the master data are taken into account in the logic. Only the queue
time before setup, the float after production from the scheduling margin key, and the goods receipt
Restriction
• Only operations of orders that are open in the HJPT planning table are dispatched. If a correct
sequence of all operations of an order is to be reached, all operations of an order must be open in
the planning table. Operations that are not open cannot be taken into account when dispatching dates
are calculated.
• The logic executes a capacity check. It is assumed that all operations of orders are sequential. It is not
planned to process parallel operations.
• The logic is not suitable for orders with suboperations.
• No partial quantities are taken into account. If only part of an order quantity is required for the
subsequent order, the system waits until the entire order has been produced before starting to
dispatch the next order in the next step.
• The MRP availability of the components for subsequent orders is only determined via the production
of materials using orders. The system does not check the availability of materials in the warehouse or
check against the replenishment lead time in the sense of an ATP check.
• Multilevel planning with co-production is only partially supported. If orders use the co-products or
by-products of co-production as consumable materials, the links in the direction from the finished
material to the source material can be generated. However, the links cannot be generated in the other
direction, with the order of the co-product as the starting point in the direction of the consumption of
the co-products.
• This function is a finite scheduling function with which operations can be put into a logical sequence
across multiple low-level codes, depending on the available capacity. This logic does not reflect the
logic of the MRP run.
• This logic does not resolve the displayed conflicts in the list of order relations.
• The data records are processed sequentially using a heuristic. There is no mathematical optimization.
Related Information
There is a special planning scenario for the HJPT planning table for planning in connection with the HJPT
firming indicator.
Operations are assigned the HJPT firming indicator and can no longer be rescheduled. All other operations that
do not have this HJPT firming indicator can be rescheduled. For the planning activities, HJPT fixed operations
are treated like breaks. During scheduling, you place the non-fixed operations over the HJPT fixed operations.
The following action codes can be used for this special planning methodology:
Use
You can use the action code (S_FIX) to firm order operations of planned, production, and process
orders.
You can use the action code (S_FIXE) to undo the firming.
Remember
The changes are made in simulation mode. The changes are not written to the database until you save.
Customizing can be used to determine which of the possible firming types are used when executing the action
code. S_FIX & S_FIXE Configuration: Set Firming and Remove Firming
Procedure
The firming indicator of planned orders can be displayed in the field AUFFX_PA in the LMPC planning table.
Selection of Orders
Result:
Result
If you open the order header of a planned order, the firming indicator is also set there.
You can use the action code (S_FIXE) to undo the firming.
If the parameter CHK_BOMF is set in the settings for the action code, the firming indicator cannot be removed if
the firming indicator is set for the components in the planned order.
Caution
Special feature of planned orders: When you fix operations of a planned order, the entire planned order is
firmed. Individual operations of planned orders cannot be firmed. The firming takes place at order header
level.
If you remove the firming indicator for a planned order, the order is automatically deallocated.
The operations of this order can always be dispatched and deallocated, regardless of whether a planned
order is firmed. The firming indicator does not influence the planning activities.
It only prevents change by means of an MRP run. The MRP run ignores firmed planned orders. They will
then no longer be changed.
For the production order, the LMPC user status 'FIX' is set or removed in the operation of the production order.
The firming takes place at operation level.
Tip
If you want to see the status "FIX" in the ALV Grid, you can set this via the status query, which can be
defined in LMPC Customizing. Then the status is written to one of the status fields. The prerequisite for
this is the configuration of a user status schema for the order operation and the existence of a status with
authorization key FIX. This status is set or removed with this action.
Caution
However, dispatched production order operations cannot be deallocated. The status "FIX" prevents
deallocation of these order operations. They can no longer be rescheduled to other dates.
Process order operations are firmed, in the same way as in production orders, via the user status within the
order operation. Since it is not possible to use the process order settings to maintain a default status profile for
operations, you can use the action code parameter STSMA to supply a default status profile for process orders.
This status profile will be applied to the operation by the action code if the operation does not already have
a status profile. The status profile used for firming process orders must be valid for operations in the process
industry. The behavior for planning activities is similar to the behavior for production orders.
The LMPC HJPT firming indicator is only an indicator relating to an operation of an order. It is an indicator that
can be set and removed. This can be done separately or in connection with the standard SAP fixing.
Without further settings, the indicator has no effect on operations of orders and is used only to indicate
operations.
• You can use these fields to see when and by which user the LMPC HJPT firming was changed for the first
time or most recently in an operation.
• In connection with the Action Code Limits [page 87], the execution of certain functions can be prevented.
For example, you can specify that it is no longer possible to dispatch or deallocate operations that have the
HJPT firming indicator.
• The bars of the operations in the graphic and the data records in the ALV Grid can be colored depending on
the contents of the fields.
Coloring of Bars of the Bar Chart [page 40]
Coloring the ALV Grid [page 58]
• The function for dispatching using fixed operations uses the LMPC HJPT firming indicator. S_EPFX
Dispatching Across Firmed Operations [page 295]
• Function S_RESCPF uses the LMPC HJPT firming indicator. S_RESCPF Reschedule: HJPT Firming
Indicator and Parallel Planning with Pool ID [page 300]
Remember
• For the data for the LMPC HJPT firming indicator to be display, the data provider /LMPC/
CL_DP_OP_ADD must be active. Data Provider /LMPC/CL_DP_OP_ADD Additional Data for
Operations [page 442]
• The data for the LMPC HJPT firming indicator is stored for one year and is then deleted automatically.
S_FIX and S_FIXE can also be used in background processing. Program /LMPC/HJPT Background Processing
[page 23]
Use
In the HJPT planning table, you can set an HJPT firming indicator for operations of orders. If this indicator is
set and these operations have been dispatched, this is the information for the planning function S_EPFX that
these operations must never be rescheduled. They must not be moved in time and must remain fixed in their
position.
If you dispatch operations without the HJPT fixing indicator with S_EPFX, the planning function S_EPFX
creates the operations to be dispatched in parallel to the operations that have the HJPT fixing indicator as if
these operations were breaks. They lay across the HJPT fixed operations as it were.
The operations with HJPT firming indicators are treated like breaks during dispatching, that is, as areas in
planning in which no capacity offer is available.
As a result, an operation that is that is above an HJPT-fixed operation becomes longer. Its capacity requirement
remains unchanged.
This function enables you to create a production plan without gaps and to fulfill the condition that individual
operations are fixed to specific dates from the outset.
Technical explanation for planning: When planning is executed, the HJPT-fixed operations are deallocated as a
first step, and their times are defined as breaks. The operations that are to be dispatched are then dispatched
using the standard function. In the last step, the defined breaks are removed and the fixed operations are
re-dispatched infinitely to the removed break times. With this method, the operations that have the HJPT
firming indicator remain unchanged in their positions.
Caution
This function cannot be used in conjunction with other HJPT planning functions. If you reschedule an
operation that was dispatched with this function using a different HJPT planning function, this special
planning situation will be resolved. Conversely, this means that you must always use the function S_EPFX
to dispatch and reschedule operations that must fulfill this special scenario. Various setting options have
been created to enable you to plan extensively with this function.
You can use this function to dispatch planned orders, production orders, and process orders.
This function can also be used in background processing. Program /LMPC/HJPT Background Processing
[page 23]
The function for restricting action codes also works with this planning function. Both for planning using the AVL
Grid and for planning using drag and drop. Action Code Limits [page 87]
Procedure
Two operations have already been dispatched to the work center. These operations have the HJPT firming
indicator.
If you have configured manual planning, the system displays a popup window for entering a start time.
In this case, enter the desired start time and confirm it.
If you have set another dispatching, for example, dispatching at the earliest point in time, no window appears.
Dispatching is executed.
Note
If the selection contains operations that contain the HJPT firming indicator, these operations are removed
from the pool of selected operations. Operations that have the HJPT firming indicator cannot be
dispatched or rescheduled.
Planning result
Using the graphic, you can see that the operation to be newly dispatched has been set over the operations
that have the HJPT firming indicator. The operations with the HJPT firming indicator remain unchanged in their
positions. The new operation to be dispatched is parallel. Its duration has been adjusted.
Note
Since the HJPT-fixed operations are treated like breaks during dispatching, only the duration of the
operation that is placed over these operations is extended. Its capacity requirement remains unchanged.
This means there are no overloads. The capacity utilization of the work center is correct.
Select an operation that has not yet been dispatched and that does not have an HJPT firming indicator.
Drag this operation from the chart for the dispatched operations to the dispatched operations that have an
HJPT firming indicator.
It is also possible to reschedule operations that have already been dispatched using drag and drop. For this,
an operation that has already been dispatched and does not have an HJPT firming indicator is dragged over
operations that have the HJPT firming indicator.
It is not possible to use drag and drop to move or deallocate operations that have the HJPT firming indicator.
Remember
To be able to use the function when dragging and dropping in the graphic, it must first be activated for
the graphic. This is done using the Drag & Drop trigger in the capacity planning table. Thus, the standard
function for dispatching is replaced in the graphic using drag and drop. For details on this, see the LMPC
Configuration Guide.
Restriction
An operation that is planned beyond an HJPT-fixed operation must start before the fixed operation. It is not
possible to dispatch an operation in such a way that it starts at the same time as a fixed operation or in
the middle of a fixed operation. HJPT-fixed operations are treated like breaks by this planning function. No
operation can start at the same time as a break or within a break for other planning functions.
Caution
This function only returns correct results if the capacity offer remains unchanged during the entire planning
process. The capacity offer that existed when dispatching the HJPT fixed operations must be exactly the
same capacity offer that is used when dispatching the unfixed operations across the fixed operations. Note
that the HJPT fixed operations are also deallocated once in the planning process and rescheduled infinitely.
If you change the capacity offer, for example, due to a reduction of the capacity offer, dispatching the HJPT
fixed operations to their previously fixed times may not be possible anymore because there is no longer a
capacity offer at these times. They then shift and are dispatched infinitely to the next possible times.
The function requires explanation due to its complexity. If you want to use this function, please request
consulting support from SAP.
Use
This function combines the logics of the planning function for parallel planning with pool ID (S_EPPRLP) and
dispatching using fixed operations (S_EPFX) in one function.
Note
This planning function is a complex planning function for very specific use cases. Before using this function,
you should have familiarized yourself with the planning functions S_EPPRLP and S_EPFX. To implement
this function, it is recommended that you commission consulting support from SAP.
Certain settings must be made in the master data so that this planning function can be used. The settings are
described in the section on parallel planning with several individual capacities. Parallel Planning with Several
Individual Capacities [page 247]
The function is intended for creation in which orders are produced sequentially and in parallel.
You can use this planning function to reschedule operations that have already been dispatched, to adjust the
existing production plan. For example, to update a late production plan.
During rescheduling, the operation sequence is adhered to, operations that are sequential remain in their
sequential order, parallel operations are rescheduled in parallel, and HJPT fixed operations remain in their
positions unchanged. HJPT fixed operations are handled like breaks during planning. Operations without the
HJPT firming indicator lie above the operations with the firming indicator and are therefore extended.
Tip
The function is delivered in a configuration that only reschedules operations. The function can also be set
up in such a way that you dispatch operations.
Procedure
Initial situation: Operations have already been dispatched to one or more work centers. The operations are
sequential and parallel. The parallel operations have a pool ID. Individual operations have the HJPT firming
indicator.
Initial Situation
The start times of the first operations are in the past. The production plan is to be moved into the future.
The selection of operations depends on the settings in Customizing for the function. S_RESCPF Configuration:
Reschedule Parallel Planning and HJPT Firming Indicator
Selection of Operations
The selection is corrected. If there are operations with a pool ID in the selection, the system ensures that all
operations for this pool ID are included in the selection.
Only operations that have already been dispatched are processed. Operations that have not been dispatched
are removed from the selection. With changed parameter settings, this check is omitted and all operations are
processed. This allows deallocated operations to be dispatched.
If the restriction of action codes is set for this action code, the operations in the selection are checked for the
restriction rules.
You can use the action code restriction to remove operations that fulfill certain conditions from the selection.
These operations are then not processed in the planning function. The action code restriction can also be set
in such a way that processing terminates if operations with certain properties are included in the selection. For
details, see the section on restricting action codes. Action Code Limitation
If operations are removed from the selection using the action code restriction, gaps may occur in the
production plan because these operations are not rescheduled. The dispatching sequence can also change
as a result.
Operations of orders that are locked externally cannot be rescheduled. The same applies to operations of
production orders and process orders that have a firming indicator. If there are operations with firming
indicators or external locks in the selection, the function terminates with an error message. This check can be
deactivated using settings in Customizing. S_RESCPF Configuration: Reschedule Parallel Planning and HJPT
Firming Indicator
If the check is deactivated, the externally locked operations and operations with the firming indicator are
removed from the selection and remain in their positions unchanged. This can lead to gaps in the production
plan and to a changed dispatching sequence.
In this example, manual dispatching with specification of a start time has been set.
The system displays a popup for entering the desired start time.
The operations in the selection are rescheduled (as early as possible, or on the chosen start date). They are
scheduled without gaps. Parallel operations with a pool ID remain parallel.
Result:
Result of Rescheduling
The operations were dispatched on the new start date. The parallel operations are still parallel. The operations
with the HJPT firming indicator remained unchanged in their positions, the other operations have been placed
above the fixed operations and became longer.
Note
The operations are transferred to the planning function in the sequence in which they are displayed in the
ALV Grid. If you want to change the sequence of the operations during rescheduling, you can first use drag
and drop to sort the operations in the ALV Grid, and then execute the rescheduling function.
This action code can also be used for dragging and dropping in the graphic.
The settings in Customizing also determine whether only the selected operation with related operations of the
same pool ID is to be planned, or whether all operations that lie after the desired start time for dispatching are
also to be rescheduled.
If subsequent operations are not planned to be rescheduled, the moved operations are only dispatched where
there is sufficient space for them. This does not move operations that have already been dispatched. If
insufficient capacity is available at the desired time, dispatching takes place at the next possible point in time.
If rescheduling of all operations is set, operations that have already been dispatched may be moved. All
operations that are later than the desired start time are included in the selection. All subsequent operations
on the same machine are rescheduled, as long as they are not removed from the selection by the action
code restriction or check for locks. Due to the rescheduling of all subsequent operations, operations can also
be dispatched into gaps that are not sufficiently large because all subsequent operations are shifted. When
rescheduling all operations, all operations that lie after the desired dispatching time are connected without
gaps.
The subsequent operations are included in scheduling only when dispatching or rescheduling. Whereas when
deallocating, only the moving operation and possibly the corresponding operations with the same pool ID are
deallocated. Subsequent operations are not deallocated.
Restriction
• With this function, you can only carry out forward scheduling with or without entering a start time.
Backward scheduling with or without entering an end time is not possible.
• If operations are planned in parallel, the longest operation specifies the end of parallel planning. The
next operations can only be connected at the end date of the longest operation.
• The operations are processed by work center. Cross-work-center connections between several
operations of an order cannot be taken into account.
• In this function, the pool ID is used to plan operations at the same work center in parallel. The pool ID is
not used to plan operations across work centers. The check that adds to the selection operations that
This section provides an overview of the action codes with which orders or order operations are selected in the
SAP LMPC HJPT detailed scheduling planning table.
You can use this action code to sort all selected rows in the ALV Grid of the HJPT planning table upwards to the
top. If, for example, you have clicked on a bar in the capacity chart to select the corresponding operations in the
ALV Grid, you can then move these data records to the top collectively.
You can use the action code to sort the data records for later dispatching.
Initial situation:
Initial Situation
Result:
Result
The data records have been moved to the top of the ALV Grid collectively.
Caution
Sorting is not to be confused with dispatching. Here, only the data records within the ALV Grid are shifted,
similar to a manual drag and drop. This does not have any impact on the planning situation.
Use
You can use the action code S_MALL to set all data records in the ALV Grid to selected.
You can use the action code S_RMALL to undo the selection.
Procedure
Result
Use
You can use the action code S_MAGR to select the corresponding bars in the graphical part of the LMPC
planning table for the data records selected in the ALV Grid. You use the action code S_MAGRD to remove this
selection.
Procedure
Selection of Operations
The bars for the order operations have been highlighted in light blue in the graphical part of the LMPC
planning table.
Use
You can use the action code S_MALV to find the data for the operations that you have selected in the graphical
table in the ALV Grid.
Procedure
Tip
You can use the SHIFT key and mouse click to select multiple bars.
Result
Use
You can use this function to make the capacity requirements of data records from the ALV Grid visible in the
chart for Capacity Load (Categories) [page 67] and in the chart for Capacity Requirements (Categories) [page
69]. The action code has no effect for other charts.
Selection of Operations
Result:
Result
The capacity requirements of the selected operations are displayed as white bars in the chart.
If the chart is not open, it is opened when the action code is executed. The prerequisite for this is that the chart
is defined in Customizing for the HJPT overall profile. When you save the data, the planning table remembers
the position and size of the windows. The window opens in the last opened size and position.
The chart has a function for selecting the orders that are behind the colored bars in the ALV Grid. To do this,
a user clicks on the desired colored bar. However, this selection only works for colored bars. Selection does
not work for white bars. Capacity Load (Categories) [page 67]
Use
You use this action code to determine and select the corresponding data records in the chart of the equipment
check for the selected data records from the ALV Grid of the HJPT planning table. The data records are
assigned using the order number and the operation number. Equipment Check [page 80]
Procedure
Select one or more operations in the ALV Grid of the HJPT planning table.
If the chart is not open, the action code opens the chart.
When you execute the action code, the work center filter in the chart of the equipment check is adjusted:
• If only operations from one work center were selected, the work center filter is set to this work center.
• If operations have been selected from multiple work centers, the work center filter in the equipment check
chart is removed so that all data records can be displayed for the selection.
When you make a selection, the entire row is colored. The selection is retained until a new selection is executed
or until the data is reloaded or saved. The selection is retained so that you can easily recognize the operation
in the equipment check list while searching for a new date for the operation by moving the operation on the
timeline.
Use
This action code is used to select operations in the ALV Grid. You can also sort the data records.
The rules according to which the selection of operations is made are configured using the action code
limitation function.
Processing logic: In the first step, the action code sorts the data records if sorting is configured. In the second
step, all operations are selected. In a third step, the action code restriction is used to filter out the data records
that are not to be selected.
The action code limitation can only be set for this action code in such a way that it filters out operations. It does
not make sense to set a termination of processing for the action code S_SETSEL.
For details on action code limitation, see the description in the separate section on action code limitation.
Action Code Limits [page 87]
If no rules are set for this action code in the action code limitation, the action code selects all operations in the
ALV Grid.
If only sorting is to be performed and no selection is to be made, the rules of the action code restriction must
be set in such a way that all operations are filtered out.
Caution
The operations are selected independently of filters that are set in the ALV Grid. The function always
processes all data records that are loaded. If you have set ALV Grid filters, operations that are not visible to
you may be selected because they are hidden by the ALV Grid filters.
However, the selection is dependent on the LMPC work center filter. With the LMPC work center filter,
only the data records for the selected work center are loaded in the ALV Grid, and these are the only data
records that can be selected. S_WPFLT Work Center Filter [page 381]
Procedure
Initial Situation
Depending on the rules that are set in the action code limitations, the data records are sorted and operations
are selected in the ALV Grid.
Result
This example shows the selection and sorting of operations without a subsequent action code. You can use
a concatenation of action codes to have the selected operations dispatched immediately, for example. The
concatenation with S_SETSEL can also be used in LMPC HJPT background processing. The concatenation
of S_SETSEL with other action codes is described in a separate section of the LMPC documentation.
Concatenation with S_SETSEL [page 389]
Remember
If the action code S_SETSEL is used to sort the data records in the ALV Grid, the action code S_REFR
(refresh data) must not be configured as a subsequent action code. Refreshing the data resets the sorting
of the data records to the sort order set in the layout. As a result, the action code S_SETSEL would have no
effect.
Use
You can use this function to check whether there are operations scheduled at times at which other orders have
already been dispatched.
These operations can then no longer be dispatched at the scheduled times because the capacity intended for
these operations is already in use at these times. The operations must therefore be scheduled for a different
period.
You can execute this action code either automatically when the LMPC planning table is called (trigger PBO) or
manually via a button or the context menu.
The action code compares all dispatched operations with all not dispatched operations.
Restriction
The capacity of the operations is not taken into account. Therefore, this action code is only suitable for use
in which only one work center is open.
Procedure
Tip
Manual execution is described here. The action code can be configured such that it is executed
automatically each time you launch the HJPT planning table. Then, when the planning table is started,
the planner is made aware of the required rescheduling.
• Execute the action code (S_UMTMSG). No operations need to be selected. The logic checks
all operations in the ALV Grid.
• If there are operations that are scheduled at times at which other operations have already been
dispatched, a popup window appears.
The system displays the number of operations that collide with operations already dispatched.
• You can use the button “Details” to display the operation details.
Details
• If a conflict occurs, the fields "Earliest Start Date" and "Latest Start Date" are colored red to indicate the
conflict.
Note
This coloring takes place directly using the action code. If an additional ALV Grid color routine is set for
one of the fields using the data provider, the coloring may be overridden. This is because coloring using
the data providers runs after the action code has been colored.
The action codes described in this section use the program PPIO_ENTRY, which calls mass processing of the
order information system. The program PPIO_ENTRY is the basis for standard SAP transactions for mass
processing, such as COHV, COHVPI, COOIS, and COOISPI.
The program is called from the HJPT planning table. A variant and order numbers are transferred to this
program.
Note
To call the program PPIO_ENTRY, a variant is required that is transferred via parameter. The LMPC delivery
provides you with example variants that you can use as a template for your own variants.
Checking and adjusting program variants is not a service provided by LMPC Consulting Support. An LMPC
consultant can support you when you create variants.
Restriction
The program PPIO_ENTRY is a standard SAP program and cannot be changed or adjusted.
Processing a large number of orders using this program may require a certain amount of runtime. In
particular, it is time consuming to convert planned orders to production orders or process orders. Long
runtimes are not an error, but the result of time-consuming processes running while orders are being
processed in program PPIO_ENTRY.
Note that after mass processing is called, the data is usually reloaded using the chain of the action code
S_RELOAD. This is necessary to load the changed data. This means that the function runs at least as long
as it takes to newly access the planning table.
Related Information
Create Program Variants for the Action Codes of the Order Information System
Use
You use this action code to perform an availability check for the components of orders.
Procedure
Restriction
This log is only displayed for production and process orders. No log can be issued for planned orders.
• After the availability check has been performed, the data is reloaded to load the results of the availability
check to the fields of the ALV Grid.
Tip
• If the availability check for orders has already been performed, you can use action code S_C024 to
access the overview of missing parts for an order. S_CO24 Missing Parts Info System [page 329]
Use
You use this action code to execute the standard availability check of the capacity planning table. This is only
possible for production orders or process orders. It does not work for planned orders. This check does not
make use of mass processing. However, the documentation was inserted at this point due to the thematic link.
The advantage of this check is that it can be executed in simulation mode. Therefore, the current planning
situation does not have to be saved before the check can be executed.
Procedure
• Initial situation:
Situation at Start
An operation of a production order has been dispatched, planning has not yet been saved. According to the
header status, the material availability has not been confirmed.
Tip
If the availability check for orders has already been performed, you can use action code S_C024 to access
the overview of missing parts for an order. S_CO24 Missing Parts Info System [page 329]
Use
When you execute the action code S_ATPPIO, an ATP check is performed for the production or process orders
of the group of selected orders. If the ATP check for the orders finds the required status in the Customizing
settings of the action code, the planned orders of the group of selected orders are converted into production
orders or process orders.
Procedure
Error Message
• If the system does not find any errors, it converts planned orders into production orders or process orders.
Caution
• Afterwards, saving (S_SAVE) or reloading (S_RELOAD) the data is triggered to load the newly generated
orders to the LMPC HJPT detailed scheduling planning board.
• If you execute the action code and there are still changes that have not yet been saved, the system displays
a warning message.
This message indicates that all changes that have not yet been saved are saved.
Restriction
If the selection contains planned orders that have been changed, the function terminates with an error
message. Planned orders that contain changes cannot be converted, but must first be saved.
Related Information
Use
Procedure
Selection of Operations
Conversion Log
• After confirming the log, the data is reloaded automatically, to load the new process orders into the
worklist.
Note
The message text uses the term “production order” instead of “process order”. The log is generated in
the standard SAP system and only read in the LMPC HJPT planning table, therefore, it is not possible to
influence the terms.
Use
You can use the action codes (S_CONVPL) and (S_CONVPP) to convert any
number of planned orders into production orders simultaneously.
Procedure
Selection of Operations
Log
• After confirming the log, the data is reloaded automatically, to load the new production orders into the
worklist.
Use
You can use this action code to display production orders in the production order information system.
Procedure
The action code S_COOISP calls the information system for process orders. The process flow is identical to
that of action code S_COOIS, only for process orders.
Related Information
Use
You can use this function to release production orders. The action code S_6_MFRE is a variant of the action
code S_MFREI for use in the process industry.
Procedure
Selection of Operations
Warning
• The system displays a log of the steps performed.
Log
• The orders have been released. The system sets the status REL in the header of the respective order.
Use
You can use this action code to release at operation level in the production order.
Procedure
Selection of Operations
Warning
• The system displays a log that displays the steps performed.
Log
• The order has been released at operation level. The system status at operation level is “REL Released”.
In Customizing for the SAP LMPC HJPT detailed scheduling planning board, you can create action codes for
calling standard SAP transactions.
The LMPC delivery includes a range of these transactions to reduce the customizing effort for customers.
Note
These are preconfigured settings. It is possible that these settings may need to be adjusted in your system.
For support with changing the configuration, contact LMPC Consulting.
Use
You can use the action code (S_C203) to call the transaction for displaying the master recipe.
Procedure
Selection
Recipe Display
Use
You can use the action code (S_C223_D) to call the transaction for displaying the production
version.
Procedure
Selection
Remember
The data provider /LMPC/CL_DP_PRODVER must be activated for the call to work. Data Provider /LMPC/
CL_DP_PRODVER Data for Production Version [page 443]
Call CM01
Use
You can use the action code (S_CM01), to call the capacity evaluation transaction CM01.
Procedure
Selection of Operation
Use
You can use the action code (S_CO11N) to enter a time ticket for the production order via
transaction CO11N.
Procedure
Selection
Transaction CO11N
You branch to the initial screen for transaction CO11N. Important fields have been prefilled.
Use
You use the action code (S_CO15) to enter confirmations for production orders.
Procedure
Selection
Use
You can use the action code (S_CO24) to call the missing parts info system for production orders
and process orders.
Procedure
Selection of Operations
Result
Use
You can call transaction CO40 using the action code (S_CO40) to convert a planned order selected
in the ALV Grid list into a production order directly in the planning table. This opens production order creation.
Procedure
Operation Selection
Result
Tip
This action code is provided for the individual conversion of planned orders. The mass conversion of
Use
You can use the action code (S_COR5) to release individual process orders.
Procedure
Selection
Transaction COR5
Related Information
Use
You can use the action code (S_COR7) to convert a planned order into a process order.
Procedure
Remember
During the conversion, the system saves automatically. The system saves the planning result so far and
writes it to the database.
Use
You can use these action codes to call the transactions for displaying the work center or the resource of an
order operation.
Procedure
The procedure for the action code (S_CRC3) for displaying the resource is identical.
BOM Display
Use
You can use the action code (S_CS03) to call the transaction for displaying the BOM.
Procedure
Selection
BOM Display
Use
You can use this action code to branch to the transaction IW31 to create maintenance orders. You can use
maintenance orders to reserve capacity in work centers so that no orders can be dispatched at certain times.
Procedure
The plant is transferred to the transaction as an input parameter via the selection.
This takes you to the entry screen for creating a maintenance order.
Remember
Remember to maintain a workload for the maintenance order. Capacity requirements are only generated if
a workload is maintained, which can be processed in the LMPC HJPT planning table.
When you have made all the entries, save your entries. Return to the planning table.
A message appears in the status line, which displays the order number of the newly created order.
After creating a maintenance order, you must load the maintenance order data into the planning table. To do
this, you reload the data or save it.
Result
The operation of the newly created planned order is displayed in the graphic and in the ALV Grid.
Operations of maintenance orders can be dispatched, deallocated, and rescheduled as desired using the LMPC
standard planning functions, such as S_EPSEL, S_APSEL, and S_MANP. Only if the operation of a maintenance
order is dispatched does it occupy the capacity so that no other operations can be dispatched in this period.
Tip
Instead of a maintenance order, you can also create an LMPC cleaning order to reserve the capacity. For
more information, see the documentation on LMPC cleaning orders.
Related Information
Use
You can use this function to display and change maintenance orders for equipment of orders.
This function reads the numbers of the equipment from the production resources/tools for the order
operations. It then calls transaction IW38 and transfers the numbers of the equipment. This pre-populates
the selection screen of the transaction.
The equipment is read for the selected operations. If all equipment for an order is to be read, all operations of
an order must be included in the selection.
Restriction
The data is read from the database. Changes to equipment of production orders in the simulation cannot
be taken into account.
Production resources/tools are not supported in process orders, and therefore neither is equipment.
This function belongs to a planning scenario in which maintenance orders for production resources/tools are
created. For this, the production resources/tools must be defined as equipment. These maintenance orders
are used to determine when a piece of equipment is unavailable. The chart displaying the equipment check is
also part of this topic. Equipment Check [page 80]
Procedure
Selection of Operations
The system displays the selection screen of transaction IW38. The equipment numbers determined from the
selected operations are already pre-populated.
You can use an optional parameter to transfer a transaction variant. You can use this variant to prefill further
settings on the selection screen.
Instead of transaction IW38, you can also use an optional parameter to call transaction IW39 to display the
maintenance orders only.
Note
At the end of processing, the function marks all operations as changed that contain the pieces of
equipment that were used for the call. This marking is required for the equipment check chart. To save
runtime, the equipment check chart only updates the data for changed operations.
Use
You can use the action code (S_MB51) to display the material document list for a material.
Procedure
Transaction MB51
The system displays the material document list for the order material.
Use
Procedure
Select Operation
Display MD04
The system displays the stock/requirements list for the material of the selected ALV Grid row.
Tip
The action code is configured in such a way that it displays the stock/requirements list for the header
material of the selected order. By making adjustments in the settings, the action code can also be
configured in such a way that it displays the stock/requirements list for a component material. Action
Codes for Transaction Calls
Use
Display of the multilevel order report for a planned order, production order, or process order.
Procedure
Select Operation
Order Report
Use
Note
The action code is delivered with an example configuration. This is to be modified by the consultant in the
customer system to suit individual requirements. You can use this example configuration to post the goods
issue for an order.
Procedure
Transaction MIGO
The prefilled transaction MIGO for the goods issue is displayed. The goods issue can be posted.
Related Information
Use
You can use the action code (S_MM03) to display the master data for the material.
Procedure
Tip
The LMPC standard settings delivered define that the material data is also displayed if you double-click or
click the hotspot on the material number in the ALV Grid.
Double-clicking or clicking the hotspot calls the action code S_DBCLCK, which has been configured such
that transaction MM03 is called for the material number.
S_DBCLCK Double-Click and Hotspot Click on Fields in the ALV Grid [page 355]
Use
You can use the action code (S_MMBE) to display the stock for the order material.
Procedure
Selection
The system displays the stock overview for the order material.
Use
You can use the action code (S_QM01) to call transaction QM01 for creating a quality notification
from the LMPC planning table with a batch input table. The settings in Customizing have been selected such
that a quality notification with the notification type "F3: Material error" is created.
Procedure
The system creates a quality notification of notification type F3. The selection screen is skipped and you are
taken to notification creation on the first subscreen.
The following parameters are also transferred from the LMPC planning table:
• Material number
• Plant
• Production order
Restriction
It is only useful to create quality notifications for production orders. If you try to create a quality notification
with reference to a planned order, the system displays an error message.
Error Message
Related Information
Usage
You can use the action code (S_VA03) to display the associated sales order for an order.
The prerequisite for this is that you have activated the data provider for the SD data and that, for the order, a
sales order is displayed in the ALV Grid field for the sales order. Data Provider /LMPC/CL_DP_SD_DATA Sales
Order [page 448]
Procedure
Select an operation in the ALV Grid for which an order number is displayed in the Sales Order field.
Selection
Result:
Tip
If the action code S_DBCLCK is configured accordingly, you can also double-click or hotspot click on the
order number in the ALV Grid to display the sales order S_DBCLCK Double-Click and Hotspot Click on
Fields in the ALV Grid [page 355]
The action code (S_BED2) is an auxiliary function for very rare requirements.
If the data provider /LMPC/CL_DP_BED_2 is used in a system, the requirement dates for the orders are
determined using the logic of transaction MD09 and buffered in a database table. Data Provider /LMPC/
CL_DP_BED_2 Requirement Date According to MD09 Logic [page 406]
Data generation consumes a lot of runtime and takes a certain amount of time. If the determination of the data
is not activated via a regular background job, it is possible that when newly generated orders are first called, the
requirement date data is not available in LMPC for new orders.
You can execute the action code S_BED2 for one or more orders, to generate the data for individual orders
immediately, without having to wait for the result of the data provider.
Restriction
Data determination is not possible for simulative orders. S_CRORD Create Simulative Order [page 135]
Usage
You can use the action code S_BMATXT to change the basic data texts of materials. The basic data text is in the
material master in the additional data.
Procedure
Several basic data texts of materials can be changed with one function call.
Select one or more operations in the ALV Grid of the HJPT planning table.
Selection of Operations
The function reads the materials of the orders from the selected operations.
For each material in the selection, the system displays a dialog box for entering the basic data text.
The title of the window tells you the material for which you are maintaining the basic data text.
If several materials are included in the selection, another window appears for the next material after you
confirm the window.
The confirmation writes the basic data text to the material master.
Remember
The change is made in simulation mode. The data in the relevant material master is only updated if you
then save. If you exit the planning table without saving, the changes will be lost.
When delivered, the function is set up in such a way that the text set is maintained in the logon language of
the user. You can use the parameter LANGUAGE in the settings for the action code to define a language for
maintenance. If this parameter is maintained, maintenance only takes place for the defined language.
The action code S_CONATP reads the log for the ATP check and displays it. This action code can only be used
as a follow-on action code for the ATP check with the action code S_ATP. It cannot be used as a standalone
action code.
The action code S_CONPFR reads the log for the mass release and displays it. This action code can only
be used as a follow-on action code for mass release with the action code S_MFREI. It cannot be used as a
standalone action code.
The action code S_CONPRO reads the log for the mass conversion and displays it. This action code can only
be used as a follow-on action code for mass conversion with the action codes S_CONVPL, S_CONVPP, and
S_CONVPI. It cannot be used as a standalone action code.
Use
With this action code, a text of 72 characters can be saved for each order in the LMPC HJPT detailed
scheduling planning board.
Procedure
Dialog Box
• Confirm the dialog box.
• Result in the ALV Grid:
The text is displayed for the associated field in the ALV Grid.
• There are 4 additional fields for the LMPC HJPT order text:
• Created by
• Changed by
• Created on
• Changed on
Remember
When converting planned to production or process orders, the text of the planned order is automatically
adopted for the newly generated production or process order.
The texts are saved with the key of the order number in the LMPC table /LMPC/CORDTEXT. The basic end
date of the order is saved as a comparison field for the clean-out routine. During the run of the data provider for
reading the data, the system checks the age of the data records. Data records that are older than 180 days are
deleted. This prevents the database table from overflowing in the long term and removes superfluous entries.
Tip
Also see the function for the tasks. If you are looking for an opportunity to define even more information
for the order, this function may be better suited. S_MCFMEA S_MCFCOM S_MCFRES, Tasks, Comments,
Resubmissions [page 368]
Related Information
Use
You can use the action code (S_COUNT) to count the selected data records in the ALV Grid.
Procedure
Result
The count result is dependent on the settings in the Customizing of the action code. You use the
parameters in Customizing to define the criteria to be used for counting. If no Customizing settings are
defined, the system only displays the number of selected data records.
Use
The action code (S_CPCHCK) for the component checks compares the requirement dates
of an order’s components with the current date. If any component has a requirement date the predates the
current day, the conflict field CONFLICT_AX is set in LMPC. If corresponding coloring is configured for this
field, the respective row or a field in the ALV Grid are also highlighted in color.
The action code for the component check is especially useful if individual components of the order require a
lead time (meaning that they are not immediately available). If an order is dispatched to a point in time that
is very close to the current date, it is possible that the lead time for the components means that they are not
available in time. The planner can use this action code to check this issue.
The action code checks dispatched order operations as well as not dispatched order operations.
The action code can be executed as a standalone action code via a button in the ALV Grid. However, it can
also be used as follow-up action code of a dispatching function. This means that the requirement dates of the
components are checked immediately after planning.
Procedure
• In the bill of materials of the finished product, a negative lead-time offset (meaning a lead time) of -2 days
is maintained for one of the components.
Dispatched Order
Select the orders to be checked and execute the action code for the component check.
• Result:
All orders with a conflict for the components requirement date are identified via the conflict field. Based on
the configured coloring, the corresponding ALV Grid rows are highlighted in red.
Set and remove filters in the ALV Grid of the LMPC planning table.
Use
You can use the action codes (S_FILTR) and (S_FILTRE) to set and delete filters in the
ALV Grid of the LMPC planning table.
Both action codes use the same action class /LMPC/CL_ACTION_FILTER. Depending on the Customizing
settings, you can use this class to execute 3 different functions:
The action codes S_6_FICO, S_6_FICW, and S_6_FIMA are variants of the action code S_FILTR that are
configured differently.
Procedure
whether they have been set manually, saved in the layout, or have been set using the action code
(S_FILTR).
The user selects those data sets whose values are to apply to the filter and executes the action code button for
(S_FILTR).
For example, in Customizing you have defined that the fields Work Center and Material Number are set as filter
fields. The logic reads the values for work center and material from the selected data sets, and uses these
values to set the filter in the ALV Grid.
Result:
Only data sets are displayed whose work center and material have the previously selected values.
If the user wants to remove the set filters, they execute the action code S_FILTR (S_FILTR) again
without selecting any data sets.
Result:
The filters for the fields, which are set in Customizing, are removed.
Tip
• The system only removes the filters for the fields that have been set in Customizing. The filters on all
the other fields remain unchanged. This means that filters set manually or set via the layout profile are
not lost.
• The filters set temporarily can be retained when saving the data and reloading the data if retaining filter
settings is set in the settings for the HJPT overall profile. Configuration of HJPT Overall Profile
Restriction
This filter function only affects the display of the data sets in the ALV Grid. It does not affect the display of
the bars in the graphical planning table.
Use
In the LMPC standard delivery, the following settings are defined in the action code S_DBCLCK, which is used
in the LMPC test profiles LMPC_T01 [page 27], LMPC_T02 [page 28], LMPC_T03 [page 29], and LMPC_T05
[page 30]:
S_DBCLCK
AUFNR_FA
VORNR_AV
Tip
If the “HOTSPOT” parameter is set for the action code, the function is called by clicking on the hotspot
instead of double-clicking. The advantage of a hotspot is that an underscore in the data indicates that a
function is in that field.
The following screen section shows the underscores in the fields for the order number and material
number.
In the LMPC test profiles LMPC_T06 [page 31] and LMPC_T07 [page 35], a variant of the action code is used
that is configured slightly differently.
S_6_DBCL
AUFNR_FA
VORNR_AV
Use
You use this action code in the context menu of the capacity planning table and it displays information for an
order in a popup window.
Procedure
• Select a bar in the graphical section of the LMPC planning table (selection = blue color) + right-click.
• Select the function "Detailed information pop-up".
Tip
You use Customizing to make settings to define which information is displayed.S_DINFO Configuration:
Dialog Box for Detailed Information
Use
You can use the action code (S_FIX) to firm order operations of planned, production, and process
orders.
You can use the action code (S_FIXE) to undo the firming.
Remember
The changes are made in simulation mode. The changes are not written to the database until you save.
Customizing can be used to determine which of the possible firming types are used when executing the action
code. S_FIX & S_FIXE Configuration: Set Firming and Remove Firming
Procedure
The firming indicator of planned orders can be displayed in the field AUFFX_PA in the LMPC planning table.
Selection of Orders
Result
If you open the order header of a planned order, the firming indicator is also set there.
You can use the action code (S_FIXE) to undo the firming.
If the parameter CHK_BOMF is set in the settings for the action code, the firming indicator cannot be removed if
the firming indicator is set for the components in the planned order.
Caution
Special feature of planned orders: When you fix operations of a planned order, the entire planned order is
firmed. Individual operations of planned orders cannot be firmed. The firming takes place at order header
level.
If you remove the firming indicator for a planned order, the order is automatically deallocated.
The operations of this order can always be dispatched and deallocated, regardless of whether a planned
order is firmed. The firming indicator does not influence the planning activities.
For the production order, the LMPC user status 'FIX' is set or removed in the operation of the production order.
The firming takes place at operation level.
Tip
If you want to see the status "FIX" in the ALV Grid, you can set this via the status query, which can be
defined in LMPC Customizing. Then the status is written to one of the status fields. The prerequisite for
this is the configuration of a user status schema for the order operation and the existence of a status with
authorization key FIX. This status is set or removed with this action.
Caution
However, dispatched production order operations cannot be deallocated. The status "FIX" prevents
deallocation of these order operations. They can no longer be rescheduled to other dates.
Process order operations are firmed, in the same way as in production orders, via the user status within the
order operation. Since it is not possible to use the process order settings to maintain a default status profile for
operations, you can use the action code parameter STSMA to supply a default status profile for process orders.
This status profile will be applied to the operation by the action code if the operation does not already have
a status profile. The status profile used for firming process orders must be valid for operations in the process
industry. The behavior for planning activities is similar to the behavior for production orders.
Without further settings, the indicator has no effect on operations of orders and is used only to indicate
operations.
• You can use these fields to see when and by which user the LMPC HJPT firming was changed for the first
time or most recently in an operation.
• In connection with the Action Code Limits [page 87], the execution of certain functions can be prevented.
For example, you can specify that it is no longer possible to dispatch or deallocate operations that have the
HJPT firming indicator.
• The bars of the operations in the graphic and the data records in the ALV Grid can be colored depending on
the contents of the fields.
Coloring of Bars of the Bar Chart [page 40]
Coloring the ALV Grid [page 58]
• The function for dispatching using fixed operations uses the LMPC HJPT firming indicator. S_EPFX
Dispatching Across Firmed Operations [page 295]
• Function S_RESCPF uses the LMPC HJPT firming indicator. S_RESCPF Reschedule: HJPT Firming
Indicator and Parallel Planning with Pool ID [page 300]
Remember
• For the data for the LMPC HJPT firming indicator to be display, the data provider /LMPC/
CL_DP_OP_ADD must be active. Data Provider /LMPC/CL_DP_OP_ADD Additional Data for
Operations [page 442]
• The data for the LMPC HJPT firming indicator is stored for one year and is then deleted automatically.
S_FIX and S_FIXE can also be used in background processing. Program /LMPC/HJPT Background Processing
[page 23]
Use
This means that the ALV Grid lines can be sorted for planning functions, for example.
Instead of using drag and drop to move the rows, you can also use the ALV Grid buttons to move the rows.
Functions:
Procedure
Select Operations
Result
If filters are used for the ALV Grid, the data records are moved in such a way that the items of the filtered
data records remain unchanged. This means that only the visible data records are moved. Non-visible data
records remain unchanged in their positions.
Use
You can use this action code to move one or more operations in the ALV Grid. You specify where the data
records are sorted by entering a value for a search field. The selected operations are sorted directly by the last
operation that has the value of the search field.
Procedure
Selection of Operations
The search field can be defined using settings in customizing. If no settings are defined, the search is based on
the order number. S_LFLDV Configuration: Move Line to Field Value
The system first checks whether the value exists. If the value does not exist, the function terminates with an
error message.
An additional check can be activated. You can set that either only dispatched operations or only deallocated
operations can exist in the selection. If this condition is violated, the function terminates with an error message.
This check must be activated separately using the settings for the function and is deactivated in the delivery.
Result:
Result of Sorting
Tip
• Alternatives to this action code are sorting using drag and drop in the ALV Grid, sorting the entire ALV
Grid, and the functions S_L+, S_L++ and S_L_-, S_L--.
Sorting the ALV Grid List [page 58]
S_SORT Reset Sorting of Planning Table and ALV Grid [page 379]
S_L--, S_L-, S_L+, S_L++, Moving Rows within the ALV Grid [page 364]
• You use this action code to sort only the sequence of the display in the ALV Grid. This has no effect
on the start times of the operations. If you want to change the dispatching sequence, you can use
this action code in connection with functions for dispatching or rescheduling. To do this, first put the
operations with the action code S_LFLDV in the desired sequence. Then use a function for dispatching
or rescheduling and dispatch the operations in the previously selected sequence. This can be done, for
example, with the action code S_EPSEL or the action code S_RESCD.
S_EPSEL Dispatch Selected Operations [page 181]
S_RESCD Reschedule All [page 224]
Usage
You can use this action code to temporarily lock planned orders, production orders, and process orders in the
planning table.
The locks are always set for the entire order and not for the individual operation of the order.
If you have set locks, these orders can no longer be changed by other users in other transactions at the same
time. For example, planned orders can no longer be changed in transaction MD12. It is also no longer possible
to change production orders in transaction CO02. Also, another user can no longer double-click the order
number in the ALV Grid of the HJPT planning table to navigate to change an order.
The same locks are set as when changing the orders in the HJPT planning table, for example, during
dispatching, deallocation, and rescheduling.
These are self locks. This means that the user who sets the locks can continue to process these orders in the
HJPT planning table. Only other users can no longer do this.
Locks are only valid temporarily. They cannot be saved. They are valid for as long as a user is working with
the data. The set locks can be removed by exiting processing. Saving or reloading the data also removes the
locks.
For the locks to be visible in the ALV Grid of the HJPT planning table, the data provider /LMPC/
CL_DP_ENQUEUE must be activated. Also note the explanations for the self locks and external locks in the
section on the data provider. Data Provider /LMPC/CL_DP_ENQUEUE Order Locks (Icon) [page 431]
Special feature for planned orders: Despite the lock, planned orders can still be dispatched, rescheduled, and
deallocated. Production orders, on the other hand, can no longer be planned.
Note
Locks should not be confused with firming. For details on firming orders, see the section on firming. S_FIX,
S_FIXE Firm and remove firming of orders [page 291]
Procedure
The planning table has been opened. The orders do not have any locks yet because they have not yet been
changed. Certain orders are to be locked so that they cannot be changed by other users while the current user
is processing these orders.
Result:
If another user also opens the same orders in the planning table, the system displays external locks for this
user. External locks are displayed with the icon of a closed padlock.
You can find the field for displaying locks in the ALV Grid layout group of the HJPT help fields.
If a user has already set a lock on an order, no further lock can be set. The locks of another user cannot be
removed or overridden.
The action code can be configured in such a way that all orders opened in the planning table are locked. For
this, parameter LOCK_ALL is to be activated in the action code. It is then sufficient to execute the action code
once and all orders are locked.
If locks are only to be set on orders that have a specific property, this can be realized using the function of the
action code limits. If, for example, you want to allow locks for production orders only, you create a rule in the
action code limits that excludes planned orders from processing. Action Code Limits [page 87]
The action code can be executed manually via a key. It can also be executed automatically on all orders when
the planning table is started. This enables you to lock all orders that are currently open for planning by the user.
For this, the action code with the trigger PBO is inserted into the context profile used. The parameter LOCK_ALL
must also be set for the action code so that all date records are selected automatically. The restriction of action
codes also works here. For details on the action code triggers, see the LMPC Configuration Guide. Action Code
Trigger
Tip
The lock status of orders can be displayed visually by creating rules for coloring the bars in the graphic or
for coloring the ALV Grid.
MCF Tasks
Use
The MCF tasks function can be used in different consulting solutions and works across solutions.
The tasks data is assigned at the level of the planned, production, or process order. The key is therefore the
order number in each case.
Procedure
There are 3 action codes for the tasks. One for maintaining tasks, one for maintaining comments, and one
for maintaining resubmissions. You can use these action codes to create, change, and delete the elements
mentioned.
Each of these action codes takes you to the maintenance dialog for tasks, resubmissions, and comments.
Depending on which action code you use, another area for creating an element is active.
Only if you use the action code for the tasks are all existing objects for the key of the order number displayed
immediately. You can then edit or delete them. For the other action codes, you can show the elements using the
button for selecting existing elements.
Creating a Task
Line Selection
The screen for maintaining tasks appears. The correct task object is already preselected. In this case, PA for
planned order. For production or process orders, the reference object is FE.
The flag is also set for “Tasks”. Possible tasks are preselected.
Select a tasks ID, for example, LMPC – Notify Purchasing. Set an end date and enter a comment.
Maintain Task
In the lower part of the screen, you can see the task created.
There is no need to save the task since it is saved upon creation. You use the Back button to exit task
maintenance.
Result:
In the ALV Grid fields of the HJPT planning table, the system displays the information on the task created.
Remember
• Depending on the settings, the fields "Number of Tasks" and "Task ID" allow you to navigate directly to
the tasks by double-clicking or by a hotspot click.
• If more than one task is maintained for each order, the first task is displayed in the fields in the ALV
Grid.
The other two action codes work in a similar way. Only when you call the maintenance screen is a checkmark
set for either comment or resubmission so that you are able to use these functions.
Tip
If you do not require such a comprehensive functionality and, for example, only want to maintain a brief
text per order, it is recommended that you use the function for the LMPC order texts rather than the tasks.
S_CORTXT LMPC HJPT Order Text [page 348]
For the data fields to be filled in the HJPT planning table, the data provider for the tasks must be activated.
Data Provider /LMPC/CL_DP_MEASURES Configuration: Tasks, Resubmissions, Comments
Detailed documentation for the tasks can be found in the online documentation, “Comprehensive Functions”.
There, you can also find information about the configuration of tasks.
Related Information
Use
You can use this action code to change the long text for the planned order by direct entry in the ALV Grid.
Note
The field for the long text for the planned order exists only in an SAP S/4HANA system.
If the field exists, it is input-enabled in the LMPC ALV Grid. For the update of the changes to work, the
action code S_PLAFLT must be activated. For descriptions of these settings, see the Configuration Guide.
S_PLAFLT Configuration: Change Long Text for Planned Order
Procedure
Show the field in the ALV Grid of the HJPT planning table. You can find the field in the group of fields for the
planned order.
Enter a text for the desired planned order and choose Enter.
The change is made in simulation mode. When you save, the text is posted to the database. If you exit the
planning table without saving, the text is lost.
Since the text is saved at header level of the planned order, the text appears in each data record for this order
after you choose Enter.
The text has a maximum length of 255 characters. The text is not language-dependent. It is always output as it
was saved, regardless of the logon language.
Note
The field is always input-enabled, regardless of whether an order is a planned order, a production order, or a
process order. However, the entered data can only be saved for planned orders. If the field is maintained for
a production order or process order, the update routine clears the field again.
Refreshing of Data
You can update the SAP LMPC HJPT detailed scheduling planning board at any time while you are working with
it.
Refresh (S_REFR)
You can use the “Refresh” function to update the ALV Grid of the HJPT planning table. When you refresh, the
data providers are run once and the ALV Grid is updated.
You thereby load, for example, changed data from the graphic into the ALV Grid. When you update the ALV
Grid, the data records are sorted according to the defined sort sequence.
When you refresh the data, the selection of the data records in the ALV Grid is retained if the retention of the
selection is activated. C16 Transaction /LMPC/STEU LMPC: Control Parameter
This action code is usually used as a subsequent action code for other functions to load the changed data into
the ALV Grid. For planning functions, it is mandatory that S_REFR runs as a subsequent action code to ensure
the consistency of the data.
In a regular chain of action codes, S_REFR can only be the last action code at the end of processing. Using a
parameter allows a special concatenation of action codes to be created, during which the refresh also takes
place once within a chain of action codes. S_REFR Configuration: Refreshing Data
Reload (S_RELOAD)
This function reloads the data. Unsaved planning data will be lost. You can use this function to return to the
saved initial situation.
When you reload the data, the selection of the data records in the ALV Grid is lost.
The first check monitors whether changes have been made to the data that have not yet been saved.
The second check searches for external locks for the opened orders.
If one of the checks encounters an error, the user receives a message and can decide whether they want to
cancel the reload of the data or whether loading is to be executed anyway. The third check is run only if the
setting that the planning table is ended after saving has been set in the overall profile.
The checks can be deactivated using the parameter CHCK_OPT in the settings for the action code. Action
Codes for Support Functions
If the planning table is configured in such a way that processing is ended when you save and the checks are
deactivated, the planning table is exited when you execute the reload without saving the data. Also see the
notes on the save options in the configuration guide. Configuration of HJPT Overall Profile
Tip
• Both update functions can also be executed automatically after a specific interval (autorefresh). For
instructions for this, see the description of the overall profile in the LMPC Configuration Guide. Timer
Function
• Filter settings set temporarily for the ALV Grid and a temporary layout selection can be retained when
the data is reloaded. Settings need to be made in the HJPT overall profile for this. Configuration of
HJPT Overall Profile
The LMPC HJPT planning table can display the data distributed across several windows. A distinction is made
between the main window and the dialog box.
The graphic is located in the main window of the HJPT planning table.
Dialog boxes are all additional windows outside the main window.
The ALV Grid with the data on the orders, the window for charts, or the window for completed production and
process orders can be displayed in separate dialog boxes.
The settings of the HJPT overall profile determine which elements are displayed in the main window and which
elements are displayed in dialog boxes. HJPT Window Configuration
When you save the data in the HJPT planning table, the current positions and sizes of the dialog boxes are
saved depending on the user name and profile name of the LMPC overall profile. The position is always saved
in relation to the upper left corner of the main screen currently being used by the user. The main screen refers
to the user’s physical screen on which the main window of the planning table is located. When you save, the
planning table also remembers whether a window has been closed. In future, this window will then no longer be
opened when you access the planning table.
When you reload or access the planning table again, the system displays the dialog boxes in the size and
position last saved by the user.
This ensures that the next time you open the HJPT planning table, the user can find the usual window settings.
Depending on the setting, the action code opens the windows or resets them. S_RESSIZ, S_RES_CV
Configuration: Opening and Resetting Windows
If it is set to open, all windows of the LMPC HJPT planning table are opened in the last saved position in the last
saved size.
If it is set to reset, all dialog boxes of the LMPC HJPT planning table are reset to their size configured in
Customizing. All windows are then positioned at the top left of the screen in which the main window of the
LMPC HJPT planning table is located.
If users work with two screens and the windows of the HJPT planning table are positioned on different screens,
the recommendation is to place the action code as a function on the menu bar of the ALV Grid and include it as
a function in the menu bar of the graphic. This means that the function can be executed on any screen and the
windows can be reset from any screen. Action Code Trigger
This is particularly recommended if users work at different work centers with different screens. This is because
a window may be displayed outside the visible area if it was previously saved with a different number of screens
or a different screen resolution. In this case, the action code must be configured for resetting. Users can then
use the action code to show the windows again.
Tip
You can use the parameter settings to define which dialog boxes are to be opened or reset. The standard
system is configured such that all dialog boxes are opened.
Use
This action code is used if the window for charts is used in dialog mode.
While working with the HJPT planning table, you can change the size of the window for the charts. When you
save, the planning table remembers the size and position of the window. The size and position are saved for
each user and HJPT overall profile for the user's screen currently used.
If you close the window and then save, the planning table remembers that the window has been closed and no
longer displays it the next time you start the planning table.
You can use the action code (S_RES_CV) to either open or reset the window, depending on the
configuration. S_RESSIZ, S_RES_CV Configuration: Opening and Resetting Windows
When opened, the window opens in the last saved position in the last saved size.
During reset, the window for the charts is reset to the size defined for the window in the settings and it is
positioned at the top left of the screen in the first level above the main window that may also be there.
If users are working on different screens, it is recommended that you use the reset function since it may
happen that a window is opened outside the visible area.
Tip
Reloading the data with the action code S_RELOAD also allows you to retrieve the window if the window
was open the last time you saved.
S_REFR, S_RELOAD Planning Table Update [page 372]
Procedure
Capacity Chart
Tip
There is another action code, S_RESSIZ, which opens or resets the window for charts and all dialog boxes in
the HJPT planning table.S_RESSIZ Open or reset all HJPT dialog boxes [page 374]
The action code (S_SAVE) is a follow-on action code attached to other action codes so that an
automatic save is executed after the respective LMPC function. In the case of a chaining of action codes,
S_SAVE must always be used as the last action code. Concatenation with S_SAVE [page 389]
S_SAVE can also be used as a standalone action code, for example, to trigger saving via the ALV Grid buttons
for separate screens.
It can be used as an ALV Grid button or as a right-click function of the capacity planning table.
Application options:
There are two save functions for the HJPT planning table. A save with reduced runtime (default) that receives
the buffers of the data providers, and a save that executes a complete reload of the data. The save function is
selected using the HJPT overall profile. Configuration of HJPT Overall Profile
Restriction
The action code works only as a follow-on action code for other action codes or as a standalone action
code. It does not work as an action code in an action code chain between 2 action codes. Neither is it
Tip
The action code S_SAVEI can be used to save data temporarily. S_SAVEI Save Temporarily [page 377]
For some planning processes, it may be necessary to save interim planning statuses. However, the standard
save routine requires a long runtime for updating the data of production orders and process orders, which
means that it takes some time before you can continue working with the data after saving.
The action code (S_SAVEI) provides the option of accelerating temporary saving.
You can use settings for the action code to deactivate various update routines for temporary saving if this
data is not required for further planning. This helps to save runtime when saving temporarily. S_SAVEI
Configuration: Temporary Saving
You can deactivate the following updates for production orders and process orders:
Which of these updates are deactivated depends on the planning requirements and must be set individually for
each system. LMPC consulting can support you with the settings.
It is not possible to influence the update of planned orders. This is always complete.
This action code cannot replace the standard save routine. Before you exit the planning table, you must execute
the standard save to update the orders completely. If you try to exit the planning table without performing the
standard save, the system issues a warning.
Caution
If only temporary saving is carried out and the planning table is exited without saving with a complete
update, data inconsistencies may occur.
Production orders and process orders that were marked as changed before saving are marked as changed
again after the save operation using S_SAVEI. In this way, the planning table receives information about which
orders still have to be updated completely.
The locks for the production and process orders are also retained. Data Provider /LMPC/CL_DP_ENQUEUE
Order Locks (Icon) [page 431]
Tip
If the planning table is configured to close when you save, you can use the temporary save function to save
intermediate statuses. Temporary saving is then executed as if the default save option were configured
(save option 1). Configuration of HJPT Overall Profile
The action code S_SEP is used to group the pushbuttons in the ALV Grid bar. It generates a vertical separator
between the ALV Grid pushbuttons.
It can also be used to create a horizontal separator in the context profiles or in the dropdown action code
pushbuttons on the ALV Grid menu bar.
Note
The name of the action code is predefined. The insertion of separators using the context profile will only
work if the name of the action code is S_SEP. Other names are not possible.
Tip
If there are more pushbuttons than fit in a row, the ALV Grid inserts a break automatically and displays
the pushbuttons in a further row. The break is at the separators. If you use a lot of pushbuttons, it
is recommended that you insert a few more separators. This enables more even distribution of the
pushbuttons when the screen width changes.
Initialize Sorting
Use
This function updates the sorting of the graphic and the sorting of the ALV Grid.
If you are working with the three-part graphic and have deactivated the automatic sorting of the graphic in
the HJPT overall profile, the processed operations are always placed at the end of the list during dispatch or
deallocation. This is done regardless of when the operation is scheduled.
The action code S_SORT can be used to trigger a sorting of the elements of the graphic.
Another use case is sorting the ALV Grid. If you have used drag and drop to put the operations in the ALV Grid
in a new order and want to reset the sorting to the sorting set in the layout, you can also call the action code
S_SORT.
The sorting of the graphic and the sorting of the ALV Grid are also executed by refreshing the data. Therefore,
you can also execute the action code S_REFR instead of the action code S_SORT. S_REFR, S_RELOAD Planning
Table Update [page 372]
However, the action code S_REFR also causes a run of the entire data provider. Therefore, S_SORT is an
alternative for sorting, which requires less runtime.
Tip
If you are looking for an option for sorting the data records in the ALV Grid, you can use the action code
S_SETSEL, which can also sort the data records in addition to a selection. S_SETSEL Select and Sort
Operations Automatically [page 311]
Procedure
Execute the action code (S_SORT). It is not necessary to select the data records.
Result: The elements in the graphic were sorted again and the data records in the ALV Grid were sorted in the
sequence defined in the layout settings.
Sorting
The ALV Grid is sorted as it is set in the ALV Grid at this point in time. Note that this does not mean that
sorting is reset to the sort settings saved for the layout. If you change the sort settings in the layout settings
while working in the HJPT planning table, these are the valid settings, regardless of which sort settings are
saved for the layout. This action code does not return the sort order to a sort setting that was saved in the
layout, but only to the sort order currently set in the layout.
Save Data
You can use this action code to save values from the SAP LMPC HJPT detailed scheduling planning board in
database tables directly. Currently, this is possible for the tables AFKO, PLAF, and /LMPC/CORDTEXT. Further
tables can be reached by an extension option via a BAdI.
For tables AFKO and PLAF, values are stored only in the database buffer. If you exit the LMPC HJPT planning
table without saving or reloading, your changes will be lost.
The action code was developed to fill customer fields (Z fields) in standard tables.
Caution
Theoretically, you can also change the content of all other fields of a database table. It should be noted that
standard fields should be changed with caution. When standard SAP fields are changed, the customer is
responsible for the consistency of the data. The HJPT planning table has not installed any checks for data
consistency. It should also be noted that check routines for correct value entries may be behind individual
standard fields, which prevents saving. This is not an error, it is a defensive mechanism in the standard
system that cannot be bypassed.
Related Information
Use
You can use this action code to write the current start and end times of the operations in separate fields. These
fields are saved when you save, and are filled with the saved dates when the data is reloaded.
This function can be used to save operation dates for a later comparison. For example, you want to compare
the dates that were specified in planning with the later actual production dates.
When you use this action code, the data provider CL_DP_OP_ADD must be activated. Data Provider /
LMPC/CL_DP_OP_ADD Additional Data for Operations [page 442]
Procedure
Initial situation: Several operations are dispatched. The dispatching dates are to be saved.
To do this, the operations whose dispatching dates are to be saved are selected.
Selection of Operations
Result:
Result
The current operation dates were copied to the fields for saving the operation dates.
The data is processed in simulation mode. The system does not write the values to the database until you save
the data. Reloading data without saving may cause the data to be discarded.
The saved data is retained for one year and is then deleted automatically.
Note
The capacity requirements of the operations have dates for the earliest and latest dates. The distribution
key specifies whether the earliest or latest date is used. Depending on the setting of the distribution key,
the earliest or latest date of the capacity requirements is transferred to the fields.
In addition to the generic filter functions of the ALV Grid, there is also action code S_WPFLT for filtering on
work centers. You can use this function to filter the data records in the ALV Grid for a single work center. All
data records of other work centers are then hidden.
Caution
• The selected work center filter is saved with reference to the used HJPT overall profile and user name,
so that this filter is automatically set again when the LMPC planning table is accessed later.
• The filter only influences the ALV Grid. All order operations are still displayed in the graphic.
Example
The planner wants to work only with the data records for work center MA3.
Result:
The button for the work center filter displays the work center:
You can use the settings for the action code to influence the labeling and display of the filter. S_WPFLT
Configuration: Work Center Filter
Application
With this action code, the data from the ALV Grid of the LMPC HJPT planning table can be loaded into an Excel
report folder . Using this report folder the data can then be evaluated.
In the standard delivery, the user chooses the directory on the local computer, to which the report folder
is saved. However, the action code can also be configured in such a way that the report folder is stored on
a network drive or sent by e-mail in the background. This makes it possible to create and send a report
automatically by means of a background job.
Procedure
The system displays a dialog box that you can use to specify the storage location for the Excel file created.
Once you have saved the Excel document, you can access it.
Since the ALV Grid of the LMPC HJPT planning table has more than 612 columns, Excel must still “process” the
file internally. Therefore, the following message must be confirmed:
Excel Message
This happens automatically when the message is confirmed. You may have to activate macros if necessary.
This is the standard book of reportsthat is delivered with the SAP LMPC HJPT detailed scheduling planning
board. Additional books of reports can be created in Customizing . Depending on your requirements, you can
define a different row and column selection in Customizing.
In the standard system, the book of reports displays the capacity requirement per work center per day. This is
an Excel PivotChart
You can use the fields on the right margin to change the values according to which the data is aggregated and
displayed.
Selection of a Filter
Related Information
Using Customizing for the LMPC HJPT planning table, it is possible to form chains of action codes. A
concatenation of action codes means that several action codes are executed automatically one after the other.
To do this, the user only has to trigger the first action.
Most of the action codes in the standard delivery are already concatenated. As a rule, an action code contains
the subsequent action code S_REFR for updating the data.
The concatenation of action codes cannot be chosen freely. It must be checked individually for each
concatenation whether it is possible.
The action codes are executed one after the other in the configured sequence. Usually, each action code is
executed independently of the preceding action code. Each action code receives the selected operations from
the ALV Grid. It is like manually executing the action codes individually, one after the other, with the same
selection of operations.
Individual action codes differ from this processing. They transfer a selection of operations as a return. For these
action codes, the transferred selection becomes the new selection for the subsequent action code.
Although these action codes return a selection, this does not mean that these action codes are suitable for
concatenation. If required, this must be checked separately for each use case. These action codes are listed
here for information purposes only.
The following describes the concatenations that are released and are therefore also covered by consulting
support.
Note
If you want to use concatenations that have not been released, you can request a review from LMPC
consulting. Concatenations that are not described in the documentation are not covered by consulting
support.
Related Information
If operations in the planning period are rescheduled to a new start time, the BOMs may have changed on the
new start date.
However, when you reschedule operations, the BOM of orders is not exploded.
For this reason, an option has been created for a new BOM explosion for planned orders. This BOM explosion is
carried out with the action code S_BOMEXP.
The combination of S_BOMEXP with the function for manual planning has been examined and released by
LMPC development.
Further combinations with other planning functions have not been examined and are therefore not supported.
In general, you can assume that only a combination with planning functions is useful, which does not read any
operations. This is because the BOM explosion is executed only for the operations in the selection.
For details combining S_BOMEXP with S_MANP, see the documentation for S_BOMEXP. S_BOMEXP Bill of
Material Explosion and Component Quantity Update for Planned Orders [page 106]
You can use the action code S_CHSDV to change the standard values of operations.
You can also set the action code in such a way that all operations are reset to the values from the routing in the
background.
In this setting, the action code S_CHSDV can be combined with the action S_APSEL for deallocating
operations. It is irrelevant whether S_APSEL or S_CHSDV is executed first.
This combination has the effect that when operations are deallocated, they are reset to the original standard
values.
S_CHSDV can be combined with S_CRCLOR and S_FIX: Concatenation with S_CRORD [page 387]
S_CHSDV can be combined with S_SETSEL. Concatenation with S_SETSEL [page 389]
Note
Combinations of S_CHSDV with other action codes were not examined and are not supported. If you are
interested in a combination with other action codes, you can request a feasibility analysis.
The action code S_CRORD allows the creation and immediate dispatching of production orders or process
orders in the simulation. S_CRORD Create Simulative Order [page 135]
This action code can be linked with the action code for changing standard values.
Further concatenation with the action code for firming orders is also possible. S_FIX, S_FIXE Firm and remove
firming of orders [page 291]
This means that orders can be created in one step and firmed immediately to prevent these operations from
being rescheduled.
A chain of S_CRORD with S_CHSDV and S_FIX is also possible. For this concatenation, S_FIX must be entered
as the last action code. Once the firming indicator has been set, changes to the operations are no longer
possible.
Most action codes have the action code S_REFR as the subsequent action code, to update the data in the ALV
Grid after an action.
The action code S_REFR is always used as the last action code in a chain of action codes. S_REFR, S_RELOAD
Planning Table Update [page 372]
Exception: You can use a parameter of the action code S_REFR to call the action code S_SETSEL as a
subsequent action code. S_REFR Configuration: Refreshing Data
Some action codes have a concatenation with the reload of the data (S_RELOAD). If planned orders are
converted to production orders or process orders, the data must then be reloaded to load the newly generated
orders into the planning table.
The action code S_RELOAD must always be used as the last action code in a chain.
Remember
When you reload the data, the unsaved planning statuses are lost. If you want to avoid this, use the action
code S_SAVE as an alternative.
Related Information
If you want the result to be saved immediately after an action is executed, you can use the action code S_SAVE
as a subsequent action code.
The action code S_SAVE must always be used as the last action code in a chain of action codes. This is because
the planning table is restructured when you save.
Related Information
The action code S_SETSEL can be used to sort and select operations automatically. S_SETSEL Select and Sort
Operations Automatically [page 311]
This selection can be passed on to the subsequent action code in the case of concatenation.
You can use concatenation to automate functions in dialog processing. The planner no longer has to find the
operations that are to be processed. The functions search for the operations themselves and determine the
processing sequence themselves.
Tip
For LMPC HJPT background processing, this can be used to define which operations are processed and in
which sequence. Without concatenation, background processing processes all operations in chronological
order. Program /LMPC/HJPT Background Processing [page 23]
However, this is only useful for action codes that do not make their own selection and sorting. Some action
codes have their own selection and sort routines.
The action codes that are listed in the allowlist can be combined with the action code S_SETSEL. The action
codes that are listed in the blocklist can either not be combined or can only be combined with restrictions.
These are action codes that have their own selection or that read operations. All action codes that are not listed
have not been checked.
Note
If you want to perform a check for a combination, you can request this from LMPC consulting.
Allowlist
Blocklist
S_AK05 Displaying an Order [page 102] Concatenation not possible. Single selection only, no
multiple selection.
S_APALL Deallocate All Operations [page 159] Concatenation not possible. Action code has its own
selection.
S_APSELP Deallocate with Pool ID [page 264] Concatenation is only possible with restrictions. Action
code independently reads all operations that have the same
pool ID that is already contained in one of the operations of
the selection.
S_ATPA Individual Availability Check [page 316] Concatenation not possible. Single selection only, no
multiple selection.
S_AUTEXT Change the Long Text of Production Orders and Concatenation not possible. Single selection only, no
Process Orders [page 102]
multiple selection.
S_AV02 Changing Operations of the Production Order or Concatenation not possible. Single selection only, no
Process Order [page 103]
multiple selection.
S_AV06 Dispatching Operations Individually [page 163] Concatenation not possible. Single selection only, no
multiple selection.
S_AV07 Deallocating Operations Individually [page 164] Concatenation not possible. Single selection only, no
multiple selection.
S_AV77 Change Network [page 105] Concatenation not possible. Single selection only, no
multiple selection.
S_C203 Display Master Recipe [page 324] Concatenation not possible. Single selection only, no
multiple selection.
S_C223_D Display Production Version [page 325] Concatenation not possible. Single selection only, no
multiple selection.
S_CM01 Overview of Capacity Planning [page 326] Concatenation not possible. Single selection only, no
multiple selection.
S_CO11N Entering Time Tickets [page 327] Concatenation not possible. Single selection only, no
multiple selection.
S_CO15 Enter Production Order Confirmation [page 328] Concatenation not possible. Single selection only, no
multiple selection.
S_CO40 Conversion of Planned Order to Production Order Concatenation not possible. Single selection only, no
[page 330]
multiple selection.
S_COR5 Releasing Individual Process Orders [page 331] Concatenation not possible. Single selection only, no
multiple selection.
S_COR7 Creating Process Orders [page 331] Concatenation not possible. Single selection only, no
multiple selection.
S_CR03 and S_CRC3 Display Work Center or Resource Concatenation not possible. Single selection only, no
[page 332]
multiple selection.
S_CS03 Display BOM [page 333] Concatenation not possible. Contradicts the dispatching
process.
S_D&D Dispatching Operations with Drag and Drop in the Concatenation not possible. Contradicts the dispatching
ALV Grid [page 164]
process.
S_DINFO Detailed Information for Graphical Bars [page Concatenation not possible. Contradicts the dispatching
358]
process.
S_DMOORD Create Planned Orders for Tests [page 139] Concatenation not possible. No selection.
S_EPALL Dispatch All Operations [page 167] Concatenation not possible. Action code has its own
selection independently of user selection.
S_EPALV Dispatching by Entering Dates in the ALV Grid Concatenation not possible. No selection.
[page 169]
S_EPBKFG Two-Step Dispatching with Pool ID [page 270] Concatenation is only possible with restrictions. Action
code reads operations independently.
S_EPFX Dispatching Across Firmed Operations [page 295] Concatenation is only possible with restrictions. Action
code reads operations independently.
S_EPML Multilevel Planning [page 286] Concatenation is only possible with restrictions. Action
code reads operations independently.
S_EPNP Dispatching Operations of Networks [page 175] Concatenation not possible. Single selection only, no
multiple selection.
S_EPPRLL Parallel Planning with Parallel Sequences [page Concatenation is only possible with restrictions. Action
257]
code reads operations independently.
S_EPPRLP Parallel Dispatching with Pool ID [page 249] Concatenation is only possible with restrictions. Action
code reads operations independently.
S_EPRQD Dispatch on Requirement Date [page 179] Concatenation is only possible with restrictions. Action
code reads operations independently.
S_EPSELL Dispatching with Check on Gaps and Pool Orders Concatenation is only possible with restrictions. Action
[page 183]
code reads operations independently.
S_EPSELP Single-Level Dispatching with Pool ID [page 263] Concatenation is only possible with restrictions. Action
S_EPSELX Dispatching Insert in Gaps with and Without Pool Concatenation is only possible with restrictions. Action
Orders [page 184]
code reads operations independently.
S_FPL Dispatch by LMPC Timetable [page 196] Concatenation is only possible with restrictions. Action
code reads operations independently.
S_IW31 Creating Maintenance Orders [page 334] Concatenation not possible. Single selection only, no
multiple selection.
S_MALL, S_RMALL Select All Operations in ALV Grid and Concatenation not possible. Action code makes selection
Remove Selection [page 305]
itself.
S_MANPL Manual Dispatching List with Gap Check [page Concatenation is only possible with restrictions. Action
207]
code reads operations independently.
S_MANPLX Manual Dispatching with Insert [page 209] Concatenation is only possible with restrictions. Action
code reads operations independently.
S_MB11 Displaying Pegged Requirements [page 141] Concatenation not possible. Single selection only, no
multiple selection.
S_MB51 Material Document List [page 338] Concatenation not possible. Single selection only, no
multiple selection.
S_MCFMEA S_MCFCOM S_MCFRES, Tasks, Comments, Concatenation not possible. Single selection only, no
Resubmissions [page 368]
multiple selection.
S_MD04 Stock/Requirements List [page 338] Concatenation not possible. Single selection only, no
multiple selection.
S_MD4C Order Report [page 339] Concatenation not possible. Single selection only, no
multiple selection.
S_MIGO Goods Movements [page 340] Concatenation not possible. Single selection only, no
multiple selection.
S_MM03 Displaying Material Master Data [page 341] Concatenation not possible. Single selection only, no
multiple selection.
S_MMBE Displaying Material Stock [page 342] Concatenation not possible. Single selection only, no
multiple selection.
S_ORDCL Closing Individual Production Orders or Process Concatenation not possible. Single selection only, no
Orders Technically [page 142]
multiple selection.
S_ORDREP LMPC Order Report [page 143] Concatenation not possible. Single selection only, no
multiple selection.
S_ORFIRM, S_ORFREL Firm Order Relations and Undo Concatenation is only possible with restrictions. Action
Firming [page 279]
code reads operations independently.
S_PBLKFG Pool formation with BOM information [page Concatenation is only possible with restrictions. Action
266]
code reads operations independently.
S_PBPRLL Form Order Pool for Parallel Dispatching with Concatenation does not make sense from an application
Pool ID [page 248]
perspective.
S_PCONV Partial Conversion of Planned Orders with Concatenation not possible. Single selection only, no
Subsequent Dispatching [page 144]
multiple selection.
S_PLVERS HJPT Read/Save Plan Version [page 226] Concatenation not possible. No selection.
S_POOLA Automatically Create Order Pool [page 261] Concatenation is only possible with restrictions. Action
code reads operations independently.
S_POOLID Create Order Pool Manually [page 259] Concatenation is only possible with restrictions. Action
code reads operations independently.
S_QM01 Create Quality Notification for Material Error [page Concatenation not possible. Single selection only, no
343]
multiple selection.
S_REFR, S_RELOAD Planning Table Update [page 372] Concatenation is not possible in this direction. No selection.
Note
However, the action code S_SETSEL can be executed
automatically after the action code S_REFR. Special
settings are required for this. S_REFR Configuration:
Refreshing Data
S_RESCD Reschedule All [page 224] Concatenation is only possible with restrictions. Action
code reads operations independently.
S_RESSIZ Open or reset all HJPT dialog boxes [page 374] Concatenation not possible. No selection.
S_RES_CV Open or Reset HJPT Window for Charts [page Concatenation not possible. No selection.
375]
S_SETSTR Change Strategy Profile Settings [page 229] Concatenation not possible. No selection.
S_SORT Reset Sorting of Planning Table and ALV Grid [page Concatenation not possible. No selection.
379]
S_SPLIT Distribute Capacity Requirements to Individual Concatenation not possible. Single selection only, no
Capacities Manually [page 155]
multiple selection.
S_UMTMSG Display Rescheduling Proposals [page 312] Concatenation not possible. No selection.
S_VA03 Display Sales Order [page 345] Concatenation not possible. Single selection only, no
multiple selection.
The ALV Grid of the LMPC HJPT planning table is based on the structure /LMPC/HJPT_F01. The ALV Grid is
filled with data via certain classes, known as data providers.
Restriction
The LMPC planning table has a very large number of fields in the AVL Grid. However, not all fields are filled.
This is due to the fact that the underlying structure is formed from standard structures using includes. This
means that there are fields that are not filled. Therefore, empty columns in the ALV Grid are not an error,
but a result of the architecture.
The following chapters on the data providers describe which fields are filled by data providers. Only the fields
that are filled by LMPC data providers are described.
Standard fields of the graphical planning table, which are read and made available by the HJPT planning table,
are not described. These fields are standard SAP fields.
The LMPC Configuration Guide contains a list of all data providers and fields that you fill. HJPT Data Provider
Catalog
Caution
Provisioning data costs runtime. The less data read, the faster it is to call the HJPT planning table. Saving
the data or refreshing the data is also faster the fewer data providers are active, since the data providers are
It does not make sense to activate all available data providers. This can cause runtime problems. Careful
consideration should be given to which data is required for the individual use case. Data providers that are
not required should be deactivated. Instead of an overall profile that covers all use cases, individual profiles
should be created for the specific use cases that contain only the required data providers.
See the section on runtime behavior. Notes on Runtime Behavior [page 15]
If you have questions about the content and use of the fields or the configuration of data providers, please
contact your LMPC consultant.
The data provider /LMPC/CL_DP_AFVG reads the order operation fields of planned orders.
For production and process orders, the fields are filled using the data provider CL_DP_STD. Data Provider /
LMPC/CL_DP_STD Basic Data of the Capacity Planning Table [page 451]
The fields are located in the layout settings, in the group “Order operation”.
Layout Settings
Field Description
UVORN_AV Suboperation
WERKS_AV Plant
LMPC Alerts
You can display alerts in the SAP LMPC HJPT detailed scheduling planning board.
Alerts are generated with reference to the operation of an order. All generated alerts are cumulated as a traffic
light icon in the field /LMPC/ALERT_ICON_CY (status) of the structure /LMPC/HJPT_F01 (structure of the
ALV Grid view).
Example of an Alert
• Requirement date
• ATP check
• BOM validity
• Production version validity
• Equipment check
Requirement date:
The system checks whether the basic end date of the order adheres to the requirement date.
If the data provider /LMPC/CL_DP_USER_104 is active, the date available for MRP is considered instead of the
basic dates. This date is calculated from the order basic end date plus the goods receipt processing time.
This alert refers to the order number and is identical for each operation of an order.
ATP check
The alert of the ATP check displays whether it was possible to confirm the material availability.
This alert refers to the order number and is identical for each operation of an order.
Note
• This alert evaluates the status information for the orders. This alert does not execute a separate ATP
check. For this alert to display results, an ATP check must first be executed. S_ATP ATP Check in Mass
Processing [page 314]
• Rescheduling an operation resets the material availability status for the order. This is because
rescheduling changes the operation dates. Therefore, after rescheduling, an ATP check must first be
executed before the alert displays a result.
BOM validity
The system checks whether the basic dates of the orders lie within the limits of the BOM validity.
• Green: The basic start date is either later than or the same as the “valid from” value of the BOM. The basic
end date is either earlier than or the same as the “valid to” value of the BOM.
• Yellow: No validity data is available.
This alert refers to the order number and is identical for each operation of an order.
Note
For the alert for the bill of material to work, the data provider CL_DP_BOM must be set to read BOM data.
This is not the case in the standard delivery. Data Provider /LMPC/CL_DP_BOM Component Data or BOM
Data [page 410]
• Green: The basic start date is either later than or the same as the “valid from” value of the production
version. The basic end date is either earlier than or the same as the “valid to” value of the production
version.
• Yellow: No validity data is available.
• Red: The basic start date is earlier than the “valid from” value of the production version. The basic end date
is later than the “valid to” value of the production version.
This alert refers to the order number and is identical for each operation of an order.
Equipment Check
The system checks whether one of the conflict fields for equipment displays a conflict.
This alert refers to the individual operation of an order. This alert can be different for each operation.
For details on the check for conflicts, see the description of the equipment check.
This data provider fills fields for order texts. These are the order header text of the production order or process
order and the fields for the LMPC order text.
Fields
Technical Field Name Description
CHTMSTMP_AX Time stamp for when this text was last changed.
The order header text comes from the long text of production and process orders. The first line of this text is
read and displayed (maximum 72 characters). Text can be entered by branching to the change mode of orders.
(S_AK02 Change Order [page 99]) Saving is performed in simulation mode. This means that if you do not save
in planning in the HJPT planning table, the texts are lost when you exit the planning table.
The LMPC order text is a text field also of 72 characters, which can be filled via the action code S_CORTXT
(S_CORTXT LMPC HJPT Order Text [page 348]). This text is stored in an LMPC table for the order number
and kept for six months. Texts that are older than six months will be deleted automatically. The storage of this
order text depends only on the order number. Therefore, the texts can be stored for each order type. Data is
saved to the database immediately and not in simulation mode. When converting planned orders to production
or process orders, the LMPC order text of the planned order is automatically adopted for the newly generated
production or process order.
The field for the order header text is in the layout settings in the production order group.
The fields for the LMPC order text are in the help fields layout group.
The data provider for the LMPC requirement date determines the pegged requirements, the requirement date,
and the available quantities at the time of the order receipt for the orders that are displayed in the HJPT
planning table. The LMPC order relations are also calculated by this data provider. List of Order Relations [page
72]
Remember
In the HJPT planning table, a row in the ALV Grid represents an operation of an order. Since the data
provider determines the data for each order, the data for the individual operations of an order is always the
same.
The requirements/stick list of transaction MD04 is read in the planning period via a standard SAP module. The
control parameter settings can be used to extend the read period as required. C16 Transaction /LMPC/STEU
LMPC: Control Parameter
Of this data, only the data of the plant segment and the segments of make-to-order production is processed
for standard sales orders. Other segments, such as a pre-planning segment, are not processed. Cross-plant
planning is not supported either.
The plant stock of a material is treated like a receipt. The safety stock is treated like a pegged requirement.
Plant stock and safety stock are processed with the date of the start of the reading period.
For anonymous make-to-stock production in the plant segment, the logic works according to the first-in-first-
out (FIFO) logic. In make-to-order production, the sales order specifies the requirement date against which the
planned or production orders and process orders that cover the requirements are calculated.
The calculation takes into account the simulative status of the data in the planning table. This means that the
data that is read from transaction MD04 is updated with the receipt dates of the operations from the currently
simulated planning data.
This has the advantage that the current, unsaved planning situation is taken into account. If, for example, a
planned order is brought forward and dispatched before other planned orders, the logic in the data provider will
assign it to an earlier requirement and the requirement date will be adjusted according to the requirements.
Orders created in simulation are also taken into account. S_CRORD Create Simulative Order [page 135]
Caution
Transaction MD04 works to the day. In the display of transaction MD04, orders that have the receipt or
requirement on the same day are sorted according to the type of element and order number. On the
other hand, the HJPT planning table works to the second based on capacity requirements. During the
calculation of the LMPC order relations, the data of transaction MD04 is updated with the simulated data
from planning. When you sort the data, not only the receipt date or the requirement of the respective order
is taken into account, but also the times of the capacity requirements. Orders that arrive or start on the
same day are thus sorted according to the times of your capacity requirements. This means that the HJPT
planning table functions more precisely than transaction MD04. It processes the orders in the sequence
in which they are processed on the machines. As a result, the assignment of the orders to the pegged
requirements within one day may differ from the display of the sequence in transaction MD04. This topic is
only relevant if there is more than one receipt or requirement per day for a material.
If the logic for firming order relations is used, the firmed relations between the orders are also included in
the logic for determining the LMPC requirement date and override the FIFO logic. The firmed order relations
only make sense for anonymous make-to-stock production, since in make-to-order production the orders are
already assigned to the sales orders and are processed accordingly.
Stocks:
• Plant stock
• Safety stock
Receipt elements:
• Planned orders
• Production orders
• Process orders
• Purchase requisition
Requirement elements:
Note
It is possible that elements that are not listed here are also processed. However, this cannot be guaranteed.
If you want to enhance the logic, you can request an enhancement from SAP.
Order Data
You can use the settings for the data provider to display
further information in the field. Data Provider /LMPC/
CL_DP_BED Configuration: Requirement date
Material Data
VRFMG_STKO12_MD
VRFMGEH_STKO12_MD
The data for co-production is additional data that is only determined if the calculation is activated using the
settings. Data Provider /LMPC/ CL_DP_BED Configuration: Requirement date
For co-production, the available quantities of the materials of the components of an order are calculated.
However, only for secondary parts and co-parts. That is, for BOM components with negative requirement
quantities. For components with positive requirement quantities, the available quantity is not calculated.
You can also activate a comparison using the materials in co-production. The comparison is made using
the header material and the BOM materials in co-production. During this comparison, the available quantity
is subtracted from the respective maximum stock level from the plant data for the material (Data Provider /
LMPC/CL_DP_MARC Plant Data for Material [page 436]).
The result is positive if the maximum stock level is greater than the available quantity and negative if the
maximum stock level is less than the available quantity. As a result, a negative number indicates that the
available quantity exceeds the planned maximum stock level. The material number of the material that has
the smallest delta is determined. This is the material that is either closest to the maximum stock level or that
exceeds the maximum quantity the most. This material and the delta quantity are output in the delta fields.
Determining data for co-production requires a long runtime. It should only be activated if the data is
needed.
The data provider fields are in the layout group of the MD04 data.
MD04 Data
Tip
In the fields of the first pegged requirement, the number of the corresponding sales order is displayed if
an assignment to the order could be created. The data provider /LMPC/CL_DP_SD_DATA uses this data to
provide additional data for the sales order.
Restriction
This logic maps simple standard cases. It is written in such a way that only anonymous make-to-stock
production and make-to-order production are calculated for sales orders. For an order, only the MD04 data
for the plant and MRP area of the order is read and processed. Transaction MD04 allows you to display
a whole host of MRP elements. The simple logic of the data provider CL_DP_BED can only recognize and
process individual MRP elements. Therefore, if requirement dates are not determined in your system or are
not determined correctly, this is not an error, it is probably due to the fact that certain MRP elements are
not processed for their planning situation.
Also check the data provider /LMPC/CL_DP_BED_2. This data provider can process more MRP elements.
The logic does not consider requirement elements for co-products or by-products in a co-production
scenario.
Note
This data provider calculates the LMPC requirement date for the orders.
The data provider /LMPC/CL_DP_USER_001 is used to read the rescheduling date from the MD04 data.
Data Provider /LMPC/CL_DP_USER_001 Ranges of Coverage and Exception Messages [page 454]
The rescheduling date is specified by transaction MD04. If an order arrives too late and the available
quantity becomes negative, MD04 displays a date on which an order would have to arrive for the
requirements to be covered on time. It informs the user that an order must be brought forward. If an
order arrives too early, material is produced in stock unnecessarily. Therefore, in MD04, the rescheduling
date indicates that this order is to be produced later to avoid storage costs. The rescheduling date is read
from the database; simulated data is not taken into account.
The LMPC requirement date is a slightly different concept. The LMPC requirement date shows when
the quantity of an order is required by the pegged requirement. This means when the quantity must be
received at the latest. The advantage of the LMPC requirement date is that the requirement date also works
with data in the simulation that has not yet been saved. For each planning operation in the HJPT planning
table, the requirement date of the orders involved is recalculated and updated using the simulated planning
dates.
Tip
The function dispatching on requirement date can be used to dispatch orders in such a way that they are
produced as close to the requirement date as possible. S_EPRQD Dispatch on Requirement Date [page
179]
Related Information
The data provider uses the logic of transaction MD09 to determine data for the requirement date.
This data provider reads data for the orders from transaction MD09. In contrast to the data provider /
LMPC/CL_DP_BED, data changes in the simulation are not taken into account. The data provider /
LMPC/CL_DP_BED_2 reads from the database only. The fields that are filled with the data provider /
LMPC/CL_DP_BED_2 (logic MD09) cannot be compared with the fields of the data provider /LMPC/
CL_DP_BED (first-in-first-out heuristic). These are independent logics that cannot be compared. Also
note the information in the configuration guide Data Provider /LMPC/CL_DP_BED_2 Configuration:
Requirement Date MD09 and the description of the data provider /LMPC/CL_DP_BED. Data Provider /
LMPC/CL_DP_BED LMPC Requirement Date and Order Relations [page 401]
To find the requirement element, the list of the order route is read from transaction MD09 from bottom to
top until a requirement element is found that does not have the same number as the searching planning or
production order. If there is more than one pegged requirement for an order, the first pegged requirement
is always selected and the route to the MRP element is determined for this requirement. You can use the
parameter SEL_MODE (see parameter description) to change the logic so that it selects the last pegged
requirement and determines the order route for this.
Special feature Release order for a stock transfer order: If more than one element is found in the order route,
the system selects the earliest element.
Special feature Order reservation: If an order reservation is found as the result, the logic will continue to search
upwards until a production order is found.
Special feature Dependent requirement: If a dependent requirement is found as the result, the logic continues
to look up the list until a planned order is found.
Special feature Production order: Data on the released production order is not determined again. Released
production orders are skipped (in German and English -> query on the status description). The data for this
production order is only read from the database table. You can use the parameter DRREL_ON to deactivate this
behavior (see parameter settings).
Example MD09:
Here, the pegged requirement from the planned order is the order reservation. Therefore, the system continues
to search for the production order.
Note
For planned and production orders: The planned dates in the order route are the basic end dates for the
respective order. However, since we need the scheduled start date, this date is read from the RESB table for
planned and production orders.
Restriction
Data determination is not possible for simulative orders. S_CRORD Create Simulative Order [page 135]
Related Information
The standard setting is to read the data using the components of the orders. Reading the data using the
BOMs is an alternative logic and can be activated via a parameter in Customizing. Data Provider /LMPC/
CL_DP_BOM Configuration: Component Data or BOM Data
12 BOM components with the associated material short texts, required quantities, required quantity units, and
batch numbers.
The data for the standard description and material group of the respective BOM material is also read from the
material master. The plant-specific material status is read from the plant material data.
You can use the settings in Customizing to select BOM components. In addition, the display can be
restricted to BOM components with certain characteristics. Data Provider /LMPC/ CL_DP_BOM Configuration:
Component Data or BOM Data
If no BOM items are selected in Customizing, the data provider shows the first 12 items determined.
If the produced material is a co-production, the indicator for co-production is set for each component that acts
as a co-product. In co-production, the requirement quantities of co-products and by-materials are negative.
Change information is not read for the BOM. When reading via the BOM, the data provider reads
the elements of the BOM for the explosion date of the
The BOMs are not read, so no changes to the BOM can be
routing. The changes to the BOM are then taken into
determined.
account over time.
Change the component quantities when changing the The component quantities are not changed when
quantity of the order, since the quantities are read changing the quantity of the planned order.
directly from the order.
The quantities are read from the database (table RESB).
Therefore, it is not possible to change the component
quantities in the simulation.
• Display of batches
Batch information is read directly from the order. Batch information is read from the database table RESB.
• Display of assemblies
When the components are read, the components are read The BOM explosion only takes place for the header
directly from the order. material of the order.
The components with exploded dummy assemblies are Dummy assemblies are not exploded. Therefore,
displayed in the order. You can also use this logic to materials in dummy assemblies cannot be displayed.
display the items in dummy assemblies.
• Sequence of components
For data without dummy assemblies: Components are Only elements of the BOM on the first level in the
displayed in the sequence of the item numbers. sequence of item numbers.
Note
The choice of read logic depends on the requirements in the customer system. No general statement can
be made as to which logic is to be used. Reading via the components delivers the data directly from the
order and is the standard logic. However, it does not provide any change data for the BOM.
Reading the data with this data provider requires a relatively long runtime. It is not possible to determine
which logic requires less runtime. This depends on the data in the system. A test is recommended to
determine which logic is used.
Reading via the BOM can be advantageous in terms of runtime if you access a large number of orders
with minimal different materials. In this case, only a few BOM explosions have to be carried out instead of
reading the data from each order individually.
The disadvantage of reading from the BOMs is the missing update of component quantities when changing
the quantity of the header material in the planned order.
Restriction
If the alert is to be used for the validity of the BOM, reading via the BOM must be activated. Data Provider /
LMPC/CL_DP_ALERT Alert Processing [page 397]
to
You can use the layout settings of the ALV Grid to show the fields. The fields are located in the group of the
component and BOM data.
Tip
If you want to name the fields differently, you can use the transaction /LMPC/FLD to assign different
names.
The data provider CL_DP_BOM is the basis for other elements of the HJPT planning table. The data is required
for the following elements:
Restriction
The logic of the data provider was developed based on customer requirements. This logic is not generically
valid for all cases that can be configured in an SAP system.
The data provider /LMPC/CL_DP_BOM_BATCH_INFO reads the shelf life expiration date and the period
indicator of batches that are assigned to the BOM components of the production order or process order.
to
Example
At least one of the BOM materials of an order is identified as “subject to batch management requirement” in
the material master. Corresponding batches exist for the materials (transaction MSC1N, MSC2N, MSC3N)
Example Batch
Production Order
The data provider /LMPC/CL_DP_BOM_BATCH_INFO LMPC provides the information on the shelf life
expiration date/expiration date of the bill of materials in the ALV Grid, where this information can be shown
(category: BOM data):
The information is now visible in the ALV Grid of the HJPT planning table:
Perform calculations
You can use this data provider to perform simple calculations with the data of the ALV Grid of the LMPC HJPT
planning table.
• Addition
• Subtraction
• Multiplication
• Division
You can use two fields of the ALV Grid of the HJPT planning table as operands in an equation. The result of the
calculation is output via a user field.
User Fields
For details on configuration, see the LMPC Configuration Guide. There is also an application example.
Related Information
The HJPT detailed scheduling planning board contains two data providers for coloring the fields and lines of the
ALV Grid.
For instructions on how to color fields and lines, see the LMPC Configuration Guide.
This section describes which color settings are delivered with the LMPC Customizing. The coloring is activated
in the delivery for the sample profiles.
Note
The settings are only examples and serve as a template on the basis of which the customer system settings
can be made.
Settings for the test profiles LMPC_T01 [page 27], LMPC_T02 [page 28], LMPC_T03 [page 29],
LMPC_T05 [page 30]:
Status field 1 (FA_STATUS1_SU) Red If the field is filled with one of the follow-
ing values: FMAT, FMAT NMVP, MSPT,
MSPT MANC.
Status field 1 (FA_STATUS1_SU) Yellow If the field is filled with one of the follow-
ing values: NMVP, MANC.
Field dispatched (/LMPC/ Dark blue If the order operation is dispatched and
FLAG_EIGP_CY) does not belong to a production order
or process order
Field dispatched (/LMPC/ Yellow If the order operation has not been dis-
FLAG_EIGP_CY) patched
Buffer days field (RQDBFF_MD) Green If there are still enough buffer days until
the requirement date (number of days
< 0).
Buffer days field (RQDBFF_MD) Yellow If the MRP availability is the same as
the requirement date (number of days
= 0).
Buffer days field (RQDBFF_MD) Red If the MRP availability is after the re-
quirement date (number of days > 0).
Settings for the test profiles LMPC_T06 [page 31] and LMPC_T07 [page 35]:
(/LMPC/FLAG_EIGP_CY)
(/LMPC/DELNR_CY) Blue
(LMPC_T07)
HJPT Firming Indicator field Green The HJPT firming indicator is set.
(HJPT_FIRM_AX)
Related Information
Color the ALV Grid of the HJPT planning table using formulas
The data provider /LMPC/CL_DP_COLOR only allows you to create simple rules for coloring the ALV Grid.
You can use the data provider /CL_DP_COLOR_FORMULA to define more complex rules. It is possible to
perform calculations. For example, a certain number of days can be subtracted from a date.
For instructions on how to color fields and rows, see the LMPC Configuration Guide. Settings for Color
Application in LMPC HJPT ALV Grid
This section describes which color settings are delivered with the LMPC Customizing. The coloring is activated
in the delivery for the sample profiles.
Note
The settings are only examples and serve as a template on the basis of which the customer system settings
can be made.
Caution
Coloring with formulas requires considerably more runtime than traditional coloring. Therefore, as few
formulas as possible should be defined.
Settings for the test profiles LMPC_T01 [page 27], LMPC_T02 [page 28], LMPC_T03 [page 29],
LMPC_T05 [page 30]:
(SSTAD_KB)
Latest start / date field Green If the date of the latest start is less than
5 days in the future.
(SSTAD_KB)
Latest start / date field Yellow If the date of the latest start is less than
3 days in the future.
(SSTAD_KB)
Latest start / date field Orange If the date of the latest start is earlier
than the current date.
(SSTAD_KB)
Latest start / date field Red If the date of the latest start is 2 or
more days in the past
(SSTAD_KB)
Latest end / date field Red If the latest end date is earlier than the
current date
(SENDD_KB)
Free capacity in dispatching gap field Red If the free capacity is greater than 16
(LGTHGAP_TM) hours
Free capacity in dispatching gap field Orange If the free capacity is less than or equal
(LGTHGAP_TM) to 16 hours.
Free capacity in dispatching gap field Yellow If the free capacity is less than or equal
(LGTHGAP_TM) to 8 hours.
Free capacity in dispatching gap field Green If the free capacity is less than or equal
(LGTHGAP_TM)
to 4 hours.
Free capacity in dispatching gap field Dark blue If the free capacity is less than or equal
(LGTHGAP_TM) to 2 hours
Requirement date field (BDTERM_MD) Light blue If the requirement date is empty.
Requirement date field (BDTERM_MD) Red If the requirement date is before the lat-
est end date of the operation.
Requirement date field (BDTERM_MD) Red If the requirement date is before the
current date.
Requirement date field (BDTERM_MD) Yellow If the requirement date is the same as
the latest end date of the order.
Requirement date field (BDTERM_MD) Green If the requirement date is after the lat-
est end date of the order.
Operation number field (VORNR_KB) Red If the latest start date is before or on
yesterday and the status in the status
field 3 is not “TRÜC” and the order cat-
egory is “10”.
Order number field (/LMPC/ Red If the latest start date is in the past,
DELNR_CY) the status is not released, and the order
category is a production order.
Field: Date to Completion of Task Green If the completion date is in the future.
(FINISHED_UNTIL_ME)
(FINISHED_UNTIL_ME)
(FINISHED_UNTIL_ME)
(RESUBMISSION_DATE_ME)
(RESUBMISSION_DATE_ME)
(RESUBMISSION_DATE_ME)
Field: MRP Availability (STODA_MD) Orange If the date of the MRP availability is
later than the requirement date.
Settings for the test profiles LMPC_T06 [page 31] and LMPC_T07 [page 35]:
You can use this data provider to write data from fields of the ALV Grid of the LMPC HJPT planning table to
other fields of the ALV Grid.
In the ALV Grid, data for one order type is displayed in different fields than the same data for a different
order type. For example, the production version for planned orders is in the field VERID_PA, for production and
process orders, it is in the field VERID_FA. You can use the data provider to transfer the data of different fields
to one field.
All fields of the HJPT planning table are available as start and target fields for the data provider. Fields in the
LMPC HJPT ALV Grid have different data types. The data provider is written in such a way that all data types
are converted to the data type Character before they are written to the destination field. Therefore, it is
recommended that you use the user fields 1-20 as destination fields.
The user fields have a length of 40 characters. If the data from multiple fields is written to one field, then,
depending on the settings, this data is either combined, meaning concatenated, or overwritten. If overwrite
is selected, the last value written to the field overrides all other values. A value is written to a field only if the
source field is not empty. This prevents the information from being overwritten with an empty value.
The user fields 1-20 can be found in the “User fields” group.
Remember
You can use transaction /LMPC/FLD to change the name of the fields in the field catalog, to give the fields
different column headings.
Related Information
This data provider fills counting fields for order numbers and operations in the ALV Grid. It also performs
operations calculations for the calendar week of start and end times, and also generates the weekdays for
these times.
The fields are in the layout group for date, time, and number.
The calculation of the calendar week and the texts of the weekdays is based on the data of the capacity
requirements. The earliest and latest start dates, as well as the earliest and latest end dates are used.
There are also six additional fields for which you can use the configuration to define the data with which they
are filled. You can use the parameters for the data provider to transfer two field names of any date fields.
From this, the data provider calculates the following fields: Calendar Week, Weekday, and Weekday Short
Description. For the description of the configuration, see the LMPC Configuration Guide.
The fields for counting the orders are used to read the number of operations or orders when using totals rows
in the ALV Grid.
Example
The system totals using the counter for the orders and sets the subtotals for the earliest start date.
Subtotals in the ALV Grid Using the Order Number on the Start Date
• You can use the counters to calculate subtotals for orders for each material number, for example, so
that you can see the number of orders for each material number at a glance.
• The calendar week field can be used as a sort criterion for dispatching functions. For example, for
S_EPSRT. S_EPSRT Sorted Dispatching [page 190]
This data provider reads the identification of orders that were created with the consulting solution CTC.
This data provider is useful only in connection with the consulting solution CTC. Capable to Confirm (CTC)
The field is in the layout settings in the group of HJPT help fields:
It can be displayed to identify which planned order was created using the consulting solution CTC.
This data provider reads fields that are filled in the user exit of the capacity planning table
EXIT_SAPLCYPP02_001 in structure CI_CYUSER, if this user exit is defined.
This data provider can be used to read data from field extensions in the customer namespace. To save runtime,
this data provider processes new and changed data records only.
Note
Enhancements in the customer namespace are not subject to LMPC consulting support.
The data provider /LMPC/CL_DP_DB_FLDS is used to read any fields from database tables and to display
them in the LMPC HJPT ALV Grid. This data provider enhances the HJPT standard with the option of reading
fields that are not supported in the HJPT planning table. For example Z fields of database tables.
The column headers of the fields are User field 1 – 20. You can use transaction /LMPC/FLD to personalize
these column headers.
Tip
The data provider can be used in conjunction with the action class /LMPC/CL_ACTION_SET_DBFLDS and
an action code based on this class, for example, action code S_SVDBF.
The combination of action code and data provider enables you to read and save in fields of any database
tables.
Related Information
The data provider provides the fields for the demand-driven planning scenario.
The DDP fields can be found in the layout settings of the LMPC ALV Grid in the Demand-Driven Planning group.
All values of DDP are calculated at the header material level of the order. Therefore, values for operations
for the same material are identical.
For example, the ALV Grid can be sorted according to key figures. Scheduling can be carried out using the sort
sequence in the ALV Grid.
You can also use the action code S_EPSRT to execute scheduling by DDP key figures according to a sort
sequence previously defined in Customizing.
For more information about using DDP key figures for planning in the HJPT planning table, contact your LMPC
consultant.
The data provider is used to color the fields. If a different coloring is required, you can override the coloring of
the fields using the LMPC standard settings for ALV Grid coloring.
Note
For the fields to be available in the HJPT planning table, a field enhancement must be carried out and
the data provider must be activated. For details on this, see the LMPC Configuration Guide. Data Provider /
LMPC/CL_DP_DDP Configuration: Demand-Driven Planning
The data in the DDP fields is determined using the SCM consulting solution DDP. This is a different logic than
demand-driven planning in SAP S/4HANA. For more information on DDP, see the DDP documentation of the
SCM consulting solutions. This is not part of the LMPC documentation.
Display locks
This data provider reads the locks on order operations and displays them in the HJPT planning table.
Field: ENQUE_ICON_AX
• Self lock
• External lock
The self lock (icon: open padlock) indicates that the lock has been set by this program. For example,
an order was changed via the HJPT detailed scheduling planning board. This self lock is only set for planning
activities (dispatch, deallocation) for production and process orders. No self locks are generated during
scheduling for planned orders. When changes are made to orders via action code S_AK02 (for example,
double-click or click the hotspot on the order number), self locks are set for planned, production, and process
orders. All orders with a self lock can be dispatched and changed within the HJPT planning table. All orders with
a self lock cannot be changed by other transactions while these orders are open within the HJPT planning table.
The external lock (icon: closed padlock) indicates that the order is locked by another transaction.
For example, a production order is open in transaction CO02, or the order has been opened and changed in
another LMPC HJPT instance. Production and process orders with a foreign lock cannot be changed in the
HJPT planning table, neither can they be dispatched. Planned orders with a foreign lock cannot be changed in
the HJPT planning table. However, it is possible to plan planned orders with foreign locks.
Note
The behavior described here refers to the settings in the standard test profiles for the capacity planning
table. It is possible to convert the locking behavior of the capacity planning table. For example, you can
convert it so that all orders that are opened are locked automatically. Another alternative is that you can
set that all orders are blocked in the order pool. For details on this, see the LMPC Configuration Guide. Data
Provider /LMPC/CL_DP_ENQUEUE Configuration: Read Locks
Action code S_LOCK allows the user to set manual locks for the orders. S_LOCK Temporarily Lock Orders
[page 366]
The data provider /LMPC/CL_DP_GAP calculates the start and the free capacity of a gap in the production
plan. All operations that are dispatched are taken into account. The duration is calculated as free capacity
in hours, minutes, and seconds. Individual capacities are also taken into account. Each additional individual
capacity provides more capacity offer.
The calculation is carried out for each work center for all open work centers. The calculation is performed only
for periods from the current point in time into the future and only for dispatched operations.
This data provider can be used in connection with the action codes S_MANPL and S_EPSELL. You can
configure the dispatching functions of these action codes so that they check for gaps in the production plan.
S_EPSELL Dispatching with Check on Gaps and Pool Orders [page 183]
The data provider also calculates the linear time for the subsequent element. This element can either be
the next operation of the same order or the pegged requirement that is determined by the logic of the
order relations. If the operation is the last capacity-relevant operation for this order, the linear time for the
subsequent pegged requirement is calculated.
If the subsequent pegged requirement is an order, the first capacity-relevant operation of this order is
determined. The predecessor-successor relationships are then calculated between the latest end of the
predecessor operation and the earliest start of the successor operation. In this case, the time shows the
period between the two operations and not the period for the requirement date. Queue, float before production,
safety time, and goods receipt processing times that can be set for production in the master data are not taken
into account. The calculation is performed only with the pure operation dates of the capacity requirements.
If the successor is not an order, for example, for a planned independent requirement, the calculation uses the
requirements date of the subsequent MRP element and the time 0:00. In this case, the time shows the period
for the requirements date in which there is a capacity offer.
The time for the subsequent element is also calculated and displayed in the list of order relations. List of Order
Relations [page 72]
The linear time is calculated based on the periods for which there are capacity offers at the work center of the
operation. The calculation uses the work center of the predecessor operation. Only the linear time between
the start and end time of an offer is calculated and not the capacity offer itself. The start and end times of
the capacity offer are derived from the standard offer, the intervals, and shift schedules. When you define the
capacity offer, you can define a break duration within a period. This break duration is not taken into account in
the calculation since this break has no fixed start and end dates and only reduces the available capacity offer.
Remember
• The calculations differ in two aspects. The dispatching gap is calculated as the capacity offer. The
calculation is performed only from the current point in time into the future. Whereas the time to the
next element is calculated as the linear time between two points in time. The calculation is performed
in the past as well as in the future.
• In this data provider, the linear time is calculated to the second between the end of the operation and
the start of the successor. There is a further calculation of floats in the HJPT planning table. In the
data provider CL_DP_USER_104, the time buffer between the planning availability of the order and the
requirement date is calculated to the exact days. Data Provider /LMPC/CL_DP_USER_104 Calculate
Buffer Days [page 471]
The calculation of the time for the successor uses a lot of runtime and is deactivated in the standard delivery.
You can use the settings to activate or deactivate the calculation for the gaps and the calculation of the time for
the successor. Data Provider /LMPC/CL_DP_GAP Configuration: Calculate Dispatching Gaps
Fields
Technical Field Name Description
Maximum 99 hours.
Note
The fields for the float for the successor only allow a restricted sorting. If the data is sorted in ascending
order according to this field, first the positive data is sorted in ascending order, then the negative data is
arranged in ascending order.
Restriction
The calculation is only performed for the capacity relevant for scheduling.
The calculation is correct if the operations on the resource are dispatched one after the other without
overlapping. Parallel operations, suboperations, and overlaps are not taken into account. The logic
assumes that the operation number specifies the sequence of the operations.
The data provider /LMPC/CL_DP_MARC reads the plant data for the material of the respective order. The
fields can be found in the layout settings group ‘plant material’.
Layout Settings
You can use the settings to activate the reading of the maximum stock level for materials in co-production that
are displayed in the BOM fields. Data Provider /LMPC/CL_DP_MARC Configuration: Plant Data for Material
The data provider CL_DP_MAT_ADD reads additional data for materials. An alternative short text, the first line
of the material basic data text, and up to 14 alternative quantities can be output.
In the additional data for the material, the short texts for the material can be stored in different languages. For
each header material of an order, it is possible to display the short text of a selected language that is not the
logon language. Data Provider /LMPC/CL_DP_MAT_ADD Configuration: Additional Material Data
The first line of the material basic data text for the header material of the order can be output in the ALV Grid.
Here you can also set which alternative language it is displayed in. Data Provider /LMPC/CL_DP_MAT_ADD
Configuration: Additional Material Data
The material basic data text can be changed using the action code S_BMATXT. S_BMATXT Change Material
Basic Data Text [page 346]
In the material master, units of measure in addition to the base unit of measure can be stored under the
additional data (view Basic Data 1 – Additional Data button).
This data provider can be used to convert the quantities of materials into alternative units of measure. The
alternative quantities can be calculated for both the header material and the BOM items of an order.
A total of 14 items are available for the output of the data. In Customizing, the materials and alternative units of
measure are assigned to the items. C18 Transaction /LMPC/MAT_ADD_CUST: Alternative Units of Measure
A conversion factor is calculated for each alternative unit of measure. The order quantity of the planned
order, production order, or process order, or the requirement quantity of the BOM item, is multiplied by this
conversion factor and an alternative quantity is calculated.
For each item, there is one field for the conversion factor, one field for the alternative unit of measure, and one
field for the calculated quantity in an alternative unit of measure.
Fields
to
The fields are in the layout settings for the ALV Grid in the "Material master" group:
Remember
When converting quantities to alternative units of measure, each line in the ALV Grid must be processed
individually. There are 14 possible items, so up to 14 calculations can be performed per line, depending on
the setting. The calculation of alternative units can affect the runtime for the initial call, when saving, and
The data provider reads the data for tasks, resubmissions, and comments.
The data for the tasks is displayed in 9 fields in the ALV Grid of the LMPC HJPT planning table:
The data for the tasks is read from the data provider /LMPC/CL_DP_MEASURES.
This functionality has three action codes with which the data is maintained. S_MCFMEA S_MCFCOM
S_MCFRES, Tasks, Comments, Resubmissions [page 368]
This data provider reads the additional material master fields of the consulting solution "enhanced material
master view (UoM)".
The UoM enhancements are delivered with the core transport of the SCM Consulting Solutions.
For documentation on enhanced material master view (UoM), see the comprehensive functions under the
following link: Enhanced Material Master View
Note
For the fields to be available in the HJPT planning table, a field enhancement must be carried out and
the data provider must be activated. For details on this, see the LMPC Configuration Guide. Data Provider /
LMPC/CL_DP_MEH Configuration: UoM Data
As soon as the necessary enhancements have been made, the fields are located in the layout group of the UoM
data.
UoM Data
Restriction
Only the data from table /SAPLOM/MEH_MM01 is read. Data from other tables cannot be determined.
This data provider reads the analysis results of the SCM consulting solution MRP monitor (MRP).
The MRP monitor is a standalone consulting solution and is not delivered with the LMPC HJPT planning table.
For the documentation on the consulting solution MRP monitor (MRP), see the following link: MRP Monitor
Note
For the fields to be available in the HJPT planning table, a field enhancement must be carried out and
the data provider must be activated. For details on this, see the LMPC Configuration Guide. Data Provider /
LMPC/CL_DP_MRP Configuration: MRP Data
As soon as the necessary enhancements have been made, the fields are located in the layout group of the MRP
monitor data.
Caution
Remember that the MRP monitor consulting solution is a solution that carries out extensive evaluations.
The MRP monitor therefore has a large amount of data and also a large number of fields. If you want
to load the data of this consulting solution into the fields of the HJPT planning table, this can have a
negative impact on the runtime of the HJPT planning table because a large amount of data is to be read.
It is recommended that you use this data provider only for small data records or only for profiles that are
intended for evaluating data. In a more extensive planning scenario, this data provider is not recommended.
This data provider is used to read additional HJPT data for order operations. This is data that occurs when
changing the standard values of operations, during LMPC firming, during two-step planning with a predefined
sequence, and when saving the operation dates.
The data provider is required if one of the following action codes is used:
The fields are located in the layout settings of the ALV Grid in the group of HJPT help fields.
When you save in the HJPT planning table, the data is written to the database. The data is retained for a period
of one year and then deleted automatically.
The data for the production version of planned orders, production orders, and process orders is determined.
The fields are located in the layout settings of the ALV Grid in the group “Production version”.
The data provider /LMPC/CL_DP_PS_AFAB reads data for relationships of Project System (PS) orders. It is not
required for the PP and PP-PI environment.
You can use this data to check whether the relationships are adhered to when the operations are dispatched.
Example Data
The data provider reads an operation’s standard values, their respective units, the base quantity, the base unit
of measure, and the number of employees.
For production orders in discrete production (PP), the data is read directly from the operation of the order.
For planned orders in discrete production (PP), the data is read from the routing of the order. The current date
is used as the explosion date of the routing, and not the respective explosion date of the individual order. This
can save runtime.
For process orders in process industry (PI), the data is read directly from the order operation. For planned
orders in process industry (PI), the data is read from the product recipe.
If an operation has multiple phases, the standard values for all phases of the operation are totaled. However,
you can configure the data provider such that it reads only the values for a single phase instead of the total for
all phases.
If the standard values of the orders are changed in the simulation, for example, with the action code S_CHSDV,
the simulative changes are displayed immediately. For this purpose, the changed standard values are read from
The data provider fills the following fields of the structure /LMPC/RTRC:
Restriction
The fields ZWNOR_RR, ZEIWN_RR, ZWMIN_RR, WEIWM_RR, and RSTRA_RR are only filled for orders in PP.
For PP-PI planned or process orders, these fields remain empty. The field RSTUF_RR is only filled for PP
production orders, not for PP planned orders.
The fields can be displayed using the layout settings. In order to find the fields more easily, a layout group
"Routing and Recipe" was created.
• If suboperations are used, the data provider /LMPC/CL_DP_AFVG must be activated so that the data
for the suboperations can be determined correctly.
• Reading the data for routings and recipes requires a lot of runtime. The data provider should only be
activated if this data is absolutely necessary.
Related Information
The data provider CL_DP_SD_DATA provides data for the sales orders that are related to the planned and
production orders.
The basis for reading the data is the sales order number and item.
For make-to-order production, the order number and item of the respective sales order are taken directly from
the planned or production order. Since this information is stored there.
For anonymous make-to-stock production, the result of the data provider for pegged requirements
(CL_DP_BED and CL_DP_BED_2) is evaluated. The data providers for the pegged requirements determine
the assignment of a planned or production order to a sales order, either using a first-in-first-out relationship
(Data Provider /LMPC/CL_DP_BED LMPC Requirement Date and Order Relations [page 401]) or using the
data from transaction MD09 (Data Provider /LMPC/CL_DP_BED_2 Requirement Date According to MD09
Logic [page 406]). You provide the assignment to the sales order in the fields for the first pegged requirement
(fields DMD_DELKZ_MD and DMD_EXTRA_MD). The data provider CL_DP_SD_DATA then determines the
order number and item of the sales order from these fields. For details on the fields of the data providers for the
pegged requirements, see the corresponding section of the documentation.
The fields are located in the layout settings of the ALV Grid in the group “Sales document”.
Related Information
Data Provider /LMPC/CL_DP_BED LMPC Requirement Date and Order Relations [page 401]
Data Provider /LMPC/CL_DP_BED_2 Requirement Date According to MD09 Logic [page 406]
This data provider reads system and user status information from the order header information and the order
operations.
The fields are located in the layout settings of the ALV Grid in the groups ATP and Status.
Layout Settings
The data provider /LMPC/CL_DP_STD reads the basic data for the ALV Grid of the SAP LMPC HJPT detailed
scheduling planning board. The data comes from the selection of the graphical planning table for capacity
leveling in the standard SAP system of the component PP-CRP-LVL.
The fields of the following layout groups are filled by this data provider:
• Work Center
• Capacity Requirements
• Capacity Requirements Header
• Order Operation
• Production Order
• Planned Order
The fields of the capacity requirements are particularly important for planning. They contain the information on
the start times and the operation quantities and are therefore the central data for the operations. On the basis
of this data, the situation of the operations is determined in the graphic and scheduling is performed.
The fields of these groups that are relevant for capacity planning are shown in the example layout for the ALV
Grid that is provided with the LMPC delivery.
Note
Since these fields are standard SAP data for capacity planning, this data is not documented in detail here.
If you have any questions about the use of the individual fields, please contact your LMPC consultant or an
SAP PP consultant.
Restriction
Not all of the fields in these groups will be filled. Only those fields for which the capacity planning table
provides values. Empty fields are therefore not an error, but are only due to the software architecture of the
standard SAP system.
Material Stock
The data provider reads the unrestricted-use stock, the stock in quality inspection, and the total plant stock
at the time at which the LMPC HJPT planning table is called, in the form in which it is displayed in transaction
MD04. The information can be read for the order material and for the materials in the BOM that are displayed
in the HJPT planning table.
If a batch has been assigned to the respective order or the respective component contains a batch assignment,
the fields 'unrestricted-use stock', 'restricted-use stock', and 'stock in quality inspection' are read from the
database table for batch stocks (MCHB) instead of from transaction MD04 and thus only for the assigned
batch. The plant stock inventory remains unaffected.
Note
Reading the stock information requires a lot of runtime. To save runtime, you should only read the
stock information that is absolutely necessary. The determination of batch stocks can be deactivated
in Customizing. As can the reading of stocks for the individual BOM items. Data Provider /LMPC/
CL_DP_STOCK Configuration: Material Stock
to
The fields can be displayed using the layout settings. You are in the layout group ‘Stock Information’.
The units of measure for the individual items can be displayed using the BOM data or the order material
data.
Related Information
The data provider provides the rescheduling date, the ranges of coverage, and exception messages from
transaction MD04 for the header material of the order.
Using a setting in Customizing, you can also read the same data for co-materials and by-materials in co-
production displayed in the fields for the BOM items. Data Provider /LMPC/CL_DP_USER_001 Configuration:
Ranges of Coverage and Exception Messages
The data for the BOM items is determined using the data provider CL_DP_BOM. Data Provider /LMPC/
CL_DP_BOM Component Data or BOM Data [page 410]
The data has different reference points. Some data refers to the material in the MRP area as a whole, other data
is dependent on the respective order or operation.
The data provider fills the following fields in the ALV Grid of the LMPC HJPT planning table:
Header material
Co-production
BERW2_ BOM1_MD to BERW2_ BOM12_MD 1. Receipt days' supply for BOM components 1 – 12
The fields are located in the layout settings of the HJPT planning table, in the group of the MD04 data.
Layout Settings
The data for the exception messages (AUSKT, AUSLT) and the rescheduling date (UMDAT) is read from the
individual list of transaction MD04 using the order number.
The data for the stock days' supply, first and second receipt days' supply (BERW1, BERW2, BER4) is read from
the material list of transaction MD04 using the material number of the order.
There are two logics for the actual ranges of coverage: The logic used is selected using a parameter in
Customizing.
Logic 1 is the standard logic and uses less runtime. This logic determines only the actual range of coverage. The
fields for the actual range of coverage before production remain empty.
The actual range of coverage (IREIW) is determined by assigning the respective order to a period total by days
from the MD04 data for make-to-stock production. The MRP availability is determined from the respective
order. The system reads the actual range of coverage of the first period that is earlier than or the same as the
MRP availability date. Therefore, the system reads the actual range of coverage that is as close as possible to
the MRP availability of the order.
Restriction
This logic is an approximate consideration and not an exact calculation. As soon as the operation dates
change in simulative planning, the result is no longer correct since a simulative availability date is compared
with the data that was read from the database and is unchanged.
Logic 2: Calculation of Actual Range of Coverage and Actual Range of Coverage Before Production
Logic 2 can be activated using a parameter. It uses more runtime and calculates the actual range of coverage
and the actual range of coverage before production using a calculation logic that is based on the calculation
from transaction MD04.
The ranges of coverage are calculated using the available quantity on the day of the receipt. The available
quantity is calculated from the warehouse stock, the safety stock, and the receipts and issues of the previous
periods. On the day of receipt, the requirements are subtracted from the available quantity before the actual
range of coverage is calculated.
For the actual range of coverage, the quantity of the order is added to the available quantity for the calculation
of range of coverage. The order quantity is taken into account when calculating the range of coverage. For the
actual range of coverage before production, the quantity of the order is not added for the calculation of range
of coverage. The receipt quantity is not taken into account. This is therefore the range of coverage at the time of
receipt of the order before the receipt of the order quantity.
The actual range of coverage specifies the number of working days (factory calendar) for which the available
quantity is sufficient to cover the requirements that are in the next periods. During the calculation, the
requirements of the subsequent periods are calculated against the available quantity until it is consumed.
The difference in days between the day of the receipt and the day on which the quantity is consumed is
calculated. If the requirement on the last day is greater than the remaining quantity, the last day is calculated
If the quantity on the day of receipt is not sufficient to cover the requirements, a negative available quantity
is created. The actual range of coverage becomes negative. It specifies how many days you have to wait for
the requirement to be covered. For this, the subsequent receipts are calculated against the negative quantity
until they are balanced or positive. Receipts of quantities are considered to be available at the start of the day.
Therefore, there are no decimal places for the negative range of coverage. If the quantity can no longer be offset
by receipts in the read period, the range of coverage is given the value -999.9.
The advantage of the calculation is that it takes into account changes in the data when operations are
rescheduled.
Remember
• If several orders are received on one day, the quantities are not aggregated at day level. They are
considered to have been received at the start of the day, but a separate range of coverage is calculated
for each order. The sequence that the orders are received in is determined by the latest end date and
the latest end time of the capacity requirement. The requirements of a day, on the other hand, are
aggregated and considered as one requirement quantity per day.
• For the calculation of negative range of coverage, the period between the determined days is
calculated. Example: If the quantity is offset on the next working day, the actual range of coverage
displays the value “1.0-” and not “2.0-” as in transaction MD04. Both days are counted in transaction
MD04. The day of receipt of the order and the day on which the quantity is offset.
You can use a parameter to define whether the safety stock is taken into account for the calculation of range of
coverage. If it is taken into account, it reduces the range of coverage of a material.
Restriction
• The calculation is performed only for the plant segment of make-to-stock production. There is no
calculation for make-to-order production and other segments.
• If the times of an order change, the ranges of coverage for all orders of the same material are updated.
This is necessary since shifting the order could change the sequence of the orders. However, the order
for a material can also be a pegged requirement for the order of another material. This connection is
not taken into account for the calculation. The ranges of coverage of the orders of the other materials
for which the changed order is a pegged requirement are not updated.
If reading of data for co-production is activated, the UMDATKUP_MD field contains the earliest rescheduling
date based on all BOM materials in co-production (negative requirement quantity) and the header material. For
each co-product or co-material in co-production, the rescheduling date is read from the data of transaction
MD04. The system then compares all values of the co-products and the date of the header material for an
order. The earliest date from this comparison is displayed in this field. If reading of data for co-production is
switched off, the UMDATKUP_MD field only contains the rescheduling date from the header material. This field
is required to calculate the buffer days based on the rescheduling date in the data provider CL_DP_104. Data
Provider /LMPC/CL_DP_USER_104 Calculate Buffer Days [page 471]
You can use an additional parameter in the data provider to activate the determination of the critical material
for co-production. The critical part is the material number of the material with the earliest rescheduling date
when comparing the dates for main and by-materials. The detailed logic for determining the critical part is
described in the LMPC Configuration Guide.
Remember
The data is read from the transaction MD04. In this data provider, for most data the orders are only
assigned to the MD04 data. The system does not calculate the rescheduling date or generate exception
messages.
The result of the query of the rescheduling date, exception messages, and ranges of coverage depends on
the read period used for the MD04 data. The read period can be controlled using settings in Customizing
for the HJPT planning table. C16 Transaction /LMPC/STEU LMPC: Control Parameter
For the calculation of the actual range of coverage according to logic 2, the quantities of simulative orders
for the header material and the co-products are taken into account. Simulative orders cannot be taken into
account for the actual range of coverage according to logic 1. Likewise, the data for exception messages,
stock days' supply, receipt days' supply, and rescheduling date cannot be determined for simulative orders
since simulative orders do not yet exist in the database. This data is only available when the orders are
saved. S_CRORD Create Simulative Order [page 135]
The data provider /LMPC/CL_DP_USER_002 fills the following fields in the ALV Grid of the LMPC HJPT
detailed scheduling planning board:
LIDAV_TM Start date of evaluation period list layout from (time profile)
The visible fields of the help fields are in the layout settings in the group of HJPT help fields:
Note
The planning period can be set in the time profile to start in the past. However, planning in the HJPT
planning table can only take place from the current time to the future. Therefore, the field for the start of
the planning period displays the current date if the planning period is set to start in the past.
ATP Fields
The data provider /LMPC/CL_DP_USER_003 fills the following fields in the ALV Grid of the HJPT planning
table:
The fields are located in the layout settings of the HJPT planning table, in the groups ATP and Status.
Layout Settings
The data provider /LMPC/CL_DP_USER_101 is used to calculate the start date of the remaining capacity bar
for the bars of the operations in the graphic.
When partial quantities are confirmed, the capacity requirements of operations are reduced. If the operations
are no longer changed after the confirmation, for example, by rescheduling, the original operation length
remains. Using the bars of the remaining capacity requirement, which are now shorter, the graphic shows how
much capacity is still required on the machine for the remaining production.
As soon as a partially confirmed operation is changed, the bar length of the operations is updated and adjusts
to the current remaining capacity requirement. Afterwards, the bars for the remaining capacity requirement
return to the same length as the bars of the operations.
For operations that have not been partially confirmed, the remaining capacity bar has the same length as the
respective operation.
The system always uses the entire remaining capacity, consisting of the remaining capacity requirement for
setup, processing, and teardown, to calculate the remaining capacity.
The remaining capacity bars are additional graphic symbols for the graphic in the LMPC HJPT planning table.
For the remaining capacity bars to be displayed, the display must be activated in Customizing for the LMPC
HJPT planning table. Additional Graphic Elements
The calculated start (date and time) for the start of the remaining capacity bars can be read in the fields in the
ALV Grid of the HJPT planning table:
The fields are located in the layout settings of the HJPT planning table, in the group of HJPT help fields.
These fields are the basis for displaying the bars of the remaining capacity in the HJPT planning table graphic.
Restriction
• The remaining capacity bars are only calculated for the latest dates of the capacity requirements since
all bars with the latest dates are displayed in the HJPT planning table.
• The calculation of the bar length is only correct for a certain type of data modeling. The duration of an
operation must be dependent on the quantity produced, but not on the number of individual capacities
at the work center. Regardless of the available number of individual capacities at the work center, the
length of an operation should always be the same. The length of the bars is calculated based on the
available operating time on the machine.
• For runtime reasons, the remaining capacity bars are calculated only for operations for which the target
capacity requirement differs from the remaining capacity requirement. That is, for operations for which
quantities have been partially confirmed. If the target and remaining capacity requirements are the
same, no calculation is made and the bars are displayed at the full operation length.
• An operation can be produced on several capacities at the same time. For example, machine and
labor. During scheduling, the bar lengths of the operations of the non-scheduling-relevant capacity
are adjusted to the bar length of the scheduling-relevant capacity. This means that even if there is
less capacity requirement for the non-scheduling-relevant capacity, the bar for the operation of the
non-scheduling-relevant capacity still has the same length. This is not the case for the remaining
capacity bars. The remaining capacity bars are calculated against the available operating time of the
machine. If the capacities for an operation have a different operating time, or if different capacity
requirements exist in the operation, the bars for the remaining capacity requirement may have different
lengths, even though the bars for the operations are the same length.
The data provider /LMPC/CL_DP_USER_102 reads up to 13 characteristic names and characteristic values
from the material classification for material class 001. Data can be read for the header material of an order, as
well as for the materials of the BOMs.
Customizing settings can be used to rename the fields. For details on this, see the LMPC Configuration Guide.
Setting HJPT Material Classification
Example
Material classification
The data is displayed in 26 fields in the ALV Grid of the HJPT planning table:
In the following example, 6 of these characteristics have been selected via Customizing, to display them in the
ALV Grid of the HJPT planning table.
Restriction
• The development has been made for material class 001. Characteristics and characteristic values can
be read for this material class only.
• The system can only read the classifications for the BOM materials that are displayed in the fields for
the BOM data in the HJPT planning table.
Remember
• Reading the material classification requires a lot of runtime. Therefore, the reading of classification
data should be handled sparingly and only those classifications that are absolutely necessary should
be read.
• Reading the material classification uses a day buffer to save runtime. The data is only determined
completely when the data is read for the first time per day. When the data is saved for the first time,
the read data for the materials is written to the day buffer. From this point on, the planning table reads
the data from the day buffer for the rest of the day. The key for the buffer consists of the HJPT overall
profile, the characteristic item, and the material number. If the classification of the materials or the
Customizing for reading the classification of the materials is changed during the day, these changes
are only visible as of the next day.
Related Information
The first 10 production resources/tools found for an operation are always displayed.
For planned orders, the production resources/tools are read from the routing of the material for the explosion
date of the routing. For production orders, the data from the assignment of production resources or tools to the
order operations is determined from the database.
The conflict check must be activated separately in the settings for the data provider. Data Provider /LMPC/
CL_DP_USER_103 Configuration: Production Resources/Tools
An LMPC alert exists that considers the conflict fields of the equipment check. Data Provider /LMPC/
CL_DP_ALERT Alert Processing [page 397]
Settings in Customizing can be used to restrict the display of production resources/tools. For more
information, see the relevant section in the LMPC Configuration Guide. C17 Transaction /LMPC/PRT_CUST,
M06 Transaction /LMPC/PRT_CUSTS: Filter for Production Resources/Tools
Note
• The data for the production resources/tools is read from the database. Therefore, any changes that are
made in the simulation, such as a change to the assignment of production resources or tools to the
operations, are not displayed.
• Only the check for conflicts takes place in the simulation.
• If simulative production orders are created, no production resources or tools can be read for this data
because the data does not yet exist in the database.
Layout Settings
The conflict fields can be used for coloring the ALV Grid of the HJPT planning table.
The data provider fills a field in the ALV Grid of the LMPC HJPT planning table.
The data provider calculates a time buffer. This time buffer shows whether orders are received on time or are
late.
Settings in Customizing can be used to define whether the time buffer is calculated with the requirements date
or the rescheduling date. Data Provider /LMPC/CL_DP_USER_104 Configuration: Calculate Buffer Days
For a description of the difference between the terms requirement date and rescheduling date, see the
documentation for the data provider for the requirement date. Data Provider /LMPC/CL_DP_BED LMPC
Requirement Date and Order Relations [page 401]
The time buffer is the number of days between the date of availability for MRP from the warehouse and the
requirement date or the rescheduling date.
The date of availability for MRP is calculated from the basic end date of an order to which the processing time
for goods receipt in days (WEBAZ) is added. The data for the availability for MRP is also calculated in the data
provider for the requirement date.
A negative number indicates that there is still time between the availability date and the requirement date/
rescheduling date.
A positive number indicates that the availability date is the specified number of days after the requirement
date/rescheduling date.
In the calculation with the requirement date, zero means that the order is available on the requirement date. If
there is no requirement date for an order, the number of buffer days is set to -999.
The calculation with the rescheduling date results in zero if no rescheduling date exists. In this case, it is
assumed that the order is scheduled at the correct time and the receipt is on the required date.
Depending on the settings of the data provider CL_DP_USER_001, only the rescheduling date of the header
material or the rescheduling date based on the header material and all co-products and by-products in
co-production is considered. Data Provider /LMPC/CL_DP_USER_001 Ranges of Coverage and Exception
Messages [page 454]
Examples: If the day of the MRP availability is the same as the requirement date, the time buffer is zero. If the
day of the MRP availability is one day before the requirement date, the time buffer is -1. If the day of the MRP
availability is one day after the requirement date, the time buffer is +1.
The calculation of buffer days can be reversed using a parameter in Customizing. A positive number means
sufficient buffer time and a negative number means the buffer time is exceeded. Data Provider /LMPC/
CL_DP_USER_104 Configuration: Calculate Buffer Days
Due to different customer requirements, there are two logics for calculating the buffer days.
• Logic 1 calculates the number of buffer days over the working days according to the factory calendar for
the plant. This is the standard logic in the LMPC delivery.
• Logic 2 calculates the number of buffer days using the available capacity of the scheduling-relevant
capacity at the work center of the respective operation.
Logic 1 and logic 2 return identical results if a capacity offer is available at the respective work center for each
workday of the factory calendar.
Note
The calculation is performed only for days as of the current date. Days in the past are not taken into
account.
In logic 2, each working day on which capacity is available is counted. Shifts are not allocated to the
working days. For example, if a night shift starts on a Sunday before midnight and the Sunday has no other
capacity, this day is still counted because there is a capacity offer on this day.
The values MRP availability, requirement date, and rescheduling date are the same for all operations of
an order. However, since the number of buffer days is calculated depending on the capacity offer at the
respective work center, the number of buffer days in an order can be different for each operation. This
occurs if operations of an order are produced in different capacities that have a different capacity offer. This
uncertainty must be taken into account by the user. Logic 2 can be activated using a parameter in the data
provider. Data Provider /LMPC/CL_DP_USER_104 Configuration: Calculate Buffer Days
The field for the buffer days is in the layout settings of the LMPC planning table, in the group of MD04 data.
Tip
Together with the field for the alerts, you can use this data in the HJPT planning table to get a quick
overview of whether orders are produced on time or late. You can see whether orders have to be brought
forward or whether there is still enough time and an order can be produced later.
There is another logic for calculating a float that works to the second. This can be activated using the
data provider CL_DP_GAP. Data Provider /LMPC/CL_DP_GAP Calculate Dispatching Gaps and Time for
Successor [page 433]
In contrast to the data provider /LMPC/CL_DP_STATUS, the data provider /LMPC/ CL_DP_USER_STAT
enables the variable filling of 5 status fields.
Material availability,
MACM material com-
mitted, NMVP mate-
rial availability not
checked.
FA_STATUS4_SU Order Header User Status Order LMPC FIX firmed, REL
Header released MISS missing
parts, IA in process,
RUST set up.
The fields can be found in the ATP and Status groups: They are assigned sequential numbers. The column
labels are not determined using transaction /LMPC/FLD as usual, but rather using transaction /LMPC/
CUSTADD.
To make the status fields visible in the HJPT planning table, the following columns are selected:
Layout Settings
Related Information
C03 Transaction /LMPC/CUSTADD, M05 Transaction /LMPC/CUSTADDS: Status Fields and Material
Classification
For the LMPC HJPT planning table, it is possible to record changes to the data and view these recordings.
The menu bar at the top of the screen contains two buttons for executing functions.
You use the second button to switch logging on or off. The icon on the button shows the current logging status.
A red circle indicates that logging is not running. A green square indicates that logging is active.
Logging is activated for the respective client. It only applies to the HJPT planning table.
Note
Logging the data costs runtime when saving the HJPT planning table. It occupies additional working
memory and can generate a large data load on the database. It is therefore recommended to use the
protocol only during the testing phase. The log should not be used in productive operation.
When you start the transaction, the selection fields are prefilled. The current day and a notional date in the
future are preset for the read period.
The work center is a required entry field and is prefilled from a memory variable if you have already executed
another transaction with a data field for the work center on this day. Only the field From is filled. The same
applies to the field for specifying the plant.
It is possible to specify a layout for the display. This is also optional. When a layout is transferred, this overrides
any layout defined by a user in the ALV Grid.
Data Output
After executing the data selection, the screen for displaying the data appears.
Data Output
The following data from the HJPT planning table is saved in the log:
Plant WERKS_CR
to
to
The data is determined at two points in time. When the data is loaded (LOAD) and when the data is saved
(SAVE). The data origin can be read in the field of the same name. By determining at two points in time, you can
check how the data of the orders was changed by the planning activities.
The data for the log is determined each time the HJPT planning table is started and each time the planning
table is saved.
If logging is active, the data is determined in the entire client each time it is saved in the HJPT planning table of
each user. It is not possible to restrict the selection to individual work centers or users.
Logging takes place both in dialog processing and in background processing using the program /LMPC/HJPT.
Program /LMPC/HJPT Background Processing [page 23]
The data is reduced to one data record for each order number and operation number. Only the data records of
the scheduling-relevant capacity are retained. If there are suboperations, the data record of a suboperation is
only saved if no data record exists for the main operation.
The data is sorted by order number and operation number before saving. The data records are numbered
simply. The counter displays a sequential number for all operations that were open in the HJPT planning table
at this time. This number can be used to read the number of data records for a point in time.
The fields for the save date and the save time show the user’s local date and local time at the time of saving.
These fields are used to select the data on the selection screen.
The fields for the read date and the read time show the local date and local time of the user at the time the data
is read. Using the comparison of the events LOAD and SAVE, you can read how much time has elapsed between
calling the data and saving the data.
Tip
The user fields from the HJPT planning table are saved in the log. If the log requires data for which
provisions have not been made, the data can be stored in the user fields.
The column headers of the user fields can be renamed. The descriptions that are maintained in transaction C10
for the user fields of the HJPT planning table are transferred. Since the data of the planning table log is not
saved and displayed with reference to the HJPT overall profile, only the descriptions for which an empty field
or an (*) is entered as the key for the HJPT overall profile are read from transaction C10. Settings for a specific
HJPT profile have no effect. Change ALV Grid Fields of HJPT Planning Table
The data is sorted by save date, save time, order number, operation number, and data origin before output. As
a result, the data that belongs to the same save time is displayed together. There are two rows in the table for
each operation: One data record for reading and one data record when saving the data. This makes it easier to
read the changes to the operations. You can use the layout settings of the ALV Grid to set a different sorting
that overrides the presorting of the data.
You can use the layout of the ALV Grid to show and hide fields as required, and you can also change the
sequence of the display. User-specific layouts or layouts for all users can be created and filters can be applied.
Functions
Note
Only the data that is read in the HJPT planning table can be saved. The data providers for the
corresponding data must be active so that they can be saved in the log. LMPC HJPT Data Provider [page
395]
The data remains in the system for 28 days and is then deleted automatically. You can use settings in the
LMPC control table to change the period for receiving the data. C16 Transaction /LMPC/STEU LMPC: Control
Parameter
The main purpose of the leveling function is the smoothing of production quantities per material within a
leveling period (this process is referred to as leveling).
The relevant production quantities are distributed evenly over the leveling period. Depending on the selection
of data and functions, the leveling function also provides supporting functionalities for leveling, which are not
directly part of the actual leveling:
The leveling function smooths the production quantities that result from the requirements over the chosen
period. The actual logic for performing leveling is contained in an interchangeable class, meaning that the
logic can be changed or replaced. The function is described below, using the function module delivered as an
example.
Restriction
The leveling function can be called as a standalone transaction or executed as a background job. It is also
available as an action code in the LMPC planning table (S_NIVEL).
The following steps are performed when the transaction is executed, whereby processing is in line with the data
selection. All steps are optional and you can select and deselect them on the selection screen. Steps 3 and 4
should always be executed together. One step has no effect without the other step.
1. Deletion of Firm Planned Orders for the Plant Material. Irrespective of the leveling period on the
selection screen. Only the firm planned orders are deleted.
2. Single-Item Planning, Single-Level for Plant Material (MRP Run). Not restricted to the leveling period
3. Execution of Leveling: Generation of new schedule line.
Remember
Customers can make enhancements to the logic by creating their own leveling classes.Enhancement
Options for HJPT Leveling
No further development is taking place for LMPC leveling. The functionality of LMPC leveling has been
moved to the separate consulting solution “lean rough cut capacity planning”.
The consulting solution LRP offers significantly greater functional scope than LMPC leveling. Further
developments will continue to be made for LRP.
Related Information
LMPC leveling
Caution
Note that you may need to configure the Leveling function before using it for the first time.
• Via the action code (S_NIVEL) directly from the LMPC HJPT planning table
General
Single steps
5. MRP multilevel
MRP settings
Create MRP List 1 Create MRP list (in the same way as in
standard requirements planning)
Configuration
Start Leveling
7. During subsequent leveling, the order quantities are leveled within the selected period of the basic start
dates, this is done according to the leveling logic configured under “Configuration”. With the leveled
quantity, planned orders are then generated as requirement coverage elements for each working day. At
the same time, these planned orders are fixed, to prevent them being changed by a standard MRP run.
8. After leveling is complete, the system displays the log that contains any errors.
9. You can now evaluate the requirement quantities and planning quantities in the stock/requirements list.
MD04 Evaluation
Note
• If you execute step 3 (leveling), you must also execute step 4 (creation of planned orders), since the
leveling result is otherwise lost and only planned orders are deleted.
• If you do not execute step 3 (leveling), do not activate step 4. Step 3 and 4 are always used together.
• If you execute both step 1 (delete firm planned orders) and step 3 (leveling), also execute step 2
(single-level MRP run) so that after the firm planned orders have been deleted, new planned orders are
created for leveling.
Caution
In the default class (Level Light), averaging is performed using the dates and quantities of the default
requirement proposals (that is, the planned orders produced in the first single-level MRP run). If the newly
generated orders cannot be produced within a day due to the requirement quantities, or additional buffer
times such as planned delivery times or goods receipt times are maintained, the requirement dates no
longer correspond to the basic start dates. If, due to backward scheduling, the basic start dates are now
before the period selected for leveling, the leveling function does not capture these quantities.
Use
If you execute the leveling function again to optimize your results after requirement quantities have been
adjusted and you want to choose a different selection period, you may need to delete the firm planned orders
created during the previous leveling. This function is primarily required for repeated tests.
Remember
All planned orders are deleted based on your selection. There is no selection period. Unscheduled, firm,
and dispatched planned orders are all deleted.
Execution
Use
Since it is possible to activate and deactivate the leveling steps on an individual basis, you can use a suitable
data selection by means of the leveling transactions to execute the MRP run on the production line only
(without additional leveling functions). All materials that are assigned to this line are selected.
Execution
The LMPC standard delivery includes the leveling class /LMPC/CL_NIVEL_FUNCTION_LIGHT. This contains a
simple leveling logic, which is described below.
Leveling is always executed for each material according to the following logic:
• The selection period is used to determine the number of days over which leveling is executed.
• During leveling using the factory calendar, the number of days of the factory calendar in the selection
period that are production days is determined.
• During leveling using the LMPC timetable, the number of days in the selection period on which planning is
intended for this material is read from the LMPC timetable.
Restriction
Only materials that are entered in the production groups of the timetable with material numbers can
be taken into account. During leveling, material numbers are not determined through the classification
of materials, the product hierarchy, or the material group, as is possible in the logic for dispatching by
timetable. Manual Maintenance of Production Groups
• The planned orders for the material in the selection period are read.
• The total of the production quantity is created for all planned orders in the selection period.
• The average production quantity per day is calculated by dividing the total production quantity by the
number of production days.
• For this average value per day, an entry for creating a planned order is written. First, the quantity is
rounded up according to the following rules:
• If a fixed lot size (FIELD MARC-BSTFE) is defined in the material master, the average quantity is
rounded up to the nearest multiple of the fixed lot size. If no fixed lot size is maintained, the average
quantity is rounded up to the nearest multiple of the purchase order quantity rounding value (field
MARC-BSTRF). If this value is also not maintained, the average quantity is rounded up to the nearest
whole number.
Caution
The lot size settings in the material master can cause the quantities for the newly created planned orders
to differ significantly from the average per day. For example, the minimum lot size can lead to the creation
of production quantities that are too large. These discrepancies cannot be cleared by the logic. The user
is responsible for the settings of the master data and may have to counteract this effect by changing the
master data.
If the action code S_NIVEL is active in the context profile used in the HJPT planning table (refer to the LMPC
Configuration Guide), you can call leveling directly from within the HJPT Detailed Scheduling Planning Board.
When you call the action code, the system does not display the leveling selection screen. The system levels the
orders immediately.
The input fields of the leveling program are prefilled by the parameters of the action code. In the default
configuration, material and plant are determined from the selection in the planning table. The period for
leveling is specified using user parameters. For the settings for the action code, see the LMPC Configuration
Guide. Action Code S_NIVEL: Configuration
The leveling selection screen is only displayed if the required settings are not transferred using the action code
parameters when the action code is called and are therefore missing.
Remember
After you call leveling, you must reload the LMPC data to load the new orders into the planning table.
Tip
The action code for direct execution of leveling in the planning table is a special application. The
planning data is deleted and compiled again by leveling, which requires the data to be loaded again. It
is recommended that you perform leveling using the separate transaction for leveling, or use simulative
leveling.
Simulative Leveling Within LMPC Planning Table with Action Code S_NIVSIM [page 491]
Simulative leveling
Use
With "simulative leveling" it is also possible to perform a leveling run directly in the SAP LMPC HJPT detailed
scheduling planning board.
You delete existing planned orders and create new planned orders in simulation mode directly in the open
planning table. The result of leveling is immediately visible and can be discarded again.
In contrast to the leveling transaction, the changes are not written to the database until saving is executed in
the HJPT planning table. If the changes are to be discarded, you can use the function reload or exit the HJPT
planning table to restore the status of the last save.
Caution
Before saving or reloading, you cannot continue planning in the HJPT planning table.
Restriction
You can only execute step 3 (Leveling) and step 4 (Create Planned Orders). A simulative MRP run is not
possible.
There are also fewer enhancement options available. Due to the changed data selection and processing,
only the enhancement options BAdI for the Material Authority Check and BAdI for changing the header
data of the planned order before generation, are available.
Procedure
It is recommended that you save unsaved planning statuses in the LMPC HJPT planning table before
executing the leveling, since in the event that the result of the simulative leveling is rejected, only the last
saved planning level is restored.
In this example, leveling is used on large requirement coverage elements generated by the MRP run. The
selected planned orders have been highlighted in the graphic using the action code S_MAGR.
The system opens a popup window in which you can make settings for the leveling run.
Leveling Firm Planned Orders Consider or ignore firm planned orders BLANK (ignore)
during leveling?
X: Consider
BLANK: Ignore
Leveling Start Date Start date of leveling Current day or the start of the planning
period if this lies in the future. New
planned orders cannot be created in the
past.
Leveling End Date End date of leveling End of the planning period minus a buf-
fer of 2 days or the current day, if the
end of the planning period is before the
current day.
Displaying the Log Should the system display the log after BLANK (do not display)
leveling?
X: Display
Confirm your selection in the popup window. Depending on the Customizing settings, the popup window may
be skipped.
If you have activated the leveling log display, the leveling log will be displayed once leveling has been
completed.
Result:
Result of Leveling
If you want to keep the results, save in the HJPT planning table. You can use the Reload function to discard the
simulation and restore the last saved planning state
Restriction
Further planning in the HJPT planning table can only be continued either after saving or a reload. If you try
to execute action codes anyway, the system prompts you to save or reload.
Note
LMPC order mass processing (/LMPC/MP) is a transaction for processing planned, production, and process
orders.
In contrast to the LMPC planning table transaction /LMPC/HJPT, the orders are only processed at header level
in LMPC order mass processing. It is not possible to edit data at the level of orders or capacity requirements.
The orders are only processed in the form of a list. There is no graphical representation. There are no planning
functions.
The aim of the development was to create a transaction with which certain functions can be executed easily
and quickly on a large number of orders.
The orders in the transaction are displayed in table form as a list of the selected orders.
All changes to the orders are updated immediately when an action code is executed. In contrast to the HJPT
planning table, it is therefore not possible to simulate the changes first and then save them collectively.
LMPC order mass processing is characterized by extensive customizing and enhancement options. The
columns displayed and the action codes available can be displayed in Customizing.
Enhancement interfaces can be used to enhance the program with customer-specific selection fields, data
selections, and action codes.
Related Information
You access the LMPC order mass processing via transaction /LMPC/MP.
The transaction starts with a selection screen. The conditions according to which the orders are selected for
processing are entered there.
Selection Screen
• MRP Controller
• Start
• Material
• Plant
• Work Center
• Resource network
• Sequence number
The following criteria are available for production and process orders:
• Order type
• System status (max. 2), restricting selection
• User status (max. 2), restricting selection
You must always specify at least one selection criterion from one of the groups "General Selection Criteria" or
"Planned Order/Production Order/Process Order" to read orders for the mass processing of orders.
Special feature of selection by work center: During selection by work center, planned orders are only selected if
they have undergone lead-time scheduling and have capacity requirements. For all other selection parameters,
capacity requirements are not necessary.
In the group of "Selection Criteria for Production/Process Order", only the order type is a selection criterion.
The System Status and User Status fields are only restrictive criteria. These two selection criteria cannot be
used as the only selection criteria. This means that you have to enter either an order type or a selection
criterion from the other two groups for a status.
The types of an order for each checkbox are also not independent selection criteria. A general selection
criterion or an order number must also be specified for a category. For example, if the category of planned
orders is to be selected (checkbox is set) and no additional selection criterion was specified in the general
selection criteria, no orders are read for this order category.
The restrictions to the order number in the section “Planned Order / Production Order / Process Order”
are only valid for the selected category of the order. For example, if you want to select planned orders and
production orders (checkboxes are set) and you have set a restricting order number for production orders only,
then all planned orders are read according to the general selection criteria and, for the production orders, only
the orders for which the number has been specified are displayed.
Special feature Start Date selection field: For planned orders and production orders, the selection is made
for the basic start date. For process orders, you can use the parameter settings for the data provider /LMPC/
CL_MP_DP_STD to switch the selection to the scheduled start date.
The following fields on the selection screen can be preset using user parameters:
The description of the user parameters are contained in the LMPC Configuration Guide.
After executing the selection, you branch to the screen for processing the orders. The work screen of LMPC
order mass processing shows a tabular list of all selected orders in an ALV Grid.
The bar with the executable functions is located above the ALV Grid. ALV Grid standard functions, such as sort,
filter, total, print, and so on are available. You then find buttons for the action codes of order mass processing.
The relevant Customizing settings determine which of the action codes are available.
• The buttons in the header of the ALV Grid enable you to execute the corresponding action on the selected
orders after selecting orders.
• You can double-click on individual ALV Grid fields to call action codes.
• You can use a function key (F-key = hot key) to execute action codes.
• Action codes can be executed using a field that is ready for input in the table display.
Restriction
Not all action codes can be executed with all types of call. This depends on the action code. The description
of the individual action codes in the following chapters provides more detailed information about this.
The update of all changes made by the functions takes place immediately in the database. It is neither
necessary nor possible to save changes manually. Therefore, the save button in the header bar is also
disabled.
The layout configuration of the ALV Grid enables the user to show or hide the available columns.
Order Header
Plant WERKS_OH
LMPC Fields
Technical Fields
Special feature Start Date: The basic start date is displayed for planned orders and production orders. For
process orders, depending on the parameter settings, the scheduled start date can also be displayed.
The standard delivery returns a DEFAULT layout, which is a basic setting for the fields. The display can be
adapted to the needs of each user.
To change the display, use the button for the layout in the header row of the ALV Grid.
Change Layout
You can use the menu option "Change Layout" to configure the displayed columns.
Column Selection
Columns available for selection are displayed filtered by category. The two buttons with the left arrow and the
right arrow button can be used to show or hide the columns.
Note
In contrast to the HJPT planning table, only very few fields are available in /LMPC/MP. For the runtime
to be as minimal as possible, only the most important data for the orders is read. If you need more data,
please contact LMPC consulting. Additional data can be added as part of an enhancement project.
The following describes the action codes of the order mass processing /LMPC/MP that are contained in the
LMPC standard delivery. The name of the action codes in the standard system all start with the letter “M”.
Related Information
MP Action Codes
Use
You can use the function M_ATP to execute a mass ATP check for the selected orders.
Procedure
Select an order.
Selection
Result:
For production orders, you can see the status for the result of the ATP check.
For planned orders, the status can be read via a jump to the relevant order.
Related Information
Use
You can use the “Change Order” function (M_CHANGE_ORDER) to switch to the order change transaction of
the selected order, depending on the order type:
After the user leaves the change transaction, the changed data is saved immediately. The changes to the
processed order are read and the display is updated in the ALV Grid.
The "Display Order" (M_DISPLAY_ORDER) function works in the same way as "Change Order", however, the
relevant display transaction (MD12, CO02, COR2) is called instead of the change transaction. After you leave
the transaction, the system does not update the data in this case.
Restriction
Only one order can be processed per function call. In the event of multiple selection, only the first selected
order is opened.
Tip
In the standard system, Customizing is set such that when you double-click on the order number, the
system calls the change transaction.
Procedure
Select an order.
Result:
Change Screen
Related Information
Use
Using LMPC order mass processing, you can convert planned orders to production or process orders.
Procedure
Select an order.
Selection
The system asks you whether you really want to execute the action.
Result:
Restriction
It is not intended to output the log of the conversion for the action code M_MFREI. Do not set the output of
the log in the program variants for the program PPIO_ENTRY because this will result in errors.
Related Information
Create Orders
Use
You can use LMPC order mass processing to branch directly to the transactions for creating new orders. A
planned order (MD11), a production order (CO01), or a process order (COR1) can be created.
After you exit the transaction, order mass processing checks whether new orders exist that match the
selection criteria. If new orders are found, they are added to the table for order mass processing. This means
Restriction
Procedure
Choose the pushbutton (M_MD11) to jump to transaction MD11 for creating a planned order.
Result:
The system issues a message with the order number in the footer:
Message
Related Information
Use
This function can be used to change the LMPC order text. The change can be made in two ways.
LMPC order texts that are older than 6 months are automatically deleted when the function is used to prevent
an overflow of the database table.
Remember
The LMPC order text does not correspond to the order text in the header of the production order. This is
a separate text that can be maintained for each order within LMPC and is available in the LMPC planning
table and in LMPC mass processing. This text can also be set for planned orders.
Enter an LMPC order text directly in the corresponding field in the ALV Grid.
Confirmation Message
Dialog Box
Use
You can select and change the production version for each order using a dropdown menu in the relevant row in
the ALV Grid. Only production versions that have the following characteristics are available:
The switch takes place after selecting the new production version, either by choosing Enter or by switching to
another cell in the ALV Grid.
Restriction
• Production versions must contain information about the lot size so that they can be processed.
Production versions that do not have lot size information are not read and processed.
• This action code can only be executed using the dropdown menu (Trigger field ready for input). A
different trigger is not an option.
Procedure
For an order for which there are several valid production versions, select a production version directly from the
dropdown menu of the “Version” column.
Choose Enter.
Use
Procedure
The system asks you whether you really want to execute the function.
Result:
Result
Related Information
Use
You can use this function to release production orders and process orders.
Procedure
Selection
The system asks you whether you really want to execute the function.
Result:
The status field for the system status of the order header changes. The status of the order is set to released.
Result
Related Information
Go To Material Master
Use
You can use this function to switch to the material master display for the material of the selected order.
Procedure
Select an order.
Selection of an Order
The transaction MM03 opens to display the produced material of the order.
MM03 Screen
In the standard system, the action code is set in such a way that the display of the material is opened in a new
session.
Related Information
Use
You can use this function to technically complete production or process orders.
Procedure
Selection
The system asks you whether you really want to execute the function.
Result:
The status in the system status field of the order header changes. The order now has the status “technically
completed”.
Result
Related Information
Use
The pool formation combines orders into groups. A group is identified by means of the pool ID. The pool
function is a function of the LMPC HJPT planning table and is also made available in LMPC order mass
processing. Pool IDs created in order mass processing are also available in the LMPC HJPT planning table and
vice versa.
The "Order Pool" column shows the current pool allocation of an order.
Procedure
Selection of Orders
Depending on the configuration, you may need to assign the pool number (pool ID) manually. However, it is also
possible that a number from a number range or a unique newly generated GUID is assigned automatically.
Dialog Box
The orders have been merged into one pool and have a pool ID:
Result
Pool IDs can only be assigned to production orders and process orders if they are not locked. If there is a lock
for at least one of the selected orders, the function terminates with an error message.
The behavior of the pool function can be adjusted further using parameter settings. The parameters are
described in the configuration guide for the action code.
Restriction
The trigger for fields that are ready for input is not supported for this action code.
Related Information
This function removes the pool assignment for all selected orders.
Remember
A separate action code was created in /LMPC/MP for the removal of the pool ID. In the LMPC HJPT
planning table, however, the removal can be performed with the same action code as the one for setting the
pool ID.
Restriction
The trigger for fields that are ready for input is not supported for this action code.
Related Information
Filters
Use
The quick filter function action code M_QUICKFILTER is used to filter the ALV Grid for a single value of a field.
When the action code is executed, the current sorting and the current filter of the ALV Grid are saved. The
previous filter is removed and a new filter is set up with the value of the quick filter. Sorting is not affected by
this.
The quick filter is removed using the action code M_QUICKFILTER_REM. This is connected to the Back button
in the menu bar in the standard delivery. However, the action code can also be executed using an action code
button in the header of the ALV Grid. This restores the saved filter and the saved sorting.
In the standard system, a quick filter is set up for the material number.
Restriction
You can filter only one field value at a time. A combination of field values is not possible. A quick filter
cannot be set again while a quick filter is active. Combined quick filters are therefore not possible. You can
double-click to create quick filters for multiple fields, but only one quick filter can be active at a time.
The trigger for fields that are ready for input is not supported for this action code.
Procedure
Double-click procedure:
Initial Situation
Initially, a large number of orders is displayed. A quick filter is set up for the “Material” field.
Result:
To remove the quick filter, choose the Back button in the SAP GUI menu bar.
The quick filter is deleted and the previous sorting and previous filters are restored.
Initial Situation
Initially, a large number of orders is displayed. A quick filter is set up for the “Material” field.
Selection
In Customizing, you have set that the system is to filter according to the material column.
The material number is read from the selected line and a filter is set for this value.
Result
To remove this filter, choose the ALV Grid button (M_QUICKFILTER_REM). The quick filter is
deleted and the previous sorting and previous filters are restored.
Use
Reload
In the case of a reload, all data of the order table is rejected. The orders are then selected again and their data
loaded. A reload is therefore a new entry with identical selection criteria.
Refresh
In a refresh, the system reads the data for all open orders again. Since no new selection takes place in contrast
to the reload, the refresh does not find any new orders. The refresh takes less runtime than the reload.
Delta Refresh
During the delta refresh, only the data for the selected orders is reloaded.
Procedure
Open orders in LMPC order mass processing were changed externally, not in the program itself. If you now
want to reload the current data for these orders, choose the Refresh button. If you also want to search for
new orders in the meantime, use "Reload" instead. If you only want to read data for specific orders, use "Delta
Refresh".
In addition to refresh and reload, there are two other functions that are only used internally by other action
codes. A direct call by the user is not planned. The action codes are documented here for the sake of
completeness.
Restriction
The trigger for fields that are ready for input is not supported for these action codes.
Set Selection
Use
You can use the action code (M_SET_STATU) to set orders to "processed" manually. The
selection is purely for information purposes and has no actual effect on the order.
It is saved using an LMPC table, from which old entries are automatically removed after a configurable period.
In the ALV Grid of order mass processing, the column with the flag for processing can be displayed. For
example, a filter, a sorting, or a coloring can be set for this field.
In the standard system, the field is colored with the status green if an order is marked as "processed" and in
light blue if it is not flagged.
You can use the action code (M_RESET_STATE) to remove the selection of the order.
Procedure
Selection
Result
The trigger for fields that are ready for input is not supported for this action code.
Related Information
For a production order, the LMPC order report shows an overview of the upstream planned and production
orders for all low-level codes of the materials used. It has a similar structure to the material tree of the standard
SAP transaction MD4C.
In the LMPC standard delivery, the LMPC order report shows the same data as transaction MD4C. However,
the difference lies in the fact that an extension is possible via data providers and field enhancements of the
underlying ALV structure.
• Via an action code from the HJPT planning table. S_ORDREP LMPC Order Report [page 143]
• As a standalone transaction. Transaction /LMPC/ORDER_REP LMPC Order Report [page 520]
Related Information
You can use transaction /LMPC/ORDER_REP to call the LMPC order report.
The description for the application is located in action code S_ORDREP. S_ORDREP LMPC Order Report [page
143]
Up to this point, the documentation for the HJPT planning table only deals with the planning scenario for
discrete manufacturing in PP and the planning of orders in the process industry PP-PI.
This unit introduces further planning scenarios that are also possible with the HJPT planning table.
In co-production, other products are created in the production process in addition to the main product.
Depending on how the data is modeled, these are called co-products or by-products.
Co-products and by-products are displayed in the fields for the BOM data in the HJPT planning table.
Since these products are received in the production process and are not consumed, they have a negative
requirement quantity.
You can make additional data available for co-production by making settings in the following data providers:
• Data Provider /LMPC/CL_DP_BED LMPC Requirement Date and Order Relations [page 401]
• Data Provider /LMPC/CL_DP_BOM Component Data or BOM Data [page 410]
• Data Provider /LMPC/CL_DP_MARC Plant Data for Material [page 436]
• Data Provider /LMPC/CL_DP_USER_001 Ranges of Coverage and Exception Messages [page 454]
• Data Provider /LMPC/CL_DP_USER_104 Calculate Buffer Days [page 471]
The HJPT planning table supports a scenario in which a time-phased production plan is created. The aim is to
produce orders for the same product in the same lot size at regular intervals. This reduces quantity on hand
and smooths production.
This consulting solution determines the optimum lot size for the materials to be planned and enters it in the
material master.
The MRP run uses this lot size to create planned orders that can be dispatched in the next step using the
planning functions of the HJPT planning table.
The following HJPT planning functions are available for dispatching in the EPEI scenario:
For information on EPEI analysis, see the documentation on the consulting solution EPEI. EPEI - Every Part
Every Interval
The HJPT planning table can be used extensively for the planning scenario of repetitive manufacturing.
Since the HJPT planning table processes capacity requirements of operations as a data basis, the planned
orders in repetitive manufacturing (PP-REM) must have undergone lead-time scheduling to be processed.
The LMPC HJPT action codes were developed for the scheduling level of detailed scheduling.
Therefore, only planned orders with detailed scheduling in repetitive manufacturing are supported. Planned
orders with rate-based scheduling are not supported.
With a few exceptions, all LMPC HJPT action codes can be used for planned orders in repetitive manufacturing.
The following list of action codes cannot be used in repetitive manufacturing. These are functions for the
process industry and functions for production orders.
• S_ORDCL Closing Individual Production Orders or Process Orders Technically [page 142]
• S_ORDCLM Completing Production Orders Technically in Mass Processing [page 143]
• S_ORDREP LMPC Order Report [page 143]
• S_PCONV Partial Conversion of Planned Orders with Subsequent Dispatching [page 144]
• S_PHCH Change of Duration of a Phase in Process Order [page 146]
• S_SARBPL and S_HARBPL Change the Work Center for Operations of Production and Process Orders
[page 150]
• S_SPLIT Distribute Capacity Requirements to Individual Capacities Manually [page 155]
• S_ATPA Individual Availability Check [page 316]
• S_ATPPIO ATP Check and Order Conversion [page 317]
• S_CONVPI Mass Conversion of Planned Orders to Process Orders [page 318]
• S_CONVPP and S_CONVPL Mass Conversion of Planned Orders to Production Orders [page 319]
• S_COOIS Information System for Production Orders [page 320]
• S_COOISP Information System for Process Orders [page 321]
• S_MFREI Mass Release of Orders [page 322]
Takt-based planning or takt-based flow manufacturing is a special area of repetitive manufacturing with its own
master data.
For planned orders with the order type run schedule quantities, rate-based scheduling is used instead of
detailed scheduling.
Therefore, the planned orders of takt-based planning cannot be processed in the HJPT planning table.
If you want to use takt-based planning with the HJPT planning table, you need the additional consulting
solution takt-based scheduling (TBS). This consulting solution is used to create discrete, detailed scheduled
orders from the planned orders of takt-based planning. These orders can be processed using the HJPT
planning table.
Using the LMPC HJPT planning table with networks from the project system
The HJPT planning table can be used to plan networks in the project system.
The capacity load chart displays the capacity commitment of networks, provided that the relevant Customizing
settings have been made.
You can use the data provider /LMPC/CL_DP_PS_AFAB to read additional data for the project system. Data
Provider /LMPC/CL_DP_PS_AFAB Relationships [page 444]
Tip
If the scheduling formulas at the work center are set correctly, it is also possible to create networks (PS)
and planned or production orders (PP) in the same work center.
The standard action code for changing networks is S_AV77. S_AV77 Change Network [page 105]
The standard action code for dispatching network operations is S_EPNP. S_EPNP Dispatching Operations of
Networks [page 175]
Furthermore, the following action codes can be used for planning networks:
• The list of order relations does not display any data for networks themselves, but requirements
relevant to MRP from order reservations of networks are listed with quantity and date. Negative BOM
requirements, that is, receipts from networks, are not displayed in the order relations.
• Since networks are not based on materials, unlike in discrete manufacturing with planned and
production orders, no development of the stocking situation can be displayed for networks.
• No requirement dates are determined for operations in networks.
Using the special procurement key 52 “Direct procurement/in-house production”, it is possible to create a
collective order using the BOM. The orders are linked to each other across the low-level codes.
This leads to special behavior of the orders during scheduling and dispatching.
Orders in collective orders are always scheduled together. In a collective order, there is a leading order that
determines the dates and quantities in the entire network. As soon as the operation date of the leading order of
a collective order is changed, the dates of the linked orders change automatically.
If the quantity of the leading order is changed in a collective order, the quantities of the following orders also
change.
Collective orders consist either only of planned orders or only of production or process orders. If you trigger
the conversion for a planned order in the collective order, all planned orders of the entire network are converted
into production or process orders.
Caution
It is recommended to process only production or process orders of collective orders in the HJPT planning
table. This is because the processing of planned orders of a collective order with the HJPT planning table is
only possible to a very limited extent.
Planned orders can be displayed and also be converted to production or process orders in the HJPT
planning table.
The standard SAP system does not allow this for the capacity planning table. See SAP Note 131468
• If only one operation of a collective order is dispatched and the other operations of the same network are
not dispatched and these operations have the status Deallocated, this causes the operation times of all
operations to change. Scheduling is always executed for all operations of a network if they have not been
dispatched.
• If an operation of a collective order is not open in the HJPT planning table and is not dispatched, it is still
scheduled if the related operations that are open in the HJPT planning table change.
So that the planning function considers the sequence of the operations in the collective order and only allows
dispatching in the correct sequence, two checkboxes must be set in the strategy profile for dispatching:
Remember
For dispatching and rescheduling production or process orders of a collective order, only certain functions
of the LMPC HJPT planning table can be used. Dispatching is only possible if the orders are dispatched in
the correct sequence that is specified by the network.
Only the following planning functions can be used to process orders in collective orders. All other planning
functions of the HJPT planning table are not suitable for collective orders.
Dispatching several or all operations of a collective order at the same time as the scheduled start date or
as early as possible:
Rescheduling operations in a collective order that have already been dispatched to another date:
Restriction
• Collective orders are displayed in a separate section in transaction MD04. This section is not processed
by the HJPT planning table when determining the requirement dates. Therefore, no data can be
displayed for the requirement date. This also means that the list of order relations for collective orders
cannot be used.
• The LMPC mass processing of orders /LMPC/MP is not suitable for processing orders of a collective
order.
• LMPC leveling cannot be used for materials of collective orders.
For all questions regarding the use of all LMPC functions with collective orders that are not listed here, contact
your LMPC consultant.
Tip
The advantage of direct production with collective orders is that there is a direct link between the orders
across the low-level codes. This ensures consistent production across all low-level codes. However, the
use of direct production is subject to a number of restrictions. For example, it is not possible to replace a
production order with another order for the same material in the collective order.
The use of collective orders in connection with the LMPC HJPT planning table is possible, but is not
recommended due to the restrictions.
You can use the LMPC order relations instead. You can also use this LMPC planning scenario to ensure
consistent, multilevel planning across all low-level codes.
If you only need a two-level connection, it is recommend that you use two-level planning with a pool ID.
As an alternative to collective orders, it is also recommended that you use the multilevel order report in
transaction MD4C.
If you want to report errors for the LMPC consulting solution, you can do so via the SAP ticket system.
1. First, check that you have installed the latest transport of your LMPC cycle in the system. New levels
for the respective LMPC cycle are published at regular intervals. The last level contains all previous error
corrections. Perhaps an error that you want to report has already been corrected. It is then sufficient to
download and import the latest transport of LMPC from the delivery platform. For instructions on how to
check your LMPC cycle, see the following section: LMPC Cycles [page 12]. First compare the level in your
system with the level that is available for download in the delivery platform.
2. Create an OSS incident under the component XX-PROJ-CON-LMPC. For the priority of tickets, refer to
SAP Note 67739 .
3. Make sure that the system connection is open and that credentials for logging on to the system are
provided in the secure area of the incident. Check that it is possible to log on to the client of your choice.
Also check that the provided user name has authorization for the LMPC transactions and debugging in
the system.
4. Describe the issue: What is the system behavior and what would you have expected?
5. Provide a step-by-step description with an example of how to reproduce the error. An example includes:
• System name
• Client
• LMPC HJPT overall profile
• Plant
• Work center
• Sample order number
• Name of function used
• Description of the individual steps that you have performed one by one
Describe the example in a document and attach it to the incident.
Create a ticket for each topic. Please do not mix topics in the tickets. See SAP Note 50048 .
Remember
• LMPC consulting support only checks for errors in the source code. LMPC consulting support does not
provide support for the correct configuration. Therefore, LMPC consulting support does not check any
settings in your system. If you have questions about the settings of functions in the system, or require
help with testing, contact LMPC Consulting.
• If you experience problems with the CORE transports, open an incident under the component XX-
PROJ-CON-MCF.
Hyperlinks
Some links are classified by an icon and/or a mouseover text. These links provide additional information.
About the icons:
• Links with the icon : You are entering a Web site that is not hosted by SAP. By using such links, you agree (unless expressly stated otherwise in your
agreements with SAP) to this:
• The content of the linked-to site is not SAP documentation. You may not infer any product claims against SAP based on this information.
• SAP does not agree or disagree with the content on the linked-to site, nor does SAP warrant the availability and correctness. SAP shall not be liable for any
damages caused by the use of such content unless damages have been caused by SAP's gross negligence or willful misconduct.
• Links with the icon : You are leaving the documentation for that particular SAP product or service and are entering an SAP-hosted Web site. By using
such links, you agree that (unless expressly stated otherwise in your agreements with SAP) you may not infer any product claims against SAP based on this
information.
Example Code
Any software coding and/or code snippets are examples. They are not for productive use. The example code is only intended to better explain and visualize the syntax
and phrasing rules. SAP does not warrant the correctness and completeness of the example code. SAP shall not be liable for errors or damages caused by the use of
example code unless damages have been caused by SAP's gross negligence or willful misconduct.
Bias-Free Language
SAP supports a culture of diversity and inclusion. Whenever possible, we use unbiased language in our documentation to refer to people of all cultures, ethnicities,
genders, and abilities.
SAP and other SAP products and services mentioned herein as well as
their respective logos are trademarks or registered trademarks of SAP
SE (or an SAP affiliate company) in Germany and other countries. All
other product and service names mentioned are the trademarks of their
respective companies.