Skip to Content
avatar image
Former Member

Send a File to Spool

How can i do to send a file.tif that is in application server to spool?

Thank you.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • May 22, 2008 at 11:29 AM

    By Sending to spool Do mean you want to print the file?

    Use Open dataset statement and

    read dataset statement to read the content of the file and then use function module LIST_TO_SPOOL to send the content to spool.

    Hope it helps.

    <REMOVED BY MODERATOR>

    FY

    Edited by: Alvaro Tejada Galindo on Jun 12, 2008 1:10 PM

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 22, 2008 at 11:40 AM

    Hi jose,

    1. I don't think we can direct send such object (a file)

    to spool.

    2. Spool can contain only some specific type of objects (sap objects) such as

    alv list, sapscript output, smartform output, list output etc.

    3. So one way is to create a new sapscript and put that

    file in it using upload, and changing the script.

    Then using some z program, call this sapscript

    and put the output in spool.

    regards,

    amit m.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 12, 2008 at 01:31 PM

    Hi,

    Use print on option of new-page.

    Whatever you write after print on will be sent to spool.

    OPEN DATASET file IN TEXT MODE

    ENCODING DEFAULT FOR INPUT.

    NEW-PAGE PRINT ON NO DIALOG.

    DO.

    READ DATASET file INTO line.

    IF sy-subrc <> 0.

    EXIT.

    ENDIF.

    WRITE: / line.

    ENDDO.

    NEW-PAGE PRINT OFF.

    You can also use

    NEW-PAGE PRINT ON

    PARAMETERS param

    NO DIALOG.

    param is of type PRI_PARAMS where you can set the parameters like name, print immediately, keep in spool etc.

    <REMOVED BY MODERATOR>

    Regards

    Megha

    Edited by: Alvaro Tejada Galindo on Jun 12, 2008 1:10 PM

    Add comment
    10|10000 characters needed characters exceeded