Restrict Transaction AS02 Based on Location.

Question: Hi All,

Configuration:
IDES 4.6 B.
SQL 2000.
Win 2000 Server.

The Initial screen of the Transaction displays 3 Selection Parameter:
1. Asset
2. Sub Number
3. Company Code

On Pressing the Enter after giving the respective values, 2nd Tab has one field called: Location.

Now when I add this transaction to one of the User Role, profile is generated with the following combinations of the fields:
1. Activity, Asset Class and Company Code.
2. Company Code and Business Area.
3. Company Code and Plant.

In addition to putting restrictions on the above mentioned field values, I want to restrict this tranasaction for some values for the "Location" also.

For this, I've tried to create custome object(ZOBJECT) under custom class(ZCLASS) and added field "Location"(STORT) to this custome object created, using the Transaction SU21.

Then I associate this Object with the Transaction AS02.
Now when I regenerate the profile, I couldn't see the field "Location" being displaed in PFCG so that I can restrict it for some specific values.

How do we solve this issue.

However, I've tried out inserting manually Standard Object of SAP called " M_MSEG_LGO" which gives the following fields:
1. Activity
2. Movement Type.
3. """ Storage Location """
4. Plant

Now when I tried to restrict "Storage Location" field by giving it some specific values, it doesn't seems to work when user runs transaction AS02.

someone has got any idea on this?

Thanks,
Saurabh.

Answer:
Question/comment:

Did you associate the tcode and custom object in USOBT_C with a value of "Check Maintain" done through SU24? This is what would pull the value into the role.

Comment - if the code behind the transaction is not invoking an authority check on this custom object, then it would not matter that you even have it in the role.

Regards.
Copyright ?2007 - 2008 www.jt77.com