Application Development and Automation 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: 
Read only

Multiple ALV

Former Member
0 Likes
615

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
570

Hi.

Make use of LEAVE to screen 0.

It will come back to the previous screen.

Regards,

Ankur Parab

5 REPLIES 5
Read only

Former Member
0 Likes
571

Hi.

Make use of LEAVE to screen 0.

It will come back to the previous screen.

Regards,

Ankur Parab

Read only

Former Member
0 Likes
570

CASE sy-ucomm.

WHEN 'ok-code'.

LEAVE TO SCREEN 0.

endcase.

this should be in the PAI of thesecond screen.

Read only

Former Member
0 Likes
570

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.

Read only

Former Member
0 Likes
570

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

Read only

0 Likes
570

Thanks. Screen 0 works fine..