Hello Stefan
Thank you for the answer and sorry for my delayed comment.
I have used the i_dark parameter.My problem is that the user wants to process thousands of entries and wants to receive a list of all the processed orders/ errors at the end.
At the moment, if there is a problem in the bapi, it opens the CO02 transaction and requires user input.
For example, if the "Endtermin/Enddate"(Tab General) is in the past, the user has to change it manually.
Another example, if we get an error, the bapi opens the CO02 Transaction and displays the error, waiting for the user to take an action.
Since there are going to be several thousand of orders, i would prefer to receive an error message and display it in an alv at the end of the report.
Thank you
Sebastian