Skip to Content
author's profile photo Former Member
Former Member

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

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 23, 2008 at 04:31 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Apr 23, 2008 at 01:22 PM

    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

    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.