<?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: STRING TO INTERNAL TABLE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-internal-table/m-p/1599723#M269308</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I AM USING THESE FIELDS IN A SAPSCRIPT SO HOW DO I DECLARE THESE FIELDS IN SAPSCRIPT.&lt;/P&gt;&lt;P&gt;REGARDS,&lt;/P&gt;&lt;P&gt;NANI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Sep 2006 22:06:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-26T22:06:04Z</dc:date>
    <item>
      <title>STRING TO INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-internal-table/m-p/1599717#M269302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ALL,&lt;/P&gt;&lt;P&gt;HOW DO I SPLIT A STRING INTO A TABLE,&lt;/P&gt;&lt;P&gt;ACTUALLY THE STRING I AM USING IS SEPERATED BY SPACES.&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;this is my string 12 23 34 56 78 90 223 3 8&lt;/P&gt;&lt;P&gt; i want .&lt;/P&gt;&lt;P&gt; 12&lt;/P&gt;&lt;P&gt; 23&lt;/P&gt;&lt;P&gt; 34&lt;/P&gt;&lt;P&gt; 56 &lt;/P&gt;&lt;P&gt; 78&lt;/P&gt;&lt;P&gt; 90&lt;/P&gt;&lt;P&gt; 223&lt;/P&gt;&lt;P&gt; 3&lt;/P&gt;&lt;P&gt; 8&lt;/P&gt;&lt;P&gt;in my table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;nani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 21:31:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-internal-table/m-p/1599717#M269302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T21:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: STRING TO INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-internal-table/m-p/1599718#M269303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SPLIT string AT space INTO itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 21:35:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-internal-table/m-p/1599718#M269303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T21:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: STRING TO INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-internal-table/m-p/1599719#M269304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: X_LINES TYPE STRING.
DATA: T_TABLE TYPE STANDARD TABLE OF X_LINES WITH HEADER LINE.
DATA: MY_STRING TYPE STRING.

MY_STRING = '12 23 34 56 78 90 223 3 8'.

SPLIT MY_STRING AT SPACE INTO TABLE T_TABLE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 21:36:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-internal-table/m-p/1599719#M269304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T21:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: STRING TO INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-internal-table/m-p/1599720#M269305</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: T_STRING TYPE STANDARD TABLE OF STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SPLIT S_STRING AT SPACE INTO TABLE T_STRING..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 21:40:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-internal-table/m-p/1599720#M269305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T21:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: STRING TO INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-internal-table/m-p/1599721#M269306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HOW DO I USE THE INDVIDUAL FIELDS OF THIS TABLE.&lt;/P&gt;&lt;P&gt;REGARDS,&lt;/P&gt;&lt;P&gt;NANI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 21:59:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-internal-table/m-p/1599721#M269306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T21:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: STRING TO INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-internal-table/m-p/1599722#M269307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should loop them...like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
LOOP AT T_TABLE.
WRITE: T_TABLE.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or use &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;READ TABLE T_TABLE INDEX ...&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 22:02:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-internal-table/m-p/1599722#M269307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T22:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: STRING TO INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-internal-table/m-p/1599723#M269308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I AM USING THESE FIELDS IN A SAPSCRIPT SO HOW DO I DECLARE THESE FIELDS IN SAPSCRIPT.&lt;/P&gt;&lt;P&gt;REGARDS,&lt;/P&gt;&lt;P&gt;NANI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 22:06:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-internal-table/m-p/1599723#M269308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T22:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: STRING TO INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-internal-table/m-p/1599724#M269309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok...It depends on how you need to call this values into the SAPScript...My idea...You can create a new window and called like this from you ABAP Program...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: STRING_VALUE TYPE STRING.

LOOP AT T_TABLE.
MOVE T_TABLE TO STRING_VALUE.
  CALL FUNCTION 'WRITE_FORM'
    EXPORTING
      ELEMENT = 'VALUES'
      WINDOW  = 'MAIN'
    EXCEPTIONS
      OTHERS  = 01.
ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your "VALUES" sub-window, you should call this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Value: &amp;amp;STRING_VALUE&amp;amp;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 22:12:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-internal-table/m-p/1599724#M269309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T22:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: STRING TO INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-internal-table/m-p/1599725#M269310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ALVARO&lt;/P&gt;&lt;P&gt;THE CODE U HAVE WROTE IS GOOD IF WE WANT TO DISPLAY THE DATA VERTICALLY BUT I LIKE TO DISPLAY IT HORIZONTALLY.&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;with your code we can display it as&lt;/P&gt;&lt;P&gt;12&lt;/P&gt;&lt;P&gt;23&lt;/P&gt;&lt;P&gt;34&lt;/P&gt;&lt;P&gt;56&lt;/P&gt;&lt;P&gt;78&lt;/P&gt;&lt;P&gt;but i like to display it as&lt;/P&gt;&lt;P&gt;12        34 78 56 23&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 22:27:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-internal-table/m-p/1599725#M269310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T22:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: STRING TO INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-internal-table/m-p/1599726#M269311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess you are splitting it because you want to insert tabs when writing it horizontally?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 22:33:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-internal-table/m-p/1599726#M269311</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-26T22:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: STRING TO INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-internal-table/m-p/1599727#M269312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI RICH,&lt;/P&gt;&lt;P&gt;I CAN DISPLAY THE STRING AS&lt;/P&gt;&lt;P&gt;12 23 34 56 78 90&lt;/P&gt;&lt;P&gt;BUT I LIKE TO DISPLAY IT AS&lt;/P&gt;&lt;P&gt;12 34 56 90 78 23&lt;/P&gt;&lt;P&gt;IN WHATEVER ORDER I WANT  OR ONLY SOME OF THE FIELDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS,&lt;/P&gt;&lt;P&gt;NANI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 22:40:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-internal-table/m-p/1599727#M269312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T22:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: STRING TO INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-internal-table/m-p/1599728#M269313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see, so what is the logic of the order of the values?   If you know this, and it is always the same, you can simply build another string from the internal table that has been filled when using the SPLIT...INTO TABLE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 22:44:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-to-internal-table/m-p/1599728#M269313</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-26T22:44:03Z</dc:date>
    </item>
  </channel>
</rss>

