2008 Jan 10 4:12 PM
Hi there,
I am using function module BAPI_ALM_ORDER_MAINTAIN to create an order which all works fine but if i execute the function module twice in the same program it fails to create an order the second time. Something to do with generating the number. I have inserted a 'commit work and wait' after the bapi call as well as:
call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = 'X'.
But still the second call fails.
If after executing it the first time i leave the program and SE80 then return and submit it again it allows me to create another order but then stops for the second etc etc..
Anyone got any ideas how i can fix this?
Regards
Mart
2008 Jan 10 4:20 PM
Hai,
After calling 'BAPI_TRANSACTION_COMMIT',
call one more function module to release lock on that transaction.
CALL FUNCTION 'DEQUEUE_ALL'. " Releases locked objects
Hi there,
I am using function module BAPI_ALM_ORDER_MAINTAIN to create an order which all works fine but if i execute the function module twice in the same program it fails to create an order the second time. Something to do with generating the number. I have inserted a 'commit work and wait' after the bapi call as well as:
call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = 'X'.
But still the second call fails.
If after executing it the first time i leave the program and SE80 then return and submit it again it allows me to create another order but then stops for the second etc etc..
Anyone got any ideas how i can fix this?
Regards
Mart
2008 Jan 10 4:20 PM
Hai,
After calling 'BAPI_TRANSACTION_COMMIT',
call one more function module to release lock on that transaction.
CALL FUNCTION 'DEQUEUE_ALL'. " Releases locked objects
2008 Jan 10 4:28 PM
Hi there,
Thanks for the reply but unfortunately it is still failing to create the order the second time round!
Regards
Mart
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |