Application Development 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: 

REFRESH-CONTROL

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

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

Darren

Former Member
0 Kudos

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

former_member188685
Active Contributor
0 Kudos

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'.

0 Kudos

Hi,

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

Regards,

Nico

0 Kudos

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

0 Kudos

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."

0 Kudos

same error you are repeating.

REFRESH CONTROL 'TAB_VERBR' FROM SCREEN '9400'.

it should be in single quotes.

0 Kudos

now I got the error:

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

0 Kudos
CONTROLS tab_strip TYPE TABSTRIP.
....
...


REFRESH CONTROL 'tab_strip'  FROM SCREEN '0100'.

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

0 Kudos

during runtime...

these is exactly the code I used now.

0 Kudos

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