cancel
Showing results for 
Search instead for 
Did you mean: 

How to use a component from a different project?

achim_hauck2
Active Contributor
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi

I was successfully able to create a DC that uses the components of other DCs by following the steps given in the link :

http://help.sap.com/saphelp_nw04/helpdata/en/ae/1ae58540ea454db1aa14fd635bc10d/frameset.htm

Now the problem is that the used DCs should already be deployed before we can deploy the DC that is using these DCs.

Is there any way by which all the used DCs get deployed automatically when we deploy the DC that uses these DCs?

Thanks and Regards,

Sangeeta Bhandari

Message was edited by: Bertram Ganz

corrected help link

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi there,

Is there any way to do this without using DCs as not using JDI is a constraint I have. i.e. is there anyway one can get visibility to another component in another WD project/JAR file, in which case the same might be possible without DCs?

Thanks,

Ashish

Former Member
0 Kudos

Hi Ashish,

I dont think there is any chance to use other WD project w/o using the component concept.

Regards,

Shubhadip

sid-desh
Advisor
Advisor
0 Kudos

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

Former Member
0 Kudos

Hi Sidharth,

could yo provide a link please.

Thanks and Regards,

Ashish.

sid-desh
Advisor
Advisor
0 Kudos

Hi Ashish,

You get the required at the following link.

http://help.sap.com/saphelp_nw04/helpdata/en/6a/69f45201356248830f1e70fdd7178e/frameset.htm

Regards

Sidharth

Former Member
0 Kudos

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.