<?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: WRITE issue with / in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-issue-with/m-p/4014190#M959130</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;go through this link , you can find the details abt the write statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e1635c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e1635c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In first write (write: / .)you set the cursor to the next line and in the next write (write: temp.)&lt;/P&gt;&lt;P&gt;your writing the content of the variable temp.&lt;/P&gt;&lt;P&gt;In abap the statements get execute line by line, so first write executed then then next one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can check by writing the statement reverse.&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA v8(7) TYPE n value '1234567'.
WRITE: v8 .
WRITE:/.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Adil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Syed  Abdul Adil on Jun 24, 2008 11:20 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jun 2008 09:18:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-24T09:18:13Z</dc:date>
    <item>
      <title>WRITE issue with /</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-issue-with/m-p/4014189#M959129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I come from C, and if I'm not wrong, the following doesn't work alike ABAP:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WRITE /.
  WRITE TEMP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to my understanding, in the code above I order the program to move the cursor to the next line. Then I ask it to write the contents of TEMP, but without moving from this line to another. But the output prints the contents on a line below the new one obtained after the &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WRITE / .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why does this happen ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Avraham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 09:10:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-issue-with/m-p/4014189#M959129</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T09:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: WRITE issue with /</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-issue-with/m-p/4014190#M959130</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;go through this link , you can find the details abt the write statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e1635c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9e1635c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In first write (write: / .)you set the cursor to the next line and in the next write (write: temp.)&lt;/P&gt;&lt;P&gt;your writing the content of the variable temp.&lt;/P&gt;&lt;P&gt;In abap the statements get execute line by line, so first write executed then then next one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can check by writing the statement reverse.&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA v8(7) TYPE n value '1234567'.
WRITE: v8 .
WRITE:/.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Adil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Syed  Abdul Adil on Jun 24, 2008 11:20 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 09:18:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-issue-with/m-p/4014190#M959130</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T09:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: WRITE issue with /</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-issue-with/m-p/4014191#M959131</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;Thought provoking question. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE /. &lt;/P&gt;&lt;P&gt;Effect : This statement has the same effect as the statement SKIP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so if we use write /, it will skip a line in the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;teja.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 09:18:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-issue-with/m-p/4014191#M959131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T09:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: WRITE issue with /</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-issue-with/m-p/4014192#M959132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just use: WRITE:/ TEMP. (and use SKIP to move to another line).&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;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 09:18:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-issue-with/m-p/4014192#M959132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T09:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: WRITE issue with /</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-issue-with/m-p/4014193#M959133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this code from help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WRITE   '--'.
WRITE / '|'.

SKIP TO LINE 1.
ULINE AT 5(6).
NEW-LINE.
WRITE 10 '|'.

SKIP TO LINE 4.
WRITE: '|        |',
     / '----------'. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u would be able to find the difference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SKIP TO LINE 3.
ULINE AT 2(1).
WRITE 4  '-'.
WRITE 6  '--'.
WRITE 9  '---'.
ULINE AT 12(4).

SKIP TO LINE 1.
POSITION 18.
WRITE '|'.

SKIP TO LINE 3.
DO 4 TIMES.
  NEW-LINE.
  POSITION 18.
  WRITE '|'.
ENDDO.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 09:18:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-issue-with/m-p/4014193#M959133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T09:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: WRITE issue with /</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-issue-with/m-p/4014194#M959134</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;WRITE /.&lt;/P&gt;&lt;P&gt;  WRITE TEMP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above will work this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE /.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will print a empty line.(in second row)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE TEMP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will print temp data next to empty line.(in third row)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 09:22:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-issue-with/m-p/4014194#M959134</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2008-06-24T09:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: WRITE issue with /</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-issue-with/m-p/4014195#M959135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So then, Teja, why doesn't the following statement give me the same output as &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WRITE: /, TEMP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;   :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WRITE / TEMP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement above works just as if I were in C.&lt;/P&gt;&lt;P&gt;But for some reason the 1st statement above inserts a new line, and yet prints TEMP on another new line. That's what I don't get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S: It's good to remark that &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WRITE: / v6, v7.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  will print the contents of v6 and v7 on the same line, meaning the answer can't be "every WRITE statement alone prints in a new line".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didn't check the code someone posted above stating I will get the difference yet. Will do that when I have more free time here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for trying to help.&lt;/P&gt;&lt;P&gt;Avraham&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Avraham Kahana on Jun 24, 2008 11:40 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 09:39:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-issue-with/m-p/4014195#M959135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T09:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: WRITE issue with /</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-issue-with/m-p/4014196#M959136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avraham,&lt;/P&gt;&lt;P&gt;            &lt;/P&gt;&lt;P&gt;        No, every WRITE Statement does not trigger a new line, that is a Write statement does not mean that it writes in a  new line. We should specify to it to write in new line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: &lt;/P&gt;&lt;P&gt;     write:/ 'Hello'.&lt;/P&gt;&lt;P&gt;     write: 'World'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output would be 'Hello World'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we want to get World in new line, we should write as,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     write:/ 'Hello'.&lt;/P&gt;&lt;P&gt;     write:/ 'World'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chnadra Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 11:29:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-issue-with/m-p/4014196#M959136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T11:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: WRITE issue with /</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-issue-with/m-p/4014197#M959137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avraham ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in ABAP,  '/ ' operator generates a new-line only with respect to its pervious line in the LIST. in your code, you used it in 1st line . So it doesn't get any reference With respect to which it will drop the line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: 'Hello'.&lt;/P&gt;&lt;P&gt;write: /'Avraham'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will write 'Avraham'  in 2nd line as it get the reference of  'Hello'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to start your 1st output line from 2nd row in the list, use skip. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;skip.&lt;/P&gt;&lt;P&gt;write:'Avraham',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if find helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anirban Bhattacharjee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 11:43:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-issue-with/m-p/4014197#M959137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T11:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: WRITE issue with /</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-issue-with/m-p/4014198#M959138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Avraham!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WRITE /. will produce a line feed.&lt;/P&gt;&lt;P&gt;     WRITE TEMP. will output the value of TEMP on the next&lt;/P&gt;&lt;P&gt;     line.&lt;/P&gt;&lt;P&gt;     But if u use WRITE / TEMP.&lt;/P&gt;&lt;P&gt;--&amp;gt; It outputs the value of TEMP on the next line if there are any output lines before it. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;--&amp;gt; It outputs the value of TEMP on the first line of the list if there are no output lines before it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 11:48:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-issue-with/m-p/4014198#M959138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T11:48:56Z</dc:date>
    </item>
  </channel>
</rss>

