07-16-2008 12:56 PM
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.
07-16-2008 1:16 PM
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
07-16-2008 1:52 PM
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
07-17-2008 12:04 PM
To follow up, I found the issue. I was sending the contents as binary, not hexadecimal.