Previous Thread:   9899.1 master planning for one warehouse

9/17/2005 7:01:23 PM    9335.1 Setup Start Date & Start Time for the batch job by program coding
Hi All,  
  
I am trying to make the inventory journal posting in the batch mode.  
  
What I do is like the followings:  
  
InventJournalCheckPost.batchInfo().parmBatchExecute(NoYes::Yes) ;  
  
InventJournalCheckPost.batchInfo().parmGroupId(batchGroupId) ;  
  
InventJournalCheckPost.batchInfo().doBatch() ;  
  
The process is successfully run in batch mode.  
  
Moreover, this time I have to make the posting job run at night, so  
  
what I did was by the following before running the doBatch method:  
  
InventJournalCheckPost.batchInfo().parmStartDate(systemdateget())  
  
;  
  
InventJournalCheckPost.batchInfo().parmStartTime(str2time("23:00:00"))  
  
;  
  
However, the batch job was created successfully in the batch list, the  
  
start time was wrong.  If I started the processing to that batch, it ran  
  
immediately.  
  
Do you guys know what should I do in order to make it run at the time  
  
I specified??  
  
Thanks & Regards,  
  
Tung  
  
Posted on technet.navision.com on: Tuesday, February 17, 2004