<?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 Create a spool from a Postscript File in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-spool-from-a-postscript-file/m-p/6343152#M1397799</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 would like to create a spool and insert inside this spool a Postscript file (or anything picture .. )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is, the spool code is not interpreted, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the moment my code is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Ouverture du spool.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'RSPO_SR_OPEN'
    EXPORTING
      dest                   = 'FR4D'
*     LDEST                  =
      layout                 = 'X_POSTSCRIPT'
*     NAME                   =
*     SUFFIX1                =
*     SUFFIX2                =
*     COPIES                 =
*     PRIO                   =
      immediate_print        = ' '
*     AUTO_DELETE            =
*     TITLELINE              =
*     RECEIVER               =
*     DIVISION               =
*     AUTHORITY              =
*     POSNAME                =
*     ACTTIME                =
*     LIFETIME               = '8'
*     APPEND                 =
*     COVERPAGE              =
*     CODEPAGE               =
      doctype                = 'BIN'
*     ARCHMODE               =
*     ARCHPARAMS             =
*     TELELAND               =
*     TELENUM                =
*     TELENUME               =
*     SPONUMIV               = ' '
*     USESPOOLID             =
*     PRINTOPTIONS           =
    IMPORTING
      handle                 = w_handle
      spoolid                = w_spoolid
*   TABLES
*     ATTRIBUTES             =
   EXCEPTIONS
     device_missing         = 1
     name_twice             = 2
     no_such_device         = 3
     operation_failed       = 4
     OTHERS                 = 5.




* Lecture du fichier créé.
  OPEN DATASET w_fileo
       FOR INPUT
       IN TEXT MODE ENCODING DEFAULT.
  DO.
    READ DATASET w_fileo
         INTO w_line.
    IF sy-subrc NE space.
      EXIT.
    ENDIF.
*    CALL FUNCTION 'RSPO_SR_WRITE_BINARY'
*      EXPORTING
*        handle                 = w_handle
*        data                   = w_line
**   LENGTH                 =
**   CODEPAGE               =
*  EXCEPTIONS
*    HANDLE_NOT_VALID       = 1
*    OPERATION_FAILED       = 2
*    OTHERS                 = 3.
    w_len = STRLEN( w_line ).
    w_lineb = w_line+0(w_len).
    CALL FUNCTION 'RSPO_SR_WRITE'
      EXPORTING
        handle                 = w_handle
        text                   = w_lineb
        length                 = w_len
*       CODEPAGE               =
*       TRUNCATE               =
     EXCEPTIONS
       handle_not_valid       = 1
       operation_failed       = 2
       OTHERS                 = 3.


  ENDDO.
  CLOSE DATASET w_fileo.



  CALL FUNCTION 'RSPO_SR_CLOSE'
    EXPORTING
      handle                 = w_handle
*     PAGES                  =
*     FINAL                  =
   EXCEPTIONS
     handle_not_valid       = 1
     operation_failed       = 2
     OTHERS                 = 3.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Oct 2009 14:30:33 GMT</pubDate>
    <dc:creator>FredericGirod</dc:creator>
    <dc:date>2009-10-27T14:30:33Z</dc:date>
    <item>
      <title>Create a spool from a Postscript File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-spool-from-a-postscript-file/m-p/6343152#M1397799</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 would like to create a spool and insert inside this spool a Postscript file (or anything picture .. )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is, the spool code is not interpreted, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the moment my code is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Ouverture du spool.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CALL FUNCTION 'RSPO_SR_OPEN'
    EXPORTING
      dest                   = 'FR4D'
*     LDEST                  =
      layout                 = 'X_POSTSCRIPT'
*     NAME                   =
*     SUFFIX1                =
*     SUFFIX2                =
*     COPIES                 =
*     PRIO                   =
      immediate_print        = ' '
*     AUTO_DELETE            =
*     TITLELINE              =
*     RECEIVER               =
*     DIVISION               =
*     AUTHORITY              =
*     POSNAME                =
*     ACTTIME                =
*     LIFETIME               = '8'
*     APPEND                 =
*     COVERPAGE              =
*     CODEPAGE               =
      doctype                = 'BIN'
*     ARCHMODE               =
*     ARCHPARAMS             =
*     TELELAND               =
*     TELENUM                =
*     TELENUME               =
*     SPONUMIV               = ' '
*     USESPOOLID             =
*     PRINTOPTIONS           =
    IMPORTING
      handle                 = w_handle
      spoolid                = w_spoolid
*   TABLES
*     ATTRIBUTES             =
   EXCEPTIONS
     device_missing         = 1
     name_twice             = 2
     no_such_device         = 3
     operation_failed       = 4
     OTHERS                 = 5.




* Lecture du fichier créé.
  OPEN DATASET w_fileo
       FOR INPUT
       IN TEXT MODE ENCODING DEFAULT.
  DO.
    READ DATASET w_fileo
         INTO w_line.
    IF sy-subrc NE space.
      EXIT.
    ENDIF.
*    CALL FUNCTION 'RSPO_SR_WRITE_BINARY'
*      EXPORTING
*        handle                 = w_handle
*        data                   = w_line
**   LENGTH                 =
**   CODEPAGE               =
*  EXCEPTIONS
*    HANDLE_NOT_VALID       = 1
*    OPERATION_FAILED       = 2
*    OTHERS                 = 3.
    w_len = STRLEN( w_line ).
    w_lineb = w_line+0(w_len).
    CALL FUNCTION 'RSPO_SR_WRITE'
      EXPORTING
        handle                 = w_handle
        text                   = w_lineb
        length                 = w_len
*       CODEPAGE               =
*       TRUNCATE               =
     EXCEPTIONS
       handle_not_valid       = 1
       operation_failed       = 2
       OTHERS                 = 3.


  ENDDO.
  CLOSE DATASET w_fileo.



  CALL FUNCTION 'RSPO_SR_CLOSE'
    EXPORTING
      handle                 = w_handle
*     PAGES                  =
*     FINAL                  =
   EXCEPTIONS
     handle_not_valid       = 1
     operation_failed       = 2
     OTHERS                 = 3.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 14:30:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-spool-from-a-postscript-file/m-p/6343152#M1397799</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2009-10-27T14:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Create a spool from a Postscript File</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-spool-from-a-postscript-file/m-p/6343153#M1397800</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;have you found a solution ?&lt;/P&gt;&lt;P&gt;Can you please share it with us?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Arnfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jan 2010 20:41:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-spool-from-a-postscript-file/m-p/6343153#M1397800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-05T20:41:42Z</dc:date>
    </item>
  </channel>
</rss>

