benito
7th October 2002, 21:26
I am setting up a job for MRP to run everynight. On my old Baan machine MRP was setup so that "Effective date for MRP sales forecast" (indt.foca) is equal to "date() + 0". Obviously the original MRP was set to have the date always current on the mentioned field.

Looks like I have no way of doing this in my current MRP setup except to go to GTM and force the statement. I have not done this before so I was wondering if some experts out there has any take on this. Is this the correct way?

Thanks.

NPRao
7th October 2002, 22:41
Benito,

An idea you might try -

Add this code in the script -


field.indt.foca:
before.input:
if job.process then
indt.foca = date()
endif


Warning - I am not a Manufacturing Expert to predict whats the cause and effect of setting that fields values.

benito
8th October 2002, 00:13
NPRao,

I have no source code. I am just trying to follow the logic from my old Baan machine.

What I believe they did was to hack table ttaad503, Job Input Variables and place the code there. The variable is actually a string with 200 length.

I can probably do the same but I'm just wondering if this is the proper way to do or am I missing something?

Thanks.

Djie-En
8th October 2002, 13:45
Hi,

If you choose in the menu "TOOLS" / "MAKE JOB" then you get the question:
"Consider the date between entered date and system date?"
This insert your choise (date) in the table and take it in account when running.

GN

benito
8th October 2002, 16:39
Hi Djie-En,

That's what I'm missing! Thank you very much!