Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Email CSV File to email as attachment

mahesh_jagnani
Participant
0 Kudos

Hello Team,

I am using FM-SO_NEW_DOCUMENT_ATT_SEND_API1 for sending csv file as attachment but the attachment is in format FILE.

capture.jpg

can you please help me here.

Thanks

MAhesh

4 REPLIES 4

Tomas_Buryanek
Active Contributor
0 Kudos

Which "doc_type" did you use? Try 'RAW'.

-- Tomas --

mahesh_jagnani
Participant
0 Kudos

No it is not working for this.

Tomas_Buryanek
Active Contributor

Can you share code how are you creating attachment for this FM?

Anyway I would suggest use cl_bcs class for sending e-mails. It is considered better and more modern way. There are many demo programs available. For example BCS_EXAMPLE_7.

-- Tomas --

matt
Active Contributor

I am using FM-SO_NEW_DOCUMENT_ATT_SEND_API1

Well don't. Use the CL_BCS classes. Well documented, many examples.