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

Problem with header for each column

Former Member
0 Likes
630

Hi,

I want change column header-text dynamically in the table control of module pool programming.Please help me.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
594

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.

4 REPLIES 4
Read only

former_member491305
Active Contributor
0 Likes
594

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

Read only

Former Member
0 Likes
594

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

Read only

Former Member
0 Likes
595

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.

Read only

0 Likes
594

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.