05-23-2016 5:05 PM
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
05-23-2016 6:52 PM
Hi,
Use class CL_DD_DOCUMENT.
You can refer program DD_STYLE_TABLE .
Regards,
Danny
05-23-2016 7:49 PM
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
05-23-2016 8:15 PM
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.
05-23-2016 8:38 PM
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
05-23-2016 9:34 PM
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.
05-23-2016 9:42 PM
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