cancel
Showing results for 
Search instead for 
Did you mean: 

Register a service and Use $expand in composite OData service

former_member227510
Participant
0 Kudos

Hi,

I went through the below link

I created two services.

My second service is in the current (same) system.

I created the external association and also generated the run-time objects.

However, I was not able to register using service maintenance feature.

1) How to register using service maintenance? Is it mandatory?

      Because when I click on service maintenance, everything Register and Maintain buttons are graded out.

*************************************************************************************************************************************************************************

When I clicked Call Browser button after activating the main service, I was able to see the dependent service details also in the XML (browser).

2) Can I use $expand in the url to expand the second (dependent) service?

     As I am using multiple service and I don't want to use a single service.

     I want to link this way instead of creating multiple entity sets in the same service.

     Is it possible?


Any suggestions would be helpful


Regards,

Gopa

Accepted Solutions (1)

Accepted Solutions (1)

JyotiD
Active Participant
0 Kudos

Regarding you second query, Yes you can use $expand to the dependent service.

Create and External association and give you model reference to include dependent entity.

Regards,

Tarun

former_member227510
Participant
0 Kudos

Hi Tarun,

Thanks for the reply.

I did register in the Gateway system by running the  transaction in /n/iwfnd/maint_service.

For the second query, can you send me some example? or some link?

Because I am trying to figure out how do I consume the second service itself firstly... I have created the external association. What will be the URL?

For example:

This is the Main service Employee

http://nwfront.xyz.net:2020/sap/opu/odata/sap/ZUI5_EMP_SRV/ZempSet(Empid='1')

The dependent service is Salaryhttp://nwfront.xyz.net:2020/sap/opu/odata/sap/ZUI5_SAL_SRV/ZsalSet

Regards,

Gopa

JyotiD
Active Participant
0 Kudos

Hi Gopa,

Check this document if it help.

Including an OData Service - SAP NetWeaver Gateway - SAP Library

Regards,

Tarun

former_member227510
Participant
0 Kudos

Hi Tarun,

Firstly I thought that we have to register in the same transaction segw.

And, I wasn't unable to give the proper URL to access the other service. Silly mistake.

Thanks for the help.

Regards,

Gopa

JyotiD
Active Participant
0 Kudos

Hi Gopa,

Please close the thread if you have your answer, as It help other.

Regards,

Tarun

Answers (1)

Answers (1)

JyotiD
Active Participant
0 Kudos

Hi Gopa,

Did you tried registering it in Gateway system ?

You can go to gateway system (same system in case of embedded development), Run transaction /n/iwfnd/maint_service, Click on add service -> Give you system alias to backend -> and you can register the service by searching from the list.

Regards,

Tarun