Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

SAP Gateway how can I get data with a left outer join

$
0
0

We are using sap gateway and odata to be able to get data from SAP to a third party system.

 

In the gateway we have defined a view and a table type for that view.  We have defined an FM to fill the table type from that view.

 

Then we have defined entity sets to expose this data through odata.

 

But the problem is that we want a left outer join, and in SAP Database views the joins are always inner joins.

 

For example:

 

Get all maintenance items ( MPOS ) along with the functional location and the functional location label.

 

MPOS joins to ILOA and ILOA has a TPLNR field ( "Functional Location")

TPLNR may or may not be set.

 

We'd like to get all the maintenance items and include information about the functional location if the functional location exists.

 

I'm wondering how do people do this sort of thing? 

 

Views only support inner joins, and I don't think there is a simple way to select data from a maintenance view into a structure or table type.


Viewing all articles
Browse latest Browse all 2823

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>