Quantcast
Channel: ABAP Development
Viewing all articles
Browse latest Browse all 948

Jeft Join Right Table Selection Limintation Walk Around

$
0
0


Prior to ABAP 7.4 it was not possible to use right table fields in the WHERE clause of LEFT OUTER JOINs. It required to code multiple SQL selections and merge data in ABAP. In case of right table constant selection the limitation can be walk arounded by wrapping selection into view.

For example, for each sales order item it is required to get ship-to from both header and item. Coding right table selection creates a syntax error.

Z_DEMO_1.jpg

Lets wrap right table selection into ZVBPA_WE view.

ZVBPA_WE.jpg

Using ZVBPA_WE view will do the trick.

Z_DEMO_2.jpg

Lets run the program and make sure it selects the data as expected. Yes, it does.

WT_DATA.jpg


Viewing all articles
Browse latest Browse all 948

Trending Articles