on ‎2005 Apr 18 2:39 PM
Hi,
I know this question has been asked before but I've searched the forums and have tried all the suggestions and nothing worked.
I'm creating a sales order using BAPI_SALESORDER_CREATEFROMDAT2 populating all the mandatory fields and I get 3 success messages, 1 warning message (saying the data in incomplete) and a Sales Order number at the end.
After finding no error messages I run BAPI_TRANSACTION_COMMIT which comes back with no messages at all in the return table.
But if I go to VA03 to view the sales order I get 'Sales Order xxxx is not available'. Can anyone tell me what I'm doing wrong?
Thanks,
Gill
Request clarification before answering.
Hi Gill,
Are you executing the BAPI_SALESORDER_CREATEFROMDAT2 and the BAPI_TRANSACTION_COMMIT in the same Logical Unit of Work (LUW)?
ie in one program (if being called from ABAP) do you execute both functions?
Also, another thing that might be happening is that the sales order takes some time to be actually updated to the database (update task has to finish). Have you checked again in 5 or so minutes to see whether the sales order is there?
Brad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 13 | |
| 8 | |
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 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.