Is there a problem in calling a codeunit directly from the menu? I have been told by several people at a solution provider to NOT do that, instead to have the menu call a processing only report and to have the report call the codeunit. No explanation, other than "this is not classic".
Since the menusuite does allow object type Codeunit, and I see the some codeunits called from the menu in the Demo Database menu, I am puzzled by this.
Does anyone know of the reason behind this prohibition? Thanks.
0
Comments
The purpose of the codeunit is mass edits of migrated data (purchase orders, sales orders). It is a re-implementation. There are too many POs and SOs to enter manually. I am importing using Rapidstart. There have been heaps of changes in related tables (currency code, posting groups, country/region code, etc) and some decisions are still being made.
I used the codeunit from the menu in the test db to delete bogus imported sales header records. Nothing blew up. It worked as I expected. The only reference materials (MSDN, Brummel's book) mention calling codeunits from the menu in passing as part of a list of objects. So I don't understand why two staff from the solution provider have told me not to do it. Their recommendation, to have the menu call a processing only report, and have the report call the codeunit, seems unnecessarily complex. If I had to get a processing only report involved, I was just use it and not a codeunit at all.