<?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: help manipulating a string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623203#M1440726</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you dont know how many characters the string is then how can you use that ????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jan 2010 10:45:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-28T10:45:48Z</dc:date>
    <item>
      <title>help manipulating a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623195#M1440718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello guys , could you give any advice of how to split a string every 132 chars or every &amp;lt;enter&amp;gt; key , i need to save every part in a field of internal table .&lt;/P&gt;&lt;P&gt;thank  you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 10:28:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623195#M1440718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-28T10:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: help manipulating a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623196#M1440719</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;see SPLIT statement&lt;/P&gt;&lt;P&gt;Seek F1 help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 10:31:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623196#M1440719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-28T10:31:37Z</dc:date>
    </item>
    <item>
      <title>Re: help manipulating a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623197#M1440720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its pretty simple..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare ITAB .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEIGN OF ITAB OCCURS 1 ,&lt;/P&gt;&lt;P&gt;str(132) ,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the length using strlen ( string ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now string is 1340 characters....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A = 1340 / 132 = 10 times....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B = 1340 - 132 * a= 8 charcaters...&lt;/P&gt;&lt;P&gt;C = 1340- B = 1332.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: A TYPE I ,&lt;/P&gt;&lt;P&gt;DO A TIMES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;D = 132 + D.&lt;/P&gt;&lt;P&gt;ITAB-STR = STRING+D(132).&lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDDO. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB-STR = STRING +C(b).&lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is that ok???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 10:36:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623197#M1440720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-28T10:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: help manipulating a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623198#M1440721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes the problem is that i dont know , how many parts im going to get . in split you need specify the variables to save the parts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 10:36:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623198#M1440721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-28T10:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: help manipulating a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623199#M1440722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use offset or function code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example i have used offset in time to dispaly as : :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MOVE sy-uzeit TO l_time.
  CONCATENATE l_time+0(2) l_time+2(2) l_time+4(2) INTO l_time SEPARATED BY ':'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manas M.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kumar Manas Mishra on Jan 28, 2010 11:39 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 10:37:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623199#M1440722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-28T10:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: help manipulating a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623200#M1440723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can make use of the FM: RKD_WORD_WRAP or FORMAT_TEXTLINES to split the string at 132 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 10:43:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623200#M1440723</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-01-28T10:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: help manipulating a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623201#M1440724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the FM &lt;STRONG&gt;TR_SPLIT_TEXT&lt;/STRONG&gt; and specify the length at which it has to split to the parameter IV_LEN as 132. The export internal table will hold the splitted text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 10:44:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623201#M1440724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-28T10:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: help manipulating a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623202#M1440725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys , your ideas are great , however i need to split or every 132 OR every &amp;lt;ENTER&amp;gt; key  and then create a register in the internal table for every part that i get. How do i find the &amp;lt;ENTER&amp;gt; key in the string in old fashion languages it was something with the ascii&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 10:45:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623202#M1440725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-28T10:45:31Z</dc:date>
    </item>
    <item>
      <title>Re: help manipulating a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623203#M1440726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you dont know how many characters the string is then how can you use that ????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 10:45:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623203#M1440726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-28T10:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: help manipulating a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623204#M1440727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi José,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To separate a string at enter you can use this way:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: c_new value cl_abap_char_utilities=&amp;gt;newline.

split v_string at c_new into table itab.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also can you elobarate what do you mean by creating register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swarna Munukoti&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 10:51:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623204#M1440727</guid>
      <dc:creator>former_member217544</dc:creator>
      <dc:date>2010-01-28T10:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: help manipulating a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623205#M1440728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is exactly what i want , one more thing how is the structure of ITAB my table has 4 columns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: José  M. Sánchez on Jan 28, 2010 6:30 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 10:58:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623205#M1440728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-28T10:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: help manipulating a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623206#M1440729</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;You can declare itab as follows:&lt;/P&gt;&lt;P&gt;data: itab type table of string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you are asking for?&lt;/P&gt;&lt;P&gt;But iam still confused with your statement: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; my table has 4 columns &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swarna Munukoti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 11:12:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623206#M1440729</guid>
      <dc:creator>former_member217544</dc:creator>
      <dc:date>2010-01-28T11:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: help manipulating a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623207#M1440730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This logic will help&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
len = strlen( lv_string ).

lv_pos = ceil( len / 132 ).  "Holds no of fields you will get based on this you can create the itab dynamically also.

lv_off1 = 0.
lv_off2 = 132.

do lv_pos times.
wa-line = lv_string+lv_off1(lv_off2).
lv_off1 = lv_off1 + lv_off2.
append wa to itab.
clear wa.
enddo.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 12:21:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623207#M1440730</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-01-28T12:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: help manipulating a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623208#M1440731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you have 4 and one string is having 4 enters only...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you may use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT STRING AT NEWLINE INTO ITAB-A ITAB-A ITAB-C ITAB-D.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2010 12:52:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-manipulating-a-string/m-p/6623208#M1440731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-28T12:52:08Z</dc:date>
    </item>
  </channel>
</rss>

