Cancel
Showing results for 
Search instead for 
Did you mean: 

Creating MUs via method; inappropriate amount of parts created

Valued Contributor
Valued Contributor

First, I set a batch size (Losgröße) via a prompt method.

That method successfully sets a batch size value in a table (Liefertabelle) in root network.
Now, I have CreateMUs method (BEsErzeugen) which is also in root and aims into a buffer (Scheinquelle).
If I check the content list of the buffer, I can see that I always only get a fraction of the number of parts;
and some of the 8 parts in my production list are even ignored and jumped over.
This should be because of an error in my MU creation method.
Since it is set up in root network, interference with traversing MUs should not collide and change behavior of the method (as if it would if it was set in an exit strategy in a source, for example)

So my suspicion is that the creation of MUs loop in lines 36-39 has an error or is interrupted.

I am creating MUs via this method.
1.PNGcreating MUs Method.2.PNGtable of contents pf the buffer, just some of the parts are created and in lower numbers than the batch size.3.PNGBatch size was set to "5" and there are 8 MUs to be made, but output was different.

1 REPLY

Betreff: Creating MUs via method; inappropriate amount of parts created

Valued Contributor
Valued Contributor

The solution is that the inner loop already has an inherited counter;
it does not require a i:= i + 1 line, it already counts up;
so the parts created would jump by the number of 2 instead and 
this results in counting upwards twice quicker and producing half the MUs.

;-)