cancel
Showing results for 
Search instead for 
Did you mean: 

HR PA20, 30 & 40 Initial Screen Enhancements

Former Member
0 Kudos

Good Day Gurus,


I have a requirement to check for some field from a custom table at the beginning of each transaction PA20, 30 & 40.

once the user puts a PERNR and clicks enter this should activate my code to show a message for some condition.

Its not on an infotype level, I don't want to change anything on screen 1100 & 2000 in report

SAPMP50A, then again when using the user exits in cmod for PAI its neccesary for my read to use the PERNR which is not applicable at this time RP50G-PERNR or PSPAR-PERNR are not recognized by the report.

Is there a way where i can activate the code once tcodes PA20,30 & 40 are run with some PRN before the infotype selection?

I'm new to HR programing so please tell what is the best approach here.

Regards.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

By default there are two options to enhance standard way of work in transaction PA20/PA30/PA40:

1. customer exit PBAS0001,
2. BADI HRPAD00INFTY.

Both options are called once a user clicks on particular infotype. So there is no predefined way of call such additional code once you hit an enter. The only option I see is to use implicit enhancement of form NEW_PERNR in module MP50AF00 which is called everytime you hit enter but I strongly discourage any implicit enhancements.

regards,
Bartosz

Former Member
0 Kudos

Good Day Bartosz,

Thank you for your reply, I think I will take the 1st option.

Appreciate your advice.

For any future references found this link to handle this user exit:

https://blogs.sap.com/2014/08/29/user-exit-to-default-values-in-pa-infotypes/

Thanks & regards.

Answers (0)