i want to send external mail through sap......
in that i m making spool & convert to pdf and send as a attachment.......
i hv a got idea from
but as per requirement i m changing some logic.....but it is not work.......
i m calling some other program using submit.
i m giving code here.....
SUBMIT YPPDAILYUPDATE "VIA SELECTION-SCREEN
with pstngdt in temp
with entdate eq ' '
with posdate eq 'X'
with rdata eq 'X'
with logic eq ' '
with high eq 'X'
with trend eq ' '
new-page print off.
IF sy-batch EQ 'X'.
select yemail as p_email into CORRESPONDING FIELDS OF TABLE mailtab
where ytcode = 'YPP18'.
gd_attachment_desc1 = 'YPP18'.
loop at mailtab into mailstr.
p_email1 = mailstr-p_email.
wait up to 5 seconds.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
WRITE:/ 'Program must be executed in background in-order for spool & mail sending',
'request to be created.'.
but using this i m running this program in background then also it not generate any spool......
pls give a solution for this problem.....
i will provide points for that....