<?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: Retrieve the spool ID in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-the-spool-id/m-p/5772677#M1306865</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of Import / Export of the spool number, try to get it from the SY-SPONO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Jun 2009 14:26:38 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2009-06-15T14:26:38Z</dc:date>
    <item>
      <title>Retrieve the spool ID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-the-spool-id/m-p/5772676#M1306864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI GUru's &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some problem to retrieve my spool id. After did my 'Submit' I pass my parameter and no spool id is generated. Does anybody could help me please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
"Select the Cost Centers Responsible
  LOOP AT i_cntrllng_rsp INTO wa_cntrllng_rsp.
    SELECT  * FROM  csks APPENDING TABLE i_csks
            WHERE  usnam  = wa_cntrllng_rsp-bname
            AND kokrs = s_corea-low.

  ENDLOOP.


  IF sy-subrc = 0.

    LOOP AT s_corea.
      wa_p-selname = 'S_COREA'.
      wa_p-kind = 'S'.
      wa_p-sign = s_corea-sign.
      wa_p-option = s_corea-option.
      wa_p-low = s_corea-low.
      wa_p-high = s_corea-high.
      APPEND wa_p TO i_tab.
    ENDLOOP.

    LOOP AT s_part.
      wa_p-selname = 'S_PART'.
      wa_p-kind = 'S'.
      wa_p-sign = s_part-sign.
      wa_p-option = s_part-option.
      wa_p-low = s_part-low.
      wa_p-high = s_part-high.
      APPEND wa_p TO i_tab.
    ENDLOOP.

CALL FUNCTION 'GET_PRINT_PARAMETERS'
    EXPORTING
      archive_mode           = '3'
    IMPORTING
      out_parameters         = print_parameters
      out_archive_parameters = archi_parameters
      valid                  = valid_flag
    EXCEPTIONS
      invalid_print_params   = 2
      OTHERS                 = 4.
* Retrieve the spool-id

  SUBMIT rkaep000
    WITH SELECTION-TABLE i_tab
     TO SAP-SPOOL
*     SPOOL PARAMETERS print_parameters
*     ARCHIVE PARAMETERS archi_parameters
*     WITHOUT SPOOL DYNPRO
     AND RETURN.
TRY.
IMPORT w_spool_nr FROM MEMORY ID 'TEST_SPONO'.
CATCH CX_SY_IMPORT_MISMATCH_ERROR.
ENDTRY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 14:17:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-the-spool-id/m-p/5772676#M1306864</guid>
      <dc:creator>mrahhaoui</dc:creator>
      <dc:date>2009-06-15T14:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve the spool ID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-the-spool-id/m-p/5772677#M1306865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of Import / Export of the spool number, try to get it from the SY-SPONO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 14:26:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-the-spool-id/m-p/5772677#M1306865</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-06-15T14:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve the spool ID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-the-spool-id/m-p/5772678#M1306866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naimesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have an example? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mohamed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2009 15:11:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-the-spool-id/m-p/5772678#M1306866</guid>
      <dc:creator>mrahhaoui</dc:creator>
      <dc:date>2009-06-15T15:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve the spool ID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-the-spool-id/m-p/5772679#M1306867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See other topic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 13:29:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/retrieve-the-spool-id/m-p/5772679#M1306867</guid>
      <dc:creator>mrahhaoui</dc:creator>
      <dc:date>2009-06-17T13:29:31Z</dc:date>
    </item>
  </channel>
</rss>

