cancel
Showing results for 
Search instead for 
Did you mean: 

IT0077 (US) - Discharge Date validation

former_member189162
Participant
0 Kudos

Hi Experts,

We are seeing that in ESS and PA30, that in IT0077 for US, when a user selects "Recently Separated Veteran", they are able to set a Discharge date that is farther back than 3 years and it is accepted without error. Our HR team said that in the past, this used to be validated, but now it is not.

Is this a bug or missing validation?

Thanks!

-Kevin

Accepted Solutions (1)

Accepted Solutions (1)

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

There was a check earlier, probably its not there anymore. 1171090 - IT0077: No discharge date check for Recently Sep. Vets

former_member189162
Participant
0 Kudos

Thanks Siddharth,

This Note does not appear to apply to us. The code they reference in the Correction no longer appears to exist in MP007730. But I did find this check in the Module "veteran_status_US":

"Validate the interval of the discharge date for recently seperated veteran
"Should not be more than three years.
   IF q0077-vets5 EQ 'X'.
     IF p0077-dcrdt IS INITIAL.
       MESSAGE e278(5u).
     ENDIF.
   ENDIF.


But, even though the comment says to check the date for 3 years or older, the code only checks if that value "IS INITIAL".


In looking at the messages table, there is a message 279 that says:


"Given Discharge Date is invalid for Recently Separated Veterans"


But, in searching where this message is used, it finds it not used anywhere.


Thanks,

-Kevin

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

what i meant was validation was removed for the discharge date using this note, i m not sure it ll be added or not, probably you can have a custom check for this

former_member189162
Participant
0 Kudos

Ah, ok, I see what you mean now. Thanks Siddharth. It is very odd that they removed this check as it is part of the laws requiring this information for the US.

I will open a ticket with SAP and in the meantime add custom validation.

Thanks!

-Kevin

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

Sure, please raise a new message lot of changes has been done on this. probably if there is alegal requirement it can be considered.

former_member189162
Participant
0 Kudos

Great, thanks Siddharth, you have been a big help with this!

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

thanks, please check this, I see in the code it mention a check

2096261 - IT0077: Allow Protected Veterans undisclosed classification *&--------------------------------------------------------------------* *& Object          METH CL_HRPA_INFOTYPE_0077_US *&                      CHECK_DISCHARGE_DATE

former_member189162
Participant
0 Kudos

Thanks SIddharth! Yes, we have actually made some enhancements to CL_HRPA_INFOTYPE_0077_US, but when you look at CHECK_DISCHARGE_DATE, it has 4 validations:

* Discharge should not be maintained for status undisclosed

* Discharge date should not be maintained for Non Veterans

* Discharge date is mandatory for Recently seperated veteran.

* Discharge date should not be in future.

They do check for a future date, but it will still allow you to enter a date that is older than 3 years.

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

yes thats correct this is the exact place probably code was removed to facilate this check

former_member189162
Participant
0 Kudos

All set now. Thanks!

I have also opened a ticket with SAP to see why the check was removed.

Thanks,

-Kevin

Answers (0)