URL of themes in web dynpro

Hello all;
I am using theme in web dynpro for java.
it is working fine .Below is the URL
e.g.
http://<HOST>:<PORT>/webdynpro/dispatcher/test/homeuser/A_uesr?SAPtestId=19&sap-cssurl=http://<HOST>:<PORT>/webdynpro/resources/sap.com/tcwd~dispwda/global/SSR/themes/UserTheme.
But my requiremnt is that we should be able to use the sap-css paramerter (Which is in BOLD)with out specifying(Displaying in URL) the <host name> and <port>.
Thanks .
Vikash

Hi,
Do you want to run the application in portal and provide a different theme etc..can you Pls provide more claruty on the requirement.
Regards,
Ashok

Similar Messages

  • How to call custom themes for Web Dynpro ABAP Application?

    Hi,
    I need to change the appearance of Web Dynpro ABAP application. So far I followed below steps,
    1.     Created theme folder u2018testngou2019 (SE80->MIME Repositoty -> SAP->PUBLIC->BC->UR->nw5->themes -> u2018testngou2019 ).
    2.     used program BSP_UPDATE_MIMEREPOS to dowmloaod content of  u2018sap_tradeshowu2019 (SE80->MIME Repositoty -> SAP->PUBLIC->BC->UR->nw5->themes -> sap_tradeshowu2019) to desktop.
    3.     Modified the themes using Eclipse Theme Editor.
    4.     used program BSP_UPDATE_MIMEREPOS to upload modified themes to MIME repository u2018testngou2019  (SE80->MIME Repositoty -> SAP->PUBLIC->BC->UR->nw5->themes ->  u2018testngou2019) .
    My current URL is like http://server.name:XXXX/sap/bc/webdynpro/sap/hrrcf_a_startpage_int_cand?sap-client=XXX.
    Now I want to know how custom themes called for Web Dynpro ABAP Application.
    Is my approach correct?
    ...Naddy

    Hi Naddy,
    What you used is one way and even I failed when tried that method,
    Instead go to SE38 - WD_THEMES - and you need to upload the zip file and you need to follow a folder structure.
    it is case sensitive, atleast the zip file.
    Make a zip file by name "Project.zip" -
    Create a Folder Project and have the below folder structure,
    1  data - all the properties files and also the designinfo file, below is the code
    2  themes - (to get all the files download the theme from portal and you will have all the folders)
       2.1  ur
         2.1.1 name of the theme
           2.1.1.1 common
           2.1.1.2 csf
           2.1.1.3  r
           2.1.1.4  ur - all the css files (would be good if you can get the files from the server.)
           2.1.1.5   WSRP
    3  war - empty folder
    *.designinfo
    isVisible=true
    version=7.0.14.1.0
    isDefault=false
    isSapDesign=false
    designName=**** name of the theme
    Once done create a zip file and click on Start Import and give the path and will ask for transport request, it will take a while to upload once done as mentioned in the use the parameter sap-ep-themeroot="path"
    This will resolve the issue.
    Cheers-
    Pramod
    reward points if helpful

  • EREC: theme for Web Dynpro ABAP pages (external candidate)

    Hello,
    I have created a custom theme in the SAP Netweaver Portal for my customer and now I have the requirement to use the same theme for my stand-alone Web Dynpro ABAP applications (pages for the external candidate). Is it possible to use the same stylesheet as in the portal, without having to recreate a theme?
    I tried several options, but none of them did work:
    A. Downloading the portal theme as a ZIP file and then uploading it in ERP using the report BSP_UPDATE_MIMEREPOS (after unzipping) to a location /SAP/PUBLIC/BC/UR/nw5/themes/CUSTOM_THEME. After that, I call my application with the additional URL parameter sap-wd-themeroot=/SAP/PUBLIC/BC/UR/nw5/themes/CUSTOM_THEME but it does not work (the app is displayed with the default sap_tradeshow stylesheet)
    B. I also tried calling my app using the URL parameter sap-cssurl=/SAP/PUBLIC/BC/UR/nw5/themes/CUSTOM_THEME but here again, it does not work (the app is displayed with the default sap_tradeshow stylesheet)
    C. Downloading the portal theme as a ZIP file and then uploading it (zipped) using the report WD_THEMES, but here I receive the error "no themes found in the ZIP file". I have the same error if I upload only the ur.zip I receive from the portal (instead of uploading the whole *.zip file)
    I checked the UR versions both in portal & ERP, and we had a lower version in the portal than in the ERP, so we upgraded the portal version according to SAP note 1446099. Now we have a higher version in the portal than in the ERP. We regenrated the portal theme and downloaded it again, but with the same result.
    Does anyone have an idea what could be the solution to our problem?
    Thanks in advance!

    I would recommend to try another way. If it is possible to access any SAP Portal from outside you can use two URL Parameters to integrate the Portal style sheets in a standalone WDA application. The parameter sap-cssurl contains the absolute URL address to the style sheet and parameter sap-cssversion the current SAP Portal style sheet version. For all external facing scenarios it is important to use the whitelist mechanism to block unknown URLs.
    Example
    ?sap-cssurl=http://myportal.myserver.com:50000/irj/portalapps/com.sap.portal.design.urdesigndata/themes/portal/mytheme/ur/ur_ie6.css
    &sap-cssversion=7.11.5.20.0
    I canu2019t recommend to raise manually the version number. You will not get an consistent system this way. The meta data (project.zip) are outdated and of course you will get an outdated theme.

  • How to get the Response Code when a URL is launched from Web Dynpro

    Hello Experts,
    I have a Web Dynpro Application in which in one of its views i have an IFrame UI element in which i will show a resource stored somewhere ..
    But before showing it i want to check if the resource actually exists. For this i have to check the HTTP Response code from Web Dynpro Application without setting it in the Iframe..
    I am using the following code to get the Response Code:
    try{
    URL url = new URL("Some Url");
    HttpURLConnection.setFollowRedirects(false);
    HttpURLConnection connection = (HttpURLConnection) url.openConnection();
    connection.connect();
    wdComponentAPI.getMessageManager().reportSuccess("Response code ="+connection.getResponseCode());
    }catch(Exception e){
    wdComponentAPI.getMessageManager().reportSuccess("Exception");
    Now the Problem is whatever response Code occurs 403 (for No Proper Authorization), 404 (for Resource not found) etc..
    i always get Response Code=  500 (which is for Internal Server Error) shown in the messgae i have printed.
    Please let me know the correct way of getting the Response Code from Web Dynpro.
    Also my resource is lying on a SAP Portal 6.4
    Best Regards
    Sundeep
    Edited by: Sundeep Sethi on Feb 18, 2008 9:07 AM
    Edited by: Sundeep Sethi on Feb 18, 2008 10:23 AM

    Hi,
      Check this code from /thread/5242768 [original link is broken] if it works.
    try{
    URL myurl = new URL("http://calendar.google.com");
    URLConnection connection = myurl.openConnection();
    if(connection instanceof HttpURLConnection) {
    HttpURLConnection httpConnection = (HttpURLConnection) connection;
    HttpURLConnection.setFollowRedirects(true);
    httpConnection.setRequestMethod("HEAD");
    httpConnection.connect();
    System.out.println("Response = "+httpConnection.getResponseCode());
    catch(Exception e) {
    // print exception
    Regards,
    Harini S

  • How to modify themes in web dynpro abap

    How can we identify which css file and class are used in web dynpro abap iview ?? I m new to web dynpro abap application. I need to change the look and feel of the page developed in web dynpro abap.
    How i can use css files to change the UI of the page and how can i reach to the css file and class of  a particular page developed in web dynpro abap. When we run the abap application on browser we don't get view source of it. Please tell me the ways to find the css and class files to modify them

    >
    Narendra wrote:
    > Hi,
    >
    > You can create one .css and .js page of page type Page with Flow Logic.and can make use in your normal .htm page..
    >
    >
    > Regards,
    > Narendra.
    I don't believe that your answer applies to Web Dynpro ABAP.  Page with Flog Logic sounds like BSP.  Please make sure you are posting about the correct technology.

  • Change font size of url link in abap web dynpro

    hi
    i want change the fonr size of an url link connection in abap web dynpro
    but i didnt find where to do that
    isi it possible?

    Hi,
    There is no option to do that.
    The user has to change the TEXT SIZE option for the browser. I guess there is no other way.
    Let Thomas give some inputs on this.
    Regards,
    Lekha.

  • Using portal theme in web dynpro tables

    We are currently running EP6 (NW04).  Is there a way to make our java web dynpro table ui elements use the portal theme?  All tables appear blue unless they are checked as readonly in which case they are white. 
    I see there is a TableCellDesign ui element, but that is not available until NW04s and we are not there yet.
    Please assist. (and thank you!)
    Jeff Karls

    hi
    You are right about NW04s portal theme editor and we are able to change colour
    the tablecelleditor ui. But as far as i remember i was able to change properties like selected cell colour, non selected cell colour and mulitselected cell colour.
    However if you are not able to change it in EP 6.0 (NW04) then use the webdynpro themes. I suppose you will be able to do everything there.
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d2b1d790-0201-0010-25b7-d1fb059a8ad9">How to edit webdynpro themes</a>
    <a href="http://help.sap.com/saphelp_nw04s/helpdata/en/1e/535d420447e054e10000000a155106/frameset.htm">Setting the theme in Visual admin</a>
    Hope it helps.
    regards
    LNV

  • Adjusting portal theme of Web Dynpro ABAP application

    Hi,
    can the style of all UI elements in our Web Dynpro ABAP application changed in the style sheet editor of the portal?
    Or shall we avoid some already in the application?
    And can we also use the Eclipse Portal Editor to change the theme for our ABAP application in the portal?
    Thanks, Regards
    Susanne

    >
    Susanne Steib wrote:
    > Hi,
    > can the style of all UI elements in our Web Dynpro ABAP application changed in the style sheet editor of the portal?
    > Or shall we avoid some already in the application?
    >
    > And can we also use the Eclipse Portal Editor to change the theme for our ABAP application in the portal?
    > Thanks, Regards
    >
    > Susanne
    Most all UI elements can be changed by the Theme Editor.  Not all aspects of each UI element is customizable.  You will need to look through the theme editor to see what all it supports.
    You can use the Eclipse Portal Editor (unsupported by SAP) to change the them of WDA applications.

  • URL error while excuting web dynpro application for file upload  in IP

    The following error text was processed in the system DB1 : WebDynpro Exception: ICF service node for application /sap/public/bc does not exist
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: RAISE of program CX_WD_GENERAL=================CP
    Method: HANDLE_REQUEST of program CL_WDR_UCF====================CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP

    Hello,
    have you typed the web manually? try using transaction SICF and "test" the service so the URL is generated by the system. You should find the webdynpro application under /SAP/public/bc/
    If the error continues re-import the transports.
    Cheers,
    C

  • How to reference Portal Theme in Web Dynpro Application?

    Hi All,
    I have implemented a WDA that is being embedded into the Portal. My customer has designed his own Portal Theme.
    However, the WDAs embedded into the Portal do not appear in the style of the Portal Theme.
    Now, my question is which means are required in order to have the WDAs use the same Theme as the Portal?
    Can I provide WDA parameter WDTHEMEROOT with the URI of the Portal Theme? If yes, how do I get the URI of the Portal Theme?
    I guess parameter WDFORCEEXTERNALSTYLESHEET also is relevant in this matter... Please let me know how I get this working!
    THANKS
    Johannes

    Hi Johan,
    Please go through this links..
    Portal Theme in Webdynpro ABAP
    Re: Deriving Portal Theme
    also check this..
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/7015b1f9-535c-2910-c8b7-e681fe75aaf8?quicklink=index&overridelayout=true
    http://wiki.sdn.sap.com/wiki/display/WDABAP/StylesheetforWDAwithoutintegratinginSAP+Portal
    Cheers
    Kris.

  • Apply Custom theme to Web Dynpro Java CE 7.11

    Hi,
    I want to apply a custom theme created with the theme editor to my WDJ application. The creation of my custom theme seems to be no problem.
    But I did not find any documentation how to apply this theme to my WDJ app.
    How to deploy this theme (zip-File) to my AS Java (CE 7.11) ?
    How to set this theme as used theme for my WDJ app only?
    How to set this theme to be used by my app running stand-alone and running in portal?
    Thanks ahead,
    Bernd

    Bernd,
    You can deploy your theme by going to
    System Administration->Portal Display->Theme Archive, on the screen under the Import Theme section, browse the theme and import.
    In order to apply the theme to your WD application, you can get the info. here:
    https://cw.sdn.sap.com/cw/docs/DOC-100896
    also note that, by default WD application will take the portal theme unless you configure to use a specific theme as described in the above link.
    For applying the portal themes, you have to create a framework page and a new desktop.Add that framework page and the theme to the desktop and then create a desktop rule which gives the look and feel of that desktop(theme and the framework page) who satisfy the condition in the rule.
    Regards,
    Ajay

  • NW2004s: Assigning a custom theme to a web dynpro running in the portal

    The situation is as follows:
    Some web-dynpros (for java) have a custom theme, a theme which is <b>not</b> the default theme of the portal or  the default theme for web-dynpros in general.
    In NW2004 this worked as follows:
    When starting a web-dynpro in the portal it checked if it was started with the right theme. If <b>not</b> the exit plug of the WD interface view was called with an Url of the WD application plus a parameter for the right theme.
    This is the famous parameter sap-cssurl.
    For that parameter there are some values possible:
    1) sap-cssurl=http://<host>:<port>/irj/portalapps/com.sap.portal.design.urdesigndata/themes/portal/mytheme
    2) sap-cssurl=http://<host>:<port>/irj/portalapps/com.sap.portal.design.portaldesigndata/themes/portal/mytheme
    3) sap-cssurl=http://<portal>:<host>/webdynpro/resources/sap.com/tcwddispwda/global/SSR/themes/mytheme
    The first 2 are locations of the portal environment, the last one is a location of the WD runtime environment.
    As I noticed this must be a full qualified absolute Url including host and port.
    This works in NW2004 for web dynpro's running standalone <b>AND</b> in the portal.
    Now for NW2004s:
    The 3 variants of the parameter sap-cssurl work for web dynpro's running standalone.
    But now for web dynpro's which are integrated in the portal:
    The exit-plug with an Url is not possible anymore, this leads to the runtime error:
    <i>com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Exit-Plug must no be triggered with an URL when running in portal. Use portal navigation instead to navigate to another application!</i>
    Okay, as a first workaround I tried the portal navigation,
    but somehow the supplied parameter sap-cssurl has no effect.
    The code for that in the on-startup plug of the WD component:
    WDPortalNavigation.navigateAbsolute(
      PCD_ID,
      WDPortalNavigationMode.SHOW_INPLACE,
      null,
      null,
      WDPortalNavigationHistoryMode.NO_HISTORY,
      null,
      null,
      "theme_set=X&" + theme,
       theme,
       false,
       true
    I used there absolute portal navigation and the  parameter (sap-cssurl=...) is part of the <b>launcher parameter</b> and the <b>business parameter</b> in the call to <b>WDPortalNavigation.navigateAbsolute</b>.
    But as I wrote above, this has no effect on the theme.
    In the I-View the parameter "Supply portal theme" is set to <b>NO</b>, otherwise the parameter "sap-cssurl" is supplied twice (this can be seen in the poroperties of the web-page in Internet Explorer).
    What I tried afterwards was setting the parameter sap-cssurl hardcoded in the "Application parameters" of the I-View. This doesn't work either.
    My question is: Should this be anyway possible for a NW2004s portal?
    Did anyone successfully implement this?
    Kind regards,
                Erich Lind

    Hi Erich,
    I am facing the same problem. I am on 04 s and couldnot implement the custom theme to a web dynpro running in the portal. When I run the web dynpro app as stand alone, the custom theme applies fine. But when in portal, it takes the standard theme.
    Was wondering if you figured this out.
    Thanks

  • Access Web Dynpro Java application through direct URL

    Hi Guys,
    we have a requirement that there is a link in web dynpro abap screen, click on it will open a new ie window running web dynpro java application, so what i did is i have given direct url link for that web dynpro java application:
    as this:
    https://servername:50001/webdynpro/dispatcher/sap.com/ess~lea/TeamView
    but after i clicked on this url, it pop up 1 window, after i entered id & passoword, it is showing this wd java appl, but there is 1 grey image on top of the view & "welcome xxxx"; below that is the actual view from wd java.
    the layout is :
    grey image----
                             welcome xxxxxxxx
    Teamview
    actual ivew
    how to remove the grey image & the "welcome xxx"? it looks like masthead but we dun need it.
    thanks

    Hi Feng,
    Actually what you are seeing using the application URL and after giving the credentials on Portal is a portal screen which carries the theme as well. Therefore, you will be able to see the masthead with header and Portal User Name. So, use the URL generated by preview of a web dynpro iView in your component to avoid the masthead.
    Regards,
    Tushar Sinha,
    Infosys,
    Hyderabad

  • Get HTTPS URL for Web dynpro application

    We are using SSL. By default the URL generated for the Web dynpro application is HTTP.
    We went to SICF, and deactivated the HTTP service. That made the URL point to HTTPS.
    But few problems started coming because of it:
    - Our Content server became inaccessible.
    - Every time server is re-started, we need to manually go and de-activate HTTP Service.
    We even tried to set the parameter icm/icm/HTTP/redirect_0. But problem is not solved.
    I know this question is asked before, but every time the answer is to read the help document on ICM.
    What's the correct way for any webdynpro application to point to HTTPS? I don't think de-activating HTTP service is the right way.
    Any suggestions please?
    Thanks in adv.

    Thanks a lot Thomas. I'd ask the Portal Admin to try it out.
    There is another similar problem we are facing: I have embedded Webdynpro in R/3 screen. Then used the cl_gui_wdr_viewer class's load_application method passing HTTPS protocol.
    It returns HTTPS URL only, but is not showing up on users' laptops.
    Earlier we were not passing HTTPS protocol, so generated URL was HTTP, and it was not showing on users' screen (can show in ours). Reason we found out is that users' site has HTTP port blocked. They cannot show any HTTP url.
    So we changed to get HTTPS URL, but that also gives the same problem. It is still trying to get HTTP url.
    Here is the URL that the users got: (when they right click to see the URL generated)
    res://ieframe.dll/dnserrordiagoff_webOC.htm#http://abc.def.jil:8000/sap/public/myssocntl?sap-client=220
    Can give any clues on why this is going wrong? Cannot raise OSS as I know embedding Webdynpro in R/3 is not supported
    Thanks in adv.

  • Web Dynpro iView - Blank Page

    Hi,
    we have a problem with our web dynpro iviews. Although there are all necessary fields of the iview template filled (application name, application parameter, namespace (sap), system, web dynpro for java and windows client) there only appears a blank page with a red X, when we preview the iview.
    Before we've tried to create a web dynpro iview, we've created an url iview for the web dynpro and this one was working fine.. The problem was, that it doesn't display the application in our custom portal theme with an url iview - only the default sap theme was displayed. 
    I've searched in the forum, but I found not really something for our case.
    It would be great, if anyone can point to what the error could be..
    Thanks in advance,
    Lydia

    Hi,
    Check the SAP note: Note 1446099 - Web Dynpro application not displayed in customer theme
    Try creating a Web Dynpro ABAP iview, you can find the template in Iview Template.
    And in that make sure Supply Portal Stylesheet is set to yes so that it takes Portal Stylesheet.
    Alternative to that is upload the theme to R/3.
    To do that check SE38 program WD_THEME
    Download portal theme
    Once you have the Theme uploaded you need to make one more setting.
    In SE80 WD_Global_Setting - goto Change and change Stylesheet URI and ensure the iView property Supply Portal Stylesheet is set to no.
    Hope this helps.
    Cheers-
    Pramod

Maybe you are looking for