Skip to Content

HR PA20, 30 & 40 Initial Screen Enhancements

Dec 14, 2017 at 06:23 AM


avatar image
Former Member

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.


10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Bartosz Siminski Dec 14, 2017 at 09:49 AM


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

1. customer exit PBAS0001,

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.


Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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:

Thanks & regards.