We wrote a custom program where in we use two custom bapi's which were copied from original bapi's. When we run this interface program in backgroud, we have lost the spool. But when we run the test with limited data in foreground, it works fine. What are the possible solutions to correct this issue. Is there anyway we can force this spool to stay even though any BAPI fails in the middle or fail to provide proper error?
Does this cause because of any memory leak? or insufficient memory? But there are no short dumps... in system.
If we direct to print the spool during background job execution, it comes back with spool object not found error.
Any help would be highly appreciated.