Application Development and Automation 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: 
Read only

SO_DOCUMENT_SEND_API1 Emailing XLSX File

andrewscott9
Participant
0 Likes
4,608

Hi there,

I am trying to use the FM SO_DOCUMENT_SEND_API1 to email a XLSX file attachment, but it isn't working. It would appear the file extension only allows 3 characters. I want to be able to pass 'XLSX'

It works fine with 'XLS' but get the format error when users try to open the attachment

Any ideas how I can send XLSX?

Hi there,

I am trying to use the FM SO_DOCUMENT_SEND_API1 to email a XLSX file attachment, but it isn't working. It would appear the file extension only allows 3 characters. I want to be able to pass 'XLSX'

It works fine with 'XLS' but get the format error when users try to open the attachment

Any ideas how I can send XLSX?

10 REPLIES 10
Read only

abo
Active Contributor
4,123

It would help if you added the relevant bits of your code 🙂

Anyhow, this question has probably been asked before and this might be a good answer.

Read only

Sandra_Rossi
Active Contributor
4,123

It has been asked many times, last time was last week.

Read only

matt
Active Contributor
4,123

Don't use the FM. Use the CL_BCS... classes. Far easier to use and less problematic.

Read only

andrewscott9
Participant
0 Likes
4,123

The reason I ask this question is that I have searched for some help and everything is pointing towards object oriented code. I have absolutely no idea about this coding technique. I'm old school and would prefer if it was possible to provide a solution in normal ABAP code.

Is there such a solution? I'm hoping so 🙂

Read only

FredericGirod
Active Contributor
4,123

andy.scott3 : no

It is a good day to test ABAP Object, and when you will try it, you never want to come back to not-normal abap programming

Read only

andrewscott9
Participant
0 Likes
4,123

Unfortunately my good friend I dont hve the time to learn OO

Read only

matt
Active Contributor
4,123

It's no more OO than using a FM. You create objects and call their methods. No OO concepts needed. Take the time to read the blogs and learn.

You do not have time to use obsolete function modules that are inflexible and difficult to use.

Read only

matt
Active Contributor
4,123

Time spent in learning better techniques ALWAYS results in saving time in the long run. Also makes you more employable. I certainly wouldn't recruit anyone who didn't know how to use CL_BCS, CL_SALV_TABLE etc. Because knowledge and experience of these makes for faster more robust developments. And therefore saves the employer money.

Read only

andrewscott9
Participant
4,123

Thanks for you suggestions but I'm a bit long in the tooth for that. I'm hoping to retire next year!! Thats how old I am

Read only

Sandra_Rossi
Active Contributor
4,123

I don't find the answer posted last week which concerned &SO_FILENAME.

And generally speaking, I don't see any code in the Web for your function module but the trick is to define &SO_FILENAME=filename.xlsx in the header parameter.