2005 Nov 24 9:23 AM
Hello all,
I'm using FM BAPI_PO_CREATE1 to create purchase orders. The function works fine for one order.
In a loop I have to create more than one orders and when the FM(BAPI_PO_CREATE1) is call for the second order is raised RAISE_EXCEPTION (Exception condition "FAILURE" raised.)
Can you tell which is the cause of this exception or how to fix this problem? Should I call BAPI_TRANSCATION_COMMIT after all the FM calls?
Thank you!
Bogdan
2005 Nov 24 9:27 AM
Hi Bogdan,
Yes you should call it everytime you call the bapi
Hello all,
I'm using FM BAPI_PO_CREATE1 to create purchase orders. The function works fine for one order.
In a loop I have to create more than one orders and when the FM(BAPI_PO_CREATE1) is call for the second order is raised RAISE_EXCEPTION (Exception condition "FAILURE" raised.)
Can you tell which is the cause of this exception or how to fix this problem? Should I call BAPI_TRANSCATION_COMMIT after all the FM calls?
Thank you!
Bogdan
2005 Nov 24 9:27 AM
Hi Bogdan,
Yes you should call it everytime you call the bapi
2005 Nov 24 9:36 AM
Hi Ravi,
The commit is called after all calls, but still doesn't work.
10q
2005 Nov 24 9:40 AM
Hi Bogdan,
The Failure can be arising for variuos reasons as well.
Are you sure, you are refreshing the Bapi structure and internal tables for each loop pass?
Regards,
Ravi
2005 Nov 24 9:47 AM
Ravi, Thank you a lot!
Yes, you were right,instead refersh i used clear ).
Bogdan
2006 Dec 03 6:53 AM
Hi Bogdan,
I am getting the same error as you got FAILURE Exception. you are asked to refresh internal table but where do i refresh. if i refrresh the table in loop pass the purpose of loop is not served.Could you please send me the sample code of where to refresh..
Thanks a lot.
Santosh Kotra.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |