To create a new program through the pgmdef copy function
-
Create a program definition by using the Program Definition
utility (
pgmdef
).- Access your development Environment through a Lawson Interface Desktop (LID) session.
- Use Form Transfer (F8) to access the Form Transfer form.
-
In the Form ID field on the Form Transfer form, type
pgmdef
and click the OK button or press Enter. -
In
pgmdef
, select a product line and system code, and press Enter. - Select the program you want to copy.
- Press Define (F6) and select Program.
- Press Copy (F6).
- Supply a program code for the new program and press Enter.
- Modify the program parameters, if necessary, and press Enter.
-
Make changes to the source files to reflect the business
logic you need.
Note: The
pgmdef
copy function creates new source that already includes changes to the program code references. - If you change a form definition or report definition source file, recompile that source file in order to create new DSD or PRD source files.
- Compile the program. For information on compiling form definitions, see Compiling a Form. For information on compiling report definitions, see Compiling a Report.
- Move the program object to your production Environment, compile the form definition for this Environment, and, if you want to allow access through a menu, modify a Lawson menu to include the program.