`
JerryWang_SAP
  • 浏览: 1030563 次
  • 性别: Icon_minigender_1
  • 来自: 成都
文章分类
社区版块
存档分类
最新评论

如何修改SAP ABAP webdynpro的背景色

阅读更多

Recently one local customer requires that they could like to change the background color from blue to others for example green.

Theme Editor related topics

I searched SCN and found there are many threads to recommend the usage of Theme Editor. Then I tried the download links contained in note 854870 – Netweaver 04 Web Dynpro Theme Editor Download and found none of them are valid any more. In thread I got information from Samuli Kaski that theme editor is no longer supported. So I plan to try another approach.

Manual change the CSS file

Then I find the document Custom themes for Web Dynpro ABAP applications without SAP Enterprise Portal integration. However when I try it in my CRM 7.0 EHP2 system, I found the instructions in that document could not directly work without some minor adaptations. In this document I will explain the step by step investigation to find all necessary adaptations.

The default background color changed before looks like below:

 

 

Step1: Download the standard theme from Mime repository

use tcode SE80, tab “MIME Repository”, follow the path /PUBLIC/BC/UR/ur_mines_nw7.zip, download it locally.

 

 

Unzip the zip file and we can observe several themes inside it. In the document Custom themes for Web Dynpro ABAP applications without SAP Enterprise Portal integration it contains the steps how to create a custom theme. However for the very case of my local customer, it is ok to directly change the standard theme. So the next task is which of the following themes is the currently being used one?

 

 

Step2: Identify the real theme currently being used

Launch the webdynpro application as usual, click F12 to open the development tool of IE. ( Of course you could also use Chrome ) Here we can find the working theme is “sap_tradeshow_plus” and css file is ls_ie6.css. The CSS class for body DOM element is urBdyStd.

 

 

With these information at hand now it is ready to change the CSS file ls_ie6.css, which is located in the folder below:

 

 

Step3: Manual change the css file

Before the change, we should identify which DOM node in the CSS file should be changed. In IE development tool, click on body node, and here we can find the element attribute “background-color” which controls the current background color.

 

 

The current rgb value is (234, 241, 246). I use an online toolrgb.phpddt.com/ to verify whether this color is just the current default background color. In this online tool after I maintain the rgb value and click ok button, the right area of the tool is rendered with the specified color.

 

 

I plan to change the default color to rgb value (86, 255, 170) which display as green colow below:

 

 

It is very convenient to verify whether the change on CSS file could really take effect, since we could directly change the attribute in IE development tool.

Just click the attribute “background-color” and then it will switch to edit mode. Change the value to (86, 255,170) and click enter.

 

 

Soon we can see the background color is changed to green as expected.

 

 

However this change is not persisted, we should change the CSS file via text editor or any other CSS editor.

I just use the Notepad to change the color. Note that the development tool translates the HEX color to rgb color automatically for us, but in the CSS file, we should maintain the corresponding HEX color #56FFAA for rgb value( 86, 255, 170 ).

 

 

Save the css file after change.

Step4: Upload and deploy the modified theme

Zip the folder ur_mimes_nw7 again with modified css file. I just delete the original css file from zip file via context menu->Delete files, the drag the modified css file from my desktop to zip file.

 

 

Then run report WDG_MAINTAIN_UR_MIMES( not the report BSP_UPDATE_MIMEREPOS mentioned in the document Custom themes for Web Dynpro ABAP applications without SAP Enterprise Portal integration ). Double click on Menu “Upload MIME archive to server”:

 

 

after successfully upload, double click on “Deploy MIMEs”:

 

 

Step5: Invalidate client and server cache

in transaction code SMICM you could observe many server side cache for performance improvement:

 

 

Invalidate them via HTTP Plugin->Server Cache->Invalidate Globally to clear cache otherwise you might still see the color before the change.

Global invalidation could ensure the invalidation is distributed to all other application server instances.

 

 

Clear your browser cache in client side as well. Then launch webdynpro application, and you could see the background color is changed to green as expected:

 

 

How to change other UI styles

It is very convenient to change other UI styles as well via the same steps. When you expand the HTML dom node tree in the left part of the development tool, the corresponding UI element will be automatically highlighted in the browser so that you can know which UI element currently are being edited by you. Then you could try to change its CSS attribute value in the right part. The change is done via a “what you see is what you get” mode. For example I change the border color and borth width of the table tool bar below:

 

 

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

0
0
分享到:
评论

相关推荐

    SAP ABAP Web dynpro 跟踪调试

    SAP ABAP Web dynpro 跟踪调试工具的讲解。

    SAP ABAP webdynpro实例

    SAP ABAP webdynpro实例

    SAP ABAP WEBDYNPRO HELLO WORLD

    SAP ABAP WEBDYNPRO HELLO WORLD

    SAP_ABAP_WebDynpro开发(中文)(官方文档)

    SAP ABAP WebDynpro开发是基于SAP的NetWeaver技术平台上的一个重要开发工具。WebDynpro是SAP的Web应用框架,它允许开发人员通过ABAP编程语言创建交互式的Web界面和后台逻辑。它代表了SAP在企业级Web应用开发方面的...

    ABAP_WebDynpro开发(中文).pdf

    **ABAP WebDynpro** 是 SAP 提供的一种用于构建用户界面的技术框架,它允许开发者利用 ABAP 语言创建现代化的 Web 应用程序。WebDynpro 的核心优势在于其高度的灵活性和强大的集成能力,能够与 SAP 后端系统无缝对接...

    SAP Web Dynpro For ABAP.7z

    SAP Web Dynpro for ABAP 是 SAP 企业级应用程序开发中的一个重要组件,它提供了一种高效、用户友好的方式来构建复杂的企业级业务应用程序。Web Dynpro 是 SAP 的一种编程模型,专门设计用于构建富客户端应用程序,...

    SAP Web Dynpro for ABAP 图片上传及使用

    在深入探讨SAP Web Dynpro for ABAP中的图片上传与使用这一主题时,我们首先要理解其核心概念与架构。SAP Web Dynpro是SAP提供的一种用于开发用户界面(UI)的技术,它允许开发者构建出直观且功能丰富的网页应用。特别...

    Floor Plan Manager - ABAP Webdynpro

    ### Floor Plan Manager (FPM) in ABAP Web Dynpro #### 1. Introduction Floor Plan Manager (FPM) is a powerful and flexible user interface (UI) framework available in SAP’s ABAP platform. It enables ...

    sap abap web dynpr

    ### SAP ABAP Web Dynpro:基础概览与学习 #### Web Dynpro ABAP:概述与概念 SAP Web Dynpro ABAP是一种用于构建基于Web的应用程序的开发框架,旨在简化和标准化用户界面(UI)的设计与实现过程。它提供了一种...

    SAP WEB Dynpro for ABAP 简单ALV 展示

    SAP WEB Dynpro for ABAP 简单ALV 展示 SAP WEB Dynpro for ABAP 是一种基于 WEB 的开发环境,它提供了一个强大的开发平台,用于构建各种复杂的商业应用程序。在这个环境中,我们可以使用 ABAP 语言来开发各种应用...

    WebDynpro For ABAP的基础

    本节中主要记录WebDynpro For ABAP的基础操作.如各种UI Elment的使用,Context的使用等.

    ABAP WebDynpro Interview questions and answers

    ### ABAP WebDynpro 面试问题及答案解析 #### 1. ABAP UI 技术类型 **知识点:** ABAP UI 技术主要包括 WebDynpro for ABAP 和 BSP (Browser Session Processing)。 - **WebDynpro for ABAP**: 这是一种用于构建...

    SAP Web Dynpro for ABAP 标准教程

    ### SAP Web Dynpro for ABAP 标准教程 #### 知识点概览: 1. **Web Dynpro for ABAP 概述** 2. **Web Dynpro 的开发环境与工具** 3. **Web Dynpro 架构** 4. **开发 Web Dynpro 应用程序的基础** 5. **多组件应用...

    ABAP Web Dynpro调用BAPI

    在 SAP ABAP 开发中,Web Dynpro 是一种用于构建企业级 Web 应用程序的高级用户界面技术。BAPI(Business Application Programming Interface)则是 SAP 提供的标准接口,允许开发者与 SAP 系统的核心业务功能进行...

    SAP Web Dynpro40个经典案例

    SAP Web Dynpro 是 SAP ABAP 平台上的一个组件,用于开发富客户端应用程序,尤其适合构建企业级的复杂业务应用。本资料“SAP Web Dynpro 40个经典案例”提供了40个实际应用示例,全面覆盖了各种业务场景,帮助开发者...

    web dynpro for abap初体验 图文并茂

    Web Dynpro for ABAP是SAP提供的一种用于构建企业级Web应用程序的技术,它结合了 Dynpro 编程理念与Web应用程序的优势。Web Dynpro的主要特点是它的模型-视图-控制器(MVC)架构和数据绑定机制,使得开发更加高效且...

    Web Dynpro ABAP for Practitioners

    此书聚焦于Web Dynpro ABAP,一种在SAP NetWeaver平台上构建企业级Web应用程序的技术,特别适用于那些希望深化其在SAP ABAP Web Dynpro领域知识的专业人士。 ### Web Dynpro ABAP概览 Web Dynpro ABAP是一种用于...

    Net310 abap web dynpro

    本课程《NET310 Fundamentals of Web Dynpro for ABAP》是针对SAP NetWeaver平台上的Web Dynpro技术进行详细介绍的专业培训课程。课程旨在帮助学员掌握Web Dynpro for ABAP的基本概念、开发框架及其实现方式。 ####...

    SAP WDA(web dynpro for abap) 上传

    sap web dynpro for abap

Global site tag (gtag.js) - Google Analytics