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: 

changing font in ALV grid possible ?

martin_svik2
Participant
0 Kudos

Hi,

i have a column in an ALV grid with Day and Date, see screenshot. the field is displayed in proportional font, which is not looking good.

Is it somehow possible to display this field with an non-proportional font like COURIER or something else that everything has the same length.

br Martin

6 REPLIES 6

Former Member
0 Kudos

Hi,

Use  class CL_DD_DOCUMENT.

You can refer program DD_STYLE_TABLE .

Regards,

Danny

0 Kudos

Hi Danny,

i know this class -> but it is for the header and footer in the ALV and NOT for columns, isn't it ? my requirement is to set a specific column to an specific font ! not the header or the footer !

br Martin

Sandra_Rossi
Active Contributor
0 Kudos

it's probably impossible ; and I never saw a monospaced font in the ALV grid control (only proportional). SAP demonstration programs don't provide any example. See in this thread, the only possible way is to change the font of the whole SAP GUI, consequently all dynpro screens will look ugly.

0 Kudos

hi sandra,

changing the whole sap gui is NOT an option

i was afraid before that there is no way to do it. i have not found anything -> so i have opened this question here in hope somebody has a solution

br Martin

Jelena
Active Contributor
0 Kudos

To be honest, I feel the font change wouldn't even help here. IMHO it'd look better if you just spelled out the week day (or maybe even move it into a separate column?) and lost the comma. At least in English seeing "Friday 1/5/2016" would seem more natural. And, by the way, I hope you are using the user's preferred date format. Because 1/5/2016 in the US is January 5th.

Ask the users what they think about it. Perhaps you're trying to solve a non-existing problem.

0 Kudos

Trust me, the format is the right one for Austria it is DD.MM.YYYY

Well, to put it into a own column -> i have thought about that, BUT: It is an user-requirement to have it in this format So the problem exists

But anyway, i will try to talk to users again