BAPI timeout

Had a question on BAPI timeouts and how to handle 'em in BC. We have a BAPI that timeouts when run interactively (within SAP environment) but works when run in the background. If i were to call the same BAPI from BC, it runs into the same timeout problem and can never get it to work. Could you let me know if there is a solution or other possible workarounds.