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

DO_VALIDATE_INPUT input method not get called on EH_ONSAVE

Former Member
0 Kudos
368

Hello Experts

Post upgrade to EHP4, DO_VALIDATE_INPUT method is not getting called after click on EH_ONSAVE.

Can make a explicit can to DO_VALIDATE_INPUT in EH_SAVE ?

Regards

Sachin Sharma

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Tanaya

Thank you for response and suggestion, still we could not found exact reason why DO_VALIDATE_INPUT method not getting called every time on round trip.

This might be SAP has done performance optimization in EHP4 for UI performance.

We did work around by placing code in EH_ONSAVE itself, as this was small check and worked for us.

Thank You

Sachin

tanaya_das
Explorer
0 Kudos

Hello Sachin,

Ideally, this method should get triggered from the standard. Now, why it is not getting triggered, I can not answer without debugging your system.

Technically, you can call DO_VALIDATE_INPUT in EH_SAVE as long as

  • both the methods either are in the same class or
  • the class of EH_SAVE is the subclass of DO_VALIDATE_INPUT's class.

DO_VALIDATE_INPUT is a protected method, so it is available only in the current class and the corresponding sub-classes.

Now, if you have to call DO_VALIDATE_INPUT inside EH_SAVE, then please get the existing instance of the global messages inside EH_SAVE and pass it to DO_VALIDATE_INPUT. Otherwise, the existing messages in the global container might get overwritten.

Thanks and Regards,

Tanaya