12-18-2023 10:29 AM
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
12-18-2023 11:43 AM
Try to clear the parameter ID (SPA/GPA) PER associated with dynpro field RP50G-PERNR
SET PARAMETER ID 'PER' FIELD initial_pernr.
12-18-2023 11:43 AM
Try to clear the parameter ID (SPA/GPA) PER associated with dynpro field RP50G-PERNR
SET PARAMETER ID 'PER' FIELD initial_pernr.
12-18-2023 12:49 PM
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?