<?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 Spool not generated for program RSVTPROT when run in background in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-not-generated-for-program-rsvtprot-when-run-in-background/m-p/11936947#M1965206</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;SCC4 changes can be checked using the standard change log functionality. &lt;/P&gt;
  &lt;P&gt;The program which actually runs in the background is RSVTPROT.&lt;/P&gt;
  &lt;P&gt;I have a requirement where there is a need to capture the change log in a pdf and send in email.&lt;/P&gt;
  &lt;P&gt;The data should be displayed in the exact format as when viewed from SCC4 transaction &lt;/P&gt;
  &lt;P&gt;Utilities -&amp;gt; Change Log.&lt;/P&gt;
  &lt;P&gt;All runs well when I use " SUBMIT RSVTPROT TO SAP-SPOOL SPOOL PARAMETERS print_parameters WITHOUT SPOOL DYNPRO VIA JOB job_name NUMBER job_number&lt;/P&gt;
  &lt;P&gt;AND RETURN." command in the foreground and this the exact output that is needed.&lt;/P&gt;
  &lt;P&gt;But when I schedule a background job the spool is not generated.&lt;/P&gt;
  &lt;P&gt;So, the question is , will it be possible to run RSVTPROT in background and generate a spool.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Ayan&lt;/P&gt;</description>
    <pubDate>Fri, 17 May 2019 13:20:54 GMT</pubDate>
    <dc:creator>ayan_chakraborty</dc:creator>
    <dc:date>2019-05-17T13:20:54Z</dc:date>
    <item>
      <title>Spool not generated for program RSVTPROT when run in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-not-generated-for-program-rsvtprot-when-run-in-background/m-p/11936947#M1965206</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;SCC4 changes can be checked using the standard change log functionality. &lt;/P&gt;
  &lt;P&gt;The program which actually runs in the background is RSVTPROT.&lt;/P&gt;
  &lt;P&gt;I have a requirement where there is a need to capture the change log in a pdf and send in email.&lt;/P&gt;
  &lt;P&gt;The data should be displayed in the exact format as when viewed from SCC4 transaction &lt;/P&gt;
  &lt;P&gt;Utilities -&amp;gt; Change Log.&lt;/P&gt;
  &lt;P&gt;All runs well when I use " SUBMIT RSVTPROT TO SAP-SPOOL SPOOL PARAMETERS print_parameters WITHOUT SPOOL DYNPRO VIA JOB job_name NUMBER job_number&lt;/P&gt;
  &lt;P&gt;AND RETURN." command in the foreground and this the exact output that is needed.&lt;/P&gt;
  &lt;P&gt;But when I schedule a background job the spool is not generated.&lt;/P&gt;
  &lt;P&gt;So, the question is , will it be possible to run RSVTPROT in background and generate a spool.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Ayan&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 13:20:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-not-generated-for-program-rsvtprot-when-run-in-background/m-p/11936947#M1965206</guid>
      <dc:creator>ayan_chakraborty</dc:creator>
      <dc:date>2019-05-17T13:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Spool not generated for program RSVTPROT when run in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-not-generated-for-program-rsvtprot-when-run-in-background/m-p/11936948#M1965207</link>
      <description>&lt;P&gt;Why are you using SUBMIT? Just run the program as a step in a background job and use spool output distribution option in the job definition to send output by email. It won't be in PDF but that is much simpler process.&lt;/P&gt;&lt;P&gt;Also is this not covered already by the CCMS tools? I'm not a Basis person but monitoring / alert functionality is quite robust from what I've heard.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 17:33:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-not-generated-for-program-rsvtprot-when-run-in-background/m-p/11936948#M1965207</guid>
      <dc:creator>Jelena_Perfiljeva</dc:creator>
      <dc:date>2019-05-30T17:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Spool not generated for program RSVTPROT when run in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-not-generated-for-program-rsvtprot-when-run-in-background/m-p/11936949#M1965208</link>
      <description>&lt;P&gt;Hi Jelena,&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;In my case, I have a very specific requirement where the change logs are needed only as a pdf attachment in a predefined email body.&lt;/P&gt;&lt;P&gt;As you rightly said and I did a test from my side as well, running the program RSVTPROT as a step in a background job generates the spool although not in pdf. This spool serves the purpose for me as it has all the details.&lt;/P&gt;&lt;P&gt;Here as well, it is in fact a background job and so I am not quite able to understand why the same would not work via a SUBMIT statement which is turn is also trying to run program RSVTPROT via a job.&lt;/P&gt;&lt;P&gt;Some insights on this restrictive behavior of SUBMIT statement would be very helpful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ayan&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 19:26:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-not-generated-for-program-rsvtprot-when-run-in-background/m-p/11936949#M1965208</guid>
      <dc:creator>ayan_chakraborty</dc:creator>
      <dc:date>2019-07-01T19:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Spool not generated for program RSVTPROT when run in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-not-generated-for-program-rsvtprot-when-run-in-background/m-p/11936950#M1965209</link>
      <description>&lt;P&gt;you may try to export it in ALV output and get it through cl_salv_bs_runtime_info&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 01:00:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-not-generated-for-program-rsvtprot-when-run-in-background/m-p/11936950#M1965209</guid>
      <dc:creator>DoanManhQuynh</dc:creator>
      <dc:date>2019-07-02T01:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: Spool not generated for program RSVTPROT when run in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-not-generated-for-program-rsvtprot-when-run-in-background/m-p/11936951#M1965210</link>
      <description>&lt;P&gt;Hi Ayan,&lt;/P&gt;&lt;P&gt;Try debugging background job in SM37 , check the submit statement.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Set a break-point in report RSVTPROT&lt;/LI&gt;&lt;LI&gt;In SM37 transaction, put the cursor on the &lt;STRONG&gt;job&lt;/STRONG&gt; line, type 'JDBG' in the command line and press enter.&lt;/LI&gt;&lt;LI&gt;Job will start in debug mode.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Muhammed M&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 07:51:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-not-generated-for-program-rsvtprot-when-run-in-background/m-p/11936951#M1965210</guid>
      <dc:creator>former_member608267</dc:creator>
      <dc:date>2019-07-02T07:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: Spool not generated for program RSVTPROT when run in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-not-generated-for-program-rsvtprot-when-run-in-background/m-p/11936952#M1965211</link>
      <description>&lt;P&gt;Nothing special about RSVTPROT. Running it via a job launched programmatically is the same as running via a manual job. You have just a programming error in your code.&lt;/P&gt;&lt;P&gt;PS: please share your code so that we can help you.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 11:36:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-not-generated-for-program-rsvtprot-when-run-in-background/m-p/11936952#M1965211</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-07-02T11:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: Spool not generated for program RSVTPROT when run in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-not-generated-for-program-rsvtprot-when-run-in-background/m-p/11936953#M1965212</link>
      <description>&lt;P&gt;SPAN {
font-family: "Courier New";
font-size: 10pt;
color: #000000;
background: #FFFFFF;
}
.L0S52 {
color: #0000FF;
}
.L0S55 {
color: #800080;
}
.L0S70 {
color: #808080;
}&lt;/P&gt;&lt;P&gt;    cl_salv_bs_runtime_info=&amp;gt;set( EXPORTING display = abap_true&lt;BR /&gt;
 metadata = abap_false&lt;BR /&gt;
 data = abap_true ).&lt;/P&gt;&lt;P&gt;Check the above code where ever u r using and make display abap_true during sy-batch is abap_true.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Jul 2019 15:01:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-not-generated-for-program-rsvtprot-when-run-in-background/m-p/11936953#M1965212</guid>
      <dc:creator>former_member210963</dc:creator>
      <dc:date>2019-07-12T15:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Spool not generated for program RSVTPROT when run in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-not-generated-for-program-rsvtprot-when-run-in-background/m-p/11936954#M1965213</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Below is the code where I am calling RSVTPROT with a variant by the name 'TEST' :-&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'JOB_OPEN'&lt;BR /&gt;EXPORTING&lt;BR /&gt;jobname = job_name&lt;BR /&gt;IMPORTING&lt;BR /&gt;jobcount = job_number&lt;BR /&gt;EXCEPTIONS&lt;BR /&gt;cant_create_job = 1&lt;BR /&gt;invalid_job_data = 2&lt;BR /&gt;jobname_missing = 3&lt;/P&gt;&lt;P&gt;OTHERS = 4.&lt;/P&gt;&lt;P&gt;SUBMIT RSVTPROT USING SELECTION-SET 'TEST'&lt;/P&gt;&lt;P&gt;TO SAP-SPOOL&lt;BR /&gt;SPOOL PARAMETERS print_parameters&lt;BR /&gt;WITHOUT SPOOL DYNPRO&lt;BR /&gt;VIA JOB job_name NUMBER job_number&lt;BR /&gt;AND RETURN.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'JOB_CLOSE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;BR /&gt; jobcount = job_number&lt;BR /&gt; jobname = job_name&lt;BR /&gt; strtimmed = 'X'&lt;BR /&gt;EXCEPTIONS&lt;BR /&gt; cant_start_immediate = 1&lt;BR /&gt; invalid_startdate = 2&lt;BR /&gt; jobname_missing = 3&lt;BR /&gt; job_close_failed = 4&lt;BR /&gt; job_nosteps = 5&lt;BR /&gt; job_notex = 6&lt;BR /&gt; lock_failed = 7&lt;BR /&gt;OTHERS = 8.&lt;/P&gt;&lt;P&gt;This is not generating a spool number when run in background mode through a batch job.&lt;/P&gt;&lt;P&gt;But works fine when I am running it in foreground.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ayan&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 10:37:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-not-generated-for-program-rsvtprot-when-run-in-background/m-p/11936954#M1965213</guid>
      <dc:creator>ayan_chakraborty</dc:creator>
      <dc:date>2019-07-16T10:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Spool not generated for program RSVTPROT when run in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-not-generated-for-program-rsvtprot-when-run-in-background/m-p/11936955#M1965214</link>
      <description>&lt;P&gt;Hi Sivanadh,&lt;/P&gt;&lt;P&gt;My problem is that that spool is not getting generated through SUBMIT statement when run in background mode. ALV is not the issue.&lt;/P&gt;&lt;P&gt;I will convert the spool to pdf and simply attach in email but to do this I first need the spool to be generated.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ayan &lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 10:44:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-not-generated-for-program-rsvtprot-when-run-in-background/m-p/11936955#M1965214</guid>
      <dc:creator>ayan_chakraborty</dc:creator>
      <dc:date>2019-07-16T10:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Spool not generated for program RSVTPROT when run in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-not-generated-for-program-rsvtprot-when-run-in-background/m-p/11936956#M1965215</link>
      <description>&lt;P&gt;I still have no issue, I get a spool. Could you handle and check the possible errors, missing authorizations, etc.?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 11:55:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-not-generated-for-program-rsvtprot-when-run-in-background/m-p/11936956#M1965215</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-07-16T11:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Spool not generated for program RSVTPROT when run in background</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/spool-not-generated-for-program-rsvtprot-when-run-in-background/m-p/11936957#M1965216</link>
      <description>&lt;P&gt;Hi Sandra,&lt;/P&gt;&lt;P&gt;Thanks for confirming from your end. This drove me to check why it does not work for me when it works for you.&lt;/P&gt;&lt;P&gt;Indeed, there was an issue with the printer name at my end. &lt;/P&gt;&lt;P&gt;Now I have used another printer as default and with this change the program is able to generate the spool even in background.&lt;/P&gt;&lt;P&gt;In all we can confidently conclude that there is nothing different about RSVTPROT when run in foreground or in background mode.&lt;/P&gt;&lt;P&gt;Thanks to everyone for their valuable inputs.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ayan&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 20:42:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/spool-not-generated-for-program-rsvtprot-when-run-in-background/m-p/11936957#M1965216</guid>
      <dc:creator>ayan_chakraborty</dc:creator>
      <dc:date>2019-07-16T20:42:47Z</dc:date>
    </item>
  </channel>
</rss>

