Skip to Content
author's profile photo Former Member
Former Member

FM -> 'RSPO_OUTPUT_SPOOL_REQUEST'

Hi all,

Can the Function module 'RSPO_OUTPUT_SPOOL_REQUEST' be used in background job. The FM is used to print using spool number. If yes! how can it be done? else, is there any other FM to print in background using the spool number.

Thanks,

Rajesh.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2007 at 06:22 AM

    Hi Rajesh,

    Let me share a small tip for this. Execute se37 and enter this FM name. PRess where used list button. A popup window will come, select only program checkbox in that and press enter. Then it will display list of program in which that FM was used. Now if u check any program then u will get clarification abt the usage of FM.

    Hope this helps you. Reply for queries, shall post the updates.

    Regards.

    Kumar

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2007 at 06:29 AM

    Hi,

    plz chek teh below code...

    • Declaration of local constants

    CONSTANTS : LC_PAART LIKE SY-PAART VALUE 'X_65_132', " Paper Format

    LC_LOCL TYPE SYPDEST VALUE 'LOCL'. " Destination

    • If print option is selected.

    IF P_PRINT IS NOT INITIAL.

    MOVE C_X TO V_PRINT.

    ELSE.

    CLEAR V_PRINT.

    ENDIF.

    • Setup the Print Parmaters

    CALL FUNCTION 'GET_PRINT_PARAMETERS'

    EXPORTING

    AUTHORITY = SPACE

    IMMEDIATELY = V_PRINT

    NEW_LIST_ID = C_X

    NO_DIALOG = C_X

    USER = SY-UNAME

    IMPORTING

    OUT_PARAMETERS = V_PRINT_PARMS

    EXCEPTIONS

    ARCHIVE_INFO_NOT_FOUND = 1

    INVALID_PRINT_PARAMS = 2

    INVALID_ARCHIVE_PARAMS = 3

    OTHERS = 4.

    IF SY-SUBRC NE 0.

    CLEAR : V_PRINT_PARMS.

    ENDIF.

    • The printer destination has to be set up

    IF V_PRINT_PARMS-PDEST = SPACE.

    V_PRINT_PARMS-PDEST = LC_LOCL.

    ENDIF.

    • Explicitly set line width, and output format so that

    • the PDF conversion comes out OK

    V_PRINT_PARMS-LINSZ = C_LINSZ.

    V_PRINT_PARMS-PAART = LC_PAART.

    NEW-PAGE PRINT ON PARAMETERS V_PRINT_PARMS NO DIALOG.

    peform display_output.

    NEW-PAGE PRINT OFF.

    Regards,

    nagaraj

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.