cancel
Showing results for 
Search instead for 
Did you mean: 

Can we Change the backround color of an Input field in Webdynpro for ABAP.

laeeqsiddique
Participant
0 Kudos

Hi Experts ?

Can we change the background color of an Input field in WebDynpro for ABAP based on results we receive from any function module or BAPI?? .

Thanks in advance .

Regards ,

LAS

Accepted Solutions (0)

Answers (6)

Answers (6)

laeeqsiddique
Participant
0 Kudos

Thanks - Problem solved

Former Member
0 Kudos

Hi Laeeq,

couldu you please tell me, how did you solve the problem with Input field background?

Thanks, Ondrej

Former Member
0 Kudos

Yes. We can change the background of an input field. The way you do this is by editing the theme that webdynpro application uses. To edit the theme, you will need to install NWDS PLUS the theme edit plugin (Available for download from SAP).

Once you have edited the theme, you will need to upload your theme back to application server. You can use the program : BSP_UPDATE_MIMEREPOS to do this.

Bydefault, the theme used by webdynpro applications is :

/SAP/PUBLIC/BC/UR/nw5/themes/sap_tradeshow

You can apply another theme by calling the webdynpro application with a theme parameter. For example, if my webdynpro application name is "zgopaltest", then

<i><b>http://<server>:port/sap/bc/webdynpro/sap/zgopaltest?SAP-EP-THEMEROOT=/SAP/PUBLIC/BC/UR/nw5/themes/sap_tradeshow</b></i>

will apply the sap_tradeshow theme.

Likewise, you can apply diffrent theme. There is another theme that SAP provides. Its called : sap_hcb. Hence, you can apply the theme to the above application by:

<i><b>http://<server>:port/sap/bc/webdynpro/sap/zgopaltest?SAP-EP-THEMEROOT=/SAP/PUBLIC/BC/UR/nw5/themes/sap_hcb</b></i>

Former Member
0 Kudos

You might not be able to do that dynamically, but there is a related functionality, in which you can change the color of the container holding the input field viz. the surrounding of the field. You can bind the property CellBackgroundDesign to a context and thus making it dynamic. This wil change the color of the container that holds the input field, but not texteidt Area within the field, but nevertheless it might help you.

- Harish.

Former Member
0 Kudos

Hi,

if you want to change the color after an error on a certain inputfields, you can use the

method for the message manager:

lo_message_manager->report_attribute_t100_message

with parameters the context element and attribute name, and the text message

if you have a t100 entry you can pass these parameters as well.

The inputfield will get a red box instead of a black box then.

grtz

Koen

Former Member
0 Kudos

Hi,

I dont think u can change the colour of a input field but if u want to change the colour of a block then u can do this .

Satya

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

If you mean to change the input field to read only based on come condition, then yes, you can definitly do that.

Regards,

RIch Heilman

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

I don't think you can change the color of the input field, but I think you may be able to change the color of a column or cell in an ALV grid within WDA.

Regards,

RIch Heilman