Skip to Content
author's profile photo Former Member
Former Member

Adding other colors to smartforms

Hi all,

Client wants to use colors other than those provided in the Smartstyle color palette in a Smartform.

I would like to know whether there is a way of achieving this? (With or without modifying standard ABAP code)

The RGB values needed are:

R G B 0 129 147 Hex CODE: #008193

and

R G B 150 35 153 Hex CODE: #962399

These values are not included in the Smartstyle. As far as I know, the RGB values of the color palette are hardcoded and loaded at runtime in SAP in the sub-routine load_color_defs of include LSTXBSF02.

Therefore, is there a way of using custom color instead of those provided in the standard color palette? Or is there a way of doing this in the smartform itself?

Many thanks.

Rishi.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 13, 2013 at 03:18 PM

    Hi,

    I found the solution. The RGB values of the custom smartstyle are stored in the table STXSPARA.

    Hence you can modify its RGB values according to your custom color and it works 😊. That's the easiest solution.

    Thanks.

    Rishi.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 13, 2013 at 10:43 AM

    Yes, I have been asked to use a specific pink from Pantone in smartforms. Finally I have used a standard pink which is very near.

    However I found a way to change the color dynamically at runtime on SCN. I tried it, it worked, check that :

    http://wiki.scn.sap.com/wiki/display/Snippets/Dynamic+Background+Colors+in+SmartForms

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.