<?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: Block the abap instruction : write in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442269#M1412454</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I put a test in front of each "write" its was the simplest solution in a court term&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2009 11:52:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-25T11:52:53Z</dc:date>
    <item>
      <title>Block the abap instruction : write</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442253#M1412438</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;Is it possible to block the abap instruction : write.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write 'My name is Marc Frenay'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if xxx = 1.&lt;/P&gt;&lt;P&gt;  set log off  (this is a example)&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  set log on  (this is a example)&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need an other instruction that set log on/off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 07:39:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442253#M1412438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-25T07:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Block the abap instruction : write</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442254#M1412439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your questions not clear. Pl. give more specific&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 08:29:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442254#M1412439</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-11-25T08:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Block the abap instruction : write</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442255#M1412440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marc,&lt;/P&gt;&lt;P&gt;your question is not quite clear. What do you realy want to do?&lt;/P&gt;&lt;P&gt;What kind of log do you mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 08:30:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442255#M1412440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-25T08:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Block the abap instruction : write</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442256#M1412441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You know that when you but a 'write' a line is displayed in the ouput. ok?&lt;/P&gt;&lt;P&gt;I want nothing in my output whithout erase the "write" instruction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it clear?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 08:32:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442256#M1412441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-25T08:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Block the abap instruction : write</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442257#M1412442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you explaing with respect to the functionality probabaly with a piece of code what is the output you want?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For writing to the spool execute the program in background or pass it to an FM that writes in spool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 08:36:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442257#M1412442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-25T08:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Block the abap instruction : write</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442258#M1412443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
END-OF-SELECTION.
  LEAVE LIST-PROCESSING.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Markus Stange on Nov 25, 2009 9:38 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 08:37:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442258#M1412443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-25T08:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Block the abap instruction : write</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442259#M1412444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry my english is not perfect but i already put a piece of code.&lt;/P&gt;&lt;P&gt;All i need if is exists is a instruction whitch remplace my fake instruction set log for the "write" does nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry but i can't be more clear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 08:41:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442259#M1412444</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-25T08:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Block the abap instruction : write</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442260#M1412445</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;Is this what you are looking for:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
v_log TYPE flag.

if xxx = 1.
CLEAR v_log .
else.
v_log = 'X'.
endif.

IF v_log = 'X'.
write 'My name is Marc Frenay'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF xxx NE 1.
write 'My name is Marc Frenay'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&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>Wed, 25 Nov 2009 08:41:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442260#M1412445</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-11-25T08:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Block the abap instruction : write</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442261#M1412446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's a good solution but i have a lot of "write" and i posted this thread to avoid put a test in front of each "write"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 08:45:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442261#M1412446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-25T08:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Block the abap instruction : write</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442262#M1412447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am confused like others are. What exactly do you want to achieve?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be you can try this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF xxx = 1.
LEAVE LIST-PROCESSING.
ENDIF.&lt;/CODE&gt;&lt;/PRE&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>Wed, 25 Nov 2009 08:48:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442262#M1412447</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-11-25T08:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Block the abap instruction : write</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442263#M1412448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I understood from the discussions and the comments above is you do not wish to erase the write statements and at the same time you do not want to have the statements that get written in the output using the WRITE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have understood the requirement correctly then probably you can simply comment all the WRITE statements that are used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the write statement you are using is  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WRITE  'My name is Marc Frenay'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can comment it by simply putting a '*' at the begining.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* WRITE 'My name is Marc Frenay'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this. You will not have to erase the write statements and also the output of the write statement will not appear in the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 09:37:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442263#M1412448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-25T09:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Block the abap instruction : write</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442264#M1412449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it's exactly this but for me put on commentary or erase the instruction is the same but you have understood my problem &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 09:49:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442264#M1412449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-25T09:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: Block the abap instruction : write</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442265#M1412450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you may have to clone the program and comment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 09:51:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442265#M1412450</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-11-25T09:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Block the abap instruction : write</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442266#M1412451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
new-page print on no dialog .

write : / 'text'.

new-page print off&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just put new-page print on in the beginning of ur code , and page off at the end . Itwill send output to spool . Get spool number and using FM delete that spool.&lt;/P&gt;&lt;P&gt;But why bother doing all this . some1 has alread suggested to use Leave list processing  after end-of-selection. did you try that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 09:58:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442266#M1412451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-25T09:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Block the abap instruction : write</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442267#M1412452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rajesh!&lt;/P&gt;&lt;P&gt;I'm getting a little bit confused of this thread...&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 10:24:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442267#M1412452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-25T10:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Block the abap instruction : write</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442268#M1412453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; But why bother doing all this . some1 has alread suggested to use Leave list processing  after end-of-selection. did you try that?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd imagine the code he's working on hasn't separated out data selection/processing from data display.  You know:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WRITE: / 'This is my header'.
SELECT ...
  WRITE: / 'Some more data'...
ENDSELECT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 11:48:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442268#M1412453</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-11-25T11:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Block the abap instruction : write</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442269#M1412454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I put a test in front of each "write" its was the simplest solution in a court term&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 11:52:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/block-the-abap-instruction-write/m-p/6442269#M1412454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-25T11:52:53Z</dc:date>
    </item>
  </channel>
</rss>

