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 :
Username | Assigned to BP | FM Supervisor BP |
---|---|---|
SAM | 001 | 3000 |
ABC | 002 | 002 |
XYZ | 007 | n/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 No | Assigned to BP | FM Supervisor BP |
---|---|---|
1 | 001 | 3000 |
2 | 3000 | 3000 |
3 | 007 | 3000 |
4 | 3000 | 5000 |
5 | 3000 | 5000 |
Please let me know if I didnt expalin my requirement clearly ..
Waiting for your valuable inputs .
Many thanks