I am using B1 9.0 for SAP HANA PL4. My case as follow : I have 2 whse and 2 user ID, User1 only can read all data from the query that have whse code WHSE-A and user 2 only for WHSE-B. How to make a query for ORDR table with a condition : If Login ID = User1 then the where condition is for Whse code = WHSE-A and If Login ID User2 then Whse code = WHSE-B.
So I have to capture current SAP Login ID from System then put it on the criteria ? any one can help ?
Thanks