HI all.
I use BAPI_SALESORDER_CREATEFROMDAT2 to create orders. When creating
rush orders the system automatically creates a corresponding delivery for the order.
After I call the commit BAPI I try to read the created delivery from VBFA. But it often happens
that the VBFA update is not done synchronously which means I cannot find my delivery in VBFA.
I do not want to do a loop and select 10 times from VBFA till the delivery can be found.
Do you know any other way of getting the delivery directly after creating the order with this BAPI?
The BAPI returns the delivery number as message variable in the return parameter. But using it does smell bad to me. 😊
Thanks and cheers,
Sascha