‎2006 Jun 14 6:44 AM
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
‎2006 Jun 14 6:48 AM
‎2006 Jun 14 6:52 AM
‎2006 Jun 14 7:12 AM
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?
‎2006 Jun 14 7:26 AM
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.
‎2006 Jun 14 7:37 AM
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...
‎2006 Jun 14 7:55 AM
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
‎2007 Apr 26 11:16 PM
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
‎2006 Jun 14 6:50 AM
at pbo.
loop at screen.
(dynamically change header text based on condition).
modify screen.
endloop.
‎2006 Jun 14 6:55 AM
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.
‎2006 Jun 14 7:14 AM
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.