<?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 query on write statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-write-statement/m-p/1495333#M230022</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;   How can i split a string literal into two lines&lt;/P&gt;&lt;P&gt;    for a single statement.&lt;/P&gt;&lt;P&gt;    i.e. write:/ 'some string &lt;/P&gt;&lt;P&gt;                        continuing here '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    This gives error how to over come this other than&lt;/P&gt;&lt;P&gt;        write: 'some string',&lt;/P&gt;&lt;P&gt;               'continuing here'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Aug 2006 06:32:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-18T06:32:56Z</dc:date>
    <item>
      <title>query on write statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-write-statement/m-p/1495333#M230022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;   How can i split a string literal into two lines&lt;/P&gt;&lt;P&gt;    for a single statement.&lt;/P&gt;&lt;P&gt;    i.e. write:/ 'some string &lt;/P&gt;&lt;P&gt;                        continuing here '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    This gives error how to over come this other than&lt;/P&gt;&lt;P&gt;        write: 'some string',&lt;/P&gt;&lt;P&gt;               'continuing here'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2006 06:32:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-write-statement/m-p/1495333#M230022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-18T06:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: query on write statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-write-statement/m-p/1495334#M230023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;Hi

  You can use this method.

data: l_text(200) type c.

  concatenate 'some string' 
              'continuing here'
              into l_text separated by space.

  write:/ l_text.

Kind Regards
Eswar&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2006 06:36:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-write-statement/m-p/1495334#M230023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-18T06:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: query on write statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-write-statement/m-p/1495335#M230024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi abhimanyu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The system won't understand&lt;/P&gt;&lt;P&gt;   the broken string.&lt;/P&gt;&lt;P&gt;  Hence, it will always give error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Other option&lt;/P&gt;&lt;P&gt;   is not to use the 72 length setting in&lt;/P&gt;&lt;P&gt;   abap editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. in se38 program source code,&lt;/P&gt;&lt;P&gt;   click the menu   &lt;/P&gt;&lt;P&gt;  UTILITIES----&amp;gt;SETTINGS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.  untick the checkbox for&lt;/P&gt;&lt;P&gt;   'Downward compatible line length(72)'   &lt;/P&gt;&lt;P&gt;&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2006 06:36:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-write-statement/m-p/1495335#M230024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-18T06:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: query on write statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-write-statement/m-p/1495336#M230025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To split a character string into two or more smaller strings, use the SPLIT statement as follows:&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;&lt;/P&gt;&lt;P&gt;The system searches the field &amp;lt;c&amp;gt; for the separator &amp;lt;del&amp;gt;. The parts before and after the separator are placed in the target fields &amp;lt;c1&amp;gt; ... &amp;lt;cn&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To place all fragments in different target fields, you must specify enough target fields. Otherwise, the last target field is filled with the rest of the field &amp;lt;c&amp;gt; and still contains delimiters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all target fields are long enough and no fragment has to be truncated, SY-SUBRC is set to 0. Otherwise it is set to 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: STRING(60),&lt;/P&gt;&lt;P&gt;P1(20) VALUE '++++++++++++++++++++',&lt;/P&gt;&lt;P&gt;P2(20) VALUE '++++++++++++++++++++',&lt;/P&gt;&lt;P&gt;P3(20) VALUE '++++++++++++++++++++',&lt;/P&gt;&lt;P&gt;P4(20) VALUE '++++++++++++++++++++',&lt;/P&gt;&lt;P&gt;DEL(3) VALUE '***'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STRING = ' Part 1 *** Part 2 *** Part 3 *** Part 4 *** Part 5'.&lt;/P&gt;&lt;P&gt;WRITE STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT STRING AT DEL INTO P1 P2 P3 P4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE / P1.&lt;/P&gt;&lt;P&gt;WRITE / P2.&lt;/P&gt;&lt;P&gt;WRITE / P3.&lt;/P&gt;&lt;P&gt;WRITE / P4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output appears as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part 1 *** Part 2 *** Part 3 *** Part 4 *** Part 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part 4 *** Part 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the contents of the fields P1 ...P4 are totally overwritten and that they are filled out with trailing blanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also split a string into the individual lines of an internal table as follows: &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 TABLE &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system adds a new line to the internal table &amp;lt;itab&amp;gt; for each part of the string.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2006 06:38:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-write-statement/m-p/1495336#M230025</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-18T06:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: query on write statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-write-statement/m-p/1495337#M230026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : v_char(100) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_char = 'some string continuing here'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now use OFFSET to get some no of characters from V_CHAR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; V_CHAR+0(11) ,&lt;/P&gt;&lt;P&gt;         V_CHAR+11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will print your 1 variable value in 2 lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Aug 2006 06:59:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-on-write-statement/m-p/1495337#M230026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-18T06:59:00Z</dc:date>
    </item>
  </channel>
</rss>

