Hi
A problem is here:
IF sy-batch EQ 'X'.
** This is what I added when I was testing with program RSNAST00 and it worked
lv_sender_typ = 'INT'.
ELSE.
lv_sender = sy-uname.
lv_sender_typ = 'B'.
ENDIF.
When you run program in background mode, the sender type is wrong, you should set SMTP, not INT
IF sy-batch EQ 'X'.
** This is what I added when I was testing with program RSNAST00 and it worked
lv_sender_typ = 'SMTP'.
ELSE.
lv_sender = sy-uname.
lv_sender_typ = 'B'.
ENDIF.
In this way you should set the mail address'Sales@MAG-IAS.com',
Max