cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP RAP is updating even with validation message in EDIT mode (Mass)

0 Kudos
885

Hi experts, I hope all is going well!


Happy new year for all!

I've created SAP RAP with validation and determinations, and everything is working well, however, when I create app in BAS from template and set true for "Multi Edit" and try to update many items, it's working properly and when I try to return error from my validations, it's still updating database but when I do only for one from object page, it's working properly.



I tried to find a note but nothing.

Debugging mode I've found this interface IF_RAP_FAILURE_REPORTER~ADD_FAILED that set the error, but I noticed it only works in strict mode

I tried some stuffs such as, change strict mode from behaviour definition ( entity and projection ) and nothing, I'm trying to find one point to pass true instead false.

OBS:

- local service,
- S/4H 2022 FPS FPS01

Any clue??

Cheers,

Luiz Eduardo

View Entire Topic
0 Kudos

Hi experts,

I sorted that,

I've traced the service and noticed in header there was a parameter called "Prefere" and value "handling=strict", actually I don't know why when we edit multiple items it doesn't set it in header parameter, well, I just set it before save and worked well.

Parameter:
"Prefer": "handling=strict"