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.





Step-14. Un comment the SET PF-STATUS ‘XXXX’  line & provide any name(STATUS) & double click  on it to create it. From the popup click on yes .

Step-15. Provide a short text & Click on yes button.

Step-16. Now click on the (+) plus button on the right of Function keys to expand it. Give SAVE, BACK,   EXIT & CANCEL in standard toolbar and activate it, then press back button to come back to the program.

Step-17. Create a t code for the program. Right click on program name->create->transaction.

Step-18. Short description & click yes button.

Step-19. Provide program name , screen no & click on the three check boxes and then click on save button on the standard toolbar. Now click on back button to come out of the program.

Step-20. Open a new session & put the T-code of the program in the Command field and press Enter.

Step-21. Fill the 2 input field with some valid values and then press ADD button. Find the Result.

What do you think?

Written by admin

Leave a Reply

Your email address will not be published. Required fields are marked *

CDS Arithmetic Functions

SAP ABAP CDS Arithmetic Functions – Ceil, Floor, Div (Integer), Division (Dec), Mod, Round & Aggregate Expressions – MAX, MIN, AVG, SUM, COUNT, Group By Clause, HAVING Clause