Error using tabs in Web Dynpro application

Hi all,
I am working on a web Dynpro application where I want to use "tabs" to display different vendor details, basically I need two tabs one for header data, one for address data. What I did is I created a group and there created the element for the user to enter the vendor number and also created a button and binded it with the BAPI, now I created a tab using tabstrip and then inserting the tab and adding the element to the tab (in my case i m using the table type), once I finish this and try to do the syntax chek i am getting this error:  "ACC: Element "TAB" does not have a header"
Can you please help me with this?
Thanks,
Rajat

Looks like i was missing some step... I deleted everything and then re created and this time it works.

Similar Messages

  • 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

  • I am getting a error while executing the Web Dynpro Application Page.

    Hi All,
    I am getting a Error while executing a web dynpro application ::: 
    : Navigation in Phase WDDOMODIFYVIEW Cannot Be Triggered. Component: Z_WEP_PERSONAL_DATA, View: OVERVIEW, Window: Z_XXP_PERSONAL_DATA
    I have checked this error description in ST22  :
    What happened?
        The exception 'CX_WDR_RT_EXCEPTION' was raised, but it was not caught anywhere
         along
        the call hierarchy.
        Since exceptions represent error situations and this error was not
        adequately responded to, the running ABAP program
         'CL_WDR_CLIENT_APPLICATION=====CP' has to be
        terminated.
    Error analysis
        An exception occurred which is explained in detail below.
        The exception, which is assigned to class 'CX_WDR_RT_EXCEPTION', was not caught
         and
        therefore caused a runtime error.
        The reason for the exception is:
        Navigation in Phase WDDOMODIFYVIEW Cannot Be Triggered. Component:
        Z_XXP_PERSONAL_DATA, View: OVERVIEW, Window: Z_XXP_PERSONAL_DATA
    Can u plz help me regarding this error.
    Thanks,
    Deepika

    >Navigation in Phase WDDOMODIFYVIEW Cannot Be Triggered
    Looks to me like you are trying to fire a navigation plug within WDDOMODIFYVIEW. According to the rules of the WD Phase Model this is not allowed.

  • 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

  • Error while accesing ABAP web dynpro application

    Hi Experts,
    We are getting warning symbol on web page status bar, when we are accessing the ABAP web dynpro application
    only first page of application is getting loaded and when we click on page it is showing error on status bar and we can perform any thing.
    once we double click on warning icon,
    below details are coming:
    Line: 1491
    Char: 3
    Error: Object Expected
    Code: 0
    URL: url of the ABAP web dynpro application
    This scenario is occuring for many ABAP WD application for a client.
    Please guide how to solve this issue?
    Thanks!
    Piyush

    Hi
    First try a very simple application with nothing in it just one text saying Hello World
    Run it and see what happens.
    Also check if your url uses FQDN name. something like https:
    company.name.co:50000\.......
    If you do not use the FQDN it will always show a script error on the bottom and some functions will not work e.g
    dropdowns.
    regards
    Yuval.

  • Error message display in web dynpro application?

    Hi All,
    In my web dynpro application I am displaying error messages but the focus does not go to the field where error occured and also if I click on the error message it does not lead to the place of error.
    And also when I navigate to another view the error message does not go.
    Below is my code:
    *    report message
          DATA err1_text TYPE syst-msgv1.
          err1_text = wd_assist->if_wd_component_assistance~get_text( key = '002' ).
          CALL METHOD lo_message_manager->report_t100_message
            EXPORTING
              msgid      = 'ZAA'
              msgno      = '005'
              msgty      = 'E'
              p1         = err1_text
            RECEIVING
              message_id = lo_text.
    Please suggest me the way to do it.
    Thanks & Regards
    Archana

    Hi,
    I got your point.. in the BIND_TABLE( set_intiail_elemts = abap_true) change this to ABAP_FALSE.
    Because of this you are gettng the intiial values. Eventhough your table has no BALNK/space records.
    bind a single element
      node->bind_table(
        new_items             =  lt_year_list
        set_initial_elements = abap_true ).
    change as
    bind a single element
      node->bind_table(
        new_items             =  lt_year_list
        set_initial_elements = abap_false ).
    You can use this code - I have tjhe dropdwon for projects event I'm doing the same.
    navigate from <CONTEXT> to <PROJECT> via lead selection
      lo_nd_project = wd_context->get_child_node( 'PROJECT' ).
    ***Gets the selected project id from drop down
      if lo_nd_project is not initial.
        CALL METHOD lo_nd_project->GET_LEAD_SELECTION
          RECEIVING
            ELEMENT = lo_el_project.
    get all declared attributes
        if lo_el_project is not initial.
          lo_el_project->get_static_attributes(
            IMPORTING
              static_attributes = ls_project ).
    change your code to 
    lo_nd_year_list = wd_context->get_child_node( name = wd_this->wdctx_year_list ).
    ***Gets the selected project id from drop down
      if lo_nd_year_list is not initial.
        CALL METHOD lo_nd_year_list->GET_LEAD_SELECTION
          RECEIVING
            ELEMENT =  lo_el_year_list .
      IF lo_el_year_list IS NOT INITIAL.
        get single attribute
        lo_el_year_list->get_attribute(
          EXPORTING
            name =  `YEAR`
          IMPORTING
            value = lv_year ).
    Regards,
    Lekha.

  • Error while deploying the Web Dynpro application

    HI All,
    I have developed a Web dynpro application. Now when I am deploying the application I am getting an error.
    Description
    Jan 8, 2008 2:14:12 PM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
    [002]Deployment aborted
    Deployment exception : Cannot determine sdm host (is empty). Please configure your engine/sdm correctly !
    Can any one please help me regarding this.
    Regards
    Neha

    Hi Neha,
    It seems that there is problem with your SDM server. It seems that during J2EE engine configuration SDM server is not configured. Actually this configuration is done by Basis Team.
    By the way try out your Server setting:
    Go To:: Windows -> Preferences -> SAP J2EE Engine
    [Mention the required details over there]
    And Check whether you are getting Active SDM Server under J2EE Engine.
    Regards,
    Nittin Garg

  • HTTP 500 internal server error while starting abap web dynpro application

    Hi there,
    i have some problems concerning my web dynpro abap configurations in the system. When i start an application the browser appears and displays the http 500 internal server error.  The required icf nodes are activated, as far as i know. the following properties are set:
    hostname: aet
    port: 8000
    The generated url for the web dynpro application looks as follows:
    http://aet.ls3001:8000/sap/bc/webdynpro/sap/zwdr_test?sap-language=EN
    Maybe anybody of you out there has an idea for that situation.
    Thanks for your afford and kind regards,
    Albert

    Hi Ulli,
    the error message says:
    UNKNOWN HOST
    Description: Unable to locate the server named "aet.ls3001" --- the server does not have a DNS entry. Perhaps there is a misspelling in the server name, or the server no longer exists. Double-check the name and try again.
    So the problem is the hostname.
    When i replace the hostname with the ip of the server, the following error occures:
    COULD NOT CONNECT
    Description: Could not connect to the server "10.18.187.9".
    But with SAPLogon, its possible to connect on the server by filling in the ip adress.
    Kind regards,
    Albert

  • How to display the error message during the web dynpro application runtime

    hi,
        I'm a java developer,During i 'deploy and run ' a web dynpro application on server-1,if the application have some runtime errors. there are displayed many infomation about the runtime error,such as exception track,etc.
        But when i do the same on server-2,there just show something like:
                500   Internal Server Error
                                    SAP NetWeaver Application Server 7.00/Java AS 7.00
                Failed to process request. Please contact your system administrator.
    but the server-1 will stop the j2ee engine. 
    how can do i make server-2 show detail error message as server-1. when i debug web dynpro application need these infomation.
    Appreciate your inputs...
    (Note:server-1 and server-2 have same software version)
    Edited by: BingLin Zhong on Feb 18, 2008 2:13 AM

    The Sap-Notes 962319:
    1. Check in the Visual Administrator, "Licensing Adapter" -> "General" -> "SystemType" !
    If it is set to "DEVELOPMENT_MODE", verbose error messages are shown.
    If it is undefined, proceed with the next step.
    If it is set to something else, only exception IDs are shown. In this case the only chance is to search for this exception ID in the default traces.
    2. If the system type is undefined, then in the Config Tool "Configurations" -> "webdynpro" -> "sap.com" -> "tcwddispwda" -> "Propertysheet default" -> "DevelopmentMode" is evaluated. If it is "true", verbose error messages are shown.
    3. If verbose error messages are required but still the short version is shown, you probably face an error message that is not raised by Web Dynpro but by other components of the NetWeaver. In the Visual Administrator set "Properties" -> "HTTP Provider" -> "DetailedErrorResponse" to "true".
    4. In addition to the error page shown in the browser or client, important messages - including error messages and stack traces - are written to the log and trace files, e.g. to the default traces usr\sap\<SID>\<instance>\j2ee\cluster\server<number>\log\defaulttrace.trc.<number>.
    a) In some cases, when an exception ID is included in the error message, the detailed error message can easily be retrieved in the log file.
    b) When no exception ID is given, you have to search for the detailed error message in the log specifying time stamp and/or user ID.
    Always consider restarting the system after making changes on the settings.
    It is not recommended to switch the "SystemType" to an inappropriate value just for viewing verbose error messages. The system type potentially affects framework, applications and licensing in an perhaps unintended way.
    In the past there was no distinction between different system types regarding error messages. For security reasons this distiction has been introduced. It is not intended to show stack traces in non-development systems in the future. SAP does not provide workarounds or patches to enable such a behaviour again.

  • How to customize error mess, when an Web Dynpro application Deployed

    Hi Frndz...
    When we r deploying any web dynpro application , if there was any error in that WDP application its showing an error page the list of errors with HOST name  n patch level n OS details n so many n with the line number of that error in the code.. Normally.
    But as my requirement i need to restrict the HOST,OS ,PATCH details in this list to avoid the security issues.
    If anybody have any idea plz share with  me...
    Regards
    Rajesh

    Hi..
    Thank u boss, ur reply was very helpfull to sort out our requirment.
    Regrads
    Rajesh

  • Using an other web dynpro application into an actual application

    Hello,
    I have a web dynpro application into a developer component previously developed. I want to import it an another web dynpro application.
    The goal is to click a button, display the window of the other application and then once it is finished, go back to the first application (with some context parameters)
    Is it possible ?
    Thanks
    Quentin

    Hi,
    Solved same issue in this thread Re: Data transfer between two different Web Dynpro components
    PradeeP

  • Illegal dependency error on deploying GP Web Dynpro application

    Hello All,
    We have created a GP application (FamilyStatusChange) on NWDS 7.0.11. We are using EP. 7.0 SP11.
    On deploying and running this application via NWDS
    java.lang.NoClassDefFoundError: com/sap/caf/eu/gp/co/api/EngineException
    When I try to checkin and activate the activity corresponding to FamilyStatusChange, the activation fails and I get the following error:
    Development Component Build (2007-06-29 03:27:08)
      Component name: FamilyStatusChange
      Component vendor: xyz.com
      SC compartment: xyz.com_SC_XYZ_PORTAL_SP11_1
      Configuration: JD2_XYZSP11_D
      Location: JD2_XYZSP11_D
      Source code location: http://dads:51900/dtr/ws/XYZSP11/adobe.com_SC_XYZ_PORTAL_SP11/dev/active/DCs/xyz.com/FamilyStatusChange/_comp/
      DC root folder: /usr/sap/JD2/JC19/j2ee/CBS/85/.B/13602/DCs/xyz.com/FamilyStatusChange/_comp/
      DC type: Web Dynpro
      Host: dads
    DC Model check:
       All used DCs are available locally
       validating dependency to build plugin "sap.com/tc/bi/bp/webDynpro"
       validating dependency to  public part "default" of DC "sap.com/tc/cmi"
       validating dependency to  public part "default" of DC "sap.com/tc/ddic/ddicruntime"
       validating dependency to  public part "default" of DC "sap.com/tc/ddic/metamodel/content"
       validating dependency to  public part "default" of DC "sap.com/tc/wd/webdynpro"
       validating dependency to  public part "default" of DC "sap.com/tc/logging"
       validating dependency to  public part "default" of DC "sap.com/tc/wdp/metamodel/content"
       validating dependency to  public part "default" of DC "sap.com/com.sap.aii.proxy.framework"
       validating dependency to  public part "default" of DC "sap.com/com.sap.aii.util.misc"
       validating dependency to  public part "default" of DC "sap.com/com.sap.exception"
       validating dependency to  public part "default" of DC "sap.com/com.sap.mw.jco"
       validating dependency to  public part "default" of DC "sap.com/caf/eu/gp/api"
       validating dependency to  public part "default" of DC "sap.com/caf/eu/gp/api/wd"
       ERROR: Illegal dependency: Access list does not allow use of sap.com/caf/eu/gp/api for xyz.com/FamilyStatusChange(xyz.com_SC_XYZ_PORTAL_SP11_1) with respect to public part default.
       Build failed with errors.
    Also when I try to add used DCs (public part "default" of DC "sap.com/caf/eu/gp/api" and public part "default" of DC "sap.com/caf/eu/gp/api/wd") to this application, I get the illegal dependency error.
    Please let me know if there is any settings / access that need to be in place so that this application runs fine. Also let me know the Jar files that need to be added to make this app work.
    Regards,
    Vibha

    Hi Romain,
    I am still working on the issue. But here are my findings. I am stuck up with Basis team to deploy the missing Jar files.
    I had created a GP webdynpro application in EP7 SP6. When we moved to SP11, I copied the same application from SP6 track to SP11 track. Then I got the error upon deployment. Now the catch here is the way GP related Interfaces and classes are used in SP7 and above.
    The changes can be summarized as follows:
    1. You need to reference to DC caf/eu/gp/api but instead of using the Public Part
    “default” you need to use Public Part “external”
    2. All published Interfaces now start with the prefix “IGP”
    3. All published Classes now start with the prefix “GP”
    Please go through the document "Implementing a Web Dynpro Callable Object which Implements the GP Interface" on SDN.
    For illegal dependency issue, if the DC has already been added then you get this error. If required, remove the used DC and add it again.
    Also ensure that the DCs that you are adding as Used DC in your application are deployed on the J2EE engine.If not deploy them through SDM.
    My development configuration contains the following DCs:
    - caf/eu/gp/api(PP - External)
    - caf/eu/gp/api/wd(PP - GPWebDynproCO)
    - com.sap.exception
    - com.sap.security.api.sda
    - tc/logging
    Hope this solves your issue.
    Regards,
    Vibha Singhal
    Message was edited by:
            Armin Reichert

  • 500 internal server error while deploying a Web Dynpro application

    Hi
    I got the 500 internal server error while deploying the application to server.
    I tried to find the log file at usr --> SAP --> SID --> JC XX --> j2EE --> Cluster --> Server 0 --> log, but no log was there.
    There were structure changes in the RFC and also code change in my Web
    Dynpro code.
    I´m working on EP 7.
    NWDS version is 7.0.1
    Please help me as the production move is pending because of this.
    Regards
    Vineet Vikram

    Hi
    Restarting the server does not help in my case.
    I tried it several times.
    I'm getting following error message in NWA>
    Originated from: com.sapmarkets.bam.logcontroller.InvalidLogQuerySessionException: Invalid or expired log query session "1"
    at com.sapmarkets.bam.logcontroller.jmx.LogControllerFacade.closeLogQuerySession(LogControllerFacade.java:356)
    at sun.reflect.NativeMethodAccessorImpl.invoke0
    Can you pl help on this.
    Regards
    Vineet Vikram

  • Error when debugging the Web DynPro application-Flight Example

    Hi all,
    I am trying to execute the Flight Application example.
    In the Search View I have entered City from and to and  getting only one record in the table control as output in Result View irrespective of any cities.
    I checked with SAPR/3 but it is showing more records.
    For finding the error I tried to DEBUG the application.starting the DEBUG immediately I am getting the error REMOTE VM NOT CONNECTED.I am  trying to solve this error to Starting the DEBUG.
    If any tips to solve this error in DEBUG mode and what is the reson the other records are not showing in the output Result view.
    Thanks in Advance.
    Regards,
    Ram

    Hi,
    This is clearly a version imcompatibility issue ,
    check below link :
    /message/9597673#9597673 [original link is broken]
    Please do some search on sdn before posting the questions. as the answer is already available.
    Regards
    Deepak

  • Tutorial "Using EJBs in Web Dynpro Applications" ClassCastException

    Hi,
    I went through the tutorial "Using EJBS in WebDynpro Applications" step-by-step.
    If I run the application I always get the following error message:
    java.lang.ClassCastException:com.sap.engine.interfaces.cross.ObjectReferenceImpl
    if I try to make a lookup to the SessionBean.
    I use the following code:
    InitialContext ctx = new InitialContext();
    facadeHome = (FacadeHome) ctx.lookup("FacadeBean"); <- the error is related to this line
    facade = facadeHome.create();
    I have nothing more to provide to be more specifiv.
    What did I forget to specify or to define?
    Thanks for any help.

    Hi holger,
    try to do it like this
    InitialContext ctx = new InitialContext();
    Object obj = ctx.lookup("FacadeBean");//where FacadeBean                  is your jndi name
    facadeHome = (FacadeHome)PortableRemoteObject.narrow                                                 (obj,FacadeHome.class);
    facade = facadeHome.create();
    hope this helps,
    regards,
    rahul.

Maybe you are looking for