Fetching data from multiple backends
I have an app in which I am providing the user with the choice of selecting multiple backends after logging in. Based on the dynamic selection I want to fetch data from those particular backends.
The methodology used is the common way wherein, I create a function module in the backends, a service in the gateway server and then creating an app in the eclipse environment to accomodate the needs.
Initially i thought of making different entity sets importing the RFC/BOR interface from their equivalent backends. Then I could make a service call in my app and within an array of IF loops I would read the data from the entity sets, based on the selection from the user initially. But obviously this is an extremely naive way of going about that requirement, because in a situation where there are a huge number of backends the computations that I would need to provide for the IF loops will be humongous.
Is there any way that I can go about with this requirement. System aliases is a concept that I am curious about, but I really don't know if it applies.
Any suggestion would be appreciated.
Thanks in advance,