<?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 SUBMIT statement not generating spool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement-not-generating-spool/m-p/12149150#M1976843</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt;I am calling the standard progrom as below:&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt; SUBMIT crm_socm_service_report TO SAP-SPOOL&lt;BR /&gt; SPOOL PARAMETERS priparms&lt;BR /&gt; WITHOUT SPOOL DYNPRO&lt;BR /&gt; VIA JOB lv_jobname NUMBER lv_jobcount&lt;BR /&gt; AND RETURN&lt;BR /&gt; WITH pmy = pmy&lt;BR /&gt; WITH poffice = poffice&lt;BR /&gt; WITH pcoll = pcoll&lt;BR /&gt; WITH pteam = pteam&lt;BR /&gt; WITH pstatop = pstatop&lt;BR /&gt; WITH pstatcl = pstatcl&lt;BR /&gt; WITH pstatal = pstatal&lt;BR /&gt; WITH sobject = sobject-low&lt;BR /&gt; WITH cancel = abap_true&lt;BR /&gt; WITH next = abap_false&lt;BR /&gt; WITH noupd = abap_false&lt;BR /&gt; WITH SELECTION-TABLE lt_selection.&lt;BR /&gt; WAIT UP TO 5 SECONDS.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;lv_spool = sy-spono.&lt;/P&gt;
  &lt;P&gt; Spool number is not getting generated. Butwhen I checked in SP01, spool number is generated. Am I missing anything please let me know if anyone faced the same issue. Alsi I tries the below link but did not work.&lt;/P&gt;
  &lt;P&gt; &lt;A href="https://answers.sap.com/questions/6208087/submit-statement-not-generating-spool.html"&gt;SUBMIT statement not generaitng spool&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt;HT&lt;/P&gt;</description>
    <pubDate>Wed, 19 Feb 2020 12:33:16 GMT</pubDate>
    <dc:creator>Bharath84</dc:creator>
    <dc:date>2020-02-19T12:33:16Z</dc:date>
    <item>
      <title>SUBMIT statement not generating spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement-not-generating-spool/m-p/12149150#M1976843</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
  &lt;P&gt;I am calling the standard progrom as below:&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt; SUBMIT crm_socm_service_report TO SAP-SPOOL&lt;BR /&gt; SPOOL PARAMETERS priparms&lt;BR /&gt; WITHOUT SPOOL DYNPRO&lt;BR /&gt; VIA JOB lv_jobname NUMBER lv_jobcount&lt;BR /&gt; AND RETURN&lt;BR /&gt; WITH pmy = pmy&lt;BR /&gt; WITH poffice = poffice&lt;BR /&gt; WITH pcoll = pcoll&lt;BR /&gt; WITH pteam = pteam&lt;BR /&gt; WITH pstatop = pstatop&lt;BR /&gt; WITH pstatcl = pstatcl&lt;BR /&gt; WITH pstatal = pstatal&lt;BR /&gt; WITH sobject = sobject-low&lt;BR /&gt; WITH cancel = abap_true&lt;BR /&gt; WITH next = abap_false&lt;BR /&gt; WITH noupd = abap_false&lt;BR /&gt; WITH SELECTION-TABLE lt_selection.&lt;BR /&gt; WAIT UP TO 5 SECONDS.&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;lv_spool = sy-spono.&lt;/P&gt;
  &lt;P&gt; Spool number is not getting generated. Butwhen I checked in SP01, spool number is generated. Am I missing anything please let me know if anyone faced the same issue. Alsi I tries the below link but did not work.&lt;/P&gt;
  &lt;P&gt; &lt;A href="https://answers.sap.com/questions/6208087/submit-statement-not-generating-spool.html"&gt;SUBMIT statement not generaitng spool&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt;HT&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 12:33:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement-not-generating-spool/m-p/12149150#M1976843</guid>
      <dc:creator>Bharath84</dc:creator>
      <dc:date>2020-02-19T12:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT statement not generating spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement-not-generating-spool/m-p/12149151#M1976844</link>
      <description>&lt;P&gt;Could you give us your real objective ? maybe there is another way to proceed &lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 12:37:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement-not-generating-spool/m-p/12149151#M1976844</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2020-02-19T12:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT statement not generating spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement-not-generating-spool/m-p/12149152#M1976845</link>
      <description>&lt;P&gt;I have to read the data from the spool into internal table and display it in the output. This is what I am trying to do. But in debugging, spool no is 00000000.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 12:58:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement-not-generating-spool/m-p/12149152#M1976845</guid>
      <dc:creator>Bharath84</dc:creator>
      <dc:date>2020-02-19T12:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT statement not generating spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement-not-generating-spool/m-p/12149153#M1976846</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;SUBMIT (p_prog) VIA SELECTION-SCREEN AND RETURN EXPORTING LIST TO MEMORY.


CALL FUNCTION ‘LIST_FROM_MEMORY’     
TABLES       
listobject = it_listobj     
EXCEPTIONS       
not_found  = 1       
OTHERS     = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;you could export to memory directly&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 13:04:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement-not-generating-spool/m-p/12149153#M1976846</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2020-02-19T13:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT statement not generating spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement-not-generating-spool/m-p/12149154#M1976847</link>
      <description>&lt;P&gt;To sum up your code, you launched a background job and you have a code to wait and get the ID of the spool request generated by the job:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'JOB_OPEN' ...
SUBMIT ... VIA JOB ... TO SAP-SPOOL ...
WAIT UP TO ...
spoolnumber = sy-spono.
CALL FUNCTION 'JOB_CLOSE' ...
" the rest of your algorithm&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So, it's normal that SY-SPONO is not initialized by the spool generated in the submitted background job. System fields correspond to data in the current session, not in other sessions.&lt;/P&gt;&lt;P&gt;Moreover, WAIT UP TO ... makes no sense, how can you know the duration of a background job !&lt;/P&gt;&lt;P&gt;If you want to stick to the job solution, you'd better add a second step (custom program to create) to your job, that is started right after the first step, read the spool numbers in table TBTC_SPOOLID, and do the rest of your algorithm in that new program. Of course, it means that you need to split your main program. I don't know if it's worth the try.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 13:13:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement-not-generating-spool/m-p/12149154#M1976847</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-02-19T13:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT statement not generating spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement-not-generating-spool/m-p/12149155#M1976848</link>
      <description>&lt;P&gt;Please use the COMMENT button for comments, questions, adding details, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area. At the same time, the person will be informed of your comment (currently not).&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2020 13:14:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement-not-generating-spool/m-p/12149155#M1976848</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-02-19T13:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT statement not generating spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement-not-generating-spool/m-p/12149156#M1976849</link>
      <description>&lt;P&gt;I have tried LIST TO MEMORY and when my SUBMIT report is crm_socm_service_report is executed, in the report output I am getting the below error and exiting from my report.&lt;/P&gt;&lt;P&gt;error:SET SCREEN not allowed in subscreen(screen: SAPLSBL_DISPLAY 0101). If I use TO SPOOL, I am not getting this error. Any idea why this error is coming.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2020 08:25:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement-not-generating-spool/m-p/12149156#M1976849</guid>
      <dc:creator>Bharath84</dc:creator>
      <dc:date>2020-02-20T08:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: SUBMIT statement not generating spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement-not-generating-spool/m-p/12149157#M1976850</link>
      <description>&lt;P&gt;The question title is incorrect. This one would be better:&lt;/P&gt;&lt;H1&gt;Can't get spool number created by job&lt;/H1&gt;</description>
      <pubDate>Thu, 20 Feb 2020 09:07:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/submit-statement-not-generating-spool/m-p/12149157#M1976850</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2020-02-20T09:07:50Z</dc:date>
    </item>
  </channel>
</rss>

