<?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: How to get variable value into internal table? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-variable-value-into-internal-table/m-p/5240763#M1211008</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;chk this:&lt;/P&gt;&lt;P&gt;DATA: itab TYPE TABLE OF string,&lt;/P&gt;&lt;P&gt;text TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text = '&lt;SUP&gt;MAT210AS1&lt;/SUP&gt;MAT210AS2&lt;SUP&gt;MAT210AS3&lt;/SUP&gt;MAT210AS4&lt;SUP&gt;MAT210AS5&lt;/SUP&gt;MAT210AS6^'&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT text AT '^' INTO:&lt;/P&gt;&lt;P&gt;TABLE itab.&lt;/P&gt;&lt;P&gt;  itab will get all the values u need:&lt;/P&gt;&lt;P&gt;MAT210AS1&lt;/P&gt;&lt;P&gt;MAT210AS2&lt;/P&gt;&lt;P&gt;MAT210AS3&lt;/P&gt;&lt;P&gt;MAT210AS4&lt;/P&gt;&lt;P&gt;MAT210AS5&lt;/P&gt;&lt;P&gt;MAT210AS6&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Feb 2009 13:27:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-27T13:27:49Z</dc:date>
    <item>
      <title>How to get variable value into internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-variable-value-into-internal-table/m-p/5240754#M1210999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a string variable which stores the value like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_build_str = &lt;SUP&gt;MAT210AS1&lt;/SUP&gt;MAT210AS2&lt;SUP&gt;MAT210AS3&lt;/SUP&gt;MAT210AS4&lt;SUP&gt;MAT210AS5&lt;/SUP&gt;MAT210AS6^&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to process this variable value and want to store data in inter table like...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MAT210AS1&lt;/P&gt;&lt;P&gt;MAT210AS2&lt;/P&gt;&lt;P&gt;MAT210AS3&lt;/P&gt;&lt;P&gt;MAT210AS4&lt;/P&gt;&lt;P&gt;MAT210AS5&lt;/P&gt;&lt;P&gt;MAT210AS6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 13:08:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-variable-value-into-internal-table/m-p/5240754#M1210999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T13:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get variable value into internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-variable-value-into-internal-table/m-p/5240755#M1211000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare you itab with one field of certain length ( u decide how much length u need )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Split variable at 'use your symbol' into table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 13:11:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-variable-value-into-internal-table/m-p/5240755#M1211000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T13:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to get variable value into internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-variable-value-into-internal-table/m-p/5240756#M1211001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ronny,&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;You can split the string at '^' and store them into a internal table.&lt;/P&gt;&lt;P&gt;Or you can use offset since all of the are of same length,so once you reach that length in offset take that value into a variable and append it to internal table and then append it,.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much Regards,&lt;/P&gt;&lt;P&gt;Amuktha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 13:12:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-variable-value-into-internal-table/m-p/5240756#M1211001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T13:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to get variable value into internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-variable-value-into-internal-table/m-p/5240757#M1211002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can write as : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;         field(15),&lt;/P&gt;&lt;P&gt;       end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split v_build_str  at '^' into table itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 13:14:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-variable-value-into-internal-table/m-p/5240757#M1211002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T13:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get variable value into internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-variable-value-into-internal-table/m-p/5240758#M1211003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Ronny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use SPLIT command and split the variable at cap symbol u have in text.&lt;/P&gt;&lt;P&gt;example..&lt;/P&gt;&lt;P&gt;DATA: str1 TYPE string, &lt;/P&gt;&lt;P&gt;      str2 TYPE string, &lt;/P&gt;&lt;P&gt;      str3 TYPE string, &lt;/P&gt;&lt;P&gt;      itab TYPE TABLE OF string, &lt;/P&gt;&lt;P&gt;      text TYPE string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text = `What a drag it is getting old`. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT text AT space INTO: str1 str2 str3, &lt;/P&gt;&lt;P&gt;                          TABLE itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 13:14:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-variable-value-into-internal-table/m-p/5240758#M1211003</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T13:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to get variable value into internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-variable-value-into-internal-table/m-p/5240759#M1211004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 13:15:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-variable-value-into-internal-table/m-p/5240759#M1211004</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T13:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to get variable value into internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-variable-value-into-internal-table/m-p/5240760#M1211005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;field(30) type c,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_build_str = &lt;SUP&gt;MAT210AS1&lt;/SUP&gt;MAT210AS2&lt;SUP&gt;MAT210AS3&lt;/SUP&gt;MAT210AS4&lt;SUP&gt;MAT210AS5&lt;/SUP&gt;MAT210AS6^&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split v_buil_str at '^' into table itab.&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;write:/ itab-field.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 13:18:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-variable-value-into-internal-table/m-p/5240760#M1211005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T13:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to get variable value into internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-variable-value-into-internal-table/m-p/5240761#M1211006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ronny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you go!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT &amp;lt;c&amp;gt; AT &amp;lt;del&amp;gt; INTO &amp;lt;c1&amp;gt; ... &amp;lt;cn&amp;gt;.&lt;/P&gt;&lt;P&gt;This is the basic syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take that whole string as some w_string and some other string like w_str1 w_str2 w_str3 like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now split w_string at ^ into w_str1 w_str2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much Regards,&lt;/P&gt;&lt;P&gt;Amuktha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 13:18:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-variable-value-into-internal-table/m-p/5240761#M1211006</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T13:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get variable value into internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-variable-value-into-internal-table/m-p/5240762#M1211007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*First: declare an ITAB of single field length could same or more than that.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ITAB OCCURS 10,&lt;/P&gt;&lt;P&gt;             FIELD1 TYPE CHAR9,&lt;/P&gt;&lt;P&gt;           END OF ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Second: split the field at your symbol or special character.&lt;/P&gt;&lt;P&gt;SPLIT V_BUILD_STR AT '^'  INTO TABLE ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Third: loop your itab to check it wheather the data is coming in proper manner or not.&lt;/P&gt;&lt;P&gt;LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;  WRITE:/ ITAB-FIELD1.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this is helpfull&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nishant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 13:23:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-variable-value-into-internal-table/m-p/5240762#M1211007</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T13:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to get variable value into internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-variable-value-into-internal-table/m-p/5240763#M1211008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;chk this:&lt;/P&gt;&lt;P&gt;DATA: itab TYPE TABLE OF string,&lt;/P&gt;&lt;P&gt;text TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text = '&lt;SUP&gt;MAT210AS1&lt;/SUP&gt;MAT210AS2&lt;SUP&gt;MAT210AS3&lt;/SUP&gt;MAT210AS4&lt;SUP&gt;MAT210AS5&lt;/SUP&gt;MAT210AS6^'&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT text AT '^' INTO:&lt;/P&gt;&lt;P&gt;TABLE itab.&lt;/P&gt;&lt;P&gt;  itab will get all the values u need:&lt;/P&gt;&lt;P&gt;MAT210AS1&lt;/P&gt;&lt;P&gt;MAT210AS2&lt;/P&gt;&lt;P&gt;MAT210AS3&lt;/P&gt;&lt;P&gt;MAT210AS4&lt;/P&gt;&lt;P&gt;MAT210AS5&lt;/P&gt;&lt;P&gt;MAT210AS6&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 13:27:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-variable-value-into-internal-table/m-p/5240763#M1211008</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T13:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get variable value into internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-variable-value-into-internal-table/m-p/5240764#M1211009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :&lt;/P&gt;&lt;P&gt;begin of fs,&lt;/P&gt;&lt;P&gt;w_str(20) type c,&lt;/P&gt;&lt;P&gt;end of fs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data itab like table of fs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data w_len type i.&lt;/P&gt;&lt;P&gt;w_len = strlen( w_char ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while w_char+0(w_len) ne ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split w_char at '^' into fs-w_str.&lt;/P&gt;&lt;P&gt;append fs to itab.&lt;/P&gt;&lt;P&gt;clear fs.&lt;/P&gt;&lt;P&gt;endwhile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into fs.&lt;/P&gt;&lt;P&gt;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; fs-w_str.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 13:38:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-variable-value-into-internal-table/m-p/5240764#M1211009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T13:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get variable value into internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-variable-value-into-internal-table/m-p/5240765#M1211010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 09:46:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-get-variable-value-into-internal-table/m-p/5240765#M1211010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T09:46:53Z</dc:date>
    </item>
  </channel>
</rss>

