<?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: move values from a string variable into a structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-values-from-a-string-variable-into-a-structure/m-p/12098717#M1972548</link>
    <description>&lt;P&gt;but I have to create the object with   cl_rsda_csv_converter=&amp;gt;create   ?&lt;/P&gt;</description>
    <pubDate>Wed, 13 Nov 2019 13:57:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2019-11-13T13:57:43Z</dc:date>
    <item>
      <title>move values from a string variable into a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-values-from-a-string-variable-into-a-structure/m-p/12098712#M1972543</link>
      <description>&lt;P&gt;how to move values from a string variable into a structure (not string) in the corresponding cells?&lt;/P&gt;
  &lt;P&gt;the string variable contains values extracted from a file .csv&lt;/P&gt;
  &lt;P&gt;for example the string variable contains:&lt;/P&gt;
  &lt;P&gt;FP02;LF;FP01 &lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 09:08:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-values-from-a-string-variable-into-a-structure/m-p/12098712#M1972543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-11-13T09:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: move values from a string variable into a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-values-from-a-string-variable-into-a-structure/m-p/12098713#M1972544</link>
      <description>&lt;P&gt;Use below statement&lt;/P&gt;&lt;P&gt;SPLIT &amp;lt;L_VARIABLE&amp;gt; AT ';' INTO &amp;lt;WA-VAR1&amp;gt; &amp;lt;WA-VAR2&amp;gt; &amp;lt;WA-VAR3&amp;gt; etc....&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 09:16:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-values-from-a-string-variable-into-a-structure/m-p/12098713#M1972544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-11-13T09:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: move values from a string variable into a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-values-from-a-string-variable-into-a-structure/m-p/12098714#M1972545</link>
      <description>&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;one method more fast for transfer into structure or table?&lt;/P&gt;&lt;P&gt;whitout doing :  &amp;lt;WA-VAR1&amp;gt; &amp;lt;WA-VAR2&amp;gt; &amp;lt;WA-VAR3&amp;gt; etc....&lt;/P&gt;&lt;P&gt;but directly transfer the data to corrispondent cells&lt;/P&gt;&lt;P&gt;for example: SPLIT &amp;lt;L_VARIABLE&amp;gt; AT ';' INTO &amp;lt;war&amp;gt;  &lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 10:25:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-values-from-a-string-variable-into-a-structure/m-p/12098714#M1972545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-11-13T10:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: move values from a string variable into a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-values-from-a-string-variable-into-a-structure/m-p/12098715#M1972546</link>
      <description>&lt;P&gt;Warning! This completely ignores CSV delimiters.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 10:35:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-values-from-a-string-variable-into-a-structure/m-p/12098715#M1972546</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2019-11-13T10:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: move values from a string variable into a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-values-from-a-string-variable-into-a-structure/m-p/12098716#M1972547</link>
      <description>&lt;P&gt;If it is CSV, then I recommend to use &lt;STRONG&gt;cl_rsda_csv_converter&lt;/STRONG&gt; - &lt;STRONG&gt;csv_to_structure&lt;/STRONG&gt; method.&lt;/P&gt;&lt;P&gt;In constructor you will need to set separator to ";" instead of initial "," (and maybe delimiter if you know it).&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 10:38:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-values-from-a-string-variable-into-a-structure/m-p/12098716#M1972547</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2019-11-13T10:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: move values from a string variable into a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-values-from-a-string-variable-into-a-structure/m-p/12098717#M1972548</link>
      <description>&lt;P&gt;but I have to create the object with   cl_rsda_csv_converter=&amp;gt;create   ?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 13:57:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-values-from-a-string-variable-into-a-structure/m-p/12098717#M1972548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-11-13T13:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: move values from a string variable into a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-values-from-a-string-variable-into-a-structure/m-p/12098718#M1972549</link>
      <description>&lt;P&gt;SE24 cl_rsda_csv_converter&lt;/P&gt;&lt;P&gt;there is two constructor : CONSTRUCTOR or CLASS_CONSTRUCTOR &lt;/P&gt;&lt;P&gt;create is not a constructor, it is a "simple" method.&lt;/P&gt;&lt;P&gt;search for example, if you fill unconfortable with these constructors&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 14:00:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-values-from-a-string-variable-into-a-structure/m-p/12098718#M1972549</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2019-11-13T14:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: move values from a string variable into a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-values-from-a-string-variable-into-a-structure/m-p/12098719#M1972550</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;luca.treva&lt;/SPAN&gt; yes I meant this method. You need to use it to create a object. You can find examples on the internet (or maybe in your system) how to use this class.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 14:14:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-values-from-a-string-variable-into-a-structure/m-p/12098719#M1972550</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2019-11-13T14:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: move values from a string variable into a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-values-from-a-string-variable-into-a-structure/m-p/12098720#M1972551</link>
      <description>&lt;P&gt;have you a pratical example please?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 15:11:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-values-from-a-string-variable-into-a-structure/m-p/12098720#M1972551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-11-13T15:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: move values from a string variable into a structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-values-from-a-string-variable-into-a-structure/m-p/12098721#M1972552</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;luca.treva&lt;/SPAN&gt; Did you search? It is VERY simple:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA(lo_csv_converter) = cl_rsda_csv_converter=&amp;gt;create(
                               i_delimiter = l_delimiter
                               i_separator = l_separator ).

LOOP AT lt_csv_lines INTO l_csv_line.
  lo_csv_converter-&amp;gt;csv_to_structure(
    EXPORTING
      i_data   = l_csv_line "Your string
    IMPORTING
      e_s_data = ls_data ). "Your result structure
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Nov 2019 15:28:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-values-from-a-string-variable-into-a-structure/m-p/12098721#M1972552</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2019-11-13T15:28:16Z</dc:date>
    </item>
  </channel>
</rss>

