02-12-2014 10:49 AM
Hi Experts,
I got requirement to update fes fields in Infotype: 0008,9996,0581. So here i want to lock pernr only for these partiuclar infotpes. Suppose If HR wants to update some data other than these infoypes system should allow them to change.
Can you please suggest is it possible.
Regards
Madhan
02-12-2014 11:01 AM
Hi Madan,
It is not possible. If you really want to achieve this, then the only option for you will be direct table update in the info-types (not recommended).
Regards,
Munesh.
02-12-2014 11:15 AM
Hi,
By USEREXIT we can achieve this...
USE below exit,
EXIT_SAPFP50M_001
EXIT_SAPFP50M_002
Write logic as below..
IF innnn-infty = '0008' or innnn-infty = '9996' or
innnn-infty = '0581' AND ( ipsyst-ioper EQ 'INS' OR
ipsyst-ioper EQ 'MOD' OR
ipsyst-ioper EQ 'COP' OR
ipsyst-ioper EQ 'DEL' ).
Message 'Not allowed to change the Infotype' type 'E'.
endif.
But make sure , it will not allow any kind of updations in these infotype...
Thanks,
Vijay SR
02-12-2014 11:23 AM
in my understanding this is not possible. On the other hand, why not fully lock the employee? How long would such an update take? 1 min? Nevertheless, locking/unlocking is possible with following function modules:
HR_EMPLOYEE_ENQUEUE
HR_EMPLOYEE_DEQUEUE
Working via user-exit is similar as full locking the employee as the coding is called when using PA30. With PA30 the employee you've selected is locked.