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

Filtering report with OR conditon ?

$
0
0

Dear experts ,

Would you please help me in dealing with the below scenario .

There are two BP(business partner ) fields in my report 1) Assigned to BP      2) FM supervisor BP .

Currently the report gets filtered by  a variable V1 on Assingned to BP and this V1 is populated using customer exit as follows .

If username(sy-user) =SAM then V1=001 (Passing current users Assinged to BP to V1)  Refer below MD table

If username(sy-user) =ABC then V1=002 etc ....

Eg MD table :

UsernameAssigned to BPFM Supervisor BP
SAM0013000
ABC002002
XYZ007n/a

Note : User name = current login username of the user .

 

 

Now the user wants to filter the report wrt to FM supervisor BP as well but with OR condition i.e if user SAM for example is executing the report, he should be able to see the tickets number 1,2 and 3(refer below table) . How can I achieve this ?

If I create another variable V2 on FM Supervisor BP and populate corresponding FM Supervisor BP number to it in that case the user SAM will see only ticket number 1 and not 2,3 as V1 holds value 001 and V2 3000 which behaves as AND condition not OR.

 

Ticket NoAssigned to BPFM Supervisor BP
10013000
230003000
30073000
430005000
530005000

 

Please let me know if I didnt expalin my requirement clearly ..

 

Waiting for your valuable inputs .

 

Many thanks


Viewing all articles
Browse latest Browse all 8556

Trending Articles



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