Application Development 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: 

Column header ALV add an image/icon

former_member384574
Active Participant
0 Kudos

Hello experts,

I've the following requirement from my client. The idea is, for an ALV which is already created, display in the header of the column an icon (or an image) that allows to identify if the field is or not mandatory.

For example:

Header1 Header2+iconmandatory Header3 Header4+iconmandatory

1 2 3 4

Do you know if it is possible to display in the header an icon or an image?

Thanks in advance,


Best regards,


Rebeca

5 REPLIES 5

balanand_s
Participant
0 Kudos

You can use CL_SALV_TABLE this class, it has many customizing methods.

former_member384574
Active Participant
0 Kudos

But i'm not sure that this class help me to implement a code which allow me to add an icon in the header, do you think this is posible?

0 Kudos

Please use the Comment button. Answer is reserved to solutions (dixit the text on the right of "Your answer": "Before answering You should only submit an answer when you are proposing a solution to the poster's problem")

Sandra_Rossi
Active Contributor
0 Kudos

With the ALV Grid control (is it your case?), you may only display one icon in a column heading, without text, by using the classic @...@ texts (run the SHOWICON program).

DoanManhQuynh
Active Contributor
0 Kudos

in header you can only show the icon or text, not both. maybe you could create an icon with text you need and upload it to SAP.