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 REQ IN CODE

Former Member
0 Likes
523

Hi,

AUTHORITY-CHECK OBJECT 'M_EINF_WRK'

ID 'WERKS' FIELD '0002' -


1

ID 'ACTVT' FIELD '02'. -


2

I HAVE THIS FOLLOWING PIECE OF CODE .

CAN ANYONE TELL WHAT DOES 0002 AND 02 MEAN HERE .

I KNOW ITS PLANT VALUE BUT 0002 HAS SOME VALUE STORED FOR IT

I MEAN TO SAY 0002 IS PLANT ABC OR PLANT XYZ SOMETHING LIKE

O2 IS FOR CHANGE.

SO DOES IT CHECKS WITH SY-UNAME

I WANT SOME THING WHICH CHECKS THE USER HAS AUTHORIZATION TO A PARTICULAR PLANT

SO USER X HAS AUTHORIZATION TO PLANT ABC..

I KNOW WE CAN CREATE AUTHORIZATION BUT I FOUND THIS STANDARD AUTHORIZATION AND I THOUGHT OF MAKING USE OF THIS

THANKS

LET ME KNOW

5 REPLIES 5
Read only

Former Member
0 Likes
490

You are right, 0002 is for Plant value and 02 is for operation you are performing on the plant. I guess 01 is for create, 02 for change and 03 would be for display.

Regards,

Ravi

Note - Please mark all the helpful answers

Read only

0 Likes
490

Hi,

I guess i mis lead you

I WANT SOME THING WHICH CHECKS THE USER HAS AUTHORIZATION TO A PARTICULAR PLANT

SO USER X HAS AUTHORIZATION TO PLANT ABC..

I KNOW WE CAN CREATE AUTHORIZATION BUT I FOUND THIS STANDARD AUTHORIZATION AND I THOUGHT OF MAKING USE OF THIS

let me know if this authorization object works or not.

if it works where does i need to give the user name and the plant value say my plant is ABC then i have to replace 0002 with abc or what.

Thanks

Read only

0 Likes
490

hi,

any thoughts

thanks

Read only

0 Likes
490

Hi,

IAM NOT SURE ABOUT THIS .

WHEN YOU TYPE AUTHORITY-CHECK IN EDITOR AND DO A F1 HELP .

YOU HAVE A AUTHORIZATION CHECK FOR A PLANT BASED ON USER.

I DON'T WHERE THE THE USER NAME WOULD BE PROVIDED AGAINST THE PLANT .

I MEAN WHERE ALL THE USERS ARE MAINTAINED IN ORDER TO HAVE THE ACCESS.

THANKS

SWATHI

Read only

abdul_hakim
Active Contributor
0 Likes
490

hi

0002 is plant value

02 is change operation.

sure it will check the user authorization.

ask the BASIS to deal with the authroization assignment issues.

Cheers,

Abdul Hakim

Mark all useful answers..