Hi Sudheer,
Its possible to acheive your requirement.
ZXPADU01, ZXPADU02 are the programs that are used for enhancing the standard infotypes.
( From the exits EXIT_SAPFP50M_001 and EXIT_SAPFP50M_002 )
ZXPADU01 - PBO of the Infotype
ZXPADU02 - PAI of Infotype.
Since your validation has to be done in the PBO, make your changes in program ZXPADU01.
CASE innnn-infty.
when '2001'.
CASE innnn-subty.
when '5001' " Subtype for Maternity 100 % pay
* Check the number of years of service
if lv_years LT 3.
MESSAGE text-004TYPE'E'.
* where text-004 would be like' 100 % Maternity allowed only for employees over 3 years'.
endif.
when '5002'. " Similarly do for maternity with 50 % pay.
Feel free to ask in case of any doubts.
Regards,
Susmitha