05-05-2006 3:07 PM
Hi all,
I am developing an ALV report. I have declared an internal table woth a field kunnr like kna1-kunnr. Since the fieldcat catalog takes description from standard table in ALV list the heading is displayed as Customer. I want to change the heading. I tried using this code.
********************************************************
<b>
loop at f_fieldcat into wa_fieldcat where fieldname = 'KUNNR'.
wa_fieldcat-fieldname = 'Ship-to-Party'.
modify f_fieldcat from wa_fieldcat.
endloop.
</b>
********************************************************
What is the correct way to do that ?
Thanks and Regards,
Varun.
05-05-2006 3:11 PM
Hi varun,
simple mistake.., not fieldname, it is seltext_m or l or s
loop at f_fieldcat into wa_fieldcat where
fieldname = 'KUNNR'.
wa_fieldcat-<b>seletext_m</b> = 'Ship-to-Party'.
modify f_fieldcat from wa_fieldcat.
endloop.
regards
vijay
05-05-2006 3:11 PM
Hi varun,
simple mistake.., not fieldname, it is seltext_m or l or s
loop at f_fieldcat into wa_fieldcat where
fieldname = 'KUNNR'.
wa_fieldcat-<b>seletext_m</b> = 'Ship-to-Party'.
modify f_fieldcat from wa_fieldcat.
endloop.
regards
vijay
05-05-2006 3:12 PM
You should not change the field name. You should change the SELTEXT_L SELTEXT_M, SELTEXT_S fields for the same.
Regards
Ravi
05-05-2006 3:15 PM
hi varun,
plz go thru this,
loop at f_fieldcat into wa_fieldcat where fieldname = 'KUNNR'.
wa_fieldcat-seltext_l = 'Ship-to-Party'.
wa_fieldcat-ddictxt = 'L'.
modify f_fieldcat from wa_fieldcat.
endloop.
Regards,
Kiran
05-05-2006 3:22 PM
Hi all,
Great Guys !!!
Thank you all for your quick replies.
Thanks and Regards ,
Varun.