09-11-2014 8:09 PM
Hi All,
I have a requirement.
I need to send an email from Report Program. The Body of this mail is created in a standard text in SO10.
The line I'm giving in standard text is:
To view your pay statement for the period of &MONTH&&DAY&&YEAR& to &MONTH&&DAY&&YEAR&
But this line is getting printed in the email as Two lines:
To view your pay statement for the period of &MONTH&&DAY&&YEAR& to
&MONTH&&DAY&&YEAR&
This line should get printed as a single line. Is there any constraint to the length in the editor ?
I have used all the options in Formatting Options in SAP Script Editor but it didn't work.
Thanks in Advance,
Bharath.
09-11-2014 8:32 PM
A long text can not exceed 70 characters on a line. There is however a line extension character for long texts.
Neal
09-11-2014 8:36 PM
09-11-2014 8:39 PM
Hi Neal,
Thanks.
Could you please tell me where can i find this line extension character ?
Bharath.
09-11-2014 9:04 PM
I have used this Extended Line Format option. But it didn't work. It is coming in a separate line
09-11-2014 9:05 PM
09-11-2014 10:16 PM
I have tried the same way you told but no luck. the row length is limited to 72 characters. But my line is around 85 characters. Hence it is pushing it to next line. But the requirement is, it should get displayed in the same line
09-12-2014 6:45 PM
What statement are you using to display it? What reporting context is it in? (ABAP, ALV, Report Painter, SAPScript...) Any other context that might give us more context?
Neal
09-12-2014 5:53 AM
Hi, not sure how your SO10 text is being mailed in your report.
For converting long text into a text string with unlimited line length I always use this function call:
CALL FUNCTION 'CONVERT_ITF_TO_STREAM_TEXT'
EXPORTING
language = nast-spras
TABLES
itf_text = lt_tline
text_stream = lt_soli.
lt_line is a table with the SO10 long text
lt_soli is a table type SOLI_TAB that holds the text string. SOLI_TAB is input for some e-mailing routines like class CL_BDS->SEND or function SO_NEW_DOCUMENT_SEND_API1.
Regards Jack
09-12-2014 6:07 AM
hi Mahesh
use this