Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Netweaver Gateway: Getting multiple output tables simultaneously

Former Member
0 Likes
622

Hi all,

There is an RFC in CRM System which has certain import parameters and returns two output tables. For this RFC  Data Model has been created in Gateway Development System. So now when trying to consume this REST Service, I need to specify the output table name in the URL of the REST Service in REST Client. Therefore, in order to get both the output tables the SAP database gets hit twice.

Is there any way by which both the output tables can be retrieved at once.

Thanks!

Amrisha

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
592

Hi Amrisha,

This could be achieved using the READ Operation.

You can perform the READ operation for the entity set or the collection with the key input values. This would provide you with the URLs for the specific tables. Using these URLs you can retrieve the individual table data.

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/f6/152975ec4d411aa192a0de339ffd91/content.htm

Thanks,

Jiten

Hi all,

There is an RFC in CRM System which has certain import parameters and returns two output tables. For this RFC  Data Model has been created in Gateway Development System. So now when trying to consume this REST Service, I need to specify the output table name in the URL of the REST Service in REST Client. Therefore, in order to get both the output tables the SAP database gets hit twice.

Is there any way by which both the output tables can be retrieved at once.

Thanks!

Amrisha

3 REPLIES 3
Read only

Former Member
0 Likes
593

Hi Amrisha,

This could be achieved using the READ Operation.

You can perform the READ operation for the entity set or the collection with the key input values. This would provide you with the URLs for the specific tables. Using these URLs you can retrieve the individual table data.

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/f6/152975ec4d411aa192a0de339ffd91/content.htm

Thanks,

Jiten

Read only

0 Likes
592

Hi Amrisha,

Data of multiple output tables could be retrieved in one RFC call using the option $expand and by implementing methods GET_EXPANDED_ENTITY and GET_EXPANDED_ENTITYSET.

Please refer the following thread for more info.

https://scn.sap.com/thread/3367787

Thanks,

Jiten

Read only

Former Member
0 Likes
592

Thanks Jiten.

Using using GET_EXPANDED_ENTITY and GET_EXPANDED_ENTITYSET methods I am able to get multiple output tables in one

go.