I have a report program which retrieves data from EKBE table and uses it further to create Vendor Credit memo using BAPI if invoice receipt is greater the Goods receipt. After this we need to run the transaction MR11, to clear the account quantity difference. For this I am using BDC. It seems to be working fine if I run the report in foreground, but when I run the report in background, it creates a job and when I run it, the program does not seem to work on the transaction MR11, it creates a vendor credit memo, but does not do an MR11. A spool is created with the required output, but MR11 is not executed and the the spool requests checked through SP01 shows status as Waiting.
Please let me know if anyone knows about this.