Application Development 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: 

How to restrict user in QPR2 tcode for specific plants

Former Member
0 Kudos

Hi Folks,

I have a situation where I want that physical sample of one plant can't be changed by another plant users.

In tcode QPR2 when I give Physical Sample of other plant it allows me to make changes and saved as will these changes.

I took the trace but it's not picking auth object related to $WERKS.

ST01 Trace:

S_TCODE RC=0 TCD=QPR2;

Q_TCODE RC=0 TCD=QPR2;

Please help me to get the solution of this.

3 REPLIES 3

Former Member
0 Kudos

Hi Shail,

Couldnt you use the authorization object Q_MATERIAL. This has a plant value but this will be the plant value of the material. It may just solve your purpose as materials also have a plant code associated with them?

Best Wishes,

CP

0 Kudos

Hi,

I have already given $WERKS in role for Q_MATERIAL.

This is my doubt and surprised why it's allowing the change even display for the material of other plant.

Q_MATERIAL QMATAUTH

Q_MATERIAL QMATMODUS J

Q_MATERIAL QMATMODUS K

Q_MATERIAL WERKS $WERKS

0 Kudos

System version is ECC6.0