How to inject external configuration into web dynpro application

Hi colleagues,
I've a web dynpro application, which has some hard coded hostnames in the source code.
All hard coded hostnames should be moved to some else place, either engine parameters or external configuration file.
Searching over the project, hard coded hostnames were found in following file types:
- wdmodel files
- properties files
- java files
How to inject external configured hostnames into web dynpro applications, especially wdmodel and property files? Are threre best practices?
Thanks for any hint!
Best regards
Daniel

property file is supposed to do that job, you can configure the value at nwa after the application is deployed.
Configuring a Web Dynpro Application (Java) - IT Scenarios at a Glance - SAP Library

Similar Messages

  • How to send a mail through web dynpro application

    Hi
    How to send a mail through web dynpro application?
    Thanks

    Hi ,
      Please post some more details about your query .
    One way is to can use LinkToUrl UI element and in the reference property of the UI element , give it as mailto:mail addess
    Thanks.
    aditya.

  • How to call a method of a zclass into web dynpro application

    How to call a method of a zclass into web dynpro application

    Hi,
    if the method is of type static then u can access it directly as below.
    call method class_name=>method_name
    If the method is instance method then U need to create the object of that class. then through this object u can access the method.
    CALL METHOD Obj_name->method_name

  • Close External Window in Web Dynpro Application

    Hi Folks,
    I am working on a development in Web Dynpro and I am pretty new to this topic, so I seek your help.
    The scene is:
    I have created a Web Dynpro application in which I open an URL using CREATE_EXTERNAL_WINDOW method of the Window Controller. I am able to open the window but not able to close it.
    I tried using methods,
    CLOSE()
      and
      SET_CLOSE_IN_ANY_CASE()
      but no success.
    Please guide me if anything more needs to be done for closing the opened window.
    Thank you.
    Sud.

    Thank you Thomas,
    You correctly pointed out, I was trying to close the external window from my source window.
    More precisely, I have a WD application which has a button (Search) on one of its views. On click of 'Search' button, I open a new window using 'CREATE_EXTERNAL_WINDOW' passing the URL 'www.google.com'.
    Till this point its fine, but now I want to close this newly opened window. As you said now these are 2 different sessions and cannot communicate anymore, so any guidance how to close this new window?.
    OR
    Is this the only way to call an URL i.e using CREATE_EXTERNAL_WINDOW? Is there any other way to call an URL without closing my current running WD application?
    Request your  help......
    Thanks.
    Regards,
    Sud....

  • How to get User Id in Web dynpro application

    Hi Experts,
    I am running web dynpro application with authentication checkbox set. I want to display user id of the user in my application. I am using following code in Init method of component controller.
    IWDClientUser wdUser = WDClientUser.getCurrentUser();
    WdContext.currentContextElement().setUserName           (wdUser.getClientUserID());
    Here I am getting some integer value as userId.
    I am not using Portals, so solutions suggested for portal are not useful for me .
    Is there any way to get this uset id.
    Thanks in advance

    hi
    try this piece of code
              IWDClientUser wdUser = WDClientUser.getCurrentUser();
              IUser user = wdUser.getSAPUser();
              if (user != null)
                        IUserAccount[] acct = user.getUserAccounts();
                        if(acct[0] != null)
                                  String strUserid = acct[0].getLogonUid();
    wdContext.currentZtms_Fm_Regupdate_InputElement().setAssoid(new String(strUserid));
    Note: Defining the IUser will show an error. To resolve this, within the properties of
    the project, choose Java build path -> Libraries -> Add external jars ->
    com.sap.securities -> lib -> com.sap.security.api. Open this file and retype the code.

  • How to make changes to stdandard web Dynpro applications used in ESS

    Hi all
          I have uploaded the standard ESS Business Package,
    now the requirement is to change some features in the web dynpro application in it.How do I go about it?
    Regards
    Mansoor

    Even though those are tow different tabs, but both are under one view controller.
    So create a node and pass the data.. so data will be available to both tabs.
    View controller is local controller
    component controller is global controller.
    if you want to access the node outside your view then declare the node in component controller.
    Regards
    Srinvias

  • How To Consume UME services in Web Dynpro applications

    Dear Friends,
    I am developing a new web dynpro application in which i want to get the user related information in my dynpro code. I have used com.sap.secuirty.jar file in class path -> lib of my project.
    I have written code sth like this.
    IUser user = null;
    String username = user.getCurrentUser().getSAPUser();
    and defined sap.authentication as a application variable to fetch user creadentials from portal run time.(user logs in to the portal and dynpro application fetches user credentials from portal). When i do this, the login window appears twice and user needs to enter his credentials more than once. If I remove sap.authentication parameter from the application then i am not able to get the user credentials. Could you please tell me the right method of fetching the user credentials in web dynpro application? Do we need to use sap.authentication? do we need to include sharing reference of the usermanagement in our application?
    kindly share your knowledge.

    These might be good places for you to start.
    [User|http://help.sap.com/saphelp_nw04s/helpdata/en/80/45da9619d24b61bb869c31ef3b780a/frameset.htm]
    [Protecting Access to the Web Dynpro Application Using UME Permissions|http://help.sap.com/saphelp_nw04s/helpdata/en/f3/a64d401be96913e10000000a1550b0/frameset.htm]
    -Michael
    Edited by: Michael Shea on Sep 2, 2008 8:24 AM
    Edited by: Michael Shea on Sep 2, 2008 8:25 AM
    Fix link

  • How to intrigrate ALV report into Web Dynpro

    Hi Experts,
    I Done one ALV Report and the same thing should be developed on web dynpro also...so, i want to intigrate the alv in web dynpro is this possible..if so, pl. let me know..asap. Thanks & Rewards,
    Satish

    Hi
    ALV in Web Dynpro ABAP is different from Dynpro ALV.
    In WebDynpro ABAP ALV is SAP's standard component SALV_WD_TABLE
    You have to use this component inside your component.
    the following tutorial will help you
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/60ea94e5-0901-0010-c3bb-aad5ea9620d8 [original link is broken]
    Abhi

  • 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.

  • Configure a web dynpro application!!!

    Hi Experts,
    I am working on ESS-Travel and Expenses application. In that I have an ALV displayed on a POWL component. Here when we go to user settings after we right click on the ALV we get option to hide/show the columns of the ALV. What I need is to restrict the user to personalize these settings to show/hide columns in the ALV. Please suggest a solution.
    Thanks and Regards,
    Vaibhav Tiwari.

    Have a look on this code which will hide 'export' and 'pdf' option from header of ALV. Doube click on if_salv_wd_std_functions on this interface and you will see all the function. Then just find out which you want to hide, get the method name from there and add the line in this code...and make as abap_false.
    DATA: lr_cmp_usage           TYPE REF TO if_wd_component_usage.
      lr_cmp_usage = wd_this->wd_cpuse_cu_alv_search( ).
      IF lr_cmp_usage->has_active_component( ) IS INITIAL.
        lr_cmp_usage->create_component( ).
      ENDIF.
      DATA: lr_if_controller TYPE REF TO iwci_salv_wd_table,
            lr_config_model  TYPE REF TO cl_salv_wd_config_table.
      lr_if_controller = wd_this->wd_cpifc_cu_alv_search( ).
      lr_config_model = lr_if_controller->get_model( ).
      lr_config_model->if_salv_wd_std_functions~set_export_allowed( abap_false ).
      lr_config_model->if_salv_wd_std_functions~set_pdf_allowed( abap_false ).
    Hope it works.

  • Problem with external libraries and Web DynPro

    Hello,
    we're stuck here.
    We're trying for a week now to include external libraries(e.g. Hibernate) into our Web DynPro Project, without success so far.
    We read every single forum and blog entry we could find on this topic.
    E.g.: /people/valery.silaev/blog/2005/09/14/a-bit-of-impractical-scripting-for-web-dynpro
    We're running Netweaver 2004s SP9 Trial Version.
    The biggest problem is, that when we deploy an J2EE Server Component Library DC exactly like described in the blog entry above, although it is deployed correctly an lists under Server->Libraries in Visual Administrator, the external hibernate.jar doesn't get deployed onto the server. It's just an empty container named hib/lib without any entries in "Jars Contained". The sda file of the library DC also has only 2K and doesn't include the hibernate.jar which we added as used dc...
    Any help would be greatly appreciated.
    Or is there a simpler way to include external jars into Web DynPro Projects and deploy them to the server? (We already tried putting them into the lib folder without luck, we always get "NoClassDefFound...")
    Edited by: Christian Wieland on Jan 31, 2008 11:22 AM

    Hallo Christian,
    this is a bug which should be fixed in NW 7.0 SP9 patch1: [Look at this forum thread on the same issue: External Library DC in NW2004s SP09|External Library DC in NW2004s SP09].
    Regards, Bertram

  • How to make use of Portal service in the web dynpro application

    hi
    I have some portal service and how to use that in the web dynpro application.
    and also what is the main diff between Portal Component and web dynpro application.
    do we required portal to run web dynpro application.
    thanks
    mmukesh

    Hi,
    >> I have some portal service and how to use that in the web dynpro application.
    Yes. U can use Portal service in webdynpro. Check the link given by subathra.
    >> and also what is the main diff between Portal Component and web dynpro application
    Portal Components are components designed to run in portal server while webdynpro application can run in J2EE WebAS.
    >> do we required portal to run web dynpro application.
    No for general cases. Just WebAS is sufficient to run webdynpro appl. But if u use portal service in ur webdynpro appl, then make sure both (portal service and webdynpro appl) run on same J2EE engine. That is mandatory.
    Regards,
    Vijai

  • Integrating Help files in Web Dynpro Application

    The requirement is : To give context specific help for each fields..
    Description:The requirement  is to provide context specific help..for each field that would appear on dynpro screen..
    Now what that means is.. for each field on the screen...there will be a "?" icon next to it..when the user clicks on that "?" icon...a small pop-up type of information. box should come up...displaying the text corresponding to that field..this u might of seen on some of the web sites...or microsoft applications..
           No we have to store the help files..in  some proper place either KM...or anywhere...and maintaining the relationship between the field and it's corresponding help file.One of the option for this is to use microsoft help tool which creates files in the .chm format and then use these files for our purpose.
           So can anyone please guide me what's will be the best way to achieve my purpose .chm files where i the help files will be stored and how they can be accessed in Web Dynpro Application.If u have any good suggestion apart from using .chm files then please suggest me.Please try to give a detailed solution.
         Any direction will be appreciated even if just to the proper place for a forum post of this nature or documentation      
    that will send me down the right path.

    Hi Candace, thanks for your time!
    Nothing is "clickable".... as in, nothing will is hyperlinked to each individual file....
    In my settings for items in this region, I have chosen mime type image, Image or Display Name Link, and when updated as attributes....
    All that appears for each item/file is Image or Display Name and item updated info, though neither of which is clickable, or hyperlinked.....
    Arrrrrghhhh..........

  • How to import EJB components and Web Dynpro into WAS 6.4

    I have EJB components and developed Web Dynpro application.
    Is it possible to upload directly without using NWDS? My system is very slow while running NWDS.
    I don't know how to upload or deploy those on WAS 6.4.
    Can any one help me out on this.
    Thanks,
    Mahesh

    Hi,
    The default SDM password is <b>sdm</b>, try this one.
    1. Once login into SDM select <b>Deployment</b> tab.
    2. Click the first Icon to add your .EAR files.
    3. Continue the deployment process by clicking the <b>Next</b> button.
    4. In last screen of the deployment <b>Confirm</b> the deployment.
    Let me know if you need anything.
    Thanks
    Srinivasu Rao Sandaka

  • Import web service from service registry into web dynpro

    HI, when i import web service into web dynpro model, it asks me to create service group or if i choose no service group configure, it ask me the destionation for metadata and excution. i import service from service registry. what does the service configuration mean? and if i choose no service group, where should i configure the destination?thanks

    Hi Lei,
    The metadata and execution destinations are relevant for runtime. On runtime you web dynpro application will access the web services you imported via these two destinations.
    You can configure the metadata and execution destinations in the following location:
    login on the CE system Netweaver Administrator: http://hostname:portnumber/nwa
    On NWA navigate to SOA Management --> Technical Configuration --> Destination Template Management.
    In this section of NWA you can define the Metadata and Execution destinations for your web services.
    Please check the following blog for more information:
    How to Consume an Enterprise Service from the ES Workplace in Web Dynpro in the new SAP NetWeaver Composition Environment 7.1
    Regards,
    Yasar

Maybe you are looking for

  • Amber update is not working in my lumia 520

    sir,    i have installed new update in my lumia 520 .it installed fully and successfully but i cannot find of new features in my phone !!?? features like call+sms filter ,radio and so on.., how can i solve this problem. 

  • FM BBP_PD_PO_UPDATE is not updating Purchase Order

    Hi Experts, I am trying to update Final Delivery and Final Invoice indicator for a PO using FM BBP_PD_PO_UPDATE. Code Snippet for FM call is as follows: -       CALL FUNCTION 'BBP_PD_PO_UPDATE'         EXPORTING           i_header                = wa

  • 10.5.5 Update Erased All Data in iCal

    I just updated to 10.5.5, and it appeared that I had no issues. However, when I started up iCal, all of my calendars are gone from the sidebar, and every event is gone from the calendar - as if I've never input anything before. Clicking the "+" butto

  • No wireless N on a WRT350N

    I have a Dell Wireless 1500 draft N adapter that only connects at G speeds in mixed mode. I tried N only mode and my adapter will not connect. I have tried N mode Auto and 40hz wide and nogo. I have tried TKIP + AES and AES and nogo.  Any suggestions

  • Budget Spreadsheet, need help...

    Using the default budget spreadsheet, in the Monthly Expenses box where you plug in costs, is there anyway to set a percent and if you're overspending to make the text a bold red text? I have it setup with a few categories, and I want my checks to be