Hi Cherry,
Follow Sumeet's Post.It is Correct.
OR
You can take one Screen .
Use CL_GUI_CUSTOM_CONTAINER class ( using OOPS concepts) and on that screen Take a Button and write down the functionality for that button.
e.g if you taken the two buttons say Exit and Display.
Code would be:
Case Sy-Ucomm.
When 'Display'.
your code:(Means You can also call the screen and on that screen Put print functionality Like alv Container.If you use CL_GUI_CUSTOM_CONTAINER class then you can call the method SET_TABLE_FOR_FIRST_DISPLAY.It will display the table)
When 'Exit'.
Leave Program.
Endcase.
I hope you got it.
Regards,
Abhishek K.