cancel
Showing results for 
Search instead for 
Did you mean: 

How do I cause a validation fire upon saving the project.

0 Kudos

I built a Validation with a User Exit on the Network Header (The Validation checks to make sure the network number matches the project number). I can fire the validation manually in the project by selecting the Network Header and via the menu selecting Edit > Validation/Substitution > Validation.

Even though firing the validation ends in an error, the system still allows the project to be saved.

How can I prevent a project from being saved if it fails a validation?

Can this happen regardless of what piece of the project is selected upon save?

Much of the validation documentation is geared toward FI. In that documentation it mentions activating a validation using ob28 which can't be used for PS. Is there a PS validation activation transaction?

Please help.

View Entire Topic
Former Member
0 Kudos

Better debug the validation with help of an Abaper:

Set a breakpoint at point where the rule is called up i.e., at the beginning of function module G_VSR_VALIDATION_CALL.

Execute the action in which you expect the callup of the validation. If the validation is called up, you can check the field contents that have been transferred.

I don't think the auto validation in the project profile influences the validation of network header/activity.

Regards,

Sreenivas