<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Type conversion in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion/m-p/12426999#M1997657</link>
    <description>&lt;P&gt;Thanks. Will try and see!!&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jul 2021 13:09:19 GMT</pubDate>
    <dc:creator>Tanishaa</dc:creator>
    <dc:date>2021-07-06T13:09:19Z</dc:date>
    <item>
      <title>Type conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion/m-p/12426992#M1997650</link>
      <description>&lt;P&gt;There is a data of type TRUXS_T_TEXT_DATA which needs to be converted into type string. How can it be done?&lt;/P&gt;
  &lt;P&gt;I've tried direct method, calling classes, but these methods aren't working.&lt;/P&gt;
  &lt;P&gt;Any suggestion as to how it can be converted into string type?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 12:26:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion/m-p/12426992#M1997650</guid>
      <dc:creator>Tanishaa</dc:creator>
      <dc:date>2021-07-06T12:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Type conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion/m-p/12426993#M1997651</link>
      <description>&lt;P&gt;Don't know this TRUXS_T_TEXT_DATA&lt;/P&gt;&lt;P&gt;did you try : &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data(my_string) = conv string( my_truxts_t_text_data )  ? &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;(maybe it could be a table, in this case --&amp;gt; CL_BCS_CONVERT )&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 12:43:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion/m-p/12426993#M1997651</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2021-07-06T12:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Type conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion/m-p/12426994#M1997652</link>
      <description>&lt;P&gt;I tried using this method but it didn't work.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 12:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion/m-p/12426994#M1997652</guid>
      <dc:creator>Tanishaa</dc:creator>
      <dc:date>2021-07-06T12:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Type conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion/m-p/12426995#M1997653</link>
      <description>&lt;P&gt;Could you give us the detail of this TRUXS_T_TEXT_DATA&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 13:00:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion/m-p/12426995#M1997653</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2021-07-06T13:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Type conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion/m-p/12426996#M1997654</link>
      <description>&lt;P&gt;Hi Tanisha,&lt;/P&gt;&lt;P&gt;The data of type TRUXS_T_TEXT_DATA is an internal table consisting of one or more lines of 4096 characters.&lt;BR /&gt;There are different methods to 'flatten' the table (convert it to a single line/string).&lt;/P&gt;&lt;P&gt;A simple way is to loop over the table and concatenate each line into a separate variable.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA lv_concatenated_line TYPE string.&amp;lt;br&amp;gt;
LOOP AT lt_table ASSIGNING FIELD-SYMBOL(&amp;lt;line&amp;gt;).
 lv_concatenated_line = lv_concatenated_line &amp;amp;&amp;amp; &amp;lt;line&amp;gt;.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Jul 2021 13:03:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion/m-p/12426996#M1997654</guid>
      <dc:creator>LaurensDeprost</dc:creator>
      <dc:date>2021-07-06T13:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Type conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion/m-p/12426997#M1997655</link>
      <description>&lt;P&gt;Hi Tanisha,&lt;/P&gt;&lt;P&gt;Function TEXT_CONVERT_TEX_TO_SAP convert TRUXS_T_TEXT_DATA to an internal table.&lt;/P&gt;&lt;P&gt;I hope following link will be helpful to find a solution.&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/questions/6552909/textconverttextosap.html" target="test_blank"&gt;https://answers.sap.com/questions/6552909/textconverttextosap.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;BR /&gt;Thorsten&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 13:03:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion/m-p/12426997#M1997655</guid>
      <dc:creator>ThorstenHoefer</dc:creator>
      <dc:date>2021-07-06T13:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Type conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion/m-p/12426998#M1997656</link>
      <description>&lt;P&gt;There is lv_data of type TRUXS_T_TEXT_DATA which contains some rows and columns filled with the data like field1, field2, field3, etc.&lt;/P&gt;&lt;P&gt;Now it has to be converted into string type.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 13:04:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion/m-p/12426998#M1997656</guid>
      <dc:creator>Tanishaa</dc:creator>
      <dc:date>2021-07-06T13:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Type conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion/m-p/12426999#M1997657</link>
      <description>&lt;P&gt;Thanks. Will try and see!!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 13:09:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion/m-p/12426999#M1997657</guid>
      <dc:creator>Tanishaa</dc:creator>
      <dc:date>2021-07-06T13:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Type conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion/m-p/12427000#M1997658</link>
      <description>&lt;P&gt;Thank you. Will try this!&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 13:09:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion/m-p/12427000#M1997658</guid>
      <dc:creator>Tanishaa</dc:creator>
      <dc:date>2021-07-06T13:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Type conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion/m-p/12427001#M1997659</link>
      <description>&lt;P&gt;Sounds like a job for the REDUCE operator.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA(as_a_string) = REDUCE string( INIT text = `` sep = ``
    FOR text_line IN lv_data 
    NEXT text = |{ text }{ sep }{ text_line }| sep = ` ` ).
&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This produces in &lt;STRONG&gt;as_a_string&lt;/STRONG&gt; all the text, delimited at each line by space. Of course you can change that to, e.g. &lt;STRONG&gt;\n&lt;/STRONG&gt; for newline.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 14:11:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion/m-p/12427001#M1997659</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2021-07-06T14:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Type conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion/m-p/12427002#M1997660</link>
      <description>&lt;P&gt;I'm not sure many people know the millions of DDIC types in the system. If you explain the context, people will be more inclined to help you.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 17:20:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion/m-p/12427002#M1997660</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-07-06T17:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Type conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion/m-p/12427003#M1997661</link>
      <description>&lt;P&gt;For Pete's Sake! You've really embraced the new syntax... and I'm still trying to figure the VALUE and NEW sentences *facepalm*&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 06:32:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion/m-p/12427003#M1997661</guid>
      <dc:creator>VXLozano</dc:creator>
      <dc:date>2021-07-08T06:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Type conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion/m-p/12427004#M1997662</link>
      <description>&lt;P&gt;I have to look it up every time. And GROUP BY really baffles me. I never get it right on the first go. And Meshes? Say whut?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 07:18:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/type-conversion/m-p/12427004#M1997662</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2021-07-08T07:18:05Z</dc:date>
    </item>
  </channel>
</rss>

