Retrieving the relation between table structured returned by an RFC
I am building an application that uses SAP JCO to query an RFC and return the result in relational format where all RFC fields map to columns of a virtual table.
The problem comes when the RFC returns more than one table structures. For example, ORDER_HEADER_DETAILS and LINE_ITEM_DETAILS.
Now, my program does not have any idea about how to join rows of order header and line items. Is there any way by which I can find out such relations between the table structures that are returned for an RFC execution?