WebDynpro component interface and Models

Hi there,
I'd like to know how I could reuse Models and WebDynpro Interfaces from Projects to Projects.
For instance, I have created models and webdynpro interface in Appication1 in Project1. Now, I have created Project2 and Application2 and would like to re-use the components and models that I created in Application1. Is it supported in NW preview version or any production version?
Any help will be appreciated.
Thank,
Paul

Hi Paul
> Does that mean inheritance is supported as well? If I
> made changes tot he DC of Proj1/App1 after adding it
> tto Proj2/App2, would the changes be imported
> automatically? Do I need to do a re-import model to
> refresh the models?
DC dependencies are resolved automatically. If you build a DC which depends on another it's ensured, that the "used" DC is built before the using one. This includes every dependency to a public part entry, even model dependencies.
> In the NW Sneak Previw, how do I craete a WebDynpro
> Development Component project?
"File->New->Development Component Project". If this shortcut doesn't exist in your IDE version, select "New->Project" and then choose "Development Component" in the list on the left side (I hope it's there ;).
Another hint: Since you don't have the Design time repository (DTR) active in Sneak Preview, you can only work with the "LocalDevelopment" repository. This is not really a problem, since it's possible to transport the DCs to the DTR later.
Regards
Stefan

Similar Messages

  • Call WebDynpro component interface

    Hi experts
    We have developed a WebDynpro component to export context data node to excel file using jakarta poi libs.
    This component have all logic to generate the excel file, and have only one method in component interface controller, this method is called with other WebDynpro components and work fine.
    Now we have new requeriments, we need to generate the same excel file with one scheduled task in KM.
    Anyone know if is possible to call our WebDynpro component interface method from scheduled task?
    Best regards

    Hi Xavier
    If I were you I'd just separate the logic to generate the excel from the WebDynpro component. If the logic is isolated in Java lib it can be invoked from WebDynpro component and also from the KM Scheduler. There is no necessity to invoke the whole WebDynpro component from KM scheduler. Moreover, I think that it's not possible.
    BR, Siarhei

  • NWDS does not open Webdynpro Component's Data Modeler

    Hi,
    All of a sudden my kindly Tool does not open any of the Component's Data Modeler for Mapping attributes. It happened all of a sudden. I cleaned everything and reinstalled from a proper software.
    If any one has a solution kindly let me know or if you can direct me to appropriate forum or Weblog  to recover it will be a great help.
    -Shekhar

    HI Shekher...
    May be following link will helpful to u...U see some basic tutorial in this link that will help u abt webDynPro.....
    https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
    Also I m Giving U some Basic IDEA abt Data-Modular.
    Data Modeler
    Features
    The Data Modeler is a graphical tool and part of the range of Web Dynpro tools. Using the Data Modeler provides you with efficient support for a number of central development tasks.
    ·        Creating a View
    ·        Controller definition
    ·        Declaring a Model to the Component
    ·        Nesting Components
    ·        Creating a Data Link
    ·        Working with View Templates
    ·        Working with the Service Controller
    The perspective area that displays the Data Modeler is the Diagram View. The entities of a Web Dynpro application are created using graphical means. A selection list of Data Modeler actions is available from which you select the relevant entity and insert it in the design area of the Data Modeler.
    Starting the Tool
    Prerequisites
    You have created a Project and a corresponding root Web Dynpro Component.
    Procedure
    To open the Data Modeler, choose Open Data Modeler from the context menu for the component name in the Web Dynpro Explorer. To create an application entity, choose the corresponding Data Modeler action in the tool selection area. Then click on the relevant area in the Data Modeler editor. The corresponding wizard is then started and you can make the required entries.
    For example, to define a custom controller, choose Create Custom Controller and then click on the area Custom Controllers. The definition wizard is started automatically.
    If This is not the case then plz check ur WebDynPro Installation Manual....
    Hope So ur problem will Solve.....:-)
    Regard's
    Dheerendra Shukla

  • View and View controller in WebDynpro component.

    Dear SDN Community,
      I don't see anything like View controller in the webdynpro component. In the WebDynpro component I see only View but no View Controller. Is it that in the webdynpro component view and view controller are physically same and when you swtich to the layout tab its the view and the rest of the tabs for the View controller. May be a stupid question but I would appreciate your clarification here.
    Thanks!
    Surya

    Yes, they are to some degree merged in the IDE. For example, there is only one Java source file for view and view controller. The metadata on the other side are stored in different XML files.
    Armin

  • Embeding WebDynpro component into another webdynpro component

    Hi,
       I am trying to embed one (embeded) WebDynPro Component in to another(inner) . I have followed the tutorials for Server side eventing at
    http://help.sap.com/saphelp_nw04/helpdata/en/24/243ca46e1c334f8a6f8b0792656bc7/content.htm
    Here are the steps I did.
    1) Created two WebDynpro component "embeded" and "inner" components in  a project with two views embededView and innerView respectively.
    2) Defined the component usage in "embeded" component.
    3) created a viewset at "embeded" component. included embededView and innerView in the viewset.
    4) Included required controllers at embededView.
    5) Created two button at embededView and linked it to action and wrote code to create the componet using componentusage instance.
    But unfortunately i could not able se to any component created i.e the view of inner component is not visible at all.
    Could anybody have an answer to the above query.
    Regards
    Alok

    Hi Alok,
    As far i understood the scenario. You want to see/embed one webdynpro view inside another web dynpro view when you click some button in the outer web dynpro view.
    Is it correct ?
    I had the the following approach.
    >created two wen dynpro component in a project.
    >define the view for the inner component.
    > In the Outer component, i added View Container.
    > In the View Container, i embedded Interface View of inner component.
    > write some code to view this in the on action event of the button used to display the inner view.
    If you are working on the same scenario, it is one method to go
    Rgds,
    Vilish

  • Context from Web-Dynpro-Component-Interface & Customer Extention Fields

    Hello all,
    A main component uses a Web-Dynpro-Component-Interface and defines an external maping to it. Web-Dynpro-Component-Interface has a context and a window. At runtime implementaion of Web-Dynpro-Component-Interface is provided.
    All works fine, but how can i create an implementation with view which contains customer extention fields? Unfortunately only fields from context of Web-Dynpro-Component-Interface are visible. I can not even extend the context of Web-Dynpro-Component-Interface via enchancement framework.
    I assume, it is possible with dynamic programming, but why is it not possible in declarative way?
    thanks
    regards
    Paul

    Hello,
    I found this documentation:
    Implementation of Interfaces for Customer Developments
    Using interfaces in a Web Dynpro component benefits customers by giving them a clean basis for their own further developments. When creating a local development, you can implement a used interface in a separate component and add your own aspects to an application delivered by SAP.
    http://help.sap.com/saphelp_nw70/helpdata/en/a9/19eebc1e2943dbb2d443095d017ae9/content.htm.
    I think it must be a correct way to extend SAP programms with customer fields. Please reply, issue is very important.
    Regards
    Paul

  • WI_ID parameter in Application Parameter in webdynpro component using class

    Hi All,
    I want to use WI_ID parameter in Application Parameter in my webdynpro component.
    And i am using class instead of BOR.
    I used this with BOR earlier, but can any one let me know that how to do the same if i am using class.
    Currently i created one parameter as WI_ID in my application parameter, and try to read that in my HANDLEDEFAULT method of windows, i created importing parameter as WI_ID also in HANDLEDEFAULT method.
    but still not getting any value in this parameter.
    How to set this parameter.
    Thanks,
    Amar.

    Hi,
    What is actually your question? Are you trying to get the WD application to work with UWL?
    If this is the case, then just make sure first that the wd application parameter works without the UWL. This should work just like you are doing - importing parameters of the handle default method. Make sure that the parameter works. Test it with launching the WD application with browser <application_url>&wd_id=12345. If you are not getting this working, u should ask it from the WDA forum.
    Then if the question is about how to configure the parameter with UWL, you need to configure it a bit differently with BOR. But maybe you should post your XML here to see what is wrong.
    Regards,
    Karri

  • Web dynpro component interface, can't create a instance

    Hi guru,
    I have created a web dynpro component interface, and implemented it through some components.
    But when I use the interface in another component, there comes a runtime error. The following is the error message.
    Error when Creating Component YHREFM_OBJSEL_INTERFACE. YHREFM_OBJSEL_INTERFACE Is a Component Interface, Therefore, an Instance Cannot Be Created. Name of Component May Not Be Specified. (Using Component: YHREFM_PRINT_FORM_SE, Component Usage: USAGE1)
    Need your help!
    Best Regards,
    Guo Guo Qing

    Hi,
    I have found the cause of the problem. I have mapped some context in the component interface to componenet_A. Then I active component_A, and test it. Then the exception on the top of the Thread is raised.
    What's wrong with it? Could someone give me a solution?
    Thank you very very much.
    Best Regards,
    Guo Guo Qing

  • Difference between component configuration and application configuration in webdynpro

    what is the difference between component configuration and application configuration in webdynpro?

    Hi Rohit,
    With the component configuration, you can control the behavior of each individual component within a Web Dynpro application or the user interface of individual views. For each component, several records of configuration data can be created.
    Using the application configuration, it is now possible to assign the configuration required in the current application to all the components used.
    In short : Component Config belongs to WDP Component and Appl'n Config. belongs to WDP Appl'n.
    Check this document for more information.
    Web Dynpro for ABAP - Component and Application Configuration
    Thanks
    KH

  • Can't add GP Component Interfaces to WebDynpro Callable Object

    Hi, I've just installed the IDE for Composition Environment 7.1 SP3 and I'm following the tutorial to create a WebDynpro Callable Object for a Guided Procedures that I'm working for a demo. It seems that there is something wrong with my NWDS, 'cause once I add the the required DCs dependencies to my project for caf/eu/gp/api and caf/eu/gp/api/wd and mark them for Design time, I cant add the to any new component as implemented component interfaces 'cause the list for adding them is empty. I really don't understand why this is happening, 'cause that's the way the tutorial explains it to work. I've already try to reinstall the NWDS, without success. Has any of you face the same problem?
    Thanks for you answer.

    Hi,
    You should not create Design Time dependency. It is not required.
    Ensure only that you have created a Build Time dependency on the public of "caf/eu/gp/api and caf/eu/gp/api/wd".
    After creation of dependency ensure that you have build WD DC.
    Check if it works now ?
    Regards,
    Ashwani Kr Sharma

  • How to throw and handle event defined in component interface

    Hi folks,
    I have defined a component interface with an event 'open_info'
    I have some sub components which are implementing that component interface. I also get the two events generated (the interface check box is not marked)
    I use those sub components and try to handle the event. but unfortunately the event is not handled.
    I'm not sure if I do everything right. I checked the interface checkbox at the events tab of the controller of the sub component. I then may handle the event in the embedding main component. but it appears to be a different event.
    probably I eed to access the interface controller and throw the event there, but I don't know how.
    I couldn't fnd documentation or wdr* components which deal with that issue. do you have any suggestions?
    regards
    stefan

    Hi Stefan,
    Do the following in the component being used:
    say component name is ZCMP_01
    go to COMPONENTCONTROLLER
    Create an Event with necessary parameters if needed, say Event name is EVNT_01 and has an importing parameter, say PARAM_01 type char10,
    Make sure you have set the interface check box. Now this event is available in the INTERFACECONTROLLER.
    Say ZCMP_01 has a view with a button, on click of the button, call a method in the COMPONENTCONTROLLER.
    Perform all the required operations, At the required point, fire EVNT_01
    wd_this->fire_EVNT_01_evt(
          PARAM_01 = 'sample' ).
    Now the other component that has to use ZCMP_01, say ZCMP_02
    In the component properties od ZCMP_02, add usage for ZCMP_01, say USG_CMP_01
    Go to the view in ZCMP_02 where you wish to handle the event EVNT_01 of ZCMP_01,
    Go to Methods tab, create an event hadler, say EVNT_01_HNDLR ... method type = Event Handler,
    Event = EVNT_01, Controller = INTERFACECONTROLLER, Component Use, USG_CMP_01.
    Now your event handler will have foll parametrs: WDEVENT .. type ref to CL_WD_CUSTOM_EVENT,
    PARAM_01 type CHAR10
    Handle the event as required.
    Regards,
    Reema.

  • Data Modeling as a component of Business Modeling , and it also involves

    Data Modeling as a component of Business Modeling , and it also involves the modeling of
    a.     Data Flow
    b.     Hardware & Software
    c.     Resources
    d.     Process chains

    You are looking at release 2 documentation.  I checked 3.3 and 4.0 EA3 and the tutorial has been corrected  You may want to download the latest version and use that documentation.

  • Using JDO from webdynpro component.

    Hi,
    I am using JDO to access the database.I have created the persistance layer, businees layer following the tutorial "getting started with JDO".  they are using Servlets and html as front end. But i need to use webdynpro as front end.can we acess the methods in the business logic from the webdynpro component?
    If yes, can you please let me know how to access Database form webdynpro components?
    Thanks in Advance,
    Lakshmi.

    Hallo Lakshmi,
    It is technically possible to wrap JDO classes/interfaces using the new JavaBean ModelImport (read WebLog /people/david.beisert/blog/2004/10/26/webdynpro-importing-java-classes-as-model)
    But this is usually not desirable to achieve optimal scalability and performance.
    Why? JDO objects generally require holding locks of the persistent objects they represent. By binding these objects directly in Web Dynpro contexts, locks would remain attained as long as the user interaction is taking place. JDO theoretically could better adress this, but SAP's implementation currently does not allow attaching/detaching JDO objects from the transaction.
    => the best way of doing this, is by using JDO objects only as DataTransport objects. Someone familiar with JDO should know how this design pattern works. This means, that these JDO objects are not themselves persistent, but are only used to hold transient data. These JDO classes can be imported into Web Dynpro (using the JavaBean model) and bound to Web Dynpro contexts. But persisting the data means to hand the DTOs over to a service layer, which then copies the data, acquires the locks, and saves and commits the data to the persistent storage.
    No tutorials for such a scenario exist at the moment.
    Greetings, Bertram

  • Consuming webservice in a webdynpro component

    Hi Experts,
    I have a third party free webservice as WSDL link.My requirement is to make use of that webservice in my webdynpro component.
    Can any body give me a step by step approach to consume that webservice in my webdynpro Component.
    If possible, Provide me some good material for consuming webservice in a webdynpro component.
    Awaiting for a useful reply.
    Thanks,
    Ramanan.p

    hi,
    Few indroductory sessions
    /people/thomas.jung/blog/2007/12/17/consuming-services-with-abap -Consuming webservices with webdynpro.
    It is possible to create webservice in ABAP as well as in Webdynpro.
    ABAP Webservice:
    http://wiki.open-esb.java.net/Wiki.jsp?page=BAPIWEBSERVICE
    http://www.sappro.com/downloads/SAPXI.pdf
    Webdynpro Webservice:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/244e7923-0a01-0010-5887-fe0b0c6dbb8d
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/30f1b585-0a01-0010-3d96-ad0ea291c4f9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/db785a70-0701-0010-858c-eee0ec4fe1b3
    In Web Dynpro ABAP there is nothing special about calling a web service. Unlike WD Java, there are not dedicated model object types in WD ABAP. WD ABAP simply has the ability to interact with other ABAP development object types. You can call function modules, ABAP classes, even modules in old dynpro apps.
    So calling the webservice from ABAP therefore is just the process of generating the ABAP Proxy Class. This is the same process regardless of if you want to use this proxy class from WDA or any other type of ABAP development object. You can then call the proxy class from WDA just like any other type of ABAP class. There is a service wizard option in later support package levels that includes an option for ABAP Proxy classes - although it doesn't generate the proxy class it just generates the code and context for the call to an already existing proxy class. The service wizards in WD ABAP are not required however. They are just shortcut code generators and often can't even generate a complete context for a complex web service proxy - so expect to do some manual adjustment after running the wizard.
    Edited by: Mahalakshmi kothuri on Jun 1, 2008 4:17 PM

  • Error in generated code :Component Interface

    Hi All,
    I have my webdynpro component active works fine in Dev Server.
    When we move it to qualtiy we got a strange error " Error in Generated Code, Type Z*IWCI is unknown.
    Its related to the Component interface which gets generated automatically while any WDA is created but in our system it isnt getting generated?
    Looking for your valuable comments on ths
    Regards
    Bhanu

    Hi Bhanu,
    Goto se09 check for that request ICF service is generated or not? I think you first created in $TMP and assigned package.
    If ICF service is not available, just copy it to new comp, it will create new ICF service. I dont know this is the solution,
    just a guess.
    Cheers,
    Kris.

Maybe you are looking for

  • Down payment Carried Forward: Negative budget

    Hello, I have a downpayment of 8 euros in year X related to a PO. I carry forwarded the PO to year X+1. In year X+1 I have received an invoice of 7 and so the system automatically: Invoice 7 Invoice -8 Downpayment -8 Payment 8 That means that the bud

  • Where can i download 10.9.2 clean installer ?

    Please, where do i download 10.9.2 installer to make a clean install (not an upgrade), and not install 10.9.3 ? Thanks for answering; MN

  • Alternative UPN & Forest Trust.

    Hi all! I have 3 domain: main.local child.main.local (child of main.local) test.local (new forest) In "main.local", under Active Directory Site & Services, i defined 2 UPN: "mycorp.com" & "child.mycorp.com" I used "mycorp.com" as alternative upn for

  • How do you run a program on another computer over the network

    Would like to send and receive my aol email and run other applications from my other G4 that I don't have installed in my main computer through the in house network- without opening the application on the main computer. In other words, running the 2n

  • All Windows I Install return boot\bcd error

    Have a l645d-s4040. Im Lost now.. I've read many threads similar to my problem, or exactly like my problem. Ive tried it all, and done at least 12 Different installs. heres the info: Bought it brand new, was unaware of making the restoration disks un