D.PavanKumar
23rd June 2014, 14:46
Hi,
Could anyone help me regarding How to restrict a user through Script. Is there any way to restrict the users using script.
My Client requirement is when 'Business Partner status=Active' (For Normal User) he will not able to modify the table data.
Thanks
Pawan.
bhushanchanda
23rd June 2014, 15:19
Hi,
This requirement can be easily accomplished if you go by table data authorization. If you still want to do it using script, create a UEDLL for table tccom100 and check in before.before.save section.
Note :- I am assuming you are talking about standard Business Partners session.
D.PavanKumar
26th June 2014, 09:15
Hi,
This requirement can be easily accomplished if you go by table data authorization. If you still want to do it using script, create a UEDLL for table tccom100 and check in before.before.save section.
Note :- I am assuming you are talking about standard Business Partners session.
Yes.
I tried it using table data Authorization. But it is not working.
When BP=Active the user will not change the data. means the session will open in read mode (For normal User) and it will apply to all the child tables also.This is the actual requirement given by the client.
Thanks
Pawan
bhushanchanda
26th June 2014, 11:55
Hi,
Check the attached image for how to do it. The snap shows how to make the session read only if status is active. Similarly, do it for Sold to BP table as well and wherever you want.
If any table doesn't have the status field, then you will need to write a UEDLL to restrict the user from modifying the field.