‎2006 Nov 16 11:12 AM
Hi experts,
In an ALV list, i have added a pushbutton to call a popup screen. Based on that popup screen data. i am changing the ALV list display.Problem is when i press the BACK button at this point. When the BACK button is pressed, i am going back to the initial display of ALV list instead of going back to selection screen.
please suggest me to handle this issue.
Regards,
B Raju
‎2006 Nov 16 11:15 AM
Looks like the problem is with the way you are refreshing the data.
Could you please let us know how are refreshing the ALV List.
Post the code as well.
Regards,
Ravi
‎2006 Nov 16 11:16 AM
‎2006 Nov 16 11:22 AM
Hi Raju,
If you are using controls you can call the method REFRESH_TABLE_DISPLAY of the class CL_GUI_ALV_GRID.
Regards
Sandeep
‎2006 Nov 16 11:23 AM
Hi,
1. popup comes, you are doing some thing here, then you are displaying the list
at this point you have to refresh the first list, but you are not doing that.
2. when you are press BACK what happens is , from second list, it is coming to first list .to avoid before displaying the second list , refresh the first one and your problem will be solved.
Regards
Vijay
‎2006 Nov 16 11:25 AM
Hi,
try
when "BACK'
submit program v_test via selection-screen.
or
leave to screen 0
REgards
Amole
‎2006 Nov 16 11:26 AM
Handle the function code of back button in your program and use
leave to screen 0
to go back to the selection screen
‎2006 Nov 16 1:16 PM
Actually on the popup, i have few radiobuttons. Based on the radioutton selection, i am getting the ALV list display correspondingly(Dynamically changing). For each radiobutton selection i am calling the FM Reuse_alv_list_display.
As a hint : The stack is not getting cleared.
Please let me know any FM to clear ALV stack
Thanks,
Raju
‎2006 Nov 16 1:22 PM
Hi Raju,
I hope you are handling the Popup in the User_command form of ALV.
in that case you are going to call the ALV list from the user command of the First list. before calling the new list you just use the paramter of user_command form selfield-refresh = 'X'.
then call your ALV list. and then see...
Regards
Vijay
‎2006 Nov 16 1:29 PM
Hi Mr.Vijay,
Yes, am using the USER_COMMAND of ALV. Thankls, will set this parameter and let u know
Regards,
Raju
‎2006 Nov 16 1:59 PM
When the Popup appears U do some action.Catch up the User-coomand at this point and based on this command write ur code as u need like if you need to display the list by username then sort ur internal table by user name and then again call the fm Reuse_alv_list_display so that the list appears as u needed..
Reward If Helpful
Vicky
‎2006 Nov 16 1:20 PM
when u press back
write code like
leave to screen '1000'. this is default selection-screen