on ‎2007 Apr 11 10:12 PM
Hello All,
I am creating a sales order using BAPI_SALESORDER_CREATEFROMDAT2 and it executes successfully (i.e., returns a sales document number). But when I go into VA03 to look at the sales document that was created it tells me it doesn't exist in the database or has been archived.
I get this behavior whether I use SE37 or my external program (and yes, I do call BAPI_TRANSACTION_COMMIT after creating the order).
Anyone out there able to help?
Request clarification before answering.
Hi,
Check for the update log through SM13. There could possibly be an update termination. Has there been an Unicode conversion in the system recently?
Hope this helps,
Sudhi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sundhindra,
I checked the update log and there were no updates pending so I'm back to square one.
One of the messages I get says "The sales document is not yet complete: Edit data" but I searched on the Notes and found one that says that particular message is a bug. I have to believe it isn't in this case because even though it tells me that the order header and order items tables were processed successfully it doesn't seem to be saving anything in the database.
Any other ideas? Anyone?
Thanks for yor help.
Hi Gareth,
It looks like this is happening because I don't called BAPI_TRANSACTION_COMMIT immediately afterward (ie, I'm calling it but on the next request, which is a different thread). For this reason the DB is not being updated. So I'll either have to find a way to make the Web service calls stateful or write a wrapper for the BAPI.
Thanks for your input, I'll update this post with my findings!
Randy
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.