Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2067

SAP HANA SQL based view: report filter condition

$
0
0

Dear Gurus,
Greetings..!!

 

We are using HANA studio 2.3.5 version.

 

I have a requirement to filter the report with some conditions.

 

I have BLART(document type) in my view.
There is another table(TAB1) with some fields and BLART is also part of this table.

 

My view is based on PO level and each PO will have multiple FI documents with different document types.

 

ex: data in my VIEW1

PO                FI doc          BLART

1500123001   8600023098  ZQ

1500123001   8600023098  ZT

1500123001   8600023098  ZS

1500123999   8500897209  ZA...


TAB1 data:

SNO  .BLART

1        ZT

2       ZM


Now, my requirement to filter my view data based on below.



if we have any one FI document with TAB1-BLART = VIEW1-BLART (match BLART for atleast 1 FI document), then i need ALL the FI documents from that PO to be displayed in the result set.

 

So my final result set should be,

 

PO                FI doc          BLART

1500123001   8600023098  ZQ

1500123001   8600023098  ZT

1500123001   8600023098  ZS

 

 

Any expert advice to achieve this.

 

Thanks is advance.


Viewing all articles
Browse latest Browse all 2067

Trending Articles



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