cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with font in webgui

Former Member
0 Kudos

Hi all,

I am facing an issue with the webgui:

When I am using it for transaction PZ02 or PZ03, the font of normal editable text fields is ARIAL (which is correct). However, every editable text field which only contains numbers is displayed in font monospace.

First I thought that I have to configure the corresponding dynpro of each service, but the settings for text fields with numbers or texts are the same.

I am using SAP ECC 6 (SP 14) and EP 7.

Thanks for any help.

Best Regards

Philipp

Accepted Solutions (1)

Accepted Solutions (1)

former_member316351
Active Contributor
0 Kudos

Hello Philipp,

Using a monospace font is the best way to guarantee that labels and non-edit fields will not be truncated when displayed in a browser.

Edgar

Former Member
0 Kudos

Hi Edgar,

thanks for the answer.

So, this means that the monospace font is set automatically and there is no way to get ride of it?

Best Regards

Philipp

former_member316351
Active Contributor
0 Kudos

Hello Philipp,

There is no "easy" way to change this behaviour (meaning there is not a parameter setting that can reverse this.) I'm sure there is a way to change it though if you change the css file, but that would be a customization and risks the display of the text. You'll have to search for the class that the monospace font is occurring in for you and change it to whatever font family you like. Good luck.

Edgar

Answers (2)

Answers (2)

former_member187668
Participant
0 Kudos

Hi Philipp,

Can you let us know how you could acheive it? what code you customized? I have a similar requirement.

Thanks for the help.

Regards,

Ravikanth

Former Member
0 Kudos

Hi!

I have done the following changes:

1. In SE80 open Internet Service "WEBGUI"

2. Open the template "GUI_PRINTLABEL" in "WEBGUI -> Thema DM -> HTML-Templates"

3. Find the following code:

if (^~object_name[~index].monospace == "X")
      monospace = "font-family:monospace; ";
  else
    monospace = "";
  end;

4. Replace it with the following one:

monospace = "";

5. You also have to edit the template GUI_INPUT.

If you have any more questions, let me know.

Best Regards

Philipp

former_member187668
Participant
0 Kudos

Hi Philipp,

Thanks for the response. But incase we have to change the background colour and font of the WEGUI screens what should we change? Also we have 4 themes in WEBGUI service which one will be used when we set WEBGUI = 1 parameter for our services in SICF.

Thanks,

Ravikanth

Former Member
0 Kudos

Hi, I have customized the code and Monospace is not appearing anymore.

Best Regards

Philipp