cancel
Showing results for 
Search instead for 
Did you mean: 

How to modify URL in a PCC solution which takes user to PA30 for a particular locked record?

former_member111748
Participant
0 Kudos

I have written a validation policy which check for any locked records for an employee for infotypes 0008, 0041, & 0169. Now what I am trying to achieve is to provide them with a URL in the solution which will directly take the user to the locked record for an employee.

I am using the below link, this works but doesn't show the locked record but instead shows the latest unlocked record.:

ls_sol-link = lv_server_url && |/sap/bc/gui/sap/its/| &&
 |webgui?~TRANSACTION=*PA30%20RP50G-CHOIC=0008;RP50G-PERNR=$$$$$$$$;DYNP_OKCODE=MOD|.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member226519
Active Contributor
0 Kudos

try to pass field RP50G-SPRPS = 'X'

former_member111748
Participant
0 Kudos

I already tried that, it seems to ignore that and shows the latest unlocked record instead. I even tried to pass the begda and endda for the locked record but that still doesn't work even though it works for the unlocked records. I don't know if it's the limitation of the system or am I missing something?

former_member226519
Active Contributor
0 Kudos

maybe it's because you can't modify a locked record.

try OK_CODE = DISP

former_member111748
Participant
0 Kudos

Thanks Volker. The custome changed the requirement and no longer wants this, so I didn't get a chance to test your suggestion. Ifand when i get a chance, I will comment here with my findings.