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

changes in SD order

Former Member
0 Likes
396

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
342

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.

2 REPLIES 2
Read only

Former Member
0 Likes
343

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.

Read only

Former Member
0 Likes
342

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