2020 Mar 30 9:38 AM
Hi experts,
when CONVERT_STREAM_TO_ITF_TEXT is used to convert string containing Character & to inner table,the resulting inner table convert '&' to"<(>&<)>". I need the & not <(>&<)>. Does anybody know how we can get the expected results?
2020 Mar 30 10:15 AM
If you want "&" instead of "<(>&<)>", then it's not format ITF, then you should not use CONVERT_STREAM_TO_ITF_TEXT.
Can you explain the context so that to better answer your question?
Do you just want to split a text into sections of constant length?
Do you want to store text in a standard text or any kind of "long text" in tables STXH/STXL?
2020 Mar 30 10:57 AM
1 .Smartforms output as dynamic text
2.The order of Excel printing is as follows.
DATA: l_string TYPE string,//the value is the long text above
gt_text TYPE tlint_t.
APPEND l_string TO lt_stream_lines .
CALL FUNCTION 'CONVERT_STREAM_TO_ITF_TEXT'
EXPORTING stream_lines = lt_stream_lines
lf = 'X'
TABLES itf_text = gt_text.
2020 Mar 30 11:20 AM
So, it's really the ITF format that you need, and "<(>&<)>" is then correct.
When the smart form is output, don't worry, & will be rendered.
For more information: SAP Library - Structure TLINE of the Lines Table
2020 Mar 31 2:35 AM
the smart form prints well,but the excel output still show "<(>&<)>" not '&',this is the problem I want to solve,Please help me,thank you advance
2020 Mar 31 12:11 PM
I didn't notice that you were also talking about Excel. Can you explain what this Excel (file?) has to do with the smart form?
2020 Mar 31 1:47 PM
HI ,
Please Try FM - DSVAS_WRD_STREAM_TO_ITF and Pass
NO_AND_REPLACEMENT = 'X'
2020 Apr 01 2:28 AM
2020 Apr 01 2:26 AM
2020 Apr 01 6:32 AM
Then, why don't you call CONVERT_ITF_TO_STREAM_TEXT to do the opposite conversion?
2020 Apr 01 10:21 AM
What's the component version for SAP system, its available in SAP ECC 6.0 , Release 702.
2020 Apr 01 10:58 AM
Please use the COMMENT button for comments, questions, adding details, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area.
2020 Apr 02 7:08 AM
if the internal table have three rows,need call three times,or the results connect multiple rows into one row ,What I need is three lines of data without format <(>&<)>.
There's no other way to switch at once,the fm CONVERT_ITF_TO_ASCII can work?
2020 Apr 02 8:46 AM
No, you don't need to call CONVERT_ITF_TO_STREAM_TEXT three times. You call it once with internal table of three lines. There are lots of examples in the forum.
2020 Apr 02 10:45 AM
call it one once return a rows ,this is not what I want. I want three rows without "<(>&<)>"
I call CONVERT_STREAM_TO_ITF_TEXT tranfer a string to the internal table,
then call CONVERT_ITF_TO_STREAM_TEXT tranfer the the internal table to the ordinaty string.
After the final call, it returns to the previous data.