on 01-10-2008 3:35 PM
Hi
In xMII v11.5 I use the JCO Function Action to create a goods movement (BAPI_GOODSMVT_CREATE), which I commit using the JCO Commit Action.
I then take the resulting doc number into BAPI_INSPLOT_GETLIST to find the inspection lot.
My problem is that the second part only seems to work if I insert a pause action block in between. Is this a fault in the BAPIs I am using, or is there something wrong with the COMMIT action, which I would have thought would wait until all underlying processes were finished before moving on.
Has anyone encountered anything similar?
Thanks
Nick
Yes this is normal if you are using multiple BAPI calls within a single transaction.
A probable reason I can think of is a time lag between the actual commit in R/3 vs the immediate second BAPI call from xMII.(Basically the BAPI_COMMIT is still executing in R/3 when this second call comes in as well.) Therefore inserting a pause ensures that 99.99% of the time it would succeed.
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Are you using the SAP JCO Interface actions or the ERP System Interface JCO action? Use the SAP JCO Interface ones and specifically call the commit operation via the commit action.
This delay is inherent in the ERP system as it validates the movement operation and commits it to the database. The listing call is too quick for the system to have the new entry in the database creating the race condition.
Sam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
9 | |
7 | |
3 | |
2 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.