Print spool during report output

Hi guys,
How can you code submit a spool request for the current abap list output?(as if you click System>List>Print).

Just refer:
HOw to generate spool request for alv report

Similar Messages

  • Printing issue of report output

    Hi Friends,
        I am trying to print a report having one record but getting printed two pages instead of one.
    The first page contains the output data and second page contains 'Data statistics and number of records' which can be accomodated in same page but it takes another new page.
    Do you have any idea how to print it in a single page ?
    Thanks and regards,
    BABA

    Thanks every one for quick response!
    I developped a report to display output in ALV GRID screen.
    Select the 'LIST' from menu and then choose 'Print' option, it creates a spool  after providing 'output device'.
    Then goto transaction 'SP02' select the spool and choose the icon for 'Print directly'.
    Then it print the list(Though it has one record) in first page and 'data statistics and Number of records' in second screen.
    My requirement is to print the data of second page in first page though it has sufficient space instead of second page.
    Thanks and regards,
    BABA

  • Printing issue of report output list display

    Dear All,
    I need to print the report output display list. So, for this I have used the following code. But it's not printing.
    Will you please check the below code and kindly let me where should I change/modify in the code.
    START-OF-SELECTION.
      SET PF-STATUS 'ZGUI_STATUS1'.
    END-OF-SELECTION.
    AT USER-COMMAND.
      CASE sy-ucomm.
        WHEN 'PRNT'.
         DATA: l_params TYPE pri_params,
               l_valid TYPE c,
               l_arc_params TYPE arc_params.
         CALL FUNCTION 'GET_PRINT_PARAMETERS'
           EXPORTING
             destination            = l_v_usr01-spld
             copies                 = 1
             list_name              = 'TEST'
             list_text              = 'Test NEW-PAGE PRINT ON'
             immediately            = 'X'
             line_size              = 220
             release                = 'X'
             mode                   = 'CURRENT'
             no_dialog              = 'X'
           IMPORTING
             out_archive_parameters = l_arc_params
             out_parameters         = l_params
             valid                  = l_valid
           EXCEPTIONS
             archive_info_not_found = 1
             invalid_print_params   = 2
             invalid_archive_params = 3
             OTHERS                 = 4.
    NEW-PAGE PRINT ON PARAMETERS l_params ARCHIVE PARAMETERS
                              l_arc_params NO DIALOG.
          PERFORM display_data.
          NEW-PAGE PRINT OFF.
      ENDCASE.
    Many Thanks,
    Ranjan

    Dear Amit,
    The font size is not increasing, in-fact, if I use the code like the below, it's not even printing, I am checking different ways,
    DATA: lay   TYPE pri_params-paart,
          lines TYPE pri_params-linct,
          rows  TYPE pri_params-linsz.
    AT USER-COMMAND.
      CASE sy-ucomm.
        WHEN 'PRNT'.
          lay = 'X_60_85'.
          lines = 60.
          rows  = 85.
          DATA: l_params TYPE pri_params,
                l_valid TYPE c,
                l_arc_params TYPE arc_params.
          CALL FUNCTION 'GET_PRINT_PARAMETERS'
            EXPORTING
             destination            = l_v_usr01-spld
              destination            = 'LPIN'
              copies                 = 1
              list_name              = 'TEST'
              list_text              = 'Test NEW-PAGE PRINT ON'
              immediately            = 'X'
              layout                 = lay
              line_count             = lines
              line_size              = rows
             line_size              = 220
              release                = 'X'
              mode                   = 'CURRENT'
              no_dialog              = 'X'
            IMPORTING
             out_archive_parameters = l_arc_params
              out_parameters         = l_params
              valid                  = l_valid
            EXCEPTIONS
              archive_info_not_found = 1
              invalid_print_params   = 2
              invalid_archive_params = 3
              OTHERS                 = 4.
          NEW-PAGE PRINT ON   PARAMETERS l_params NO DIALOG.
          PERFORM display_data.
          NEW-PAGE PRINT OFF.
      ENDCASE.
    Kindly let me know if you have some new answer?
    Kind Regards,
    Ranjan

  • Printing ABAP List(Report output - SE38) in A3 format

    I have a requirement to print the ABAP report in A3 page format. I am using LP01 printer and in in SPAD transcation I Changed the Tab "Output Attributes"
    Paper tray = "Paper tray 3" and Tab "Tray Info" Tray 3 = "DINA3"  still the report gets print in A4 page format.
    Even i tried by changing the lize size and line count...still .... it prints in A4 format only.
    Could you let me know what exactly I need to in order to print my report output in A3 Page format.
    Waiting for your reply.
    Thanks in Advance,
    Steevan

    Hi,
    Check this below link
    http://www.sap-img.com/basis/how-can-i-print-a3-format-in-sap.htm
    Cheers!!
    VEnk@

  • How to Print Selection-Screen along with ALV Report output

    Hi,
    I have a requirement wherein i need to also print the Selection Screen of a report when I print the ALV report output.
    Basically i need to print the ALV output along with selection screen.
    Could you plz suggest me the way.
    Regards,
    Nitin

    Hi,
    My selection Screen is a very big one. It contains around 30 select-options.
    So is their any standard method in which you can choose whether you want to take the output printout with or without Selection screen.
    Regards,
    Nitin

  • Send a report output directly to client printer in 10G

    I want to send my report output to client printer instead of report server printer without view report on screen.
    I am using RUN_REPORT_OBJECT built-in, but when I set REPORT_DESTYPE = PRINTER, it send report output to report server printer, I want it on local printer.
    regards
    Rehan Mirza

    Hello,
    <p>Here is a solution by Casey Bowden.</p>
    Francois

  • Selection Variables display in report output using BEX ANALYSER 7.0

    HI All,
    I am using BEX Analyzer 7.0 , I want to display the Variables  selected in the selection screen, to be printed in the
    Report Output.when i execute the same query in 3.5 , i am getting all hard coded and selected variable values in report  output.
    But in 7.0 analyzer  i am not getting any filter values.can i know the reason for this ? do i need to do any settings ? how to display all filter values in report output.
    Thanks and Regards,
    Joseph

    Hi Joseph,
    I feel there might be personalization of variables.
    After executing the query click on "Change Variable Values" which is on Bex Tool Bar and there click on personaliztion icon and check if any personalizations are there.
    Regards
    Ravi

  • Variables display in report output in BEX Analyser 7.0

    HI All,
    I am using BEX Analyzer 7.0 , I want to display the Variables  selected in the selection screen, to be printed in the
    Report Output.when i execute the same query in 3.5 , i am getting all hard coded and selected variable values in report  output.
    But in 7.0 analyzer  i am not getting any filter values.can i know the reason for this ? do i need to do any settings ? how to display all filter values in report output.
    Thanks and Regards,
    Joseph

    Hello Joseph,
    Please check where did you kept the restriction in the filter is it in the defalut values or it is in the characteristic restrictions. If the values are in the characteristic restricion it won't display . The values need to restricted in the default option.
    Thanks,
    Geeta

  • Problem printing more than 255 characters in report output and in the spool

    Hi Guys,
                    I am trying to print one file in the report output and in the spool but it's priting till 255 characters only. If I try the samething while writing in application server and in peresentation server it is printing full content. I am giving the line size in the REPORT statement as more than 255 like 300 but even it is not printing. How can i print the full contents. Whether it is any basis related issue or in any settings can we do that. please advice.
    Thanks in advance.

    If it is not showing in Spool, Basis people has to do some setting in SPAD Transaction.

  • Need help reg. Conversion of report output into spool

    Hi Experts,
    I need to convert the report output into spool while report is executed in foreground not in background. Please let me know your inputs.
    Thanks
    Gopal

    SUBMIT... TO SAP-SPOOL AND RETURN : Prints output of a report that you call with the SUBMIT keyword. As with NEW-PAGE PRINT ON, the list is printed during its generation, so that both PRINT-CONTROL and FORMAT keywords take effect. Also, SUBMIT... TO SAP-SPOOL AND RETURN allows the programmer to set the format and other printing parameters. As with NEW-PAGE PRINT ON, you can set printing and archiving parameters with the GET_PRINT_PARAMETERS function module.
    CONVERT_ABAPSPOOLJOB_2_PDF convert abap spool output to PDF

  • Scheduled Report Output to Printer

    Hi Guys,
    hope you are all well.
    Can someone help me.  I am have created a report and set this to be schedule at X time.  I need the report output via Business Objects XI to be to Printer.
    I have set up a printer and set it as a shared printer on the same server BO runs on.  I have also set the printer to Default.  When I schedule the report and set the Print Settings to Default Printer it does not print...no error messages...but no print.  Helppppp as I am going mad.
    Many thanks

    We just recently migrated to XI R2 on a new server, and did not consider the print settings...until a user noticed they could not print like normal
    We recreated the printers on the new server, and people could then choose a specific printer now. (We named the printers the same as the print ID on the server.)
    However, people could not choose Default Printer in Infoview (during Schedule). When they chose it, the report would be successful, but we were not sure where the output would go.
    I found a few articles on Knowledge base, and I think #1 and #2 may be our best alternatives.
    1202786 - A Crystal report printed through InfoView does not use the default printer on the client computer
    1203768 - The default printer is not chosen when printing from Infoview
    This last one seems little drastic - all scheduled reports on a jobs server would take the behavior of the job server. This seems excessive.
    1217095 - Report does not print when scheduled to printer in Crystal Enterprise or BusinessObjects Enterprise
    Article #1 &2 will require retooling of the rpt files, but we plan to address the user issues on a per report basis.
    Walter

  • Creation of Spool for a Report Output in background.

    Hi Gurus,
    I am working on a Report and my requirement is that a Spool should be Generated for the Report Output in background. Instead of generating the spool manually, I need it to be generated in background.
    Please let me know ASAP.
    Regards,
    Amit.

    Get print parameters using 'GET_PRINT_PARAMETERS'.
      DATA : rep LIKE pri_params-plist,
    w_title TYPE tsp01-rqtitle,
    mstr_print_parms LIKE pri_params.
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING destination           = 'LP01'
                  copies                = 1
                  list_name             = rep
                  list_text             = w_title
                  immediately           = 'X'
                  release               = 'X'
                  new_list_id           = 'X'
                  expiration            = 1
                  line_size             = 132
                  line_count            = 65
                  layout                = 'X_65_132'
                  sap_cover_page        = 'X'
                  cover_page            = ' '
                  receiver              = sy-uname
                  department            = 'System'
                  no_dialog             = 'X'
        IMPORTING out_parameters        =  mstr_print_parms
      valid = mc_valid.
    and then use submit statement-
      SUBMIT
      zp1012_ar_rep_vendstat
      TO SAP-SPOOL
      WITHOUT SPOOL DYNPRO
              SPOOL PARAMETERS mstr_print_parms
      WITH s_lifnr IN s_lifnr
      WITH p_bukrs eq p_bukrs
      WITH s_gjahr eq p_gjahr SIGN 'I'
      WITH s_monat BETWEEN p_per-low AND p_per-high SIGN 'I'
                       AND RETURN.
      COMMIT WORK.
    Regards,
    Aparna Gaikwad

  • How to print long raw text data in report output in single line?

    Hi All,
    I have a requirement where I need to print raw comma separated text data in the report output which end user will open in excel and can sort as required. I can not directly generate excel output.
    Now there is huge set of data and each row from the report query should be get printed on single line, It should not get printed on the next line.
    I tried to extending the report with 240 characters but still there are some text data which is getting printed on the next line.
    Please share your view if someone has any solution on this issue.
    Thanks in Advance.
    Arun

    Make the report even wider. By default a report layout can be 10 pages wide. If you need more, change the "Max. Horizontal Body Pages" property, and extend your layout too.
    IMHO, I wouldn't even use Reports to create a csv file. Utl_file or an sqlplus script that spools to a file are better options I think.

  • Print report output Automatically.

    Hi friends
    I am using GET_PRINT_PARAMETERS to create an spool request to print the report output automatically once it is displayed on screen, the problem with this FM if I assigned import parameter immediately = 'X' it does not create any spool request.
    Is there any other way to automate the printing instead of pushing Pritn Icon on Application toolbar.
    Thanks
    Lakhbir

    Hi,
    do this way...
        CALL FUNCTION 'GET_PRINT_PARAMETERS'
           EXPORTING
             <b>IMMEDIATELY                  = 'X'</b>         LINE_SIZE                    = 220
             <b>RELEASE                      = 'X'</b>         MODE                         = 'CURRENT'
           <b>  NO_DIALOG                    = 'X'</b>       IMPORTING
    *     OUT_ARCHIVE_PARAMETERS       =
             OUT_PARAMETERS               = L_PARAMS
             VALID                        = L_VALID
           EXCEPTIONS
             ARCHIVE_INFO_NOT_FOUND       = 1
             INVALID_PRINT_PARAMS         = 2
             INVALID_ARCHIVE_PARAMS       = 3
             OTHERS                       = 4.
          IF SY-SUBRC <> 0.
          ENDIF.
          NEW-PAGE PRINT ON   PARAMETERS L_PARAMS <b>NO DIALOG</b>.
    "you can start your write statements here...
           PERFORM DISPLAY_DATA.
          NEW-PAGE PRINT OFF.
    This will automatically prints the report
    Regards
    vijay

  • Report OutPut directly to  the printer by selecting in the selection screen

    Hi Guys,
    Can any one help,
    How to give Report output (ALV report ) directly to the printer by selecting the printer name in the selection screen .
    Sap Version is ECC 6.0.
    Thanks In advance
    praveen k

    hi,
    u can do it using submit statement.
    SUBMIT TO SAP-SPOOL
    Basic form
    SUBMIT rep ... TO SAP-SPOOL.
    Extras:
    1.... DESTINATION dest         ... COPIES cop
            ... LIST NAME name
            ... LIST DATASET dsn
            ... COVER TEXT text
            ... LIST AUTHORITY auth
            ... IMMEDIATELY flag
            ... KEEP IN SPOOL flag
            ... NEW LIST IDENTIFICATION flag
            ... DATASET EXPIRATION days
            ... LINE-COUNT lin
            ... LINE-SIZE  col
            ... LAYOUT layout
            ... SAP COVER PAGE mode
            ... COVER PAGE flag
            ... RECEIVER rec
            ... DEPARTMENT dep
            ... ARCHIVE MODE armode
            ... ARCHIVE PARAMETERS arparams
            ... WITHOUT SPOOL DYNPRO
    2. ... SPOOL PARAMETERS params
             ... ARCHIVE PARAMETERS arparams
             ... WITHOUT SPOOL DYNPRO
    3. ... Further parameters (for passing variants)
            are described in the documentation for SUBMIT
    The syntax check performed in an ABAP Objects context is stricter than in other ABAP areas. See Missing print parameters with SUBMIT.
    Effect
    Calls the report rep with list output to the SAP spool database.
    Additions
    ... DESTINATION dest(output device)
    ... COPIES cop(number of copies)
    ... LIST NAME name(name of list)
    ... LIST DATASET dsn(name of spool dataset)
    ... COVER TEXT text(title of spool request)
    ... LIST AUTHORITY auth(authorization for display)
    ... IMMEDIATELY flag(print immediately ?)
    ... KEEP IN SPOOL flag(keep list after print ?)
    ... NEW LIST IDENTIFICATION flag(new spool request ?)
    ... DATASET EXPIRATION days(number of days list
    retained)
    ... LINE-COUNT lin ( lin lines per page)
    ... LINE-SIZE  col(col columns per line)
    ... LAYOUT layout(print format)
    ... SAP COVER PAGE mode(SAP cover sheet ?)
    ... COVER PAGE flag(selection cover sheet ?)
    ... RECEIVER rec(SAP user name of
    recipient)
    ... DEPARTMENT dep(name of department)
    ... ARCHIVE MODE armode(archiving mode)
    ... ARCHIVE PARAMETERS arparams(structure with archiving
    parameters)
    ... WITHOUT SPOOL DYNPRO(skip print control screen)
    With the parameters IMMEDIATELY, KEEP IN SPOOL, NEW LIST IDENTIFICATION and COVER TEXT, flag must be a literal or character field with the length 1. If flag is blank, the parameter is switched off, but any other character switches the parameter on. You can also omit any of the sub-options of PRINT ON. mode with SAP COVER PAGE can accept the values ' ', 'X' and 'D'. These values have the following meaning:
    ' ' : Do not output cover sheet
    'X' : Output cover sheet
    'D' : Cover sheet output according to printer setting
    armode with ARCHIVE MODE can accept the values '1', '2' and '3'. These values have the following meaning:
    '1' : Print only
    '2' : Archive only
    '3' : Print and archive
    arparams with ARCHIVE PARAMETERS must have the same structure as ARC_PARAMS. This parameter should only be processed with the function module GET_PRINT_PARAMETERS.
    Effect
    Output is to the SAP spool database with the specified parameters. If you omit one of the parameters, the system uses a default value. Before output to the spool, you normally see a screen where you can enter and/or modify the spool parameters. However, you can suppress this screen with the following statement:
    ... TO SAP-SPOOL WITHOUT SPOOL DYNPRO
    You could use this option if all the spool parameters have already been set!
    reward points if hlpful.
    Note
    When specifying the LINE-SIZE, you should not give any value > 132 because most printers cannot print wider lists.
    Addition 2
    ... SPOOL PARAMETERS params(structure with print
    parameters)
    ... ARCHIVE PARAMETERS arparams(Structure with archive
    parameters)
    ... WITHOUT SPOOL DYNPRO(skip print parameters
    screen)
    Effect
    Output is to the SAP spool database with the specified parameters. The print parameters are passed by the field string params which must have the structure of PRI_PARAMS. The field string can be filled and modified with the function module GET_PRINT_PARAMETERS. The specification arparams with ARCHIVE PARAMETERS must have the structure of ARC_PARAMS. This parameter should only be processed with the function module GET_PRINT_PARAMETERS. Before output to the spool, you normally see a screen where you can enter and/or modify the spool parameters. However, you can suppress this screen with the following statement:
    ... WITHOUT SPOOL DYNPRO
    Example
    Without archiving
    DATA: PARAMS LIKE PRI_PARAMS,
          DAYS(1)  TYPE N VALUE 2,
          COUNT(3) TYPE N VALUE 1,
          VALID    TYPE C.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING DESTINATION           = 'LT50'
                COPIES                = COUNT
                LIST_NAME             = 'TEST'
                LIST_TEXT             = 'SUBMIT ... TO SAP-SPOOL'
                IMMEDIATELY           = 'X'
                RELEASE               = 'X'
                NEW_LIST_ID           = 'X'
                EXPIRATION            = DAYS
                LINE_SIZE             = 79
                LINE_COUNT            = 23
                LAYOUT                = 'X_PAPER'
                SAP_COVER_PAGE        = 'X'
                COVER_PAGE            = 'X'
                RECEIVER              = 'SAP*'
                DEPARTMENT            = 'System'
                NO_DIALOG             = ' '
      IMPORTING OUT_PARAMETERS        = PARAMS
                VALID                 = VALID.
    IF VALID <> SPACE.
      SUBMIT RSTEST00 TO SAP-SPOOL
        SPOOL PARAMETERS PARAMS
        WITHOUT SPOOL DYNPRO.
    ENDIF.
    Example
    With archiving
    DATA: PARAMS   LIKE PRI_PARAMS,
          ARPARAMS LIKE ARC_PARAMS,
          DAYS(1)  TYPE N VALUE 2,
          COUNT(3) TYPE N VALUE 1,
          VALID    TYPE C.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING DESTINATION            = 'LT50'
                COPIES                 = COUNT
                LIST_NAME              = 'TEST'
                LIST_TEXT              = 'SUBMIT ... TO SAP-SPOOL'
                IMMEDIATELY            = 'X'
                RELEASE                = 'X'
                NEW_LIST_ID            = 'X'
                EXPIRATION             = DAYS
                LINE_SIZE              = 79
                LINE_COUNT             = 23
                LAYOUT                 = 'X_PAPER'
                SAP_COVER_PAGE         = 'X'
                COVER_PAGE             = 'X'
                RECEIVER               = 'SAP*'
                DEPARTMENT             = 'System'
                SAP_OBJECT             = 'RS'
                AR_OBJECT              = 'TEST'
                ARCHIVE_ID             = 'XX'
                ARCHIVE_INFO           = 'III'
                ARCHIVE_TEXT           = 'Description'
                NO_DIALOG              = ' '
      IMPORTING OUT_PARAMETERS         = PARAMS
                OUT_ARCHIVE_PARAMETERS = ARPARAMS
                VALID                  = VALID.
    IF VALID <> SPACE.
      SUBMIT RSTEST00 TO SAP-SPOOL
        SPOOL PARAMETERS PARAMS
        ARCHIVE PARAMETERS ARPARAMS
        WITHOUT SPOOL DYNPRO.
    ENDIF.

Maybe you are looking for

  • Adding a Signature Field at the end of a form?

    I created an application form for parents at our school to re-apply for the next year. I want them to sign the form. How do I add that option? Is there a field for that?

  • Problem in formatting date

    Hi, I am rendering the date that is got from the Database as <tr:outputText rendered="#{myBean.deliverDate != null}"                    value="#{myBean..deliverDate}"/>The date is being displayed as 20080329 which is correct as it is a stored in the

  • Payables: Cannot start a Payment Document number with Zero

    Hi all, I have a bit of an unusual situation. One of my users wants to issue cheques from a book where the serial starts with 0 (015698, 015699 etc). However, Oracle Payables automatically deletes the 0 at the top of the string and leaves only rest o

  • Diadem 9.1 channel deletion

    Is it possible to delete channels from the "List" tab within the Data Portal Window (Diadem 9.1)?

  • Can I make any hardware upgrade to make my Mac Pro1,1 compatible with OS X Mavericks?

    Hi! I have got a Mac Pro1,1 Dual-Core Intel Xeon, 2,66 GHz, 11 Gb RAM running OS X 10.7.5. I would like to know if there is any chance to make any hardware upgrade to make my Mac Pro compatible with Mavericks, maybe a Processor upgrade. I miss all th