cancel
Showing results for 
Search instead for 
Did you mean: 

Validation not triggering - ABAP RAP Unmanaged

12-09-2023 12:54 AM
AbhishekSharma Active Contributor
7437 views 10 comments Go to solution
0 Likes
Subscribe

Hi I am trying to put simple validation in Unmanaged RAP. Below is my validation method looks like

I am seeing message in yellow color... what this message means?

After some reading got to know we need to add determine action and added that method (commented in above screen shot).

Still Validation is not triggered...

In unmanaged scenario validation needs to be done in check_before_save method. So is that means Validations can not be used in Unmanaged scenario ?

I have already used Validation in Managed scenario and it works fine...

Any direction to documentation regarding this issue will help...

Thanks-

Abhishek

0 Likes
View Entire Topic
DiegoValdivia
Active Participant

Hi Abhishek,

When using validations in Unmanged Scenario + Draft. The validations must be attached to any of the Draft Actions (SAP names them "Actions", but I see them as events).

In my case, I created the following validation to validate Mandatory Fields when Draft is going to be persisted:

Regards.

AbhishekSharma
Active Contributor
0 Likes

Hi diegovaldivia

Thanks much for your response...

I understood this and I tried this as well but I don't know how to call this "Prepare" method (in your example)

Do I need to implement determination as well ? How this validation will get Triggered ?

This validation will not Trigger until there is a Draft entry in system or Validation will only be Triggered when opening Draft entry to make any changes ?

Thanks-

Abhishek