Hi All,
I am using the standard BAPI 'BAPI_DELIVERYPROCESSING_EXEC' in one of my code and this BAPI is called in LOOP of some internal table.
After the BAPI call return table is checked and if no error comes 'BAPI_TRANSACTION_COMMIT' (with wait = 'X') is used to commit.
My problem is that sometimes in production the Delivery is created and sometimes it is not created, and BAPI does not return any error.
So after the 'BAPI_TRANSACTION_COMMIT' another WAIT UP TO 2 SECONDs has been written and then it works perfectly, we monitored this for quite some times and we did not get any error. But again we removed the explicit WAIT statement and we saw some of the Deliveries are not created.
Now my internal table is becoming big in size there by putting WAIT for 2 Seconds is creating the performance issues, it is taking lot of time to complete the process.
Is there any way by which I can get rid of explicit statement.