ALV Print

Hi ,
I am trying to print the alv output ,but i dont want the popup screen which comes before the print,how can i  supress the screen,please suggest.below is my code.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
              EXPORTING
                   mode                   = 'CURRENT'
                   immediately            = ''
                   line_size              = ''              "#EC *
           new_list_id            = l_new_list_id
                   no_dialog              = 'X'
                   in_parameters          = mstr_print_parms
                   in_archive_parameters  = t_arc_params
              IMPORTING
                   out_archive_parameters = t_arc_params
                   out_parameters         = mstr_print_parms
                   valid                  = l_valid
              EXCEPTIONS
                   archive_info_not_found = 1
                   invalid_print_params   = 2
                   invalid_archive_params = 3
                   OTHERS                 = 4.
    CLEAR variant-handle.
    variant-variant = p_vari.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
          I_INTERFACE_CHECK        = ' '
            i_buffer_active          = space "c_x                  "ALRK241034
            i_callback_program       = 'Report Name'
            i_callback_pf_status_set = 'PF_STATUS_SET'
            i_callback_user_command  = 'HANDLE_USER_COMMAND'
          I_STRUCTURE_NAME         = 'BSEG'
            is_layout                = layout
            it_fieldcat              = fieldcat
            i_default                = 'X'
(del)     i_save                   = 'A'                 "Note 319936
            i_save                   = l_save              "Note 319936
            is_variant               = variant
            is_print                 = gs_print
            it_events                = events
            it_event_exit            = it_event_exit
         TABLES
              t_outtab                 = xbseg
         EXCEPTIONS
              program_error            = 1
              OTHERS                   = 2.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.

i think the length of table exeeds the layout length,,,
in ur fieldcatalog,assign some fixedlength for all fields,
there is one valiable   wa_fcat-outputlen = '0004'.
u have to pass some fixed length and try d out put.
regards,
ramesh.

Similar Messages

  • Font size in alv printing

    He friends,
    While  I am printing report  from alv  it is printing in small font size , Please advise how to increase font size in alv printing .
    Regards
    S.Sharma

    Hi,
    http://help.sap.com/saphelp_nw04/helpdata/en/b6/e3eb40c4f8712ae10000000a155106/frameset.htm
    For Fontsize also you have option in the ADD_TEXT method.
    For Details check this program DD_STYLE_TABLE
    Edited by: Neenu Jose on Oct 24, 2008 10:37 AM
    Edited by: Neenu Jose on Oct 24, 2008 10:38 AM

  • Footer problem in alv print

    Hi All,
    I have a problem in footer of alv printing.
    When i m taking a print of alv with a footer its omit blank line space whole. While i have a requirement to put some space line after alv and then footer should print.
    How can i achieve this ?

    Hi Rajesh,
      You mean printing is displaying the list or what ?
    If the problem is while displaying the list then do this.
      In subroutine of 'END_OF_LIST' before write statement you just use SKIP <lines>. Then blank space is displayed between ALV list and footer.
    Regards,
    Rajitha.

  • ALV Print event in Custom Button

    Hi,
    I have requirement to call ALV print event in Custom Button after some condition. Can anyone give me the solution or link to achieve this requirement.
    Thank in advance.

    Hi Mani,
    On that ALV button event, write the following code.
      DATA lo_component TYPE REF TO if_wd_component.
      DATA lo_appl      TYPE REF TO if_wd_application.
      lo_component = wd_comp_controller->wd_get_api( ).
      lo_appl      = lo_component->get_application( ).
      lo_appl->print_page( ).
      DATA lo_app_info TYPE REF TO if_wd_rr_application .
      lo_app_info = lo_appl->get_application_info( ).
      DATA lv_app_name TYPE string .
      lv_app_name = lo_app_info->get_name( ).
    It helps you to print the table contents. Hope this helps you.
    Thanks
    KH

  • ALV print in background : print dialog pops up

    Hi,
    I want to print a ALV grid to Spool in background......................I am using FM ' REUSE_ALV_GRID_DISPLAY'
    But when I execvute the program in foreground or background the print selection dialog comes up....................How to avoid this........................Any ideas or experience
    *-- CODE--
    **- Get printer parameters
    DATA : l_params.
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          IMMEDIATELY            = SPACE
          LAYOUT                 = 'X_58_170"'
          LINE_COUNT             = '58'
          LINE_SIZE              = '1024'
          NO_DIALOG              = 'X'
          DESTINATION            = 'LOCL'
        IMPORTING
          OUT_PARAMETERS         = l_params
        EXCEPTIONS
          ARCHIVE_INFO_NOT_FOUND = 1
          INVALID_PRINT_PARAMS   = 2
          INVALID_ARCHIVE_PARAMS = 3
          OTHERS                 = 4.
    *- Prepare ALV print str.
      l_print-print = abap_true .                  
      l_print-print_ctrl = lfd_params.
      l_print-NO_CHANGE_PRINT_PARAMS = abap_true. 
      l_print-no_print_listinfos = 'N'.
    *-Call ALV in background
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = l_repid
    *        i_callback_pf_status_set = L_pf_stat
    *        i_callback_user_command  = l_user_cmd
          i_callback_top_of_page   = l_top_page
          is_layout                = l_layout
          it_fieldcat              = lt_ALV_fcat
          IS_PRINT                 = l_print
          i_save                   = 'A'
        TABLES
          t_outtab                 = lt_objects
        EXCEPTIONS
          program_error            = 1.
    <Added code tags>
    Edited by: Suhas Saha on Nov 21, 2011 2:54 PM

    Hi,
    try K_KKB_LIST_DISPLAY fm. The below code can gives you an idea.
    DATA: SELF LIKE SY-REPID.
    DATA: END_OF_LIST_ROUTINE type KKBLO_FORMNAME.
    GS_LAYOUT-NO_PRINT_LISTINFOS = 'X'.  "No selinfolist when printing
    GS_LAYOUT-NO_PRINT_SELINFOS = 'X'.
    END_OF_LIST_ROUTINE       = 'ERROR_LIST'.
    IF SY-BATCH = TRUE.   "this part you need
      GS_LAYOUT-PRINT = 'X'.            "Get Print_Parameters
      GS_LAYOUT-MIN_LINESIZE = 132.
      GS_LAYOUT-SUPPRESS_DYNPRO = ' '.  "no call screens
    ENDIF.    "this part you need
      SELF = SY-REPID.
      CALL FUNCTION 'K_KKB_LIST_DISPLAY'
           EXPORTING
              I_CALLBACK_PROGRAM       = SELF
              I_CALLBACK_USER_COMMAND  = 'USER_COMMAND_SEG_REV'
              I_CALLBACK_PF_STATUS_SET = 'SET_STATUS_SEG_REV'
              I_CALLBACK_END_OF_LIST   = END_OF_LIST_ROUTINE
              IS_LAYOUT                = GS_LAYOUT
              I_CALLBACK_TOP_OF_PAGE   = 'TOP_OF_PAGE_SEG_REV'
              I_TABNAME                = 'GT_SEG_REVREB'
              IT_FIELDCAT              = XFIELD
    *         it_special_groups        = gt_groups
    *      importing
    *         e_exit_caused_by_caller  = exit_caused_by_caller
           TABLES
                T_OUTTAB               = GT_SEG_REVREB
           EXCEPTIONS
                OTHERS                 = 1.
      IF SY-SUBRC = 1.
        MESSAGE E161.
    *   Fehler bei Aufruf Listtool
      ENDIF.
    Çağatay

  • ALV Print dump

    Hi
    I am getting ABAP dump when i printing alv report using PRINT button.
    Error is
    Field symbol has not yet been assigned
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM      = G_REPID
          I_CALLBACK_USER_COMMAND = G_USER_COMMAND
          IT_FIELDCAT             = FIELDCAT[]
          IS_LAYOUT               = GS_LAYOUT
          I_SAVE                  = G_SAVE
          IT_SORT                 = GS_SORT
          IT_FILTER               = GS_FILTER
          IS_VARIANT              = GS_VARIANT
          IT_EVENTS               = GT_EVENTS[]
          IS_PRINT                = GS_PRINT
        IMPORTING
          E_EXIT_CAUSED_BY_CALLER = G_EXIT_CAUSED_BY_CALLER
          ES_EXIT_CAUSED_BY_USER  = GS_EXIT_CAUSED_BY_USER
        TABLES
          T_OUTTAB                = I_PODETL
        EXCEPTIONS
          PROGRAM_ERROR           = 1
          OTHERS                  = 2.
    Pls advise me
    Thanks
    Kumar

    hi check this..
    use this...
    wa_fieldcat-fieldname = 'FIELD'.
    wa_fieldcat-reptext_ddic = 'Descrition;.
    append wa_fieldcat to  it_fieldcat .
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM      = G_REPID
          I_CALLBACK_USER_COMMAND = G_USER_COMMAND
          IT_FIELDCAT             = FIELDCAT[]
          IS_LAYOUT               = GS_LAYOUT
          I_SAVE                  = G_SAVE
          IT_SORT                 = GS_SORT
          IT_FILTER               = GS_FILTER
          IS_VARIANT              = GS_VARIANT
          IT_EVENTS               = GT_EVENTS[]
          IS_PRINT                = GS_PRINT
        TABLES
          T_OUTTAB                = I_PODETL
        EXCEPTIONS
          PROGRAM_ERROR           = 1
          OTHERS                  = 2.
    regards,
    venkat.

  • ALV print issue in top-of-page

    Hi,
    I have developed a alv report using REUSE_ALV_GRID_DISPLAY function module. I am using top-of-page event in events table to output top-of-page details. It is showing output correctly on screen but when I do a print preview, it is showing only the grid details and no header info from top-of-page. Please advise what can be the issue? I might be missing some parameter somewhere..I am creating my field catalog manually w/o reference to a structure or internal table..can this be a issue..
    Thanks in advance

    Have you passed the program name in parameter I_CALLBACK_PROGRAM
    DATA:f_repid TYPE sy-repid.
    f_repid = sy-repid.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         i_callback_program      = f_repid  "  Program name

  • Header in ALV print (no OO)

    Hi friends! I need some help. I made an ALV using function (not OO). IN screen everything is fine, inclusive header with logo, but when I send it to printer, all header don't print! Why my header don't get printed?
    Thanks for any help!

    Hi Fulvio,
    I just tried and it works with this form
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        I_CALLBACK_TOP_OF_PAGE                = 'TOP'
    FORM top.
      data:
        lt_LISTHEADER      type SLIS_T_LISTHEADER.
      FIELD-SYMBOLS:
        <LISTHEADER>       type line of SLIS_T_LISTHEADER.
      APPEND INITIAL LINE TO lt_LISTHEADER.
      APPEND INITIAL LINE TO lt_LISTHEADER ASSIGNING <LISTHEADER>.
      <LISTHEADER>-typ = 'H'.
      <LISTHEADER>-info = 'Report Fiotec of users '.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
    *      i_logo             = 'FIOTEC_LOGO1'
          it_list_commentary = lt_LISTHEADER.
    ENDFORM.                    "top
    In the grid, we have big-sized 'Report Fiotec of users ', space line before is ignored.
    In print preview as in the spool file, 'Report Fiotec of users ' is output on top in default character size.
    You may set a breakpoint in the Form to see if it is called and processed correctly.  Possibly it is because you try to create the output only on first page - that mean only once in your case. Better check IF SY-PAGNO = 1 or use the event TOP_OF_LIST.
    Regards,
    Clemens

  • ALV  Print  Problem

    Hi All,
        Problem regarding  Printing  the AVL  Grid.
         There are 15 column in the  grid , while printing it gives a pop up . 23 column are not printable. in  the page  format..
    How  to   get  all  the  column  printed..?.Full Points Ensured..
    Regards..
    Lakhan

    Hi Lakan,
      in ALV Grid (OR) Normal Reort we can print upto SOme limit only.You can n't print entire ALV grid.If you want to print whole content, down load file into some notepad (Excel Sheet) and try print.

  • ALV printer question

    hi folks,
    i have a question here.
    in a screen , i've created two containers for two alv grids. the question is can i print the two reports on the same paper?
    looking forward your reply.
    thanks

    hi folks,
    i have a question here.
    in a screen , i've created two containers for two alv grids. the question is can i print the two reports on the same paper?
    looking forward your reply.
    thanks

  • Problem with alv print

    Hi,
    I am using alv grid, there is a problem with print, when i look at print preview it shows only 1 row and even the values in that row are incorrect.
    Please help me solv the problem.
    Thanks,
    Sai.

    Here is the code
    *&      Form  DISPLAY
          text
    FORM display.
      DATA : fieldcatalog TYPE slis_t_fieldcat_alv WITH HEADER LINE.
    *data : wa_fieldcat type slis_fieldcat_alv.
      DATA : t_header  TYPE slis_t_listheader,
             wa_header TYPE slis_listheader.
      DATA : cnt(3) TYPE c VALUE 0.
    cnt = cnt + 1.
      fieldcatalog-fieldname   = 'XBLNR'.
      fieldcatalog-seltext_m   = 'Invoice No'.
      fieldcatalog-col_pos     = cnt.
      fieldcatalog-outputlen   = 8.
      fieldcatalog-tabname   = 'it_final'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      cnt = cnt + 1.
      fieldcatalog-fieldname   = 'BLDAT'.
      fieldcatalog-seltext_m   = 'Invoice Date'.
      fieldcatalog-col_pos     = cnt.
      fieldcatalog-outputlen   = 9.
      fieldcatalog-tabname     = 'it_final'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
    *CT3 No.
      cnt = cnt + 1.
      fieldcatalog-fieldname   = 'SGTXT'.
      fieldcatalog-seltext_m   = 'CT3 No'.
      fieldcatalog-col_pos     = cnt.
      fieldcatalog-outputlen   = 8.
      fieldcatalog-tabname   = 'it_final'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      cnt = cnt + 1.
      fieldcatalog-fieldname   = 'MBLNR'.
      fieldcatalog-seltext_m   = 'GRR No.'.
      fieldcatalog-col_pos     = cnt.
      fieldcatalog-outputlen   = 10.
      fieldcatalog-tabname     = 'it_final'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      cnt = cnt + 1.
      fieldcatalog-fieldname   = 'BUDAT'.
      fieldcatalog-seltext_m   = 'GRR DATE'.
      fieldcatalog-col_pos     = cnt.
      fieldcatalog-outputlen   = 9.
      fieldcatalog-tabname     = 'it_final'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      cnt = cnt + 1.
      fieldcatalog-fieldname   = 'NAME1'.
      fieldcatalog-seltext_m   = 'Vendor Name'.
      fieldcatalog-col_pos     = cnt.
      fieldcatalog-outputlen   = 30.
      fieldcatalog-tabname   = 'it_final'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      cnt = cnt + 1.
      fieldcatalog-fieldname   = 'MATNR'.
      fieldcatalog-seltext_m   = 'Material No'.
      fieldcatalog-col_pos     = cnt.
      fieldcatalog-outputlen   = 18.
      fieldcatalog-tabname   = 'it_final'.
      fieldcatalog-no_zero   = 'X'.
      fieldcatalog-key         = 'X'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      cnt = cnt + 1.
      fieldcatalog-fieldname   = 'MAKTX'.
      fieldcatalog-seltext_m   = 'Matdesc'.
      fieldcatalog-col_pos     =  cnt.
      fieldcatalog-outputlen   =  30.
      fieldcatalog-tabname   = 'it_final'.
      fieldcatalog-key         = 'X'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
    **Excise Duty
    cnt = cnt + 1.
    fieldcatalog-fieldname   = 'EDUTY'.
    fieldcatalog-seltext_m   = 'EXCISE DUTY '.
    fieldcatalog-col_pos     = cnt.
    fieldcatalog-outputlen   = 30.
    fieldcatalog-tabname   = 'it_final'.
    fieldcatalog-do_sum    = 'X'.
    APPEND fieldcatalog TO fieldcatalog.
    CLEAR  fieldcatalog.
    *Excise Duty
      cnt = cnt + 1.
      fieldcatalog-fieldname   = 'DBDTY'.
      fieldcatalog-seltext_m   = 'DEBIT DUTY '.
      fieldcatalog-col_pos     = cnt.
      fieldcatalog-outputlen   = 12.
      fieldcatalog-tabname   = 'it_final'.
      fieldcatalog-do_sum    = 'X'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
    *Excise Duty
      cnt = cnt + 1.
      fieldcatalog-fieldname   = 'CRDTY'.
      fieldcatalog-seltext_m   = 'CREDIT DUTY '.
      fieldcatalog-col_pos     = cnt.
      fieldcatalog-outputlen   = 12.
      fieldcatalog-tabname   = 'it_final'.
      fieldcatalog-do_sum    = 'X'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
    *Credit Date
      cnt = cnt + 1.
      fieldcatalog-fieldname   = 'CRDAT'.
      fieldcatalog-seltext_m   = 'Cr. DATE'.
      fieldcatalog-col_pos     = cnt.
      fieldcatalog-outputlen   = 9.
      fieldcatalog-tabname     = 'it_final'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
    *Closing Balance
      cnt = cnt + 1.
      fieldcatalog-fieldname   = 'CL_BALANCE'.
      fieldcatalog-seltext_m   = 'BALANCE AMT'.
      fieldcatalog-col_pos     = cnt.
      fieldcatalog-outputlen   = 15.
      fieldcatalog-tabname   = 'it_final1'.
      APPEND fieldcatalog TO fieldcatalog.
      CLEAR  fieldcatalog.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = sy-repid
          i_callback_top_of_page   = 'TOP-OF-PAGE'
          it_fieldcat              = fieldcatalog[]
          i_save                   = 'X'
        TABLES
          t_outtab                 = it_final[]
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
    ENDFORM.                    "DISPLAY
    Form  TOP-OF-PAGE                                                 *
    ALV Report Header                                                 *
    FORM top-of-page.
    *ALV Header declarations
      DATA: t_header TYPE slis_t_listheader,
            wa_header TYPE slis_listheader,
            t_line LIKE wa_header-info,
            ld_lines TYPE i,
            ld_linesc(10) TYPE c,
            v_date1(10),
            v_date2(10).
    Title
      wa_header-typ  = 'H'.
      wa_header-info = 'B-17 BOND REGISTER - INDIGENOUS RAW MATERIALS'.
      APPEND wa_header TO t_header.
      CLEAR wa_header.
    Date
      wa_header-typ  = 'S'.
      wa_header-key = ' Report generated on Date: '.
      CONCATENATE  sy-datum+6(2) '.'
                   sy-datum+4(2) '.'
                   sy-datum(4) INTO wa_header-info.   "todays date
      APPEND wa_header TO t_header.
      CLEAR: wa_header.
    opening balance
      wa_header-typ  = 'S'.
      wa_header-key = ' Opening Amount: '.
      wa_header-info = gv_op_balance.   "Opening amount
      APPEND wa_header TO t_header.
      CLEAR: wa_header.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = t_header.
        i_logo             = 'ENJOYSAP_LOGO'.
    ENDFORM.                    "top-of-page

  • ALV printing setting Layout

    Hello I do have an issue printing at ALV -  I want the Layout X_44_120 -
    g_grid  TYPE REF TO cl_gui_alv_gri
      ps_print-print_ctrl-pri_params-LINCT    = 44.
      ps_print-print_ctrl-pri_params-linsz    = '120'.
      ps_print-print_ctrl-pri_params-paart    = 'X_44_120'.
    CALL METHOD g_grid->set_table_for_first_display        EXPORTING
          is_variant           = my_variant
          is_layout            = ps_layout
          is_print             = ps_print
    I do   CALL FUNCTION 'UNSET_PRINTPARAMETER'
    I do   CALL FUNCTION 'SET_PRINTPARAMETER'
      lay = 'X_44_120'.
      lines = 44.
      rows  = 120.
      CALL FUNCTION 'SET_PRINT_PARAMETERS'
        EXPORTING
          LAYOUT     = lay
          LINE_COUNT = lines
          LINE_SIZE  = rows.
    CALL FUNCTION 'SET_PRINTPARAMETER_VALUE'
      EXPORTING
        NAME                    = 'LAYOUT'
        VALUE                   = 'X_44_120'
        IN_PARAMETERS           = PRI_PARAMS
    and when I want to print I always get X_65_132
    what can I do more/different to change the settings
    many thanks
    Elisabeth

    Hi Elisabeth,
    use FM 'GET_PRINT_PARAMETERS' & pass
    LAYOUT = 'X_44_120'
    Also pass the output device type..print immediately etc...
    Best regards,
    Prashant

  • ALV printed in batch with fixed columns

    Hi,
    I am trying to print an ALV List report in a batch job. Fixed column widths and a filter on the layout was a requirement, so I have a layout variant as part of the initial selection screen and my batch variant.
    When I print online, it looks great. When I print through batch, the font is much bigger and the rows wrap. Is there a way to print using a layout variant for ALV list in batch?
    Thanks!

    Hi,
    When you execute an ALV List through a Job, the Output Settings are determined by the Printer settings that are set for the Output device that you have selected while creating the backgorund job. so i suggest you will have to look at those settings and make the changes occordingly or change the output device that you select.
    regards,
    Mahesh

  • Leading zero was lost in spool when ALV print out

    When run a ALV report and print out in background job,the leading zero is lost
    e.g.: vendor (type c)
          0000000001
            In spool:   1..
    How to show the leading zero when printing out ?
    Thanks  in advance

    hi,
    You can use FM
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
           EXPORTING
             input         =
         IMPORTING
           OUTPUT        =
    where input parameter and output parameter would be ths vendor(the field you want with zeros)
    Hope this will help you.
    thanks
    Tanmaya Gupta

  • ALV - print - create spool request

    Hi all,
    We have made SAP Query (The majority and 'was written in ABAP code), a report using ALV grid (function 'REUSE_ALV_GRID_DISPLAY'). There is a 'Print' button on the grid. If the user presses this button the system will send a screen where the user can choose print parameters (name of printer, printing, direct or not, etc..) If the user presses 'Continue' a spool request is then created.
    But the users do not want to see the screen parameters.
    After pressing the button 'Print' on the grid, the spool request should be immediately created using the parameters seted in the ABAP program, the same program that creates ALV.
    Any idea how to do this?
    Thanks in advance

    Hi,
    Please refer to the link to add button in the ALV tool bar:
    [http://www.sapalv.net/2009/07/sap-alv-tutorial-4-%E2%80%93-add-button-to-toolbar/]
    For creating spool on click of this pushbutton you can use the following:
    * Set the Spool Parameters
      DATA: lwa_params TYPE pri_params,
            lv_valid TYPE c.
      CLEAR: lwa_params, lv_valid.
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          in_parameters          = lwa_params
          layout                 = 'X_65_132'
          line_count             = 65
          line_size              = 132
          no_dialog              = 'X'
        IMPORTING
          out_parameters         = lwa_params
          valid                  = lv_valid
        EXCEPTIONS
          archive_info_not_found = 1
          invalid_print_params   = 2
          invalid_archive_params = 3
          OTHERS                 = 4.
      IF sy-subrc EQ 0.
        NEW-PAGE PRINT ON PARAMETERS lwa_params NO DIALOG.
    *                  Write code for displaying the ALV here......
        NEW-PAGE PRINT OFF.
      ENDIF.
    Regards,
    Aparna Alashe.

  • ALV print header

    Hi,
    I need to print the main header again when the subtotal is printed in the same page, I don´t want to force a new page, Is it possible ?
    Domingos.
    Eg: 
    Page 1
    header colum1  colum2 colum3...
             x        x     x
           subtotal  xxxxxxxxxxxxxx
    header colum1  colum2 colum3...
             x        x     x
           subtotal  xxxxxxxxxxxxxx
    Page 2
    header colum1  colum2 colum3...
             x        x     x
           subtotal  xxxxxxxxxxxxxx
    header colum1  colum2 colum3...
             x        x     x
           subtotal  xxxxxxxxxxxxxx

    Domingo,
    How were you able to print the ALV headers and pages. Please share your knowledge.
    Thanks,
    Chaitanya

Maybe you are looking for

  • Changes to list view in iTunes 8

    I've noticed some changes to the list view in iTunes 8, which in my personal opinion, means it doesn't look as good as in previous versions. For example, in previous versions there was a little gap between albums, there are now all bunched up togethe

  • HT5527 Status of iCloud upgrade.

    I cannot tell what my iCloud storage situation is.  I have attempted to purchase additional storage.  There may have been a problem with my CC info, but I fixed that.  But I cannot tell if there will be an automatic upgrade on 30 Sept or not.  I get

  • How to preserve the image quality

    Hi using Oracle9idatabse and dev6i i have two tables EMP,EMP_SNAP. EMP Coloums(Emp_id......) emp_snap(emp id,snap(longraw)) Trough form when i get the picture using faollowing Codding through a buttuon GET_PICTURE(BUTTON) DECLARE      filename VARCHA

  • Tape_copy_command

    Hi, We are using Netbackup for taking the backup.In the init<sid>.sap we are using tape_copy_command=cpio. Our os is Solaris. Please confirm whether we can take the backup using Netbackup with tape_copy_command=dd. Regards Mukunthan

  • Adobe Captivate 7: Change font size of imported localized closed captions

    I'm attempting to use the export/import captions functionality in Captivate 7 and when I import the text, the imported Japanese characters are HUGE. The font in the imported Word doc aren't that big and I'm unsure how to adjust the imported closed ca