Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8430

ECC HR module: issue while locking employee record via RFC

$
0
0

Hi all,

 

I need to perform a lock for an employee before I do an update of that record. While I use function modules like BAPI_EMPLOYEE_ENQUEU​E or HR_EMPLOYEE_ENQUEUE in my custom ABAP report it all works.

 

However if I call these function modules from my external JAVA app the lock is not set. While I debug this there is a call of another FM  ENQUEUE_EPPRELE which calls kernel function C_ENQUEUE. The kernel function properly sets the lock. I can see it in tcode SM12. However while I leave in debugger end of top level BAPI e.g. BAPI_EMPLOYEE_ENQUEU​E the lock is gone.

 

I even tried to create my custom BAPI which calls FM ENQUEUE_EPPRELE but behavior is the same. All of these BAPIs (standard and custom) one is working in my ABAP reports but they all do not work (they do not set the lock) while they are called remotely from ext JAVA app.

 

Is there anything special with regards to locking of employee number in SAP HR module?

Are there any other options on how to lock the employee except those BAPIs?

 

thanks!

m./


Viewing all articles
Browse latest Browse all 8430

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>