<b>What I did:</b>
-
*In the PBO of screen <b>200</b>
*Created a l_alv of type alv grid which is using screen as container
CREATE OBJECT l_alv EXPORTING i_parent = cl_gui_container=>screen0.
*filling it with data
*--Transfer data to ALV
CALL METHOD l_alv->set_table_for_first_display
Expor . . .
When user is pressing F3 on screen <b>200</b>, i m going back to sel-screen
leave to screen 1000
or
call selection-screen 1000
<b>Problem Statement:</b>
-
Though I am landing up to screen 1000 as i can see the menu of sel screen, but my ALV is still visible on top of screen 1000
<b>What I did:</b>
-
to destroy it, i m using these lines before <i>Call selection-screen 1000</i>
call method cl_gui_container=>screen0->free.
call method l_alv->free.