<?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 statement buffer issue with SUBMIT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement-buffer-issue-with-submit/m-p/9834297#M1784422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's a very interesting approach and idea. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Oct 2013 12:22:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-10-29T12:22:19Z</dc:date>
    <item>
      <title>WRITE statement buffer issue with SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement-buffer-issue-with-submit/m-p/9834291#M1784416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I'm submitting 2 programs from my new main program to save development time. Within all 3 programs a WRITE statement is performed to a printer. The problem is that these WRITE statements are separated on OS level into multiple spools. This will cause a problem if someone else prints at the exact same time as now the prints are 'merged'. Is it possible to pause the BUFFER while submitting the 2 sub-programs and then only release the BUFFER once the programs return to the main program. Or is it possible to 'open' BUFFER and 'close' BUFFER similar to Smartforms 'open' SPOOL and 'close' SPOOL? If not, I'll just have to combine the code of the 3 programs into 1 to force a single BUFFER/SPOOL.&lt;/P&gt;&lt;P&gt;Thanks, Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 10:19:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement-buffer-issue-with-submit/m-p/9834291#M1784416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-29T10:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: WRITE statement buffer issue with SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement-buffer-issue-with-submit/m-p/9834292#M1784417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Possibly you could look into Submit statement with 'exporting list to memory'?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use function modules LIST_FROM_MEMORY, WRITE_LIST to output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 10:36:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement-buffer-issue-with-submit/m-p/9834292#M1784417</guid>
      <dc:creator>former_member201275</dc:creator>
      <dc:date>2013-10-29T10:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: WRITE statement buffer issue with SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement-buffer-issue-with-submit/m-p/9834293#M1784418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi adrian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is this WRITE statement related to printer i did not get you. Can you please explain the issue again?&amp;nbsp; You are submitting these two progrms from your report and reading the data back from spool?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 10:40:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement-buffer-issue-with-submit/m-p/9834293#M1784418</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2013-10-29T10:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: WRITE statement buffer issue with SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement-buffer-issue-with-submit/m-p/9834294#M1784419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Program A calls Program B which calls Program C.&lt;/P&gt;&lt;P&gt;Program A Prints certain group of labels and Program C prints certain group of labels.&lt;/P&gt;&lt;P&gt;The labels are printed with a WRITE statement. Not SAPScript. Not SmartForms.&lt;/P&gt;&lt;P&gt;The WRITE statements are based on comms with very old label printers (18 years).&lt;/P&gt;&lt;P&gt;So, program A generates a separate spool from program B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If someone happens to print at the same time, their spool could be in between program A spool and program B spool at OS level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the easiest may be to unfortunately just merge the 3 programs into 1 to avoid this possible negative testing scenario.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 11:53:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement-buffer-issue-with-submit/m-p/9834294#M1784419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-29T11:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: WRITE statement buffer issue with SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement-buffer-issue-with-submit/m-p/9834295#M1784420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adrian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i believe its not going to be an issue as they will be in different session and in different context. Consider a scenario multiple people are printing same thing will it interfere i dont think so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You program execution has its own area and other person executing it has its own.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont see any issue..Were you able to create this scenario?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagrds&lt;/P&gt;&lt;P&gt;NAbheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 12:00:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement-buffer-issue-with-submit/m-p/9834295#M1784420</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2013-10-29T12:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: WRITE statement buffer issue with SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement-buffer-issue-with-submit/m-p/9834296#M1784421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adrian, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before the write statement, when you are setting the print parameters, using FM &lt;SPAN style="font-family: Arial monospaced for SAP;"&gt;GET_PRINT_PARAMETERS, set parameter immediately = ' '. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will prevent any of the write statements from being printed immediately. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then after completing the third program, print the spool requests together using &lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;FM&lt;STRONG&gt; RSPO_RPRINT_SPOOLREQ &lt;/STRONG&gt;or FM &lt;/SPAN&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;&lt;STRONG style="font-size: 10pt;"&gt;RSPO_OUTPUT_SPOOL_REQUEST &lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;or directly from SP01. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 12:07:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement-buffer-issue-with-submit/m-p/9834296#M1784421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-29T12:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: WRITE statement buffer issue with SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement-buffer-issue-with-submit/m-p/9834297#M1784422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's a very interesting approach and idea. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Oct 2013 12:22:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement-buffer-issue-with-submit/m-p/9834297#M1784422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-29T12:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: WRITE statement buffer issue with SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement-buffer-issue-with-submit/m-p/9834298#M1784423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Just for the record, I merged the programs to eliminate the multiple spools at OS level, but it doesn't change. There are still multiple spools. I analyzed the code further and notice that the &lt;SPAN class="L0S52"&gt;NEW-PAGE &lt;SPAN class="L0S52"&gt;PRINT &lt;/SPAN&gt;OFF is used for every category of the printing e.g. 1)Header 2)Station Labels 3)Picking Labels and 4)Trailer. This is also exactly the number of spools I have - 4. So it looks like I can &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S52"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;combine the 4 spools into 1 if I reduce the number of &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;NEW-PAGE PRINT ON and &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;NEW-PAGE PRINT OFF to only occur once for the entire group of labels.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;Adrian&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 09:13:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement-buffer-issue-with-submit/m-p/9834298#M1784423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-30T09:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: WRITE statement buffer issue with SUBMIT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement-buffer-issue-with-submit/m-p/9834299#M1784424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was it. Following is the documentation from SAP for PRINT ON - it does create a new spool request and that's the cause of my problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The addition &lt;SPAN class="qtext"&gt;PRINT ON&lt;/SPAN&gt; creates a new &lt;A _jive_internal="true" class="grey" href="https://answers.sap.com/thread/SAPEVENT:ABENPRINT_LIST_LEVEL_GLOSRY" title="Glossary Entry"&gt;print list level&lt;/A&gt;. The first output statement after &lt;SPAN class="qtext"&gt;NEW-PAGE PRINT ON&lt;/SPAN&gt; opens a new &lt;A _jive_internal="true" class="grey" href="https://answers.sap.com/thread/SAPEVENT:ABENSPOOL_REQUEST_GLOSRY" title="Glossary Entry"&gt;spool request&lt;/A&gt; and writes to a &lt;A _jive_internal="true" class="grey" href="https://answers.sap.com/thread/SAPEVENT:ABENPRINT_LIST_GLOSRY" title="Glossary Entry"&gt;print list&lt;/A&gt; in the &lt;A _jive_internal="true" class="grey" href="https://answers.sap.com/thread/SAPEVENT:ABENSAP_SPOOL_SYSTEM_GLOSRY" title="Glossary Entry"&gt;SAP spool system&lt;/A&gt;. The number of the spool request is passed to &lt;SPAN class="qtext"&gt;sy-spono&lt;/SPAN&gt; by the first output statement. While it is being created, the print list is sent page by page to the SAP spool system. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 09:19:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/write-statement-buffer-issue-with-submit/m-p/9834299#M1784424</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-30T09:19:12Z</dc:date>
    </item>
  </channel>
</rss>

