cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Sales Order Create BAPI

Former Member
0 Likes
37,238

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

View Entire Topic
Former Member
0 Likes

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