cancel
Showing results for 
Search instead for 
Did you mean: 

Converting error message to warning message in Form

Former Member
0 Kudos

Hi Experts,

Kindly guide me how convert an error message into a message that allows the user/ manager to  edit and then submit the form.

i beleive the message is now supposed to be a warning message instead of a error message.

Regards,

Chandni

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Chandni,

Are you talking about Standard HCM Forms framework or any Custom Development??

I am not sure if i get the requirement correctly but if the error is a custom one then you can just pass Message Type as "W" instead of "E".

If you are talking about the standard Error messages in HCM Forms Framework then you can achieve this by Message Mapping.

You can specify any Error message to be replaced by a Warning message.

Hope that helps.

Regards,

Mayank

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks all for your inputs.

The actual requirement is to add a new message in case the diffrence between the hiring date and the scheduled contract termination date is more than 12 months.

For the BADi through which in the backend , the error messages are being pulled up I added Function module in the method IF_HRASR00GEN_SERVICE~DO_OPERATIONS

  HR_99S_DATE_ADD_SUB_DURATION, that returns the duration.

regards,

Chandni

Former Member
0 Kudos

add message with type 'W' that will work. please let me know for any issues.

Former Member
0 Kudos

Hi chandni,

1) Find within the BADI where exactly error message is displayed.

2) When form name is your form name.

if (formname = -----)

message w001(z9)

else

messege e001(z9)

endif.

Br,

Venkat

 

Former Member
0 Kudos

You may want to change the message to a pop up and handle it in the backend system that's running the form (e.g WD abap/java).