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

REFRESH-CONTROL

Former Member
0 Likes
1,956

Hi,

I have one screen with two tabstrips, one of them contains a chart and the other an ALV. If I leave the screen from the chart-tab and call it again, everything is ok. But when I leave it while ALV-Tab is active and call it again, the alv shows the values from the first call.

I already tried to refresh the Tab-Control before calling again with "REFRESH CONTROL 'tabver' FROM SCREEN '9400'.

The error I got is:

CONTROL_NAME_TOO_LONG

Could anybody help?

Best regards,

Nico

11 REPLIES 11
Read only

Former Member
0 Likes
1,355

Hi,

Call the free method of the ALV when leaving the transaction and clear any reference variables.

Darren

Read only

Former Member
0 Likes
1,355

Hi,

thanks first for your help, but it doesn`t work.

I think this is more a problem of the Tabstrip control which doesn`t get refreshed.

Best regards,

Nico

Read only

Former Member
0 Likes
1,355

use the control name with out quotes.

tabver is the control name, which you defined like the below

controls: tabver type tableview using screen 9400.

then this is

wrong

REFRESH CONTROL 'tabver' FROM SCREEN '9400'.code} 

Correct

REFRESH CONTROL tabver FROM SCREEN '9400'.

Read only

0 Likes
1,355

Hi,

may it possible that these function is only for tableview controls, and not for tabstrip controls?

Regards,

Nico

Read only

0 Likes
1,355

are you getting any error..? you can use that what ever you defined using CONTROLS

Read only

0 Likes
1,355

the name of my tabstrip control is:

CONTROLS: tab_verbr TYPE TABSTRIP.

The used dynpro is: 9400.

now I tried following:

REFRESH CONTROL tab_verbr FROM SCREEN '9400'.

and got the error:

"Control-Name "TS_VER1 TS_VER1" is to long."

Read only

0 Likes
1,355

same error you are repeating.

REFRESH CONTROL 'TAB_VERBR' FROM SCREEN '9400'.

it should be in single quotes.

Read only

0 Likes
1,355

now I got the error:

"current control can not be processed as tableview control."

Read only

0 Likes
1,355
CONTROLS tab_strip TYPE TABSTRIP.
....
...


REFRESH CONTROL 'tab_strip'  FROM SCREEN '0100'.

where you got the error. During runtime or during syntax check

Read only

0 Likes
1,355

during runtime...

these is exactly the code I used now.

Read only

0 Likes
1,355

hmmm looks like it is not possible to refresh the tabstrip like Table control.