2007 Dec 05 5:06 AM
Hey Guys,
I have created a transaction which would call up a screen upon execution. But when the button is ticked to go to another screen, the previous screen is still visible in the background.
I want to know how can I get rid of the previous screen when I already call the next screen.
I already declared SET SCREEN 0 before CALLing the next screen.
Your help will be greatly appreciated.
Thanks!
Mark
Hey Guys,
I have created a transaction which would call up a screen upon execution. But when the button is ticked to go to another screen, the previous screen is still visible in the background.
I want to know how can I get rid of the previous screen when I already call the next screen.
I already declared SET SCREEN 0 before CALLing the next screen.
Your help will be greatly appreciated.
Thanks!
Mark
2007 Dec 05 5:09 AM
Hi,
Don't declare SET screen 0, Directly write as call screen 101 after the button is clicked.
regards,
Santosh Thorat
2007 Dec 05 5:09 AM
2007 Dec 05 5:10 AM
2007 Dec 05 5:11 AM
Try with LEAVE TO SCREEN <scrn_no>.
and before that write 'SET SCREEN <scrn_no>.
2007 Dec 05 5:33 AM
Thanks for your quick responses guys but I still have the same problem after trying out all your suggestions.
Please see below sample code:
CLEAR v_lines.
CASE sy-ucomm.
WHEN c_ucom4. " SAVE
DESCRIBE TABLE i_tab LINES v_lines.
ADD 1 TO v_lines.
READ TABLE i_tab WITH KEY zname = wa_tab-zname.
IF sy-subrc NE 0.
INSERT wa_tab INTO i_tab INDEX v_lines.
INSERT ztable FROM wa_atab.
CLEAR: v_lines, wa_atab.
v_tag = c_x.
ELSE.
MESSAGE i005.
ENDIF.
MESSAGE i007.
LEAVE TO SCREEN 0.
CALL SCREEN '0103' STARTING AT 30 5 ENDING AT 70 13.
LEAVE TO SCREEN '0103'.
WHEN c_ucom5. "BACK
LEAVE TO SCREEN 0.
CALL SCREEN '0103' STARTING AT 30 5 ENDING AT 70 13.
WHEN OTHERS.
ENDCASE.
2007 Dec 05 5:35 AM
2007 Dec 05 5:36 AM
2007 Dec 05 5:47 AM
Try using just EXIT instead of call transaction or leave to screen.
Rewards if helpful!!!
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |