I'm trying to run a report through a codeunit and set filers on the territory and sales header tables. The codeunit will be scheduled to run at night.
My code is
territory.SETFILTER(Code,'S');
salesheader.SETFILTER("Order Date", TODAY);
I can set a filter on the name field of the territory table but not the code field, is there a way around this?
I also need the sales header to filter with todays date (date of running report) there must be some format issue but I can't get it working.
Thanks for any help
NAV v4 SP2
0
Comments