cancel
Showing results for 
Search instead for 
Did you mean: 

How to Copy Web Dynpro Component?

Former Member
0 Kudos

I have a web dynpro component uses an Adaptive RFC model. I want to copy the component to a seperate project. How can I copy it and maintain the Adaptive RFC model references? Is there a way to copy the model over to the new project?

In case your wondering, I need to have to have copies of two seperate componenets because I need the web dynpro application to access two seperate SAP clients.

Any help is appreciated and will be awarded with points.

Regards,

Tom

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Thomas

1. Create a development component (DC) with models and expose them as public part.

2. Use this DC in other DC's. This way you create models at 1 place and can use it in any component you like

Regards

NagaKishore V

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Thomas,

I too had an identical problem. Unfortunately, the webdynpros cannot be copied like cut n paste. The packages where they are stored/compiled have to be freshly defined. Implies u end up building a similar application from scratch.

Solution 1:Other method is to define another set of JCO destinations & override the original destinations by passing destination names through the URL

Eg

http://<Host-Name>:<Port-Nummer>/webdynpro/dispatcher/local/Example_Project/Example?sap-wd-arfc-useS... WD_MODELDATA_DEST:SyB&sap-wd-arfc-useSys=WD_RFC_METADATA_DEST:SyBstarts

Check doc

http://help.sap.com/saphelp_nw04/helpdata/en/f4/651741f163f023e10000000a155106/content.htm

Solution 2: You could copy the entire application to another J2EE installation.

Regards

meesum

Former Member
0 Kudos

Hi,

One way is import the RFC in another project and then copy the component to that project.

I think you have to do model mapping in the views.

You can't copy a model into another project.

Regards, Anilkumar