Hi ,
I need to find item number in BAPIRET2 structure , after calling bapi_salesorder_change.
I tried calling bapi_salesorder_change in a loop , for every item and committing the same at the end of that loop.
But after every iteration i was getting an error ' Sales order XXXXXXXXXXX is being processed by user '.
and after research on same i could find that, while processing at item level , it usually gives such error.
But i need to retrieve the item number with error message , so what is the approach ?
Also please suggest , how can we remove locks on sales order after each iteration , so that it should not throw error
as "Sales order is currently being locked by user'
I read the response on SDN that we need to call all the items in loop , and do commit for all the items in one go. But i have doubt , that by not writing commit in a loop for every item will this releases the lock for that sales order.
Thanks & Regards,
Deepti