I think your question should be posted in the ABAP connectivity forum.
The BAPI will run in RFC, so in a dialog workprocess. It will stop when the dialog timeout happens, i.e. profile parameter rdisp/max_wprun_time. RZ11 to display it. Ask the basis to change it.