Hello Folks,
I have an RFC which has one input parameter and exporting a nested structure,
The nested structure has four fields and two structures in it as the fifth and the sixth field.
Example :
---------------------------------------------
field1
field2
field3
field4
structure1 (which has 4 fields in it)
structure2 (which has five fields in it)
--------------------------------------------------------------------
The nested structure in the export parameter will have multiple values.
The importing parameter is not a part of the output structure.
For example, I will input the systemid in importing parameter and I will get the Personnel number against it and multiple entries related to that Pernr in the output structure.
So far the RFC is working fine.
Now i want to create an OData service to utilize this RFC.
In the service query, i'll simply pass the sys ID as input and should get the output structure.
No association or navigation would be required.
My questions are:
1) What is the best way to implement this without any complexity ( I found most of the examples with association and quite complex) ?
2) I have tried by importing from RFC and mapping individual data fields.
But how do I map the input parameter (sysid) as I dont have the same (sysid) in output structure ?