Web Dynpro Application for exporting the BI report displayed in EP to Excel

Dear All,
I have installed only NWDS on my system(Not NWDI).
I need to create a webdynpro application that consists of 2 buttons for the BI reports that are getting displayed on my EP protal:
1) Export to Excel (Will export the BI Report into Excel that is getting displayed on EP Portal)
2) Refresh (will display the Variable screen of the BI Report)
My Queries are:
1) Do I need to connect NWDS to BI system?
   If yes, kinldly help me by providing me with the steps od documents for the same.
2) How do I create the above 2 buttons.
   Please provide me with a step by step procedure or document because I am new to Webdynpro.
Please help.
Thank you in Advance,
Regards,
Shruti.

Hi Shruti,
Create a Technical System object for BI Server and connect with JCO destination, generally basis/ admin guy will do this configuration.
Procedure to create a system object:
http://help.sap.com/saphelp_nw04/helpdata/en/2f/741a403233dd5fe10000000a155106/frameset.htm
Creating a JCO destination:
http://help.sap.com/saphelp_nw04/helpdata/en/77/931440a1c32402e10000000a1550b0/frameset.htm
Integrate the BEx WebTemplate ( use BIApplicationFrame ui element ) in webdynpro view.
please refer this link:
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/60f35908-ecd4-2910-6c89-e75e1054d9d1
Hope this helps you..
Regards,
Saleem Mohammad.

Similar Messages

  • The Web Dynpro Application for LeaveRequest has expired

    My problem with the portals is that when users apply for leave they get the message. The Web Dynpro Application for LeaveRequest has expired. On another machine the user is working fine. But sometimes users get that message. I ve been in contact with oss calls but these guys are not helping. Even checking salary statement give the same problem. So has anybody experienced this problem that can help me or even can give advise please help
    Naziem Mahomed

    hi
    just go through the follwing link
    http://help.sap.com/erp2005_ehp_04/helpdata/DE/2d/292391fa6745488f3e0e0d4b03c64e/frameset.htm
    may be it will help u.
    Thanks
    Bharathi.ch

  • Need to create a Web Dynpro Application for SRM Portal

    We need to recreate the start page for SRM Portal - (Supplier Self-Services) - without any images (as was delivered out of the box) - basically we need to break it down into 4 iViews:  All Purchase Orders; All Sched Agreement Releases; All Invoices and Credit Memos; and Account History.  All these iViews contains links.
    How would one create a Web Dynpro Application to create the above iViews?
    Regards,

    Hi zhang,
    take a look to this:
    KM:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/kmc/resource%2band%2bcollection%2bversioning%2busing%2bkm%2bapis
    https://help.sap.com/javadocs/NW04S/SPS09/km/index.html
    Excel:
    /people/subramanian.venkateswaran2/blog/2006/10/02/enhanced-file-upload--uploading-and-processing-excel-sheets
    Hope this help you.
    Vito

  • Web Dynpro Application For developing a simple calculator

    Dear Experts,
    I am trying to develop a simple calculator application in abap web dynpro .
    but i am not able to enable the buttons (1 to 9) . that is what i want is like how it happens in a normal calculator if we press 1 , then in the screen, 1 comes and if 11 then twice we press 1. Like wise i want if the button 1 is enabled then in the input field it should take 1 and if 11 then it should take 11. Kindly give some suggestions to develop this application.
    Regards
    Swarnadeepta

    Hi Swarnadeepta,
    I developed a calculator in web dynpro...please go through the following code. I have made a few changes with respect to modularization but the basic concept is still the same.
    Method to Enter Data on the screen
    METHOD enter_data .
      DATA lv_input TYPE i.
      DATA lv_flag TYPE c.
    ***Read input in the screen 
    wd_this->get_input(
        IMPORTING
          ev_input = lv_input                       " integer
    ***See whether flag is set. If yes save the present value in global attribute gv_previous.
      wd_this->get_flag(
        IMPORTING
          ev_flag = lv_flag                        " wdy_boolean
      IF lv_flag = 'X'.
        wd_this->gv_previous = lv_input.
        lv_input = 0.
      ENDIF.
    ***Modify screen input
      IF lv_input IS INITIAL.
        lv_input = iv_number.
      ELSE.
        lv_input = lv_input * 10 + iv_number.
      ENDIF.
    ***Set the new value of input field
      wd_this->set_input(
        iv_input = lv_input                          " integer
    ***Reset the flag
      wd_this->set_flag(
        iv_flag = ''                           " wdy_boolean
    ENDMETHOD.
    Use the above method on button click
    method ONACTIONONE .
      wd_this->enter_data(
        iv_number = 1                        " integer
    endmethod.
    Method to Register Operations
    method ENTER_OPERATION .
      wd_this->set_flag(
        iv_flag = 'X'                           " wdy_boolean
      wd_this->set_operation(
        iv_operation = iv_operation                      " string
    endmethod.
    Use of above method in operations button
    method ONACTIONADD .
      wd_this->enter_operation(
        iv_operation = 'ADD'                     " string
    endmethod.
    Method to calculate
    method ONACTIONEQL .
    DATA lv_operation TYPE string.
    DATA lv_input TYPE i.
    ***Read screen input 
    wd_this->get_input(
         IMPORTING
           ev_input = lv_input                        " integer
    ***read operation requested
      wd_this->get_operation(
        IMPORTING
          ev_operation = lv_operation                   " string
    CASE lv_operation.
    WHEN 'ADD'.
    lv_input = wd_this->gv_previous + lv_input.
    WHEN 'SUB'.
    lv_input = wd_this->gv_previous - lv_input.
    WHEN 'MUL'.
    lv_input = wd_this->gv_previous * lv_input.
    WHEN 'DIV'.
    lv_input = wd_this->gv_previous / lv_input.
    WHEN OTHERS.
    ENDCASE.
    ***Set the new value of input field
      wd_this->set_input(
        iv_input = lv_input                         " integer
    ***Clear the operation attribute
      wd_this->set_operation(
        iv_operation = ''                     " string
    endmethod.
    Getter Methods example for attribute INPUT
    method GET_INPUT .
      DATA lo_el_context TYPE REF TO if_wd_context_element.
      DATA ls_context TYPE wd_this->element_context.
      DATA lv_input TYPE wd_this->element_context-input.
    get element via lead selection
      lo_el_context = wd_context->get_element( ).
    @TODO handle not set lead selection
      IF lo_el_context IS INITIAL.
      ENDIF.
    get single attribute
      lo_el_context->get_attribute(
        EXPORTING
          name =  `INPUT`
        IMPORTING
          value = lv_input ).
    EV_INPUT = lv_input.
    endmethod.
    Setter Methods example for attribute INPUT
    method SET_INPUT .
      DATA lo_el_context TYPE REF TO if_wd_context_element.
      DATA ls_context TYPE wd_this->element_context.
      DATA lv_input TYPE wd_this->element_context-input.
    get element via lead selection
      lo_el_context = wd_context->get_element( ).
    @TODO handle not set lead selection
      IF lo_el_context IS INITIAL.
      ENDIF.
    @TODO fill attribute
    lv_input = iv_input.
    set single attribute
      lo_el_context->set_attribute(
        name =  `INPUT`
        value = lv_input ).
    endmethod.
    Hope this will be helpful. Let me know if you have any doubt.
    Its working fine for me.
    Regards,
    Sayan

  • Deployed Web dynpro application URL has the wrong host name

    Hi All,
    I have developed a java webdynpro application using NWDS. When I deploy it on a remote server, the host in the  URL of the generated application is different from the message server. Also, the URL doesn't display the fully qualified name of the message server. This creates problems when the application is accessed from a different domain.
    When I run the deployed application in web dynpro administrator, correct URL is generated.
    My questions is
    Where does the NWDS get the host and port from. Are there any parameters to be changed on the NWDS/Visual admin or on the Server to pick the exact server and host?
    Version:
    NWDS 7.0.09
    Netweaver 2004s SP15
    Thank you,
    Vasu

    Thanks for your reply.
    Hi Siva,
    I'm using a remote server. Which hosts file are you referring to? Is it where the NWDS is installed or the on the server?
    Pravesh -  My problem is not setting the J2ee engine on NWDS. Even when I give the correct message server and port on NWDS, the URL for the application deployed is not picking the server name correctly.
    My remote server has 2 SAP instances on it. Is it a problem?
    e.g.:
    Say my remote server is s07.xyz.com
    So I set the Message server as s07.xyz.com  and port as abcd
    When I deploy the application, sometimes I get the URL as
    http://bs307:50000/webdynpro/dispatcher/local/RPM_Item2/Charter2?SAPtestId=4
    Sometimes - http://s08:50000/webdynpro/dispatcher/local/RPM_Item2/Charter2?SAPtestId=4
    But the correct URL should be
    http://s07.xyz.com:50000/webdynpro/dispatcher/local/RPM_Item2/Charter2?SAPtestId=4
    But all three work. When I run the application from webdynpro administrator, the URL is correct.
    Thank you,
    Vasu
    Edited by: Subramanya Srinivas Mullapudi on Feb 27, 2009 5:15 AM

  • How to create a web dynpro application to open the KM Files?

    I want to create a webdynpro application to open the <b>KM Excel files</b>?What would i do ?Can anybody help me ?

    Hi zhang,
    take a look to this:
    KM:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/kmc/resource%2band%2bcollection%2bversioning%2busing%2bkm%2bapis
    https://help.sap.com/javadocs/NW04S/SPS09/km/index.html
    Excel:
    /people/subramanian.venkateswaran2/blog/2006/10/02/enhanced-file-upload--uploading-and-processing-excel-sheets
    Hope this help you.
    Vito

  • 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 change the Portal Password using a link from Web dynpro application

    Hello Everybody,
    I have a requirement to change the user password from a web dynpro application which is available on a mobile device. Firstly User will log into the portal through a mobile device and after getting authenticated user will be redirected to the mobile application. Within this mobile application there will be a link to change the login password(Portal login). Can somebody tell me how can i change the portal login password from a link available within the mobile application. Looking forward for a suitable reply.
    Thanks to all,
    Regards,
    Saby.

    Hi Maksim,
    Thanks for your reply..but i would also like to know can we directly use the Change Password Iview "persoUserPassword" from the portal. Can i directly Pass the URL of this iview from the portal to a "Change Password" link in the web dynpro application, so that when the user click this link he should be able to see this Iview on his/her mobile device and should be able to change the password from there. But i dont know whether this iview will appear properly on the mobile device or we have to have a custom web dynpro application for this purpose...Please reply with a suitable answer.
    Thanks in advance.
    Regards,
    Sarabjeet Singh.

  • Restrict simultaneous login to a web dynpro application by the same user

    I have a stand alone web dynpro application and used the sap.authentication for user to login into the application. How can i restrict a user from accessing the application from two different browsers using the same userid?

    Hi,
       You can try the following approach:
    1. Create an outbound plug to some dummy view which shows the message to the user that he/she is already logged in. Let's call this plug "ToMessageView".
    2. In the "wdDoInit" method of the component controller write the following code:
    String loggedInUserID = WDClientUser.getLoggedInClientUser().getClientUserID();
    String[] apps = WDServerState.getActualApplications(loggedInUserID);
    //All entries of apps will look like <application-name>/<application-id>
    boolean isRunningParallely = false;
    for (String app : apps) {
         if(app.split("/")[0].equals(wdComponentAPI.getApplication().getName())){
              isRunningParallely = true;
              break;
    if(isRunningParallely)
    //fire the plug to message view here
    FYI, I haven't tested this but do try it out.
    Regards,
    Satyajit

  • Using CSS for Web dynpro application in EP

    Hi,
    I have some CSS (Style sheets) which I need to apply to the portal, so that all the web dynpro applications can have the same look and feel.
    I read something about Theme Editor in EP. Can I somehow use that to import the CSS contents into the EP theme?
    Any pointer to using CSS for Web Dynpro applications will be appreciated.
    Thanks.
    Puneet

    Hi,
    Go thorugh the follwing Web Dynpro Java
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/business_packages/a1-8-4/nw04stack09themes.zip
    To know how to use it and for the steps to be followed please follow the tutorial here
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/how to edit web dynpro themes.pdf
    the last url gives you a step by step procedure with wizards..
    Regards,
    RK

  • Run a web dynpro application encounter WDUMException exception...

    Dear guys,
    We currently encounter a error when we run a web dynpro application.
    That is, once a user click a url which will redirect to the enterprise portal,
    the com.sap.tc.webdynpro.services.sal.um.api.WDUMException is thrown.
    I have checked the cause of the exception is that "if there is no user (neither authenticated nor anonymous user) attached to the current session"
    The following is our situation:
    When linking to EP domain(ex. http://sapep.xxx.com), single signed on wil automatically process.
    The url which I mentioned above is something like "http://sapep.xxx.com/portal?doc=xxx&ver=2010"
    Our web dynpro program will invoke the IWDClientUser api initially for get the currently logon user's information.
    And this is caused the WDUMException.
    We think that the error is because that the session is not created while loading the web dynpro application,
    so that, the system can't get the cuurent user with a non-user session.
    The situation is not often happened. We think this is because of the system service issue.
    So we try to prevent this problem with the following mechanism:
    When the excpetion is thrown, we invoke a waiting program to let the system has time to generate the require session.
    So when invoke the IWDClientUser, this exception can be prevented.
    Any suggestion.please advise, thanks.

    Try using WDPortalUtils.isRunningInPortal() method to see if the session (somehow) disconnects
    Hi,
    We check the method you proposing, but seems it's not the method to check the session of the current user.
    The API of WDPortalUtils.isRunningInPortal() is as follows:
    public static boolean isRunningInPortal()
            Checks whether or not the Web Dynpro application is running the the portal environment or not.
            Returns:
                  true if the Web Dynpro application is running in the portal environment, false otherwise.
    Is there any other API which can check the current session alive or not?
    thanks.

  • Web Dynpro application Session time expired in Portal

    Hi All ,
       I am runnnig my web dynpro application in portal. When i log in for first time its working fine. But if if lof off and try to log in again in portal in same browser and try to access that web dynpro application then i am gettting error as follows in the browser. And even if i click on link the application could not be refreshed/opened.
    500   Internal Server Error
    The Web Dynpro Application 'WhowhoAppl' has expired. Restart the application using the Refresh button or via the following link WhowhoAppl.
      Details:   No details available
    I am also sending detail log trace below. Reply how to send this issue.
    #1.#001083FEF475004D00000024000003E00004458D7D628B13#1202373905933#com.sap.tc.we
    bdynpro.sessionmanagement#sap.com/tcwddispwda#com.sap.tc.webdynpro.sessionmana
    gement.ExceptionHandler.handleExpiration#J2EE_GUEST#0####fb017f90d55811dc93ff001
    083fef475#SAPEngine_Application_Thread[impl:3]_31##0#0#Warning#1#/System/UserInt
    erface#Java###Session unknown: Request with URI= was sent to unknown session.
    Either request with wrong session parameters was sent, or session has expired b
    efore . Current request parameters=. Is termination request=. Request w
    as sent from host with IP=/name=. Hint: see SAP note 842635 for more detai
    ls on session expiration. RID=
    [EXCEPTION]
    #8#/webdynpro/dispatcher/asianpaints.com/Whoswho/WhowhoAppl#Thu Feb 07 07:44
    :39 IST 2008#{}#false#172.18.40.57#172.18.40.57#faf5bfc0d55811dccc92001083fef475
    #com.sap.tc.webdynpro.clientserver.session.SessionExpiredLongJumpException: Sess
    ion has expired due to a concurrent invalidation or logoff request. Hint: This m
    ight occur if multiple logoff requests are sent to Web Dynpro by the portal as i
    t is the case when a logoff is executed and the portal has active embedded and i
    solated Web Dynpro applications. Only the first logoff request is processed, all
    following logoff requests will lead to this message but but can be ignored. Ple
    ase restart the application.
            at com.sap.tc.webdynpro.clientserver.session.ClientSession.doSessionMana
    gementPostProcessing(ClientSession.java:868)
            at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(
    ClientSession.java:302)
            at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing
    (RequestManager.java:149)
            at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doConte
    nt(DispatcherServlet.java:62)
            at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(D
    ispatcherServlet.java:46)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServle
    t(HttpHandlerImpl.java:401)
            at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleReq
    uest(HttpHandlerImpl.java:266)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServle
    t(RequestAnalizer.java:387)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.startServle
    t(RequestAnalizer.java:365)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebCo
    ntainer(RequestAnalizer.java:944)
            at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(Requ
    estAnalizer.java:266)
            at com.sap.engine.services.httpserver.server.Client.handle(Client.java:9
    5)
            at com.sap.engine.services.httpserver.server.Processor.request(Processor
    .java:175)
            at com.sap.engine.core.service630.context.cluster.session.ApplicationSes
    sionMessageListener.process(ApplicationSessionMessageListener.java:33)
            at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRu
    nner.java:41)
            at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:3
    7)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.ja
    va:100)
            at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:1
    70)
    Edited by: kavita chavan on Feb 8, 2008 12:04 PM

    Default expiry time of a webdypro is 3600 sec.Try to increase it in the visual j2ee admin tool.

  • Web Dynpro application does not apply portal theme

    Hi Guys,
    We created a new portal theme and assigned it to our users. The portal desktop gets assigned succesfully and portal applications also show the new theme colors. But all web dynpro pages still show in the blue SAP theme. This issue only occurs on our development portal, when we import the same theme on our test portal is all works fine.
    I also tried to assign the WebDynpro parameters "sap.useWebDynproStyleSheet" and "sap.theme.default" and then the web dynpro applications are indeed forced into the portal theme. However, that is no soluition since all web dynpro applications then use the theme including SAP applications like the NetWeaver Administrator.
    We looked at OSS note '1446099 - Web Dynpro application not displayed
    in customer theme' but the stylesheets are not different.
    sap portal sytlesheet: UR=7.31.0.14.1
    Web Dynpro Style sheet: UR Version=7.31.0.14.0
    The portals in which the theme does work have the same stylesheet versions as mentioned above.
    We also created an OSS message for this so if we solve it that way I will update this message. But if there is anyone on this forum that might have an idea that it would be highly appreciated. If the problem takes too long to solve we will perform a refresh from a portal that works but I hope that we will be able to find the reason of this behavior.
    Kind Regards,
    Nico van der Linden...

    In theory, these versions should work correctly.
    You can compare the patch levels applied on your dev portal and test portal - specifically compare the version/patch for the component EPPSERV*.SCA - and see if you have any differences there.
    Thanks,
    Shanti

  • Using EJBs in Web Dynpro Applications

    I have recently started to develop Web applications using the Web Dynpro framework. Coming from a pure J2EE world, I must admit that Web Dynpro has a few innovative features that I find interesting for user interface development. The use of component & view contexts, for example, is not unlike the ActionForms that one may find in a Struts application, but pushed a bit further. No complaints here.
    What I do have some problems with is the whole CommandBean paradigm that is put forth by SAP (refer to the document <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/using%20ejbs%20in%20web%20dynpro%20applications.pdf">Using EJBs in Web Dynpro Applications</a>).
    I do understand the usefulness of defining a model that will be used to generate and eventually bind to Context data structures. That's fine. What I do object to is the use of a so-called CommandBean to play that role. Again, coming from a J2EE world, I am familiar with the BusinessDelegate pattern - which would typically be used by a client application to invoke business logic on the server side. I would propose that a better, cleaner way of integrating EJBs with the Web Dynpro framework would be to use a BusinessDelegate for invoking business logic, and importing a separate and distinct ModelBean (instead of a CommandBean) to be used for defining and binding to Context data.
    I have built one Web Dynpro application thus far. Instead of using a CommandBean, I created a ModelBean that extends my business object DTO (Data Transfer Object) (which is quite appropriate for that role, given that it implements all the get & set methods that are required for the business data that I need to model). My Web Dynpro application also makes use of an independant BusinessDelegate that is packaged with my EJB DC - this is a standard best practice on J2EE projects. I have been asked by the people working with me to modify this architecture to bring it more in line with the SAP way of doing things. I am open-minded and willing to learn and accept new ways of thinking and doing things. However, I fail to understand the usefulness of merging structure and behaviour by resorting to CommandBeans:
    - <b>It violates the MVC paradigm</b> by having one object (the CommandBean) serve as both model AND controller as far as the Web Dynpro application is concerned. The CommandBean is obviously a model - since it is literally imported as such into the Web Dynpro application. It is ALSO a controller from the Web Dynpro's application perspective, since all calls to the back-end go thru the CommandBean via one or more of its execute_xxx methods. In contrast, the use of a business delegate by the Web Dynpro application clearly separates the model (the CommandBean... or rather, a more suitably named ModelBean) from the controller (BusinessDelegate).
    - <b>Doesn't carry its own weight</b>. In other words, I haven't yet been provided with any valid justification for going thru the extra effort of coding the CommandBean's execute methods. It's been proposed to me that it somehow serves as an abstraction layer between the Web Dynpro application and the business logic. I would argue that it is the BusinessDelegate's role to abstract away the back-end logic from clients. If one does have a BusinessDelegate available, I would argue there's no need to code execute methods in a separate CommandBean. To prove my point, I would simply point out that all of the CommandBean examples that I have seen so far, either in How-To documents, or in production code, all follow the same pattern....
    CommandBean.execute_doSomething() calls BusinessDelegate.doSomething()
    Not a heck of an "abstraction" layer... I would in fact argue that it is worse than useless. If some major change occurs in the business logic that requires changing the doSomething() operation, we expect of course to modify the BusinessDelegate. The Web Dynpro client will also presumably need to be modified - that's to be expected, and unavoidable. But then, we'll also need to go about and change the CommandBean's execute_doSomething() method - again, extra work for no apparent benefit. Adding and removing business methods has the same implication. All this for an layer that simply adds the prefix execute_ in front of all business method calls... Is this "abstraction layer" worth the cost of creating and maintaining it ??
    - <b>Unnecessarily complicates error handling</b>. I have been told that for technical reasons, it is recommended that all exceptions thrown by the CommandBean be of type WDException or WDRuntimException. But what if the client application needs to react differently to different failure scenarios ? When I create a business object, I might wish to provide the user with an error messages if connection is lost to the backend, and with a different error message if an object already exists in the database with the same attributes. In order to do that, I will have to catch the WDException, extract the cause, and continue processing from there... possible, yes, but clearly less standard and more labor intensive than the classical try/catch mechanism.
    To say nothing about the fact that SAP's own API documentation clearly states that applications using Web Dynpro can reference and catch WDExceptions, but THEY MUST NOT THROW OR EXTEND IT !
    - <b>Produces unnecessary DCs</b>. Page 6 of the aforementioned document presents an architectural view of a Web Dynpro project that uses a CommandBean. Why an extra DC for the CommandBean ?? I created my ModelBean class right inside the Web Dynpro project (in the Package view). That, to me, is where this class should reside, because it is created for no other reason that to be used by this particular Web Dynpro application. What is the benefit of placing it in its own independant DC ?
    - <b>Not a typical application of the Command pattern</b>. The well-documented command pattern (Design Patterns - Gang of Four) has been devised mainly to enable encapsulation of request as objects, thereby making it possible to:
    - specify, queue and execute requests at different times
    - decouple execution of a command from its invoker
    - support undo operations
    - support logging changes so that they can be reapplied in case of system crash making it possible to assemble commands into composite commands (macros), thereby structuring a system around high-level operations built on primitive operations.
    None of this applies to the way the SAP CommandBeans are being used. Not that much of an issue to people new to J2EE and/or OO development... but quite confusing for those already familiar with the classic Command pattern.
    At this point, I fail to understand the advantage of merging structure (model) and behaviour (execute methods) through the use of a unique CommandBean object. Am I missing something ?

    Hi Romeo,
    You would be disappointed, this reply ain't anywhere nearby to what you are talking about...
    I wanted to mail you, but you have not mentioned your email in your profile.
    I am really impressed by your flair for writing. It would be far better had you written a blog on this topic. Believe me, it would really be better. There is a much wider audience waiting out there to read your views rather than on the forums. This is what I believe. To top it, you would be rewarded for writing something like this from SDN. On the blogs too, people can comment and all, difference being there you would be rewarded by SDN, here people who reply to you would be rewarded by you. Doesn't make  much a difference.
    Anyways the ball is still in your court
    As far as I am concerned, it has still not been much time since I have started working on Web Dynpro. So can't really comment on the issue...
    Bye
    Ankur

  • Accessing anonymous user in web dynpro application

    Hi All,
      I have created one web dynpro application for internet site (Anonymous user). While trying to retrieve the Iuser through web dynpro application, it is coming <b>null</b> coz user is Anonymous if i am not wrong.
    So I am not able to read the property file from the KM and based on the value coming from the property file i am setting in the drop down.
    Regards,
    Nelly
    Message was edited by: Nelly
            nelly khare

    hi,
    i did the same thing den code is working and values are coming from the property file but i m going to place this application in the Internet.
    There i can't ask user to enter User-Id and PWD.
    I tried to use IWDClient's object and through this i m accessing getSAPUser().
    here is the code that i m using:-
    <b>wdClientUser = WDClientUser.getCurrentUser();
    manager.reportSuccess("wdclientuser-"+wdClientUser);-value is coming for that
    sapUser = wdClientUser.getSAPUser();
    manager.reportSuccess("sapUser -"+sapUser );Null is coming for that
    //create an ep5 user from the retrieved user
    ep5User = WPUMFactory.getUserFactory().getEP5User(sapUser);
    resourseContext = new ResourceContext(ep5User);
    resourseFactory = ResourceFactory.getInstance();
    pathRID =RID.getRID(/documents/IDBDevelopments/Propertyfiles/JobOpportunity/DateofBirth.properties");
    resource =     (IResource) resourseFactory.getResource(pathRID,resourseContext);</b>
    In that point i m getting Null as value.coz it's description says that if user is Anopnymous this function will return Null.
    Coz of that i m not able to create Resource context for reading the property file.
    Regards,
    Deepak

Maybe you are looking for

  • Right shift and c not working, Left shift and c works fine for a capital c

     I have a Lenovo G560 laptop. Had this problem once before and computer tech fixed problem, but moved cities. Worked fine but recently had a windows update. Now when I press the right shift key and c nothing happens. Left shift and c displays a capit

  • AD group Members list

    I can use GET-ADGroupMemeber AD powershell command to list the groups of what I need. However, I need a way that if someone adds a person to a group that it will trigger an email alert and send me an email with the new person added to that group. For

  • IPhone will not charge from wall socket only from Laptop or Computer!

    Just wondering if anyone else has had this problem? My IPhone will charge sometimes and sometime it wont: I mean like sometimes it will charge from the wall socket and sometimes it wont! It will go so far as to turn off because of no battery life! Th

  • Define an event alert on Custom application

    Hi , I need to create an event alert on custom table , i defined all the steps for the custom application but when i create the alert i get the below error

  • "Distributed motion control'

    Hi there, For a future project we are making a first study, and as I'm not really familiar with NI solutions, I hope some of you can share some thoughts. For this project, we will have to control the following hardware:  - 28 cryogenic stepper motors