[RESOLVED] Routing - Calculate End Date

Toddy_BoyToddy_Boy Member Posts: 231
I've been using an in-house developed production scheduler for months now without a glitch. This has a function to move a single operation in the same manner the graphical gantt chart allows. Yesterday, today and probably tomorrow I get a load of errors when trying to calculate the end date as a result of moving a routing line.

I run this statement
ProdSchedCalc.CalculateEndDate("Prod. Order Routing Line")

where is ProdSchedCalc codeunit "Prod. Schedule Calculations".

The problem occurs trying to execute statement
ProdOrderLine.GET(Status,"Prod. Order No.","Prod. Order Line No.");

in procedure
ProdOrderNeeds

in Table 5407 Prod. Order Component

Any ideas as to why it has started happening now .. maybe a calendar thing?

Cheers

Steve[/code]
Life is for enjoying ... if you find yourself frowning you're doing something wrong

Comments

  • AdamRoueAdamRoue Member Posts: 1,283
    Do the calendars for the work centres extend far enough into the future or past?
    The art of teaching is clarity and the art of learning is to listen
  • Toddy_BoyToddy_Boy Member Posts: 231
    Sorted it. There was a record in the Prod. Order Component table which has a status of Simulated, with no production order or line number, and an item number. Cannot recreate this line by inserting into the table so I have no idea how it got in there.
    Life is for enjoying ... if you find yourself frowning you're doing something wrong
Sign In or Register to comment.