05-12-2010 2:07 PM
I am using ENQUEUE_EPPRELE to lock all infotype records in 2001 and it returds a foreign lock message.
CALL FUNCTION 'ENQUEUE_EPPRELE'
EXPORTING
PERNR = p2006-pernr
INFTY = '2001'
EXCEPTIONS
FOREIGN_LOCK = 1
SYSTEM_FAILURE = 2
OTHERS = 3.
05-12-2010 2:32 PM
This means that someone is working into the infotype 2001 for your PERNR.
Try again, and if sy-subrc eq 1 again, go to SM12 and check if someone is in infotype 2001 for your pernr
05-12-2010 2:32 PM
This means that someone is working into the infotype 2001 for your PERNR.
Try again, and if sy-subrc eq 1 again, go to SM12 and check if someone is in infotype 2001 for your pernr