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

Local persistence Vs Remote persistence in SAP

Hi All,

Why we remote persistence instead of local persistence in CAF?

Can you please provide any scenario on the same?

In my application, am going to use non sap database.Which one i can go for?

Help me out.

Thanks in advance

Vani

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 Sep 11, 2007 at 09:42 AM

    Hi,

    In a CAF project, we have two options for accessing data. If we want to access data from an external system, we need to use Remote Persistency. That means in your CAF project data will be accessed through CAF external service that may be SAP service or non SAP service.

    We have three kinds of service in a CAF project - 1. Entity Service, 2. Application Service. 3.External Service. Entity service is related to CAF Local DB. So if you want to store data in CAF local DB then you will a use Entity service. Even if you want to Use External service and Entity service at the same time that also you can do here. That is called mixed persistency. At thet situation external service will be mapped with entity service. So here remote database and CAF data base both will be involved. If you want to use only remote persistency then you can only access remote service from application service dirrectly, not required to involve entity service that means you are not involving CAF local DB.

    If you have more query please let me know.

    Thanks

    Chandan

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Vani,

      The thumb rule is if the business object you are using in the composite applications exists in backend then you should use remote persistance. Otherwise if it's not existing in the backend and a new business object created for your application then use local persistance.

      Thanks,

      Dipankar

  • author's profile photo Former Member
    Former Member
    Posted on Sep 11, 2007 at 05:39 PM

    Hi Vani

    We can you either of the persistency i.e. Remote or Local persistency in CAF.

    I will like to add something when to use which peristency:

    Local Persistency : are the Entity Services that you made in the CAF Layer to save your data. The life cycle methods, CRUD are automatically generated for these, we dont hace to care about them. This type of persistency is used when you want to apply some business logic on this set of data and want to store in your local database i.e the WAS/CAF database.

    Best Practice says that you only store that data in WAS DB that you are getting as an output from your calculation. If that database is already in the bacend than no need to save it, just save the reference of the backend to fetch the data later.

    If the amount of data is large that it is advisable to store the data on some other Database rather than the local database, than comes the picture of Remote Persistency, it may be R3, Oracle, MySQl etc.

    Remote Persistency: When you want to store the data to other database different form your local database i.e the WAS/CAF database.

    Hope now it is clear.

    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.