‎2008 Jul 02 10:50 PM
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
‎2008 Jul 03 8:00 AM
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
‎2008 Jul 11 6:00 PM
‎2008 Aug 27 11:19 PM