cancel
Showing results for 
Search instead for 
Did you mean: 

Public parts for a DC Containg a model in NWDS 7.3

prasad
Participant
0 Kudos

HI

In one of the document

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f07c3625-c971-2910-3a9c-ce131487f...

a  DC which contains a model (dc2) is being used in another DC (dc1). the document suggest to add a Public part in modelcomponent

The Public Part of a Model Component must expose the following entities

1)Model entity itself

2)Java Package comprising the model class files

– Add Entity to Public Part: as Class

3)Java Folder comprising the metamodel files of the model classes

– Advanced Entity Properties    Rules for adding entities to public part    Includes: *.wdmodelclass

iam using nwds 7.3 how can i add the

Java Package comprising the model class files

Java Folder comprising the metamodel files of the model classes

to the public parts of the DC containing model.

Iam much confused to create a public part in nwds 7.3.

Please do the needful

Regards

Prasad

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Prasad,

If you want to use DC2 in DC1.Then

1) Create public part for DC2 ( right click on DC2 component and choose add to public part. Give a    name and select ok. Then rebuils the project)

2) Add dependency in DC1 ( In component properties of DC1, choose "add " and select DC2)

3) In DC1--> Right click on used component and choose add used component. Browse and select the DC2's component.

Now you will be able to use all your methods in DC2 in DC1.

Thanks!

Swarnaprakash

prasad
Participant
0 Kudos

Hi Swarnaprakash

Thanks for the reply.

My question is if dc2 contains a model and the same dc2 to be used by dc1 . what are the public parts to defined by dc2 ,which are to be used by dc1.

i want how to add metadata and model classes and java packages and folders to public part in nwds 7.3,so that the same can be used by dc1 .

Regards

Prasad

former_member218672
Active Contributor
0 Kudos

methods for executing model must be there in component controller of dc2. Just map those methods to the interface controller of dc2. And, then by following above mentioned steps(creating public part, etc) you can call those methods from dc1 component controller or view controller.

Also, for passing value from dc1 to dc2, you can do context mapping at interface controller level between these 2 dc's.

Hope it helps.

Regards,

Sen

Qualiture
Active Contributor
0 Kudos

Hi,

The document you're refering to is for NetWeaver '04s (7.0)

Have a look at http://help.sap.com/saphelp_nw73/helpdata/en/49/2abbfe9c1a1903e10000000a42189c/content.htm this explains the process. In your case, add DC2 as a used DC to DC1

prasad
Participant
0 Kudos

Hi Robin,

Thanks for the reply

please suggest the process for inclusion of public parts entities in a dc containing rfc model .so that the same dc can be used by other dc .

The dcs are  in nwds 7.3

Regards

Prasad

Qualiture
Active Contributor
0 Kudos

Hi Prasad,

Just open the Component Properties view of the DC you want to add a dependency to, click the Dependencies tab, and under Required DC's click the Add-button to add a reference to your dependent DC.

Hope this helps!

R.