You are on page 1of 3

I wanted to use the fucntionality of Planned Orders / Production Orders dispatch in Background using

T.Code: CM40 and in CM40 screen Action we have 3 Options 1. Dispath 2. Deallocate and 3. User Exit
can any one please let me know whether you have used the User exit and what code need to right
there.

Can any one please give me the code sample to disptch the orders in below sequence.

1. Production Order based on earliest finish date.

2. Planned Orders based on Order finish date.

If you only want to dispatch, I don't see why you'd want to use the User Exit option.

I think that you can get what you want by choosing the Dispatch option.

The strategy for this is defined in the Overall Profile. Overall Profile is a profile that gathers a number of
other profiles, so you need to go through the definition of those and choose existing profiles or create
your own, in which you define the dispatch strategy, like you want.

Once running CM40 in background, I receive an error message like:

"No capacity requirements were found in the evaluation period

Message no. CY140

No capacity requirements records were found for the selected orders in the evaluation period.

Procedure
You should check the evaluation period in the time profile in Customizing. Try refreshing the chart by
clicking on the right mouse button and selecting 'Refresh'."

Time Profile OPD2 is fine.

It is maintained

- work scheduling view is maintained for the material.

- Work center capacities with formulas are relevent for "finite scheduling" and capacity planning.Chec in
CO02 capacity view.

- Control key generate capacity reqs with scheduling indicator enable.

- In planned order parameters OPU5 the indicator "generate capacity requirements with scheudling"
with selection ID of routing is active.

Checking the planned orders, I can see that capacity requirements were created in the given period,
nevertheless system in CM40 is informing that there isn't capacity requirements.

I'm not sure where I should look now to solve this matter.

Check up with this solution:

There may not be any capacity requirements in the evaluation period mentioned in the "Time profile".
So increase the period in the Evaluation period in TIme profile and assign this in the Overall Profile used.
Yes, all these things are important and necessary to make it run, but was not our problem.

We finally have indentified the problem, and is related with control profile and period profile. For some
reason, once we choose tabular and period (in control profile), the problem happens, togheter with the
period profile that we select. As we are running in background(CM40), we have decided to select "no
display" and to have another overall profile with tabular form and our time profile and strategy profile
for CM22.

So we solve our problem with a overall profile without display and another one whit our own
configuration in the time profile and strategy profile for CM22.

You might also like