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

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

  • Generate spool req number for report output list

    Hi,
    How to generate spool request number for report output list while executing the report.Please provide if you have any sample code.
    Thanks and Regards,
    BSR.

    HI srinivas,
    welcome to sdn.
    Exporting the Contents of a Spool Request
    Use
    You want to export the content of a spool request in one of the following ways:
    ·        As a text file to the SAP GUI working directory
    ·        Unconverted or as a table, RTF, or HTML to a directory of your choice
    ·        As a PDF file to a directory of your choice
    Procedure
    Follow the procedure below:
    Exporting to the SAP GUI Working Directory
    If you are exporting large quantities of data, downloading the spool request as a text file to the SAP GUI working directory is a good solution.
    Choose Spool Request ® Forward® Export as Text.
    The entire text is stored in your SAP GUI working directory in ASCII format.
    A file of this type is named using the following pattern:
    .txt
    Example: ABC0000004327.txt
    You require appropriate authorization for this function from your administrator.
    Exporting Unconverted or as a table, RTF, or HTML to a Directory of Your Choice
    With this method of exporting a spool request, the content of the spool request is first displayed, and you then download the content in the format of your choice to a directory of your choice.
           1.      Select the spool request to be exported and choose  Display Contents.
           2.      In the case of SAPscript/Smart Forms documents, activate list display by choosing Goto.
           3.      Choose System ® List ® Save ® Local File.
           4.      Choose one of the available formats and confirm your choice.
           5.      Choose a directory and save the spool request.
    By default, only the first 10 pages of a spool request are saved in a file. You can increase the number of pages to be saved by choosing Goto ® Display Requests ® Settings and making the desired entries in the Display Area group box.
    Exporting as a PDF File
    You want to export the contents of a spool request as a PDF file to a directory of your choice, and print the file as required. The PDF file contains the print data in the format in which it would be output by the printer.
    The following procedure is irrelevant for the printing of PDF-based forms, since a PDF file is already returned with this method. See also Displaying and Printing PDF-Based Forms.
    You also require authorization from your administrator to run this report.
    The PDF file is generated as follows with report RSTXPDFT4:
           1.      Generate a spool request from the document to be printed.
           2.      In transaction SE38, start report rstxpdft4.
           3.      In the displayed window, enter the spool request number and the directory in which the PDF file is to be stored.
    Leave the Download PDF File option selected.
    Choose  Execute.
           4.      In the next window, you can confirm or change the path in which the file is be stored.
    Save your entries.
           5.      The system displays a log from which you can see whether the report was successfully performed.
    You can then open the file from the directory and print it as required.
    Restrictions for Exporting as a PDF File
    ·        The PDF conversion only supports true bar codes for Smart Forms, which were generated with the new bar code technology as of SAP NetWeaver 04. In all other cases, the bar code is only simulated.
    ·        PDF conversion, especially of ABAP lists, is slower and is therefore not suitable for mass printing. However, you can speed up the conversion to PDF using the FASTLISTCONV option in report RSTXPDF3.
    ·        The font selection for ABAP lists is predefined in the PDF converter and cannot be changed.
    For more information about constraints, see SAP Note 323736 in the SAP Service Marketplace
    see this links
    http://help.sap.com/saphelp_40b/helpdata/en/d9/4a98f351ea11d189570000e829fbbd/content.htm
    http://web.mit.edu/SAPR3/docs/webdocs/reports/rpRFprint.html
    regards
    shankar
    reward me if usefull

  • 0calweek issue for report output

    0calweek issue for report output
    I have loaded 0calweek in  my infosource.0calweek format is displaying  differently
    in the report
    File : 12005
    PSA   :12005
    ODS  : 012005
    Cube : 012005
    Report: 05/0120
    I am loading first to PSA -> Process Manually to ODS -> Cube
    I am using 0calweek is SAP Provided object.I am not doing anything in the 0calweek
    Please advise on this.
    Advance Thanks

    I solved this issue. I changed the layout everything seems to working now.

  • Need to download the report output list to a Excel file.

    Hi,
       I have a report output list, which i need to download to an Excel file, could any body suggest how to do this with out writing the ws_download.
    My report data is coming from two internal tables, one internal table for left side reprt display and another internal table for right side report display, both the internal tables having the same fields.
    suggest me how to combine these two internal table data in one internal table.
    2 internal table structure is same but data is different.
    Sunil

    Hi,
    in the o/p list use the below menu path.
    LIST>SAVE/SEND>FILE,
    then a pop-up window with different formates will appear,then choose u r required format.
    Thanks,
    Anji

  • Issue in Report output

    Issue in Report output
    I am facing strange issue. I have created a BEx query and Executed in Bex analyser. In this output I can able to see * mark as values instead of KF.
    Anyone can help me in this.

    hi,
    can you use NODIM functionality and see .
    Ravi

  • Need to have an identifier on the Report Output List View (My BIP Reports)

    Please help as we need to have an identifier e.a (Quote Id - Report Name) when the BIP
    report was generated in Report Output List View, is it possible to customize
    this vanilla functionallity or is there a patch we need in order to apply
    this requirement?

    i doubt it is from skype. i havent used skype in 2 days or so.
    here are the crash reports IDs from JUST today..
    bp-8c7fab55-79c8-4db1-9527-4ba072111013 10/13/2011 4:51 PM
    bp-db6bf6c4-cf34-4eae-a742-105842111013 10/13/2011 4:51 PM
    bp-f28611cf-3ff0-4658-a843-05da92111013 10/13/2011 4:32 PM
    bp-03fa57ef-580d-4f1d-8fb4-52ac72111013 10/13/2011 4:21 PM
    bp-d07e0d82-df2a-41c8-a19b-bb99e2111013 10/13/2011 4:19 PM
    bp-fafbd8cf-6769-4b76-8153-c17242111013 10/13/2011 4:06 PM
    bp-ee9694ab-585b-4963-8b94-e46432111013 10/13/2011 3:47 PM
    bp-773242e1-a87d-4e19-90cb-ce4e52111013 10/13/2011 3:37 PM
    bp-6bae0db3-895b-4239-8a71-758ce2111013 10/13/2011 3:36 PM
    bp-6dfc1b57-5a8f-4244-baa1-8d0642111013 10/13/2011 3:36 PM
    bp-9a6589cd-0e2f-4299-b517-a6c862111013 10/13/2011 3:31 PM

  • PDF Print issue in Report designer

    Hi All,
          I am using Report Designer for formatting group of reports. The issue I face in all is the that when I open the print version of the output in PDF, the words break, for eg: "Department of Biochemistry" will be displayed as "Department of bioc
    hemistry". I want to set up in such a way that if the whole word can't fit in one line, then the whole word should go to the next line and not break itself. I see that issue only in Print version whereas when I display the output, that issue doesnot come.
    Can anyone let me know what setting I need to do to fix this?
    Thanks a lot!!

    Pls refer to this link for help
    http://www.dynalivery.com/customersupport/faq/pdfprinting.html
    Please assign points if this was useful

  • RDF Report Output Got Displayed in Special Chars

    Team,
    RDF report output is getting displayed in special chars.
    when i query the data from SQL Developer, the data is displayed fine.
    But when the data is displayed in the report the characters(single quotes, double quotes) are not displayed properly, they are displayed in a special char.
    why it is happening so . Is it related any font missing ? Plz do let me know.
    thanks
    sridhar

    (single quotes, double quotes) These are probably not really single and double quotes. Check the ASCII value.
    drop table ttest;
    create table ttest (col1 varchar2(10));
    insert into ttest values ('''Quote''');
    insert into ttest values ('"Quote"');
    select * from ttest;
    select dump(col1) from ttest;
    Table dropped.
    Table created.
    1 row created.
    1 row created.
    COL1     
    'Quote'  
    "Quote"  
    2 rows selected.
    DUMP(COL1)                                                                     
    Typ=1 Len=7: 39,81,117,111,116,101,39                                          
    Typ=1 Len=7: 34,81,117,111,116,101,34                                          
    2 rows selected.

  • How to print check box in ALV list display and how to pick selected ones

    Hi
    i am displaying one ALV list dispaly. for that im adding one check box fields by filling the fieldcat as below:
      wa_fldcat-checkbox = 'X'.
      wa_fldcat-edit = 'X'.
    but the check box is showing disable mode only. i want to display that check box and if i select that check box i want pick that records. for ALV grid i found one FM to pick records of selectedones as below.
    DATA ref_grid TYPE REF TO cl_gui_alv_grid.
      IF ref_grid IS INITIAL.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            e_grid = ref_grid.
      ENDIF.
      IF ref_grid IS NOT INITIAL.
        CALL METHOD ref_grid->check_changed_data.
      ENDIF.
    but how can i do for list display to pick those selected one records.
    Can any one sugget regarding this.
    Thanks in advance.
    Rahul.

    Hi,
    Thanks. now it's enabled. but how can we pick the records from that list whichever i selected through that check box.
    i found this one for ALV grid:
    DATA ref_grid TYPE REF TO cl_gui_alv_grid.
      IF ref_grid IS INITIAL.
        CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            e_grid = ref_grid.
      ENDIF.
      IF ref_grid IS NOT INITIAL.
        CALL METHOD ref_grid->check_changed_data.
      ENDIF.
    but how for ALV normal list display.
    Thanks.
    rahul

  • PDF Printing Issue - Customised Report Layout Error

    Hi,
    I am trying to get a PDF file output based on the customised RTF file created. I follow the following steps but I am facing an issue with that.
    (i) Go to Shared Components > Report Queries.
    (ii) Create a new Report query with more than one query.
    (iii) Using the XML Data in the Report queries, create a Report Layout (RTF) file.
    (iv) Navigate to shared components Report Layout and upload the RTF file.
    (v) Once this is done, use the Report Layout created in the Report Queries. Select the Layout name from the Drop Down.
    (vi) Click on TEST REPORT, this produces an error: Adobe Reader could not open the <file name> because it is either not a supported file type or because the file has been damaged (for example it was sent as an email attachment and wasn't correctly decoded )
    Additional Info
    The apex instance configured with Embbedded plsql, rdbms version is 11.1.0.7.0 and the BI publisher version 10.1.3.3.
    ISSUE DESC
    When I use mulitple Queries even after using Generic Report Layout I get the output for the first query alone in the PDF and the remaining Queries are ignored.
    And when i use a user defined template, then even If i have a single report query I get the error.
    To summarise, I am not able to use the customised Layouts.
    I have reproduced the issue in apex.oracle.com
    Please log in using,
    WORKSPACE: demo_test
    USER NAME: [email protected]
    pwd: vidhya
    After logging in please select the Application Builder.
    In that select the Application named PDF.
    Select the Shared components > Report Queries
    Select the Report Query named test.
    Click on the TEST REPORT button in the Source Queries Section.
    You will get the error.
    Now in the same page in the Report Query Attributes Section change the Report Layout to Use Generic Report Layout and then click on 'TEST REPORT', this will give the PDF file without errors.
    The same report has been called from the PRINT REPORT button provided in the page 1 of the application.
    This issue is really urgent and critical. Require your inputs/help.
    Thanks,
    Ramya

    I' an APEX newbie and believe I am having the same or a similar problem. I am (for now) developing a system using the hosted Apex development system online. I have created a Report Query which works fine with the default layout. I downloaded the XML (tried both sample data and schema) into Word 2007 with the BI Publisher Template Builder. I used the table wizard to create a simple layout containing all columns with no customization at all. Saved as an RTF, uploaded to Apex as a Report Layout, associated it with the Report Query, clicked Test Report -- and I got nothing.
    When the is a PDF, I get the same error you mention ( Adobe Reader could not open the <file name> because it is either not a supported file type or because the file has been damaged (for example it was sent as an email attachment and wasn't correctly decoded ). If I switch to an HTML file the out is just a blank screen.
    If I switch back to generic report layout, it works fine. This suggests there is something wrong with the template, though it looks fine in Word with the sample data.
    I've searched the forums and Google for the better part of a day. What am I missing?

  • Report output list to internal table using submit report

    Hello,
    I have a report that generates the output in the form of an abap list. I want this data in an internal table for further processing. the report internally does not do a export data to memory so i cannot use import later on to get the data.
    i did the following
    SUBMIT <report name> exportING LIST TO MEMORY and return.
    CALL FUNCTION 'LIST_FROM_MEMORY'
      TABLES
        listobject = itab_list
      EXCEPTIONS
        not_found  = 4
        OTHERS     = 8.
    CALL FUNCTION 'LIST_TO_ASCI'
      EXPORTING
        list_index         = -1
      TABLES
        listasci           = ascitab
        listobject         = itab_list
      EXCEPTIONS
        empty_list         = 1
        list_index_invalid = 2
        OTHERS             = 3.
    This returns the data in the ascitab, but the data contains additional unwanted info like lines and hyphens etc. Also the data is in a table with a single column, so pulling out individuals fields is again an issue. Is there a way to get this data into an internal table directly?
    best regards,
    Suraj

    hi suraj
    export the internal table  of report
    DATA: BEGIN OF SR_VBAK ,
          VBELN LIKE VBAK-VBELN,
          END OF SR_VBAK.
    DATA: IR_VBAK LIKE STANDARD TABLE OF SR_VBAK WITH HEADER LINE.
    EXPORT IR_VBAK TO MEMORY ID 'SALES'.
           SUBMIT <program name in which u want internal table records > AND RETURN.
    now import that data in submit program  .
    here u have to creat a internal table with same structure as the internal table from which u r trying to export the data
    DATA: BEGIN OF SR_VBAK,
          VBELN LIKE VBAK-VBELN,
          END OF SR_VBAK.
    DATA : IR_VBAK LIKE STANDARD TABLE OF SR_VBAK WITH HEADER LINE.
    IMPORT IR_VBAK FROM MEMORY ID 'SALES'.
    regards
    ANIL CHAUDHaRY

  • Send report output(alv display) as email to end user

    I have developed a report the output of which has to be sent to the end user if he enters his email id in selection screen. The out put is in alv form. Pls can anyone tell me how to send this displayed output as an email attachment using function module SO_NEW_DOCUMENT_ATT_SEND_API1 . I am wondering How this displayed output can be passed as a parameter to this function module.

    Thanks Sham..
    I am able to send HTML email following above link.
    The problem i am facing is,When i am deploying the code through crxde.Code is working fine.
    But using maven deploy..Bundle get activated ..But at line:
    messageGateway = this.messageGatewayService.getGateway(HtmlEmail.class);
    ,it gives null Pointer exception.
    Any pointer,why its not working from maven deployment.
    Regards
    Deepika

  • 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

  • Report Output not displaying

    Hi folks,
    I am experiencing a strange problem. I created a master-detail report in the builder that takes a single user defined parameter.
    On running the report and entering the requested parameter value, all i get is a report that shows no data at all. All i get is a title.
    I thought there was a problem with my parameter value, but further examination showed that was not the case. I then created another report that is similar to the preceding one but which required no parameter. i got the same result.
    All other reports created exhibit the same behavior.
    Any clues as to what's going on. Only started today.
    Thanks a lot.
    PS: Report builder keeps crashing. Latest error message was as follows
    'instruction at "0x77f58bdd" referenced memory at "0x50207373". the memory could not be "written".
    click on OK to terminate the program.'
    It's very frustrating. Can anyone help out.
    I have a lot of RAM(384MB) and i am running Win XP Professional on a Pentium 1.6GHz PC.
    Thanks.

    hello,
    this sounds like a job for oracle support services. the only thing i can advise you is to upgrade to the latest patchset of whatever version of reports you are on to try to get rid of the crashes.
    about the behaviour you describe with the report not showing any output, this is very hard to solve here via the forums as you are basically saying that none of your reports returns any data, which is very strange.
    regards,
    philipp

Maybe you are looking for