question

Thomas K4 avatar image
0 Likes"
Thomas K4 asked Ben Wilson commented

How to edit flowitem.label in this case?

Hey Community! I got a little problem here. For the dwell time in the rack, i labeled the flowitems. Now I want to implement a new inventory policy, first for one special article (item.Artikelnummer=46756793.50). To do this, I trash those articles with process flow and instead I want to create them in a different source. The reason therefore is, only if all articles with the same ordernumber are available, they can be released. But as I have no clue how to do this, I just want to time them like it would work this way.

Example picture of Data

So in this case (other articlenumber - just example) the flowitem with the articlenumber 46754748,5 was available on 27.10.2017. But if I would put this article on stock, the whole order would be released 5 days earlier. Therefore i added a second rack (at the moment no function) but doesn't matter now.


So I just separated this special article and wrote the ordernumber with push to list in my list "Auftragsnummer". But the problem is, this will be too late. Because when this article arrives in my source, it is already 27.10 and the whole order is late. So I have to write some custom code, which searches in the GlobalTable1 for all orders this article is included and will edit just the itemlabel (item.Verweilzeit) for the flowitem, which is the time in seconds, the article has to stay in the rack.

So for example I have to search for ordernumbers (column Auftragsnr.) in GlobalTable1 whith articlenumber 46754748,5 and edit the label Verweilzeit from all other articles in this ordernumber by the difference from the penultimate value of Verweilzeit to the last one.

Hope you can understand what I am asking, otherwise do not hesitate to ask! Also if there is a simpler way, please tell me!

Thank you!

Simulation_Versuch_Mindestbestand_ProcessFlow_.fsm

FlexSim 21.1.2
flexsim 21.1.2custom codeinventory control
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Felix Möhlmann avatar image Felix Möhlmann commented ·

Let me ask whether I understood you correctly.
Whenever an item arrives, you want to check whether the last item that will arrive in that order is of the "special" type you want to keep in stock. If that is the case, you want to reduce the dwell time, so the items get released already when all but that "special" item are available.

In your example you would want to reduce the Verweilzeit-label by five days on the first three items in the table once they arrive? Is that correct?

0 Likes 0 ·
Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @Thomas K4, was sebastian.hemmann's answer helpful? If so, please click the red "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Sebastian Hemmann avatar image
0 Likes"
Sebastian Hemmann answered

Hi @Thomas K4, as I understand you, you know the number of objects that you want to wait for!?

In this case I would use a batch activity and wait until the number of objects is reached.

Please let me know, if I assumed something wrong.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.