Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Sending Excel as an attachment

Hi All,

I had program in which i am sending mail along with Excel attachment using FM SO_NEW_DOCUMENT_ATT_SEND_API1. Mail is going fine with data in Excel attachment. But when i try to open the Excel it gives an Info message saying that "<b>You are trying to open (attachment name),is in different format than specified file extension Verify that file is not corrupted and is from a trusted source before opening file. Do you want to open file now</b>". Then when i presses YES, Excel opens up with all data. I want to know how to avoid that info popup. Is there something has to be passed to FM or something has to be done to Excel like settings in EXCEL so that i can avoid that Info message coming.

Document type of attachment is gw_packing_list-doc_type = 'XLS'.

Not what you were looking for? View more on this topic or Ask a question