2007 Jan 11 3:28 PM
Hi,
I want to know whether M_EINF_WRK IS TO CHECK WHETHER THE USER HAS A CCESS TO A PARTICULAR PLANT.
I found this from f1 help
say if i don't have the access to a particular plant, how can i add it.
i know it can be done by using roles but i don't know to what role this auth object is attached to o
lets we have four plants say p1,p2,p3,p4
i need access to p1 and p2 only and iam using this auth object in the code and where should i go inorder to get acess for p1 and p2.
Thanks
kajol
Hi,
I want to know whether M_EINF_WRK IS TO CHECK WHETHER THE USER HAS A CCESS TO A PARTICULAR PLANT.
I found this from f1 help
say if i don't have the access to a particular plant, how can i add it.
i know it can be done by using roles but i don't know to what role this auth object is attached to o
lets we have four plants say p1,p2,p3,p4
i need access to p1 and p2 only and iam using this auth object in the code and where should i go inorder to get acess for p1 and p2.
Thanks
kajol
2007 Jan 11 3:31 PM
Hi,
Please try this.
AUTHORITY-CHECK OBJECT 'M_EINF_WRK'
ID 'WERKS' FIELD '0002'
ID 'ACTVT' FIELD '02'.You may need to work with security/basis for roles enhancement.
Regards,
Ferry Lianto
2007 Jan 11 4:30 PM
Hi all,
AUTHORITY-CHECK OBJECT 'M_EINF_WRK'
ID 'WERKS' FIELD '0002'
ID 'ACTVT' FIELD '02'.
i will this code but does werks field 0002 refer too.
i know actvt 01 is for creation,02 for change etc,
but for werks .do that mean each plant is assigned a number or what .
we have plant in my company as abc , def (for ex) but we don't have plants like 0001 0002.
let me know what iam thing is right .they will assign abc to 0001 and def to 0002 like this
if i want to check to which plant iam authorised to how should i do that
thanks
2007 Jan 11 4:37 PM
Run function module SUSR_USER_AUTH_FOR_OBJ_GET
It is very simple: GIve your user name and the authorization object.
In return you will get values assinged to the authorization object for your id.
M_EINF_WRK is for Plant in Purchasing Info Record.
2007 Jan 11 4:54 PM
Hi shweta,
i got the output for my user id and sel_object m_einf_wrk
OBJCT AUTH FIELD VON
M_EINF_WRK &_SAP_ALL ACTVT *
M_EINF_WRK &_SAP_ALL WERKS *
M_EINF_WRK M_EINF_WRKAZ ACTVT 03
M_EINF_WRK M_EINF_WRKAZ WERKS *
can you tell me wat m_eunf_wrkaz refers to its under the column auth
what does the first two columns refer too
Thanks
waiting for your reply
2007 Jan 11 4:39 PM
For adding these plants in your authorization ask basis guys to add it using T-code PFCG.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |