SM30 - Selection Screen
I have a table with SM30.
and my Select query for SD report takes what are the user ID;s maintained in the Ztable.
But If the enduser is a Internal User and not maintained in the Ztable he should be able to see all the sales orders.
If the entered user is maintained in the table he should be able to see only the customers which are assigned to it.
if he tries to see the customer which is not asigned to him
it should throw a error message.
Please let me know what I should do.
My Select querry is
INTO CORRESPONDING FIELDS OF
WHERE kunnr IN s_kunnr
AND syuname = sy-uname.