Step-1. Execute SE80. Choose Program And Give a Name ( zmp_test1 ) and press Enter.
Step2. Press Yes.
Step -3. Un Tick the check box & Click Yes button.
Step-4. Make sure to choose Module Pool From the Type and Click on Save button.
Step-5. Local Package.
Step-6. Double Press on Program Name & Click on Change Button.
Step-7. Create screen – right click on Program Name =>Create=>Screen
Step-8. Provide Screen number – 9000 and click on Yes Button.
Step-9. Provide a short Description & It’s a normal Screen.
Step-10. Click on layout & the Screen Painter will open.
Step-11. Create 2 input fields, one push button and an output field & then at last click on flow logic button on the toolbar.
Step-12. Now un comment the 2 modules in PBO & PAI . Double click on the module name and create it in main program.
Step-13. Write the below mentioned code in the program.
<strong>DATA:num1TYPEi,</strong> |
|
<strong>num2TYPEi,</strong> |
|
<strong>resTYPEi.</strong> |
|
|
|
<strong>MODULEstatus_9000OUTPUT.</strong> |
|
<strong>SETPF-STATUSSTATUS.</strong> |
|
<strong>*SETTITLEBARxxx.</strong> |
|
|
|
<strong>ENDMODULE.STATUS_9000OUTPUT</strong> |
|
|
|
<strong>MODULEuser_command_9000INPUT.</strong> |
|
<strong>CASEsy-ucomm.</strong> |
|
<strong>WHENSHOW.</strong> |
|
<strong>res=num1+num2.</strong> |
|
<strong>WHENBACKOREXITORCANCEL.</strong> |
|
<strong>LEAVEPROGRAM.</strong> |
|
<strong>ENDCASE.</strong> |
|
<strong>ENDMODULE.USER_COMMAND_9000INPUT</strong> |