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

Subscreen Refresh

Former Member
0 Likes
1,615

Hi,

I am having 1 main screen in which there are 4 buttons on application toolbar.

On 1st button i have table control and on other 3 there are ALV.

on execution repoort display table control and if i click on 4th button alv is displayed

after displaying of alv if i click on any other button it is displaying same alv and not refreshing subscreen.

Please suggest ?

Ankesh

7 REPLIES 7
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,094

In the ALV have you used the USER_COMMAND. Just put a debuger after pressing the button and see where control goes. If it gies to standard then please pass user_command parameter in your alv. The control will come here if you press this button and proceed as you want.

Nabheet

Read only

Former Member
0 Likes
1,094

Hi,

Please call the method 'REFRESH_TABLE_DISPLAY' of class CL_CUI_ALV_GRID when the butto is pressed and then display the new list.

Regards

Haritha

Read only

0 Likes
1,094

These are not working , i have tried it .

Actually i have taken docking container , the error is coming because of this.

do u have any idea how i will refresh docking container and where

Read only

0 Likes
1,094

why dont you define a subscreen area and keep calling different subscreens on different fcodes?

Read only

0 Likes
1,094

I am doing the same but it is appending screen area inspite of refreshing the earlier screen.

it is due to docking contaner which i have used.

Read only

0 Likes
1,094

Hi,

Can you please explain in detail what is happening.. Like you have a tabstrip or single subscreen used for multiple purposes and all

Nabheet

Read only

Former Member
0 Likes
1,094

you need to destroy the previous ALV instance before displaying other ALV using FREE method of class CL_GUI_ALV_GRID and also free the object reference of ALV using FREE statement.

let say ALV object reference name is lo_alv

so on click of each button first check if lo_alv is bound.

if yes then first call destructor lo_alv->free( ).

and then free the object reference FREE lo_ALV.

then go ahead and instantiate another ALV.

Edited by: Gaurav B. on Jan 18, 2012 4:35 PM