<?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 Split String in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-string/m-p/3949281#M944258</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;v_len = STRLEN( gs_string ).
   If not v_len is initial.
IF v_len GT '40'.
   wa_tab-field1  = gs_string+0(40).
 SHIFT gs_string LEFT BY 40PLACES.
   wa_tab-field2 = gs_string+0(40). 
* Similary do for all the fields.
    ENDIF.
    ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kannaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 May 2008 06:48:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-29T06:48:49Z</dc:date>
    <item>
      <title>How to Split String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-string/m-p/3949275#M944252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    I have a string with fields each of length 40, I need to split it at the mutilples of 40  and put in an internal table , i.e.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field1(40),&lt;/P&gt;&lt;P&gt;field2(40),&lt;/P&gt;&lt;P&gt;field3(40)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_str = (field1                                  field2                               field3                  ..  ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;points will rewarded&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 06:26:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-string/m-p/3949275#M944252</guid>
      <dc:creator>former_member200872</dc:creator>
      <dc:date>2008-05-29T06:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to Split String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-string/m-p/3949276#M944253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: s1 TYPE string, &lt;/P&gt;&lt;P&gt;s2 TYPE string, &lt;/P&gt;&lt;P&gt;s3 TYPE string, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_tab TYPE TABLE OF string, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text = ` ur text `. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT text AT ',' INTO: s1 s2 s3, &lt;/P&gt;&lt;P&gt;TABLE it_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jagadish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 06:28:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-string/m-p/3949276#M944253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T06:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to Split String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-string/m-p/3949277#M944254</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;try this&lt;/P&gt;&lt;P&gt;&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 ',' INTO: str1 str2 str3, &lt;/P&gt;&lt;P&gt;TABLE itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 06:29:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-string/m-p/3949277#M944254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T06:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to Split String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-string/m-p/3949278#M944255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do.&lt;/P&gt;&lt;P&gt;move string+offset(40) to lv_field.&lt;/P&gt;&lt;P&gt;offset = offset + 40.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within DO ENDDO also check if offset + length does not exceed the total length of the field, else you will get a short dump.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 06:29:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-string/m-p/3949278#M944255</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-05-29T06:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to Split String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-string/m-p/3949279#M944256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Micky,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              Thanks for the answer. &lt;/P&gt;&lt;P&gt;1. iam uploading the data . looping at the  internal table(upload data) and putting tht in a string .Now the data tht iam uploading is each of length  40 . when iam puting tht in a string each field is separated by space i.e next field is starting at 41 and so on .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Now again i need to remove these spaces and put in an internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my requirement ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 06:39:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-string/m-p/3949279#M944256</guid>
      <dc:creator>former_member200872</dc:creator>
      <dc:date>2008-05-29T06:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to Split String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-string/m-p/3949280#M944257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;first condense the string.&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;fld = u r text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;condense fld.&lt;/P&gt;&lt;P&gt;and then split as u requitred.&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;split var5 at ',' into var 6 var 7 var 8.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 06:48:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-string/m-p/3949280#M944257</guid>
      <dc:creator>mahaboob_pathan</dc:creator>
      <dc:date>2008-05-29T06:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to Split String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-string/m-p/3949281#M944258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;v_len = STRLEN( gs_string ).
   If not v_len is initial.
IF v_len GT '40'.
   wa_tab-field1  = gs_string+0(40).
 SHIFT gs_string LEFT BY 40PLACES.
   wa_tab-field2 = gs_string+0(40). 
* Similary do for all the fields.
    ENDIF.
    ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kannaiah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 06:48:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-string/m-p/3949281#M944258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T06:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to Split String</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-string/m-p/3949282#M944259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi wajid &lt;/P&gt;&lt;P&gt;try to give offset while splitting.&lt;/P&gt;&lt;P&gt;or after getting the strings into unternal table again split them acording to space..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split str1 at space into str2 str3 str4..&lt;/P&gt;&lt;P&gt;table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;sachhi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 May 2008 07:13:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-string/m-p/3949282#M944259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-29T07:13:21Z</dc:date>
    </item>
  </channel>
</rss>

