2009 May 28 7:12 AM
Hi,
I am using two ALV (OO method). I have used two screen - 100 and 200 for each of them. When I click on ALV1 which is on screen 100, it takes me to ALV2 which is on screen 200. I have a PF Status for Screen 200 which has only one button to close the ALV2 and get back to ALV1. I am not sure what code I should write in the click of that button to return to screen 100.
I tried.
CLEAR g_grid1.
CALL METHOD g_custom_container1->free.
CLEAR g_custom_container1.
set screen 100.
leave screen.
***leave to screen 100.
Any help on this.
Gandolf.
2009 May 28 7:25 AM
Hi.
Make use of LEAVE to screen 0.
It will come back to the previous screen.
Regards,
Ankur Parab
Hi.
Make use of LEAVE to screen 0.
It will come back to the previous screen.
Regards,
Ankur Parab
2009 May 28 7:25 AM
Hi.
Make use of LEAVE to screen 0.
It will come back to the previous screen.
Regards,
Ankur Parab
2009 May 28 7:28 AM
CASE sy-ucomm.
WHEN 'ok-code'.
LEAVE TO SCREEN 0.
endcase.
this should be in the PAI of thesecond screen.
2009 May 28 7:43 AM
Hi,
After the statement CALL METHOD g_custom_container1->free. If we use LEAVE TO SCREEN 0.It will go to the previous screen.
Regards.
2009 May 28 7:50 AM
Hi,
Follow the code:
*If u are copying standard pf-status then change the function code of button.
module user_command_0200 input.
case sy-ucomm.
when 'BACK'.
CALL METHOD cont_ekpo->free.
CALL METHOD cl_gui_cfw=>flush.
*
leave to screen 100.
when others.
endcase.
endmodule. " USER_COMMAND_0200 INPUT
2009 May 28 12:52 PM
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |