I have requirement to create sales order using BAPI
BAPI_SALESORDER_CREATEFROMDAT2 , I have to create multiple sales orders and commit only once at the end when none of the sales orders processed with BAPI have any errors. This is ok and working fine . The issue is with object status at user and system system , These statuses are only getting populated for last sales order processed. When I do an individual commit after every sales order process these statuses seems to work fine.
Seems like the status data is been lost from memory for all the but last processed sales order before commit.
Is there any work around to fix this apart from individual commit and creating object statuses explicitly for sales orders with other FMs.I want to know if I can fix this by user exits.
Thanks in advance , Vinay