Skip to Content
author's profile photo Former Member
Former Member

HR PA20, 30 & 40 Initial Screen Enhancements

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.


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on 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.


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.