cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to create a business object with a mixed persistence?

Former Member
0 Kudos

I have a problem with caf and mixed persistence. I am developing with NetWeaver CE 7.1 SP 3 and NWDS 7.1.

I want to create a business Object (PERSON) which has some fields/attributes like "lastname", "surname", "age", "birthday",.... and "ADDRESS". The PERSON object should be saved on the NetWeaver Application Server (local persistnce).

The Object ADDRESS is a seperate object which should be contain in PERSON´s. The ADDRESS object gets his data from a SAP R3 Backend accessible by a webservice.

Now my question, is it possible to create a field in PERSON that directly refer to a ADDRESS or must I create a seperate relation between these objects. I would prefer something like (0..) to (1..) realtion between PERSON and ADDRESS.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Dirk,

Have you tried the procedure. Do you have any problems with it. Because we followed the same procedure to get the solution

Regards,

Srinivasan Subbiah

Former Member
0 Kudos

Hi Srinivasan,

I follow your instruction and it seems to run. Thanks!

Former Member
0 Kudos

Ciao

I've the whole thread. I had the same problem and I asked in the forum.

Could you really build the association between person and adress. Because sb. from SAP hat told me:"we don't support local-to-remote associations. While we don't support it, we allow you to model these association via CAF modeler, and then we fail at runtime - my point was that we should disallow making of these association via the CAF modeler as long as we don't support them. Local-remote association is perfectly valid as a business case, but is not considered very common and strategic. Anyway, post like yours can make us reconsider that."

Thanks if you give me feedback

Kind Ragards!

Ping

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Dirk,

You created a Address business object in your app. For that set persistancy to be Remote.

Then go to datasource and create mapping with the imported webservice.

This Address BO can have relations as you require with Person.

Hope this solves your problem.

Regards,

Srinivasan Subbiah