Skip to Content
author's profile photo
Former Member

How to use a component from a different project?

hi,

I've developed a WD project/application/component and want to use this component in another project, too.

All the tutorials i've found are just describing, how to use different components in <b>one</b> project. Is it possible to reference to the other project?

In the project properties there's something like "Web Dynpro references" but how to use them?

kr, achim

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

4 Answers

  • Jan 19, 2005 at 11:56 AM

    Hi Achim,

    In case you want to use the component of one Webdynpro project in another i suggest yuo go through the documentation of Component Model in SAP help.

    That lists down these concepts in greater detail.

    Regards

    Sidharth

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Sidharth Deshpande

      Hi Sidharth,

      Sorry for the trouble, but the link you sent me opens up the Architecture Manual of the SAP J2EE Engine.

      Could you please send a more specific link?

      Thanks and Regards.

  • author's profile photo
    Former Member
    Jan 28, 2005 at 01:19 PM

    Hi Achim,

    As far as I know, you have to create two development components out of the two WD projects. You have to declare the first web dynpro component as public part of the first WD project and specify a usage dependency from the second DC to the first one. Then only you will find the name of the first component in other component list from the Second WD project.

    Shubhadip

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Jan 31, 2005 at 02:47 PM

    Hi

    Create two WebDynPro Components in the first Component Go to DC Meta Data and then add a public part by right Clicking and select the Web DynPro Component.

    In the Second Component go to DCMetaData->DC Definition and add a used Component by selecting the Public Part u have created in the first Component.

    Then in the Used WebDynpro Components add the component u have created in the USED DCs.

    then u can use the component.

    But for all these to work ur interface controller in the first component must expose all the methods u want to use

    coz u interact with the other component thr Interface Controller only and u can see ur public part exposes only interface controller

    Bye

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Mar 01, 2005 at 12:27 PM

    Hi,

    If you have a scenario to use component1 from X project to Same component in Y project , you need to develop Dovelopment Componnet project(DC) either it can be webdynpro component/EJB DC then you have to define public parts so that other project can acceess them

    if you need specific example i can provide you

    RK

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Venkat,

      I am trying to implement a simple scenario using Webdynpro DC (using Webdynpro component from other DC) could you please provide me any example code if you have?

      thanks a lot

      Siva