Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

HCM: How to make SAP forget the last PERNR used in PA30 transaction?

Rajasekhar_Dina
Participant
0 Kudos

How to make SAP forget the last PERNR used in PA30 transaction?

If you use a PERNR in transaction PA30 and see the infotype records, next time when you use PA30 SAP will pre-populate the same PERNR.

I had written a validation for prompting user to use PA20 if it is a 5 digit PERNR. Next time i trigger PA30, the same 5 digit number is picked and error message pops-up.

I tried, the following in my enhancement:

last_processed_pernr = rp50g-pernr = initial_pernr.

But, still SAP remembers the last PERNR in PA30.

Regards

Raj

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor

Try to clear the parameter ID (SPA/GPA) PER associated with dynpro field RP50G-PERNR

SET PARAMETER ID 'PER' FIELD initial_pernr.

2 REPLIES 2

raymond_giuseppi
Active Contributor

Try to clear the parameter ID (SPA/GPA) PER associated with dynpro field RP50G-PERNR

SET PARAMETER ID 'PER' FIELD initial_pernr.

ChrisSolomon
Active Contributor
0 Kudos

Why do you WANT to do this? It often helps users look up PERNRs again (it actually can/will show the last several you looked up). PA20/30/40 are used by your HR experts, so what is it about them that you do not trust and want to "blank out" the last employee used?