View Full Version: Mm280 W/o Company Required

LawsonTalk > Coding, Program Errors and Bugs > Mm280 W/o Company Required


Title: Mm280 W/o Company Required


cjmart - March 26, 2007 07:50 PM (GMT)
Let's say I wanted to create a custom program which is basically just a copy of MM280 but doesn't require the company parameter to be entered when it's submitted. Making this field not required - is this just a simple change in the PD?

MannieJ - March 26, 2007 10:48 PM (GMT)
If you are a cobol programmer then this is somewhat a straight forward thing to do. If not then this becomes a challenge.

1. You need to remove any COMPANY references in both $FORMAT and $FIELDS detail entries of the .rpt file
2. You need to remove testing of PRM-COMPANY in the cobol procedure division.
3. If COMPANY is part of a index key definition(table), then you will need to hard code the value of the COMPANY.

Note: if you have only one and only one Company, and it's value is the same all over
table settings then you can simply put a default value in the parameter field in the .rpt file and recompile.

cjmart - March 27, 2007 01:33 AM (GMT)
I'm not a cobol programmer, but thankfully we have one here that is looking into it. Thought I'd see what the lawsontalk world had to say about it.

Thanks for your feedback!



Hosted for free by InvisionFree