cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Netweaver Gateway Project/Entity/Service with Offline Data

Former Member
0 Kudos

Hello,

I have some doubdts about Odata Services when we need to use Offline Data in the device.

It´s possible to have an individual project for each Service (several metadatas) that we have to create to get que offline app working?  or we have to use an individual Project for N services with a unique metadata for serveral services.

Which is the best practice for generate a new version of an Odata for future maintenance? For example if we have to extend a field in a RFC is prefered to have a new version of the service? or create a new project to have totally independent all changes.

Is recomended to have only one project with several services/metadatas for each application development? (for example a Sales app where we have customers, materials, prices, stock, open items, etc.).

For now we have each service with an individual project but we are not sure if this can be like that.

Service1:

Projecto GW: ZPRO5

URI Request: /sap/opu/odata/SAP/ZPRO5_SRV/?$format=xml

EntitySet: CodigosSet

URL de consumo con parametros de entrada: http://<ServerIP>:<Port>/sap/opu/odata/SAP/ZPRO5_SRV/CodigosSet/?$filter=UsuarioIn%20eq%27VESCOBAR%2...

Servicio 2:

Proyecto GW: ZPRO_FERIADOS

URI Request: /sap/opu/odata/SAP/ZPRO_FERIADOS_SRV/?$format=xml

EntitySet: FeriadoSet

URL de consumo con parametros de entrada: http://<ServerIP>:<Port>/sap/opu/odata/SAP/ZPRO_FERIADOS_SRV/FeriadoSet/?$filter=YearF%20eq%272015%27%20and%20Ident%20eq%27C...

Servicio 3:

Proyecto GW: ZGWFI_R_BANCOS

URI Request: /sap/opu/odata/SAP/ZGWFI_R_BANCOS_SRV/?$format=xml

EntitySet: BancosSet

URL de consumo con parametros de entrada: http://<ServerIP>:<Port>/sap/opu/odata/SAP/ZGWFI_R_BANCOS_SRV/bancosSet/?$format=json

Any help to clarify this concepts is welcome.Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

EkanshCapgemini
Active Contributor
0 Kudos

Hi Max,

A single gateway project can have multiple entity/entitysets each of these entities have 5 operations (CRUDQ). This also provides you a capability to define the relations between two entities which can be used for Deep Insert and $Expand calls.

It is not at all recommended to create separate service/project for any new entity.

How this is structured is:

1 project will have 1 service and 1 metadata for that service. This service can contain multiple entitysets. The metadata document belong to the service and not to the entityset. So metadata is same for the whole service. This metadata will have all the entitysets that you created for that service.

Hope it clarifies.

Regards,

Ekansh

EkanshCapgemini
Active Contributor
0 Kudos

Hi,

Did you able to solve the issue? If yes, please close the thread: http://scn.sap.com/community/support/blog/2013/04/03/how-to-close-a-discussion-and-why

Former Member
0 Kudos

You can have single project with multiple entities which has navigation & association properties implemented.