cancel
Showing results for 
Search instead for 
Did you mean: 

B1UP Validation Configuration - Prevent update of approved sales orders for certain users

chrismilnetw
Discoverer
0 Kudos

SAP B1 10.0 and have the Approval Process enabled and 'Enable Updating the Document Generated/Updated by Approval Process' ticked as there are certain fields that we still need to be able to change after Sales Order approval.

I'm trying to add in validation configuration so that only certain users are able to update an approved Sales Order and here's what I have:

Trigger details:

Formtype = 139

Item = 1

FormMode = Update

Event = Item Pressed

BeforeAction = True

Condition:

IF(SELECT Status FROM OWDD where DocEntry = $[$8.0.0]) = 'Y'

BEGIN

SELECT 'STOP' FOR BROWSE

END

...and then execute a universal function where condition result is STOP that displays a message saying the user in not permitted to update an approved sales order.

I have a list of users that are excluded from the validation, those who should still be able to update.

I saved this and asked a user not in the exclusion list to test, she was still able to update an approved order.

Any ideas?

Accepted Solutions (0)

Answers (0)