<?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 Converting OTF data from script to Spool Request in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-otf-data-from-script-to-spool-request/m-p/7521538#M1560554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to convert OTF data into Spool Request. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actual scenario is for the Order Acknowledgement form they have configured the output type for Print Medium and here the spool is generated through Close_Form . Based on the spool no they are converting the spool to PDF and then placing a copy in the Unix Directory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They have also configured the form for Fax Medium , but here in the close_form they are getting the Fax number instead of spool number. As this way it just Fax the output to required destination , &lt;STRONG&gt;user require a copy of the output should be converted to PDF and then it has to be placed in Unix directory as it is happening for print medium.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem here in the close form for first  case , i can see the spool id but in the second case that is not happening . So only OTF data is available with me. So is there any way where i can pass OTF data get spool id . So that if i have spool id rest will be taken care by my existing logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Appreciate your valuable inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Subash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Dec 2010 09:29:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-12-22T09:29:32Z</dc:date>
    <item>
      <title>Converting OTF data from script to Spool Request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-otf-data-from-script-to-spool-request/m-p/7521538#M1560554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to convert OTF data into Spool Request. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actual scenario is for the Order Acknowledgement form they have configured the output type for Print Medium and here the spool is generated through Close_Form . Based on the spool no they are converting the spool to PDF and then placing a copy in the Unix Directory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They have also configured the form for Fax Medium , but here in the close_form they are getting the Fax number instead of spool number. As this way it just Fax the output to required destination , &lt;STRONG&gt;user require a copy of the output should be converted to PDF and then it has to be placed in Unix directory as it is happening for print medium.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem here in the close form for first  case , i can see the spool id but in the second case that is not happening . So only OTF data is available with me. So is there any way where i can pass OTF data get spool id . So that if i have spool id rest will be taken care by my existing logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Appreciate your valuable inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Subash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 09:29:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-otf-data-from-script-to-spool-request/m-p/7521538#M1560554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-22T09:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: Converting OTF data from script to Spool Request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-otf-data-from-script-to-spool-request/m-p/7521539#M1560555</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;Use FM CONVERT_OTF to convert the OTF format to PDF doc. To this FM pass format as PDF in the Export paramet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 09:37:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-otf-data-from-script-to-spool-request/m-p/7521539#M1560555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-22T09:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Converting OTF data from script to Spool Request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-otf-data-from-script-to-spool-request/m-p/7521540#M1560556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reddy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have idea about convert_pdf , but my requirement is to convert it into spool. i need one spool number for the OTF data so that i can make use of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;subash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 10:10:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-otf-data-from-script-to-spool-request/m-p/7521540#M1560556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-22T10:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Converting OTF data from script to Spool Request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-otf-data-from-script-to-spool-request/m-p/7521541#M1560557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this code snippet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : it_spool      TYPE STANDARD TABLE OF rsporq     ,
                     it_pdf        TYPE STANDARD TABLE OF tline      ,
                     v_objtype     TYPE rststype-type   ,
                    v_name        TYPE rststype-name  .
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  find_spool_request_id
*&amp;amp;---------------------------------------------------------------------*
FORM find_spool_request_id.

  CALL FUNCTION 'RSPO_FIND_SPOOL_REQUESTS'
    EXPORTING
      allclients          = '320'
      datatype            = '*'
      has_output_requests = '*'
      rq0name             = nast-dsnam
      rq1name             = '*'
      rq2name             = '*'
      rqdest              = 'LOCL'
      rqowner             = sy-uname
    TABLES
      spoolrequests       = it_spool
    EXCEPTIONS
      no_permission       = 1
      OTHERS              = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE i000 DISPLAY LIKE 'E' WITH text-002.
    LEAVE LIST-PROCESSING.
  ENDIF.
ENDFORM.                    " find_spool_request_id

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  convert_spool_to_pdf
*&amp;amp;---------------------------------------------------------------------*
FORM convert_spool_to_pdf .

  READ TABLE it_spool INTO wa_spool INDEX 1.
  v_spoolno = wa_spool-rqident.
*Get Spool request attributes
  SELECT SINGLE *
    FROM tsp01
    INTO tsp01
    WHERE rqident EQ v_spoolno.

  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE i000 DISPLAY LIKE 'E'
                      WITH text-003 v_spoolno text-034.
    LEAVE LIST-PROCESSING.
  ENDIF.

  v_client = tsp01-rqclient.
  v_name   = tsp01-rqo1name.

  CALL FUNCTION 'RSTS_GET_ATTRIBUTES'
    EXPORTING
      authority     = 'SP01'
      client        = v_client
      name          = v_name
      part          = 1
    IMPORTING
      objtype       = v_objtype
    EXCEPTIONS
      fb_error      = 1
      fb_rsts_other = 2
      no_object     = 3
      no_permission = 4
      OTHERS        = 5.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE i000(zz) DISPLAY LIKE 'E'
                       WITH text-003 v_spoolno text-034.
    LEAVE LIST-PROCESSING.
  ENDIF.

 CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
      EXPORTING
        src_spoolid              = v_spoolno
        no_dialog                = ' '
      TABLES
        pdf                      = it_pdf
      EXCEPTIONS
        err_no_otf_spooljob      = 1
        err_no_spooljob          = 2
        err_no_permission        = 3
        err_conv_not_possible    = 4
        err_bad_dstdevice        = 5
        user_cancelled           = 6
        err_spoolerror           = 7
        err_temseerror           = 8
        err_btcjob_open_failed   = 9
        err_btcjob_submit_failed = 10
        err_btcjob_close_failed  = 11
        OTHERS                   = 12&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 10:42:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-otf-data-from-script-to-spool-request/m-p/7521541#M1560557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-22T10:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Converting OTF data from script to Spool Request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-otf-data-from-script-to-spool-request/m-p/7521542#M1560558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Print the OTF data using FM PRINT_OTF. You will get the Spool Id from export parameters.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 12:58:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-otf-data-from-script-to-spool-request/m-p/7521542#M1560558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-22T12:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Converting OTF data from script to Spool Request</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-otf-data-from-script-to-spool-request/m-p/7521543#M1560559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks satyajit ,that works.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Dec 2010 14:06:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-otf-data-from-script-to-spool-request/m-p/7521543#M1560559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-22T14:06:42Z</dc:date>
    </item>
  </channel>
</rss>

