on 12-10-2007 5:31 PM
Hi
I have a BPM with a synchronous sender step (BAPI call). This BAPI makes a material reservation , checking previosly if the material is locked. If the material is locked I get an error , the BPM checks this error and I try again (3 times).
My doubts:
1- The rfc call (receiver RFC adapter) does synchronous connection??
2- what happend with the concurrence? If I send two messages in one second why the second BPM , rfc call, does not wait to the first one to finish?? I get an error in the first call the material is locked.
In the SXMB_MONI I see next times
First BPM start the rfc call at 12:39:38 and finist at 12:39:42 (error material locked)
Second BPM start the rfc call at 12:39:39 and finish at 12:39:46. This call finish OK.
I thought the second call should wait to the first one finish.
thanks
Hi Gerardo,
The synchronizity on the BAPI call is just that; Synchronous with the current session. I don't think that PI supports cross BPM session synchronizity (happy to be proven wrong).
There are of course many ways to achieve this (not necessary elegant solutions) and I am sure that you can get some experienced forumists to provide you with samples of how they have resolved this.
Bad sample (assuming that ABAP does not support synchronous calls):
- Wrap the BAPI call in a synchronous Java map (assuming that all your calls run through a common classloader).
Hope you can get some better ones coming through.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.