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

Field Header / Column Header Dynamic Name change

adeel_sarwar
Contributor
0 Likes
843

Hi,

I have built a query using SQ02 and SQ01. I have a question, what is the easiest way of changing the Column Header using ABAP Code? I have 3 columns which i have added myself,

1st colum name should be the current month

2nd column name should be current month +1

3rd column name should be current month + 3

ANy help would be appreciated

thanks

Adeel

3 REPLIES 3
Read only

Former Member
0 Likes
586

Hi Friend,

For changing column name according to your requirement in ALV:

take a variable type p (for example ws_month);

pass month number.

Go to table T247 and take month text and pass to

WA_FIELDCAT-SELTEXT_M = 'Month Text'.

Increment the month number by 1 and follow the same logic.

You can implement the same logic for report also.

Regards

Krishnendu

Read the question carefully before answering. Irrelevant and misleading answers will lead to your account being locked.

Edited by: Durairaj Athavan Raja (Moderator)on Jul 12, 2008 12:10 PM

Read only

adeel_sarwar
Contributor
0 Likes
586

?

Read only

adeel_sarwar
Contributor
0 Likes
586

No answer provided thread closed