Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

help with M_EINF_WRK

Former Member
0 Likes
1,167

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

5 REPLIES 5
Read only

Former Member
0 Likes
1,117

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

Read only

0 Likes
1,117

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

Read only

0 Likes
1,117

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.

Read only

0 Likes
1,117

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

Read only

Former Member
0 Likes
1,117

For adding these plants in your authorization ask basis guys to add it using T-code PFCG.