Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Leaving the Screen

Former Member
0 Kudos

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

8 REPLIES 8

Former Member
0 Kudos

Hi,

Don't declare SET screen 0, Directly write as call screen 101 after the button is clicked.

regards,

Santosh Thorat

Former Member
0 Kudos

use leave to screen

former_member386202
Active Contributor
0 Kudos

Hi,

Use CALL SCREEN , it will work

Regards,

Prashant

Former Member
0 Kudos

Try with LEAVE TO SCREEN <scrn_no>.

and before that write 'SET SCREEN <scrn_no>.

0 Kudos

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.

0 Kudos

use only leave to screen scrno

Former Member
0 Kudos

Use CALL SCREEN or LEAVE TO SCREEN

Former Member
0 Kudos

Try using just EXIT instead of call transaction or leave to screen.

Rewards if helpful!!!