10-22-2007 1:00 PM
Hi Gurus,
I am having a problem regarding the email. I am using the FM SO_NEW_DOCUMENT_ATT_SEND_API1.
Instead of putting the data to the body of the email, it is creating a file named MESSAGE1.PDF and putting the data inside the attached file.
Anyone knows why this is happening?
This is the sample code.
wa_objpack-doc_type = c_raw.
APPEND wa_objpack TO it_objpack.
Only the doc_type has value.
Thanks in advance.
Benedict
10-22-2007 1:04 PM
10-22-2007 1:04 PM
10-22-2007 1:33 PM
Hi All,
Thanks for the response.
Actually, the requirement I should attach an attachment.
The problem is, there is another attachement that is being sent. And the data is the same with the expected attachment file.
Example.
Message1.dat
Filenam.dat
Message1.dat has the same data compared with Filename.dat. But I am expecting only the Filename.dat to appear. So there is an extra Message1.dat file attached.
I have checked the int table of pack. Only the doc_type has value = 'RAW'. Nothing else.
Thanks in advance.
Benedict.
10-22-2007 1:05 PM
Hi,
Please refer sample code :
http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
Best regards,
Prashant
10-22-2007 1:09 PM
10-22-2007 1:35 PM
Hi,
To put the data to body of the mail,you need to pass the data to the table contents_txt of F.M. SO_NEW_DOCUMENT_ATT_SEND_API1.
10-22-2007 1:41 PM
Hi Koshal,
I don't need a text that is to be displayed in the body of the email.
My problem is that, there is an extra attachment added to the email with the same data with the expected attached file.
Please read the last post i have posted. (above your post)
Thanks.
Benedict
10-22-2007 2:32 PM
Hi Koshal,
I have used the contents_txt but still having the MESSAGE.PDF in the email.
Why is this happening?
Thanks.
Benedict
10-22-2007 3:37 PM