‎2014 Oct 11 10:19 AM
Hello everybody,
i have a little problem in one of my custom programs and i hope someone can provide me with a better solution than mine ;-).
What I am trying to do:
create a position in SAP OM with RH_OBJECT_CREATE:
works fine
create a relationship between this position and an orgunit with RH_RELATION_MAINTAIN:
works fine
create a relationship between the position and a cost center:
works fine via debugging, but does'nt work in normal run...
Seems to be a problem with a lock entry for plogi tab, the first RH_RELATION_MAINTAIN unlocks not fast enough so the second call can't access the locked position.
A WAIT UP TO 1 SECONDS between the creating of the relations solves this problem, but in my opinion that is no smart solution, does anybody have a better solution.
I tried HR:DEQUEUE_OBJECT and COMMIT WORK after the creation of the first relationship, but both didn't work...
Thanks in advance
Alex
‎2014 Oct 11 10:56 AM
‎2014 Oct 11 10:56 AM
‎2014 Oct 11 11:09 AM
‎2019 Dec 26 10:44 AM
Hello,
Use the functions RH_INSERT_INFTY_1001_EXT & RH_DELETE_INFTY_1001_EXT.
Kr,
Mohamed.