Hi Tim,
You have to do the following:
Agentry:
- Create a new Object ReadingTemplate with its properties
- Add this new object as a collection property named ReadingTemplate to the MainObject
- Create a new Step, for instance call it GetReadingTemplateSteplet.
- In the connection properties, I'm a bit lost because I never used oData, but if it has to be called from Java as usual, just select the JavaConnection. Then in the java class enter the steplet class name you will use. For instance com.sap.yourappname.GetReadingTemplateSteplet
- Create a new Fetch
- In general settings link it to :>Main Object>"ReadingTemplate" property
- Mark "Run this fetch during transmit?" flag
- Add a server exchange step that calls the step created in the previous bullet.
Java?:
- Now, assuming that for oData everything is implemented in the same way than with JCO calls, then you should do it the way SAP does in their standard products:
- Create a steplet class that gets the user and instantiates/executed the relevant StepHandler
- Create a Step Handler class, that executes the relevant class to call the oData service and adds the results to the collection.
- Create the class to call the oData service.
This last Java part is a bit complicated to understand if you didn't do it before, the best is to check Java source of a SAP standard product if you have access.