<?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: Reg : Spool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-spool/m-p/867038#M49182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brad , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My req is The " selection report to customer".&lt;/P&gt;&lt;P&gt;I am passing " output type ( kschl)  and date( erdat) "&lt;/P&gt;&lt;P&gt;i am collecting the objky info from nast table respective to 'v3' application area.&lt;/P&gt;&lt;P&gt;From nast , i am getting so many billing doc(objky).&lt;/P&gt;&lt;P&gt;taking the objky info , i am getting the respective vbpa-kunnr( customer ) details  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each customer there are some detail reports assigned to it, which a am getting by calling FM "CLFM_SELECT_AUSP"&lt;/P&gt;&lt;P&gt;and passing the mafid , class type and customer number.&lt;/P&gt;&lt;P&gt;I am getting the customer details in table from the FM.&lt;/P&gt;&lt;P&gt;then i have to submit all these reports to one spool for this customer.&lt;/P&gt;&lt;P&gt;For another customer i should do the same proceedure to get the respective reports, and have to submit to another spool.&lt;/P&gt;&lt;P&gt;I am getting stuck here.&lt;/P&gt;&lt;P&gt;Regards ,&lt;/P&gt;&lt;P&gt;Amitav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 May 2005 06:44:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-05-12T06:44:13Z</dc:date>
    <item>
      <title>Reg : Spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-spool/m-p/867035#M49179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frens, &lt;/P&gt;&lt;P&gt;I am facing problem while assigning different reports one spool.&lt;/P&gt;&lt;P&gt;I am doing one selection report.&lt;/P&gt;&lt;P&gt;For each customer some different reports should be generated(more than 1 reportS).&lt;/P&gt;&lt;P&gt;All the reports assigned to each customer submitted to only one spool.&lt;/P&gt;&lt;P&gt;for each customer i want to create new spool.&lt;/P&gt;&lt;P&gt;Needed Help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2005 08:36:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-spool/m-p/867035#M49179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-09T08:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-spool/m-p/867036#M49180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amitav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a few options here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. From one central report per customer, SUBMIT the other reports with EXPORTING LIST TO MEMORY.  You can then from the central report import the lists and write them out (and hence only 1 report does the writing and only 1 spool is generated).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Run the reports normally and then merge the spools yourself.  See the function modules:&lt;/P&gt;&lt;P&gt;- RSPO_RETURN_ABAP_SPOOLJOB,&lt;/P&gt;&lt;P&gt;- RSPO_SR_OPEN&lt;/P&gt;&lt;P&gt;- RSPO_SR_WRITE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is an example of these function modules being used in the following thread: &lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="366946"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please remember to acknowledge those who help you by using the points system (this includes the EDI stuff from earlier... &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2005 08:46:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-spool/m-p/867036#M49180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-09T08:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-spool/m-p/867037#M49181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Amitav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a simple example of creating multiple spools within the same program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT z.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;data v_count(2) type n.&lt;/P&gt;&lt;P&gt;data v_text(30).&lt;/P&gt;&lt;P&gt;data: cover_text(68).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do 3 times.&lt;/P&gt;&lt;P&gt;  add 1 to v_count.&lt;/P&gt;&lt;P&gt;  concatenate 'LIST #' v_count into v_text.&lt;/P&gt;&lt;P&gt;  concatenate sy-repid(8)'-' 'Spool' '-' v_count into cover_text.&lt;/P&gt;&lt;P&gt;  new-page print on&lt;/P&gt;&lt;P&gt;     destination  'LB9'                "&amp;lt;&amp;lt;== my printer&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   receiver 'TJOSVOB'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;     cover text cover_text             "&amp;lt;&amp;lt;== Title or Spool req. name&lt;/P&gt;&lt;P&gt;     list name  v_text&lt;/P&gt;&lt;P&gt;     list dataset  v_text&lt;/P&gt;&lt;P&gt;     immediately  ' '                  " X means print now&lt;/P&gt;&lt;P&gt;     keep in spool 'X'                 " X means keep spool&lt;/P&gt;&lt;P&gt;     new list identification 'X'&lt;/P&gt;&lt;P&gt;     no dialog .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  write: / v_text.&lt;/P&gt;&lt;P&gt;  new-page print off.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2005 18:51:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-spool/m-p/867037#M49181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-09T18:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-spool/m-p/867038#M49182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brad , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My req is The " selection report to customer".&lt;/P&gt;&lt;P&gt;I am passing " output type ( kschl)  and date( erdat) "&lt;/P&gt;&lt;P&gt;i am collecting the objky info from nast table respective to 'v3' application area.&lt;/P&gt;&lt;P&gt;From nast , i am getting so many billing doc(objky).&lt;/P&gt;&lt;P&gt;taking the objky info , i am getting the respective vbpa-kunnr( customer ) details  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each customer there are some detail reports assigned to it, which a am getting by calling FM "CLFM_SELECT_AUSP"&lt;/P&gt;&lt;P&gt;and passing the mafid , class type and customer number.&lt;/P&gt;&lt;P&gt;I am getting the customer details in table from the FM.&lt;/P&gt;&lt;P&gt;then i have to submit all these reports to one spool for this customer.&lt;/P&gt;&lt;P&gt;For another customer i should do the same proceedure to get the respective reports, and have to submit to another spool.&lt;/P&gt;&lt;P&gt;I am getting stuck here.&lt;/P&gt;&lt;P&gt;Regards ,&lt;/P&gt;&lt;P&gt;Amitav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2005 06:44:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-spool/m-p/867038#M49182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-12T06:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-spool/m-p/867039#M49183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amitav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So why can't you use option 1 from my earlier post?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;1. From one central report per customer, SUBMIT the other reports with EXPORTING LIST TO MEMORY. You can then from the central report import the lists and write them out (and hence only 1 report does the writing and only 1 spool is generated).&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to better explain where you are getting stuck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2005 09:53:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-spool/m-p/867039#M49183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-12T09:53:41Z</dc:date>
    </item>
    <item>
      <title>Re: Reg : Spool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-spool/m-p/867040#M49184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To expand on my previous post:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I understand it, you have in one program a list of customers for which you must submit reports that should only be in one spool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what I would suggest is that for each customer you submit a batch job with a z program passing it the customer number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the z program you would select the reports for that customer using the function CLFM_SELECT_AUSP.  Once you have the list of reports for that customer you could use SUBMIT ... EXPORTING LIST TO MEMORY, and then import the list using LIST_FROM_MEMORY.  Then loop through the list and use write statements to write the list from the z program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus, your z program would run once for each customer in a batch job, and it would produce one spool which would contain all the reports that need to be executed for that customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That should work fine yes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Brad Williams&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2005 10:16:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-spool/m-p/867040#M49184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-12T10:16:08Z</dc:date>
    </item>
  </channel>
</rss>

