2012 Jan 24 5:15 PM
Hello,
We're trying to develop a simple abap report that it generates a spool request and, with distribution lists, send the results in html format to a diferents recipients.
The report works fine, and looks right on the both SAPGUI and the preview of mail request.
The problem is the format that we receive, that contains blank spaces between ( aleatories ) words.
If we see the font code, we can see something like ( "s ize" detail with blank space 😞
<font face="courier new" s
ize="2">*<nobr style= color:#0273bc id=l0003002>DataBase
This made the incorrect format of the received html ( e.g. when space is on space character   )
DBNAME BACKUP TYPE START SIZE DURATION
PRD Full 21 Jan 2012 01:14:00 344.668,95 01:17:00
PRD Full 20 Jan 2012 01:18:40 344.383,51 &n bsp; 01:20:44
PRD Full 19 Jan 2012 01:18:33 344.186,82 01:21:31
PRD Full &n bsp18 Jan 2012 01:19:39 344.040,88 01:21:28
In another sandbox system, with component BASIS SP25 of NW 7.0, we've observed that this problem doesn't ocurrs, but in the our production system, with BASIS SP23 and with the same code, it occurs.
As per the reports isn't too important for doing the upgrade of component, we've trying to find the note or the correction (?) for correct it, but we don't find it.
Can anyone help us about this?
2012 Jan 24 5:22 PM
With debug, look at the program where these control statements are being inserted into the text that is sent in EMAIL. I think there is a concatenate statement or something that is adding a space or unrecognizable character into the control statement value that you are putting into the email body.
2012 Jan 24 5:22 PM
With debug, look at the program where these control statements are being inserted into the text that is sent in EMAIL. I think there is a concatenate statement or something that is adding a space or unrecognizable character into the control statement value that you are putting into the email body.
2012 Jan 24 5:42 PM
Thanks for you quickly answer,
I'll debug the report to try to find it and inform to you what I see.
( but the same report works on another system, and the difference is only the component level).
2012 Jan 25 10:49 AM
I've debuged the program and the html generated is fine. In fact, it looks fine in sbwp preview but when it is sended from there, it loses his format.
When I receive the mail I can see the code font, and i see that in every new line of the code, it begins with blank space that produces the wrong format of html.
The error is:
first line empty
^
|
new" size="2">..
ize="2"><nobr s..
and the format has to be:
first line fine
^
|
new" size="2">..
ize="2"><nobr s..
thanks
2012 Jan 25 12:01 PM
The problem was:
http://staf.sourceforge.net/current/email.html
Note that mailservers have a 990-character limit on each line contained within an email message. If an email message is sent that contains lines longer than 990-characters, those lines will be subdivided by additional line ending characters, which can cause corruption in the email message, particularly for HTML content. To prevent this from occurring, add your own line-ending characters at appropriate locations within the email message to ensure that no lines are longer than 990 characters.
I tried with another mail server and it works.
Many thanks!
Edited by: Albert Ventosa Delmas on Jan 25, 2012 1:14 PM