2015 Sep 23 3:26 PM
Hi.
Given a text table of structure tline, which has to be mailed. cl_document_bcs=>create_document knows parameter i_text type soli_tab.
Which is the best way to convert the text to soli_tab?
2015 Sep 23 4:55 PM
2015 Sep 23 3:33 PM
Hi,
i like FM CONVERT_ITF_TO_HTML
and moving 132 to 256 manually since trailling spaces are ignored.
Regards
Stefan Seeburger
2015 Sep 23 5:17 PM
2015 Sep 23 4:55 PM
2015 Sep 23 5:06 PM
I want to mail a mail text, not an empty mail with a PDF attachment, sorry.....
2015 Sep 23 5:15 PM
Hi,
I wonder...
Is there a way to convert tline to HTML ?
If there is it is worth checking....
Regards .
2015 Sep 23 5:18 PM
Do a google using search operators:
site:help.sap.com itf to HTML
Regards.
2015 Sep 23 5:19 PM
Hi,
would it be an Option to use the OTF data to generate the mail?
CALL FUNCTION 'PRINT_TEXT'.
CALL FUNCTION 'CONVERT_OTF_AND_MAIL_NEW' ...
Regards
Oliver
2015 Sep 23 5:20 PM
CALL FUNCTION? As mentioned in first question: cl_document_bcs=>create_document knows parameter i_text type soli_tab.
2015 Sep 23 5:29 PM
Yes, CALL FUNCTION --- CONVERT_OTF_AND_MAIL_NEW uses the BCS classes. You can pass OFT directly to it if you tell cl_document_bcs=>create_document that it gets OTF (I_TYPE = 'OTF').
Regards
Oliver
2015 Sep 23 5:34 PM
Hi,
This is interesting.
Have you tried it ?
What is happening behind the scene any conversions ?
Regards.
2015 Sep 23 5:38 PM
Oliver Wurm wrote:
You can pass OFT directly to it if you tell cl_document_bcs=>create_document that it gets OTF (I_TYPE = 'OTF').
This works. Thanks.
2015 Sep 23 5:43 PM
2015 Sep 23 5:56 PM
too happy too soon - even if format is set to OTF, the table has to be soli_tab. 😞
2015 Sep 23 7:10 PM
Well, changing the Content of one Parameter doesn't Change the type of another. But you can move the OTF structure as it is into the SOLI-LINE without conversion:
LOOP AT otf ASSIGNING <otf>.
soli-line = <otf>.
append soli to whatever.
ENDLOOP.
That's it.
Regards
Oliver
2015 Sep 23 5:21 PM
Hi,
Found this CONVERT_ITF_TO_HTML
HTML Export - BC - Word-Processing in the SAPscript Editor - SAP Library
Regards.
2015 Sep 23 5:22 PM
I know, but I have to convert the converted output. Not very elegant. I'll have to compose my own method for this, I'm afraid....
2015 Sep 24 5:08 AM
Hi,
See if this is useful for you see :
1 READ_TEXT
2 CONVERT_ITF_TO_HTM
3 Using e_html_text of CONVERT_ITF_TO_HTM as input to cl_bcs_convert=>xstring_to_solix .
See attached program Y_R_EITAN_TEST_10_11 .
Regards.