To create a new program through the pgmdef copy function

  1. Create a program definition by using the Program Definition utility (pgmdef).
    1. Access your development Environment through a Lawson Interface Desktop (LID) session.
    2. Use Form Transfer (F8) to access the Form Transfer form.
    3. In the Form ID field on the Form Transfer form, type pgmdef and click the OK button or press Enter.
    4. In pgmdef, select a product line and system code, and press Enter.
    5. Select the program you want to copy.
    6. Press Define (F6) and select Program.
    7. Press Copy (F6).
    8. Supply a program code for the new program and press Enter.
    9. Modify the program parameters, if necessary, and press Enter.
  2. 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.
  3. 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.
  4. Compile the program. For information on compiling form definitions, see Compiling a Form. For information on compiling report definitions, see Compiling a Report.
  5. 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.