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: 

Lock PERNR for particular Infotype

madan_c
Explorer
0 Kudos

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

3 REPLIES 3

muneshpatwari
Active Participant
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.