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

Dynamic header text in table control - Dialog programming

Former Member
0 Likes
3,661

Hi All,

I have a table control on one of my dialog screens. I need to dynamically change the column header texts on this control in my PBO. Does anyone know how to do this? I have found all kinds of ways to modify the other characteristics of the fields at run time in the PBO (active, input/output, invisible, etc.) - but not to change the header text! Any help is appreciated.

thanks,

Matt

10 REPLIES 10
Read only

Former Member
0 Likes
2,519

Hi,

refr this thread:

rgds,

latheesh

Read only

0 Likes
2,519

Thanks Latheesh - I'll try this...

Read only

0 Likes
2,519

Hi Latheesh,

This doesn't seem to work as the input/output box goes into the body of the table control -- not the column header part of it. It won't let me place it in the column header area. Any other suggestions?

Read only

0 Likes
2,519

HI,

Y Screen name is not possible?

check w/title,

then u will be able to place an i/o field on the header text place of table control. give name to that i/o field.

then u can proceed as lateesh said too.

Read only

0 Likes
2,519

Hi Hymavathi,

I appreciate your help! This didn't solve the issue, however,...I have used the method you'd mentioned before (many times) for setting it inside the loop at screen:

%_<screenname>_%_APP_%-TEXT = <text something>.

- but only in ABAP reports. It doesn't seem to recogize it (the table control column header text) within a dialog program. I keep getting a compile error. (saying that the %_<screenname>_%_APP_%-TEXT doesn't exist.

I tried the suggestion that you stated below (from lateesh) - yet it only let me place i/o field in title text area (not the column header text). Am still searching...

Read only

0 Likes
2,519

Ahh!! Have solved it!

I had to drag the old table control column headings out of the control and then drop in the (new) I/O fields into their place. I then set the text on these new fields within the PBO. Works like a charm! Before - I was trying to drop the (new) I/O fields on top of the existing ones - and it wasn't working. Thanks much all for your help!

Cheers,

Matt

Read only

0 Likes
2,519

Matt,

I followed the examples above, but I cannot seem to change the text since it is giving me the syntax errors just like you saw in an ealier post.

How does one get around that? Do these have to be accessed via some specific table control syntax + screen-name syntax?

Thanks,

Ahmed

Read only

hymavathi_oruganti
Active Contributor
0 Likes
2,519

at pbo.

loop at screen.

(dynamically change header text based on condition).

modify screen.

endloop.

Read only

0 Likes
2,519

Hi Hymavathi,

If you could tell me exactly what to specify within the Loop at screen - then would be in business. That's the whole issue - there doesn't seem to be a screen field for the table control header text.

Read only

0 Likes
2,519

for the header text, give a scree name.

loop at screen.

if screen-name = (name given).

if (condition).

%_(name given)_%_app_%-text = (text u want).

else.

%_(name given)_%_app_%-text = (text u want).

endif.

modify screen.

endloop.