cancel
Showing results for 
Search instead for 
Did you mean: 

Passing internal tables as import and export varaibles

Varamanoj
Participant
0 Kudos

Hi All,

I have a Function module which has 4 import parameters and one return table parameter.. when I tried to create odata service for this RFC, I see that 2 individual entity types are being created.. where as I dont want them to appear as 2 entities.. it should exactly emulate the RFC as taking 4 import and 1 return table type, so how can I achieve this.

Best Regards

Manoj

Accepted Solutions (1)

Accepted Solutions (1)

AshwinDutt
Active Contributor
0 Kudos

Hello Manoj,

1.     Manually add all the input and out put fields inside a single entity. Define Key(s) which are present as part of your output table only.

2.     While performing service implementation ( in your case it would be Query/EntitySet ) on selection of ' Map to data Source ' , map input & output fields accordingly OR use propose mapping option.

3.     Generate run time artifacts.

4.     Pass inputs as part of filters.

Sample URI would be ->

...?$filter=Param1 eq 'XXX' and Param2 eq 'XXX' and Param3 eq 'XXX' and Param4 eq 'XXX'

Regards,

Ashwin

Varamanoj
Participant
0 Kudos

Thanks Ashiwn.. let me try..

Answers (0)