Skip to Content

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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.