cancel
Showing results for 
Search instead for 
Did you mean: 

ESS Infotype change validation

Former Member
0 Kudos

Hi all.

I´m trying to insert an specific validation for the personal data iviews (Bank Information, Family Members...) to achieve an specific task... But I don´t know where should I do that... I cannot find the BAdI, nor... Nowhere to place it.

Can you help me??

(The validation should run when you click on the "Edit" button)

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Carlos,

Use the BADI HRPAD00INFTYUI for validations on fields...

Shikhil

Answers (1)

Answers (1)

former_member181995
Active Contributor
0 Kudos

try to use Exit EXIT_SAPLEHSS_001 for ESS validation.

For more help you may look at below WIKI:

[Validations for ESS Leave request |https://www.sdn.sap.com/irj/sdn/wiki?path=/display/erphcm/validations%2bfor%2bess%2bleave%2brequest]

Former Member
0 Kudos

Hmmm... Good point, but when we insert there an error message, we get a critical devastator error with all the java stack and... You know.

Is it possible to get one of this polite message that are shown with a line and a little red icon by the iView??

former_member181995
Active Contributor
0 Kudos

Carlos,

I'm not very much sure why java stack error occurs!

but you may put message by below syntex:

MESSAGE '<Your message text>' TYPE 'E'.

Former Member
0 Kudos

We get the java "end-of-the-world" stack...

This step of the iView has a Message Area, so... Why it´s not used??

Former Member
0 Kudos

If you want to put the validation using java ...on the hit of the review button on the Detail screen...goto the VcComponent Controller in the webdynpro application -> Implementation tab then to the isConsistent() method and use the IWDMessageManager Class to add any validation you want...

Shikhil

Former Member
0 Kudos

We´re doing it right now from ABAP, at the point you told us and with the MESSAGE sentence...

If it´s possible, we would try to avoid modifying the component...

suresh_datti
Active Contributor
0 Kudos

To avoid the java dump use the message handler instead of the message statement in your validation ie..

fill the symsg structure & invoke the add_message method..

call method message_handler->add_message
                exporting
                  message = symsg
                  cause   = message_handler->unknown.
              message_list->add_messages( message_handler ).

~Suresh

Former Member
0 Kudos

Thank you all.

We have almost get the target... The only problem is we cannot set the "polite" message to be shown after the "edit" button is push; we only get the terrible-java-message. We can do it on the next steps... But the next step is late.

Any (Last) idea??

(We are ussing the HRPAD00INFTYUI)

Former Member
0 Kudos

Hi Shikhil,

Could you please provide some sample codes on how to create custom validation in isConsistent() method?

Thank you very much.

Wan Loong Seow