<?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: Problem in spool generation using SUBMIT statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spool-generation-using-submit-statement/m-p/6253193#M1383989</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi abhishek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just to make sure you are still able to learn something from here: Please mark your code with the mouse, hit the above &amp;lt;_&amp;gt; Code button and check the results in the preview tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Oct 2009 07:30:42 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2009-10-28T07:30:42Z</dc:date>
    <item>
      <title>Problem in spool generation using SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spool-generation-using-submit-statement/m-p/6253189#M1383985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;                  I am facing a problem in getting the spool no using the SUBMIT statemet.I am exporting an internal table with some data and then importing the same in another dummy program to get the ALV list output.This dummy program is called using the SUBMIT TO SAP-SPOOL statement.&lt;/P&gt;&lt;P&gt;The code is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The trouble is the submit statement is not calling the dummy program in this case.What can be the problem here and how can it be resolved.In my dummy program I am simply using the exported table to convert into list display so as to get a spool no. for it.&lt;/P&gt;&lt;P&gt;   My objective is to get the spool no. for this sothat I can convert this spool to PDF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: abhishek singh on Oct 27, 2009 9:26 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: abhishek singh on Oct 27, 2009 9:27 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: abhishek singh on Oct 27, 2009 9:29 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Oct 27, 2009 4:41 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 20:26:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spool-generation-using-submit-statement/m-p/6253189#M1383985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T20:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in spool generation using SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spool-generation-using-submit-statement/m-p/6253190#M1383986</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;I dont believe you donT know how to post code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please try again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 20:31:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spool-generation-using-submit-statement/m-p/6253190#M1383986</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2009-10-27T20:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in spool generation using SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spool-generation-using-submit-statement/m-p/6253191#M1383987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts ,&lt;/P&gt;&lt;P&gt;                    I am posting the code again:&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;CALL FUNCTION 'JOB_OPEN'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      jobname          = lv_name&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      jobcount         = lv_number&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      cant_create_job  = 1&lt;/P&gt;&lt;P&gt;      invalid_job_data = 2&lt;/P&gt;&lt;P&gt;      jobname_missing  = 3&lt;/P&gt;&lt;P&gt;      OTHERS           = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'GET_PRINT_PARAMETERS'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        archive_mode         = gc_spool_print      "For print = '1'&lt;/P&gt;&lt;P&gt;        no_dialog            = abap_true&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        out_parameters       = lv_print_parameters&lt;/P&gt;&lt;P&gt;        valid                = lv_valid_flag&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      EXPORT fui_fin_split TO MEMORY ID 'CUSTOMER'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SUBMIT zvrr9333_dummy TO SAP-SPOOL&lt;/P&gt;&lt;P&gt;                            SPOOL PARAMETERS lv_print_parameters&lt;/P&gt;&lt;P&gt;                            WITHOUT SPOOL DYNPRO&lt;/P&gt;&lt;P&gt;                            VIA JOB lv_name NUMBER lv_number&lt;/P&gt;&lt;P&gt;                            AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CALL FUNCTION 'JOB_CLOSE'&lt;/P&gt;&lt;P&gt;          EXPORTING&lt;/P&gt;&lt;P&gt;            jobcount             = lv_number&lt;/P&gt;&lt;P&gt;            jobname              = lv_name&lt;/P&gt;&lt;P&gt;            strtimmed            = abap_true        "Immediate Start&lt;/P&gt;&lt;P&gt;          MESSAGE 'Spool not created'(e15) TYPE gc_success.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT jobname&lt;/P&gt;&lt;P&gt;         jobcount&lt;/P&gt;&lt;P&gt;         stepcount&lt;/P&gt;&lt;P&gt;         listident&lt;/P&gt;&lt;P&gt;  FROM tbtcp&lt;/P&gt;&lt;P&gt;  INTO TABLE gi_spool&lt;/P&gt;&lt;P&gt;  WHERE jobname EQ fuv_name&lt;/P&gt;&lt;P&gt;  AND   jobcount EQ fuv_number.&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    READ TABLE gi_spool INTO lw_spool INDEX 1.&lt;/P&gt;&lt;P&gt;    fcv_spoolno = lw_spool-listident.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT jobname&lt;/P&gt;&lt;P&gt;         jobcount&lt;/P&gt;&lt;P&gt;         stepcount&lt;/P&gt;&lt;P&gt;         listident&lt;/P&gt;&lt;P&gt;  FROM tbtcp&lt;/P&gt;&lt;P&gt;  INTO TABLE gi_spool&lt;/P&gt;&lt;P&gt;  WHERE jobname EQ fuv_name&lt;/P&gt;&lt;P&gt;  AND   jobcount EQ fuv_number.&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    READ TABLE gi_spool INTO lw_spool INDEX 1.&lt;/P&gt;&lt;P&gt;    fcv_spoolno = lw_spool-listident.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 20:58:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spool-generation-using-submit-statement/m-p/6253191#M1383987</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T20:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in spool generation using SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spool-generation-using-submit-statement/m-p/6253192#M1383988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any hints,&lt;/P&gt;&lt;P&gt;                 Do let me know if I need to elaborate the situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 21:44:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spool-generation-using-submit-statement/m-p/6253192#M1383988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-27T21:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in spool generation using SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spool-generation-using-submit-statement/m-p/6253193#M1383989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi abhishek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just to make sure you are still able to learn something from here: Please mark your code with the mouse, hit the above &amp;lt;_&amp;gt; Code button and check the results in the preview tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 07:30:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spool-generation-using-submit-statement/m-p/6253193#M1383989</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2009-10-28T07:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in spool generation using SUBMIT statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spool-generation-using-submit-statement/m-p/6253194#M1383990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sir,&lt;/P&gt;&lt;P&gt;                   I actually was trying to do that even for the first time but was not aware of the 2500 character limit.So  I could not understand why is the code not coming properly.Thanks again...its a new learning for me both ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I resolved my problem in this manner:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SUBMIT zvrr9333_dummy TO SAP-SPOOL
                        WITHOUT SPOOL DYNPRO
                        AND RETURN.

  IMPORT lv_spool TO lv_spool FROM MEMORY ID 'SPOOL'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The value imported here gives me the spool no. generated in the submitted program zvrr9333_dummy.The corresponding export statement was written after the lis(or grid) ALV call in that program.Also mentioned below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD go_table-&amp;gt;display.      "I am using factory method of ALV
    lv_spool = sy-spono.
    EXPORT lv_spool TO MEMORY ID 'SPOOL'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initially i was doing steps not required in this case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 18:35:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-spool-generation-using-submit-statement/m-p/6253194#M1383990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-28T18:35:53Z</dc:date>
    </item>
  </channel>
</rss>

