This website is not affiliated with, sponsored by, or approved by SAP AG.

Sales doc - Display only when userstatus is raised

SAP Security

Moderators: Snowy, thx4allthefish, jurjen

Sales doc - Display only when userstatus is raised

Postby theguit » Tue Jul 24, 2012 3:55 am

Hi,

I'm trying to prevent end users from modifying a sales document when a user status has been raised

the goal I'm trying to reach is , when a user enters the document in VA02 (for example) he gets a warning message "document with status C not modifyable" (or something equivalent) and the document would be opened in display only mode.

- I created and assigned a status profile
- The status profile contains 3 status A, B and C
- created and assigned the authorisation key ZZZZ to status C
- maintained the transaction control for Status C

I also created two roles one with B_USERSTAT containing ZZZZ and the other not
Obviously, the object B_USERSTAT only controls who is allowed to raise the status

The transaction control does not seem to work (I found no line self explaining) even if I thought it was the right solution.

=> What would be your suggestion?

I would really want to avoid hardcoding a check in a userexit or maintain endless Z tables allowing users to do so or so (i'm pretty sure you know why ;o) )
theguit
 
Posts: 2
Joined: Tue Jul 24, 2012 3:23 am

Re: Sales doc - Display only when userstatus is raised

Postby Sharpshooter » Tue Jul 24, 2012 7:00 am

You will have to code a userexit, but forget the Z tables - simply check the authorisation object mentioned against the current user status and deny access if the check fails.
Good luck!
Sharpshooter
 
Posts: 1171
Joined: Wed Mar 17, 2010 12:01 pm
Location: In the dark

Re: Sales doc - Display only when userstatus is raised

Postby theguit » Tue Jul 24, 2012 9:01 am

thanks for the info
theguit
 
Posts: 2
Joined: Tue Jul 24, 2012 3:23 am


Return to SAP Security

Who is online

Users browsing this forum: No registered users and 5 guests





This website is not affiliated with, sponsored by, or approved by SAP AG.