‎2007 Jun 29 11:39 AM
Hi,
I want change column header-text dynamically in the table control of module pool programming.Please help me.
‎2007 Jun 29 1:09 PM
Dear Vigneswaran S.,
I have tried this thing using &lw_text& and also with lw_text. But i am not getting required result.Can you suggest me any other way.
‎2007 Jun 29 12:04 PM
Hi,
Delete the text field of the coloumn header and instead of that insert i/o field in the coloumn header of the table control and put one variable name for that and change the content of the variable dynamically.
Message was edited by:
Vigneswaran S
‎2007 Jun 29 12:20 PM
I don't think this is possible directly. Tell me the correct requirement.
See you can do other way. You populate all the columns of table control. conditionally you can hide the columns .So this will make your work simple.
get back if you are not clear.
Regards
Vijay
‎2007 Jun 29 1:09 PM
Dear Vigneswaran S.,
I have tried this thing using &lw_text& and also with lw_text. But i am not getting required result.Can you suggest me any other way.
‎2007 Jun 29 1:28 PM
Hi Abhijit,
no need to put '&' in the variable .You just give the name of the variable as lw_text and also dont forget to expand the Def.Length attribute to equal to the length of that variable in the decalration.It is working for me.
put the follwoing code in PAI module.
Data:lw_text(15).
If cond1 = true.
lw_text = 'Description 1'.
elseif cond2 = true.
lw_text = 'Description 2'.
Endif.
Using the above code u can modify dynamically.