cancel
Showing results for 
Search instead for 
Did you mean: 

Add user exit to PS validation

Former Member
0 Kudos

Hi Guys,

I would like to add a user exit to a PS validation so that whenever a user tries to execute CJ02 for a project that starts with '1' , it should give an error message.

I tried that using the check e.g. prerequisite PROJ-PSPID = '1*' check SYST-UNAME <> 'JOHN' with a message if prerequisite is met and check is NOT fulfilled, but it doesn't work. Where do you associate the created user exit with a step?

Regards,

Darlington

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Validations only run at save (and that is if they are set to run automatically).  So the user will have access to the transaction and be able to make changes but it would not let them save.  Is that what you want?

Authorizations sound like a better way to handle this requirement.  Adding to what Ross said, you could also use Access Control Lists.

rossrobertson
Discoverer
0 Kudos

Hi Darlington,

              Judging by what you are doing, you could control this with SAP Security. Or if you have EHP3 you could activate the business function to control projects using the ACL to prevent people from changing them.

Failing that, if you want to prevent users from CJ02 using a validation in GGB0, you should be able to perform these checks without the need for coding any additional exits. Note the timing of the validation checks may not perform as you expect however.

Regards

Ross

former_member209919
Active Contributor
0 Kudos

Hi Darlington,

OPSA transaction.

Regards