Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Issue with ALV output

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.

Tags:
Former Member
Former Member replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question