1. Start the Program Editor, create a new program called MYPROG6 and specify the Program type as Data Entry. For the description, enter something like: Menu for running customer number and name enquiries.
2. Add a procedure called CUSTOMER_ENQ to your program. In the procedure overview, enter Menu as the Procedure Type. The procedure is not a database procedure and so it is not necessary to specify any table or field processing
Most of the effort in creating a menu procedure is in the creation of its map. You are going to create the map for a pop-up menu. This is a standard type of menu used throughout DP4. Its options appear as a list in a pop-up window that overlays what is on the screen.
To create the pop-up menu
1. Go into the Map Editor
2. Create a new map. Add static text controls for the menu title and options.
3. Double-click on each of the options and give them associate field numbers of 1 and 2 respectively.
4. Edit the main map properties. Change the Map Type to pop-up menu,
tick the box which says 4.500 position and give
the map a thin border with shadow. Change the field layout to one column and two rows.
At runtime, menu options can be selected by using the cursor and pressing <Enter> or by pressing the number for the option
in the menus.
5. Exit from the map and save it
6. For Output method, choose Pop up window