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: 

Spool file sent via email

Former Member
0 Kudos

I'm trying to send a spool file out via an email. I'm having no trouble generating the email, but the file is coming out with extra spaces in the output.

f o r e x a m p l e i t l o o k s l i k e t h i s

Does anyone know of a parameter I am mis-using on the function module 'SO_DOCUMENT_SEND_API1' or a similar function module which will fix this issue?

Points will be rewarded.

3 REPLIES 3

Former Member
0 Kudos

Hi Blake,

I reckon this should not be the problem with the FM SO_DOCUMENT_SEND_API1. Condense the data before sending it thru mail.

Regards,

Sai

0 Kudos

That was my original thought, but the data passed into the function module looks correct and without need of condense statements.

This is how the data looks after the email.

I D ; P C ; Y 1 ; X 1 ; K " R o w 1 " C ; Y 2 ; X 1 ; K " R o w 2 " C ; Y 3 ; X 1 ; K " T o t a l " C ; Y 1 ; X 2 ; K 1 1 C ; Y 2 ; X 2 ; K 2 2 C ; Y 3 ; X 2 ; K 0 ; E R 1 C 2 + R 2 C 2 E P

This is how it should look, and how the internal table I pass into the function module looks:

ID;P

C;Y1;X1;K"Row1"

C;Y2;X1;K"Row2"

C;Y3;X1;K"Total"

C;Y1;X2;K11

C;Y2;X2;K22

C;Y3;X2;K0;ER1C2+R2C2

EP

0 Kudos

To follow up, I found the issue. I was sending the contents as binary, not hexadecimal.