‎2006 Jun 23 1:52 PM
Hi,
I am facing following isue :
Users with role X mustn't be able to change the values in sales order type Y except for the field "FPLT-FAKSP".
Can this be done with standard authorisation management ?
If not, can i use 'USEREXIT_SAVE_DOCUMENT_PREPARE' in include 'MV45AFZZ' and would should the code be like ? Can SAP detect changes ?
with regards
Erik
‎2006 Jun 23 2:25 PM
Hi Erik,
Standard authorization will not be possible as this is at order type level.
The user exit you mention can be used. Old data of the order will be in the "y<name of the table>" while new data will be in the "x<name of the table>", e.g. xvbap[] will hold the order positions with their changes while yvbap[] holds the original data.
Regards,
John.
‎2006 Jun 23 2:25 PM
Hi Erik,
Standard authorization will not be possible as this is at order type level.
The user exit you mention can be used. Old data of the order will be in the "y<name of the table>" while new data will be in the "x<name of the table>", e.g. xvbap[] will hold the order positions with their changes while yvbap[] holds the original data.
Regards,
John.
‎2006 Jun 23 2:46 PM
Hi
You can create a custom authorizations and add them to the user profile.
Then insert the code you need to check those authorizations in a user-exit.
I believe it's better use USEREXIT_MOVE_FIELD_TO_VBAK or USEREXIT_MOVE_FIELD_TO_VBAP, because if you use USEREXIT_SAVE_DOCUMENT_PREPARE you can send an error message only at the end of modification.
Max