I am using program RV60SBAT (VF06) to process invoices in background. I have a z-driver program and a z-form(script). Driver program contains the logic to send emails to intended recipients. When I am running program RV60SBAT in background as a batch job, the email is sent correctly but the subject and sender of the email is not correct as you can see the 2nd line with yellow traffic light in below pic.
When I use program RSNAST00 to process the invoice in background it goes with the correct information as shown in the above pic with green traffic light. I can get into debug mode when using RSNAST00 and check my driver program and make changes. Now I am using RSNAST00 for testing purpose and the client is going to use RV60SBAT (VF06) in background. I am unable to get into my driver program using RV60SBAT to see what's going wrong here. Please let me know if there is a way to debug this and for a possible solution.
Please note that I have set up the subject of the email as shown below and the sender logic is in the program.