Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

ODATA service based on RFC (Have multiple Table Parameters as output)

$
0
0

Hi

 

I need to develop the ODATA service based on RFC. It has 5 table parameters. In that  first  Table parameter in that one of the attributes take the userid as input and return as output as all the 5 table parameters including the first table parameter.

 

For example: (Following Table parameters in RFC)

 

TableParam1 has  has fields userId, name, Dept

TableParam2 has  has fields A, B, C

TableParam3 has  has fields D, E, F

TableParam4 has  has fields X, Y, Z

TableParam5 has  has fields K, L, M

 

I have created the ODATA service using RFC/BOR option. I have created five entity's using the above five table params and created the 5 EntitySets corresponding each Entity.

 

I done the service  implementation for  first  EntitySet(TablePraram1) I have done the map to Data source for  GetentityRead() for passing the user id (for one of the attribute). when i generated, code got generated. When i run the service, i am getting the output as only first table parameter alone. I need to get as output for the rest of the five entitysets's also.

 

Do i need to  do he Association between EntitySets?  Also userId attribute exist in only first  table parameters not in all the table parameters.  To do the association, do i need have userId in all the Table prams as attribute?

 

Please confirm how to get all the entitySets data as output by passing only userId for the  first table parameter in ODATA service?

 

is it possible to get all the entitySets with out writing any custom code in ODATA service end?

 

 

 

Thanks


Viewing all articles
Browse latest Browse all 2823

Trending Articles