<?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: Passing line text in a string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-line-text-in-a-string/m-p/7147975#M1514222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can try a logic something similar to this. here it considers 16 chaarcters&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:BEGIN OF wa,
     line(72),
     END OF wa.
DATA:it TYPE TABLE OF char72.
DATA:lv_string TYPE string.
DATA:len TYPE i,
     l_off TYPE i,
     r_off TYPE i,
     lam type i.
lv_string = '123123jbjskdhvkkxzncjkn1234123jhjkhzkdvczjcklzxjcklxjzclkzxjcklj13j12kl3j1kljlk12j3kjlk2j3'.
l_off = 0.
r_off = 16.
len = STRLEN( lv_string ) - 1.
DO.
    lam = l_off + 16.
    if lam &amp;gt;= len.
    lam = len - l_off.
    wa-line = lv_string+l_off(lam).
    APPEND wa TO it.
    CLEAR wa.
    EXIT.
  ENDIF.
  wa-line = lv_string+l_off(16).
  l_off = l_off + 16.
 APPEND wa TO it.
  CLEAR wa.
ENDDO.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Aug 2010 11:24:07 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2010-08-25T11:24:07Z</dc:date>
    <item>
      <title>Passing line text in a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-line-text-in-a-string/m-p/7147971#M1514218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advice how to pass text in a multiple lines so to a string so that every next line data only comes after 72 characters from the first irrespective of the characters of data existing in previous line..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex. My Name is Ankur ==&amp;gt; Line 1&lt;/P&gt;&lt;P&gt;            What is your Name? ==&amp;gt; Line 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is passed in a string in such a way that the Line 2 text only comes after 72 characters of first line whether or not it has that many characters in its text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looping the internal table whch holds multiple line text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ankur&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 07:28:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-line-text-in-a-string/m-p/7147971#M1514218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-25T07:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Passing line text in a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-line-text-in-a-string/m-p/7147972#M1514219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please ignore this!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;raghu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Raghavendra  nilekani on Aug 25, 2010 1:13 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 07:37:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-line-text-in-a-string/m-p/7147972#M1514219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-25T07:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: Passing line text in a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-line-text-in-a-string/m-p/7147973#M1514220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can find the strlen and if string length is greater than 72 , write text to new line .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 07:49:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-line-text-in-a-string/m-p/7147973#M1514220</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2010-08-25T07:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Passing line text in a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-line-text-in-a-string/m-p/7147974#M1514221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use function module "TEXT_SPLIT"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lalit Mohan Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 10:07:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-line-text-in-a-string/m-p/7147974#M1514221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-25T10:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Passing line text in a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-line-text-in-a-string/m-p/7147975#M1514222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can try a logic something similar to this. here it considers 16 chaarcters&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:BEGIN OF wa,
     line(72),
     END OF wa.
DATA:it TYPE TABLE OF char72.
DATA:lv_string TYPE string.
DATA:len TYPE i,
     l_off TYPE i,
     r_off TYPE i,
     lam type i.
lv_string = '123123jbjskdhvkkxzncjkn1234123jhjkhzkdvczjcklzxjcklxjzclkzxjcklj13j12kl3j1kljlk12j3kjlk2j3'.
l_off = 0.
r_off = 16.
len = STRLEN( lv_string ) - 1.
DO.
    lam = l_off + 16.
    if lam &amp;gt;= len.
    lam = len - l_off.
    wa-line = lv_string+l_off(lam).
    APPEND wa TO it.
    CLEAR wa.
    EXIT.
  ENDIF.
  wa-line = lv_string+l_off(16).
  l_off = l_off + 16.
 APPEND wa TO it.
  CLEAR wa.
ENDDO.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 11:24:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-line-text-in-a-string/m-p/7147975#M1514222</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-08-25T11:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Passing line text in a string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/passing-line-text-in-a-string/m-p/7147976#M1514223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or you can use the function RKD_WORD_WRAP , pass string to TEXTLINE and 132 to OUTPUTLEN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 11:35:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/passing-line-text-in-a-string/m-p/7147976#M1514223</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-08-25T11:35:31Z</dc:date>
    </item>
  </channel>
</rss>

