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

ALV refresh problem

Former Member
0 Likes
1,564

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

11 REPLIES 11
Read only

Former Member
0 Likes
1,308

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

Read only

Former Member
0 Likes
1,308

write code as when back...leave to screen 0 (or 100/1000).

Read only

Former Member
0 Likes
1,308

Hi Raju,

If you are using controls you can call the method REFRESH_TABLE_DISPLAY of the class CL_GUI_ALV_GRID.

Regards

Sandeep

Read only

Former Member
0 Likes
1,308

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

Read only

Former Member
0 Likes
1,308

Hi,

try

when "BACK'

submit program v_test via selection-screen.

or

leave to screen 0

REgards

Amole

Read only

Former Member
0 Likes
1,308

Handle the function code of back button in your program and use

leave to screen 0

to go back to the selection screen

Read only

Former Member
0 Likes
1,308

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

Read only

0 Likes
1,308

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

Read only

0 Likes
1,308

Hi Mr.Vijay,

Yes, am using the USER_COMMAND of ALV. Thankls, will set this parameter and let u know

Regards,

Raju

Read only

0 Likes
1,308

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

Read only

Former Member
0 Likes
1,308

when u press back

write code like

leave to screen '1000'. this is default selection-screen