ALV hirarchial report - Printing.

Hi,
When number of items excceds the page, header details has to print once again  in new page while the report print.
can any bopdy tell me, how i can do this.
Regards, Sri

Hi,
In ALV, once you press page up/donw, header will not change.
Regs
Rams

Similar Messages

  • Problem in ALV report printing

    Hi,
    I am facing issue while printing the ALV report. The no. of columns in output are dynamic.
    System is giving the printout for 9 columns . If no. of columns are increasing than its printing only one line with garbage values.
    Can anybody help to fix this issue. We need print of 27 (3 static + 24 dynamic (for 12 months)) columns in one go.
    Thanks in advance,
    Vijeta
    Moderator message - Moved to the correct forum
    Edited by: Rob Burbank on Jun 9, 2009 9:30 AM

    Hi
    The font size depends on the format you've choosen for the print.
    The abap list arranges the page as grid: colunmXrow.
    Every colunm of a page means a character.
    If you use the standard format X_65_200, it means you're page is arranged for 65 row and 200 colunm:
    that means the size of a character is optimized to can print 200 chararcter in a A4 page.
    If you use the standard format X_65_132 it means you're page is arranged for 65 row and132 colunm:
    that means the size of a character is optimized to can print 132 chararcter in a A4 page.
    So that mean the size of format X_65_132 will be bigger than X_65_200, because in the same space (page A4) it needs to write 132 char instead of 200.
    If your report print NN char, u should use the format wiith number colunm is closer to NN.
    If there isn't a format or u use the first available format or u create a new one by trx SPAD.
    Max

  • Alv report print problems

    Hi all
    I have a problem when i print my alv grid report it first prints the title page then the revelent pages can i remove that title page.
    thanks

    have you checked with your windows administrator??

  • Font is small while printing alv list report

    Hi,
    while printing ALV list report font is too small, can you tell me where i can increase the font size. I tried in GUI font ,In which i can increase the font for GUI, not for ALV priniting . Can any body help me to solve this problem?
    Regards,
    siva kumar

    HI Kushboo,
    I think You are talking about header text in ALV , while printing ALV list i need to increase all the font size.. In fieldcatlog there is no option called Style...for increasing ALV font line item details. Can you tell me which style you are talking about?
    Regards,
    siva kumar

  • Alv list report-problems while printing

    hai,
    i get following dump error when tryign to print a alv list report.
    'Illegal interruption of the event LOAD-OF-PROGRAM.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "SAPLSZA12" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
    Error analysis
        During the flow of the event LOAD-OF-PROGRAM (event for the
        initialization of an ABAP program), a condition occurred under which
        the event was to be left early. This is not permitted as it would
        result in an inconsistent status in the ABAP program.'
    the problem resolves for a particular output(when i restrict the list to lesser rows) by changing FORMAT from
    X_65_255 to X_90_120 in the print dialog properties option..
    however this restricts the coloumn width..
    anycase i will have to print the output for all conditions.
    the problem seems to be centred around number of rows in the list output..

    is somethign wrong with the values in this internal table gt_comtypes_tab...
    this is where the dump is pointing..at LAOD OF PROGRAM EVENT
    1     FUNCTION addr_get_conversion_table.
    2     *"----
    3     ""Lokale Schnittstelle:
    4     *"  EXPORTING
    5     *"     VALUE(COMTYPES_TAB) TYPE  ADCOMTYPES_TAB
    6     *"  EXCEPTIONS
    7     *"      INTERNAL_ERROR
    8     *"----
    9
    10       comtypes_tab = gt_comtypes_tab.
    11
    12     ENDFUNCTION.
    values of gt_comtypes_tab.
    2     TEL     ADTEL
    3     FAX     ADFAX
    4     TTX     ADTTX
    5     TLX     ADTLX
    6     INT     ADSMTP
    7     RML     ADRML
    8     X40     ADX400
    9     RFC     ADRFC
    10     PRT     ADPRT
    11     SSF     ADSSF
    12     URI     ADURI
    13     PAG     ADPAG

  • How to enable excel downloading in ALV grid report.

    Hi all,
    How to enable excal downing in ALV grid report?
    Thanks in Advance.
    Siva Sankar.

    hi
    check the following code
    Example of a Simple ALV Grid Report
    REPORT  ZTUFI091                                .
    *& Report  ZDEMO_ALVGRID                                               *
    *& Example of a simple ALV Grid Report                                 *
    *& The basic requirement for this demo is to display a number of       *
    *& fields from the EKKO table.                                         *
    *REPORT  zdemo_alvgrid                 .
    TABLES:     ekko.
    type-pools: slis.                                 "ALV Declarations
    *Data Declaration
    TYPES: BEGIN OF t_ekko,
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
      statu TYPE ekpo-statu,
      aedat TYPE ekpo-aedat,
      matnr TYPE ekpo-matnr,
      menge TYPE ekpo-menge,
      meins TYPE ekpo-meins,
      netpr TYPE ekpo-netpr,
      peinh TYPE ekpo-peinh,
    END OF t_ekko.
    DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_ekko TYPE t_ekko.
    *ALV data declarations
    data: fieldcatalog type slis_t_fieldcat_alv with header line,
          gd_tab_group type slis_t_sp_group_alv,
          gd_layout    type slis_layout_alv,
          gd_repid     like sy-repid,
          gt_events     type slis_t_event,
          gd_prntparams type slis_print_alv.
    *Start-of-selection.
    START-OF-SELECTION.
    perform data_retrieval.
    perform build_fieldcatalog.
    perform build_layout.
    perform build_events.
    perform build_print_params.
    perform display_alv_report.
    *&      Form  BUILD_FIELDCATALOG
          Build Fieldcatalog for ALV Report
    form build_fieldcatalog.
    There are a number of ways to create a fieldcat.
    For the purpose of this example i will build the fieldcatalog manualy
    by populating the internal table fields individually and then
    appending the rows. This method can be the most time consuming but can
    also allow you  more control of the final product.
    Beware though, you need to ensure that all fields required are
    populated. When using some of functionality available via ALV, such as
    total. You may need to provide more information than if you were
    simply displaying the result
                  I.e. Field type may be required in-order for
                       the 'TOTAL' function to work.
      fieldcatalog-fieldname   = 'EBELN'.
      fieldcatalog-seltext_m   = 'Purchase Order'.
      fieldcatalog-col_pos     = 0.
      fieldcatalog-outputlen   = 10.
      fieldcatalog-emphasize   = 'X'.
      fieldcatalog-key         = 'X'.
    fieldcatalog-do_sum      = 'X'.
    fieldcatalog-no_zero     = 'X'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'EBELP'.
      fieldcatalog-seltext_m   = 'PO Item'.
      fieldcatalog-col_pos     = 1.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'STATU'.
      fieldcatalog-seltext_m   = 'Status'.
      fieldcatalog-col_pos     = 2.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'AEDAT'.
      fieldcatalog-seltext_m   = 'Item change date'.
      fieldcatalog-col_pos     = 3.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MATNR'.
      fieldcatalog-seltext_m   = 'Material Number'.
      fieldcatalog-col_pos     = 4.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MENGE'.
      fieldcatalog-seltext_m   = 'PO quantity'.
      fieldcatalog-col_pos     = 5.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MEINS'.
      fieldcatalog-seltext_m   = 'Order Unit'.
      fieldcatalog-col_pos     = 6.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'NETPR'.
      fieldcatalog-seltext_m   = 'Net Price'.
      fieldcatalog-col_pos     = 7.
      fieldcatalog-outputlen   = 15.
      fieldcatalog-datatype     = 'CURR'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'PEINH'.
      fieldcatalog-seltext_m   = 'Price Unit'.
      fieldcatalog-col_pos     = 8.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    endform.                    " BUILD_FIELDCATALOG
    *&      Form  BUILD_LAYOUT
          Build layout for ALV grid report
    form build_layout.
      gd_layout-no_input          = 'X'.
      gd_layout-colwidth_optimize = 'X'.
      gd_layout-totals_text       = 'Totals'(201).
    gd_layout-totals_only        = 'X'.
    gd_layout-f2code            = 'DISP'.  "Sets fcode for when double
                                            "click(press f2)
    gd_layout-zebra             = 'X'.
    gd_layout-group_change_edit = 'X'.
    gd_layout-header_text       = 'helllllo'.
    endform.                    " BUILD_LAYOUT
    *&      Form  DISPLAY_ALV_REPORT
          Display report using ALV grid
    form display_alv_report.
      gd_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_callback_top_of_page   = 'TOP-OF-PAGE'  "see FORM
                i_callback_user_command = 'USER_COMMAND'
               i_grid_title           = outtext
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
               it_special_groups       = gd_tabgroup
                it_events               = gt_events
                is_print                = gd_prntparams
                i_save                  = 'X'
               is_variant              = z_template
           tables
                t_outtab                = it_ekko
           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.
    endform.                    " DISPLAY_ALV_REPORT
    *&      Form  DATA_RETRIEVAL
          Retrieve data form EKPO table and populate itab it_ekko
    form data_retrieval.
    select ebeln ebelp statu aedat matnr menge meins netpr peinh
    up to 10 rows
      from ekpo
      into table it_ekko.
    endform.                    " DATA_RETRIEVAL
    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.
    Title
      wa_header-typ  = 'H'.
      wa_header-info = 'EKKO Table Report'.
      append wa_header to t_header.
      clear wa_header.
    Date
      wa_header-typ  = 'S'.
      wa_header-key = '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.
    Total No. of Records Selected
      describe table it_ekko lines ld_lines.
      ld_linesc = ld_lines.
      concatenate 'Total No. of Records Selected: ' ld_linesc
                        into t_line separated by space.
      wa_header-typ  = 'A'.
      wa_header-info = t_line.
      append wa_header to t_header.
      clear: wa_header, t_line.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
           exporting
                it_list_commentary = t_header.
               i_logo             = 'Z_LOGO'.
    endform.
          FORM USER_COMMAND                                          *
          --> R_UCOMM                                                *
          --> RS_SELFIELD                                            *
    FORM user_command USING r_ucomm LIKE sy-ucomm
                      rs_selfield TYPE slis_selfield.
    Check function code
      CASE r_ucomm.
        WHEN '&IC1'.
      Check field clicked on within ALVgrid report
        IF rs_selfield-fieldname = 'EBELN'.
        Read data table, using index of row user clicked on
          READ TABLE it_ekko INTO wa_ekko INDEX rs_selfield-tabindex.
        Set parameter ID for transaction screen field
          SET PARAMETER ID 'BES' FIELD wa_ekko-ebeln.
        Sxecute transaction ME23N, and skip initial data entry screen
          CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
        ENDIF.
      ENDCASE.
    ENDFORM.
    *&      Form  BUILD_EVENTS
          Build events table
    form build_events.
      data: ls_event type slis_alv_event.
      call function 'REUSE_ALV_EVENTS_GET'
           exporting
                i_list_type = 0
           importing
                et_events   = gt_events[].
      read table gt_events with key name =  slis_ev_end_of_page
                               into ls_event.
      if sy-subrc = 0.
        move 'END_OF_PAGE' to ls_event-form.
        append ls_event to gt_events.
      endif.
        read table gt_events with key name =  slis_ev_end_of_list
                               into ls_event.
      if sy-subrc = 0.
        move 'END_OF_LIST' to ls_event-form.
        append ls_event to gt_events.
      endif.
    endform.                    " BUILD_EVENTS
    *&      Form  BUILD_PRINT_PARAMS
          Setup print parameters
    form build_print_params.
      gd_prntparams-reserve_lines = '3'.   "Lines reserved for footer
      gd_prntparams-no_coverpage = 'X'.
    endform.                    " BUILD_PRINT_PARAMS
    *&      Form  END_OF_PAGE
    form END_OF_PAGE.
      data: listwidth type i,
            ld_pagepos(10) type c,
            ld_page(10)    type c.
      write: sy-uline(50).
      skip.
      write:/40 'Page:', sy-pagno .
    endform.
    *&      Form  END_OF_LIST
    form END_OF_LIST.
      data: listwidth type i,
            ld_pagepos(10) type c,
            ld_page(10)    type c.
      skip.
      write:/40 'Page:', sy-pagno .
    endform.
    hope it will help you
    regards
    sreelatha gullapalli

  • Functionality of Checkbox in ALV Grid Report

    Hi Experts,
    I created a ALV grid report with the checkbox as my first coloum and other fields as shown below. Initially, my ALV report displays as below. It is working fine till here.
    checkbox       customer     material      quantity       UOM         Sales Order    Delivery
                           C1                  M1           1                  KG
                           C1                   M2           2                  KG
                            C2                   M1          1                   KG
                            C2                  M2           2                   KG
                           C3                   M1          1                   KG
                           C3                   M2          2                   KG
                           C3                   M3           3                 KG
                            C4                  M1           1                  KG
                           C5                   M5           1                  KG
    I have created a push button on application toolbar for creating sales order and delivery using bapi's. When I click on my pushbutton, as of now it creates the SO and delivery for the first customer C1 and updates my Internal table with the sales order number and delivery number. If I need to create sales order for the second customer I need to run my ALV report again and so on for 3rd, 4th and 5th customers. It is also working fine till here.
    checkbox       customer     material      quantity       UOM     Sales Order     Delivery
                           C1                  M1           1                  KG          SO1               DEL1
                           C1                   M2           2                  KG         SO1               DEL1
                            C2                   M1          1                   KG
                            C2                  M2           2                   KG
                           C3                   M1          1                   KG
                           C3                   M2          2                   KG
                           C3                   M3           3                 KG
                            C4                  M1           1                  KG
                           C5                   M5           1                  KG
    Need help on this:
    When I select the check boxes as shown below and when I click the push button to create SO and Delivery then my program should create sales order and delivery for all the checked ones as shown below. What is the condition do I need to put here for selecting the checkbox.
    checkbox       customer     material      quantity       UOM     Sales Order     Delivery
    X                      C1                  M1           1                  KG         SO1               DEL1
    X                     C1                   M2           2                  KG         SO1               DEL1
                            C2                   M1          1                   KG
                            C2                  M2           2                   KG
    X                     C3                   M1          1                   KG        SO3             DEL3
    X                     C3                   M2          2                   KG        SO3             DEL3
    X                     C3                   M3           3                 KG          SO3            DEL3
                            C4                  M1           1                  KG
    X                     C5                   M5           1                  KG          SO5            DEL5
    I would really appreciate if somebody could help me / guide me on this. I will also post my code if someone needs to understand what I am doing exactly.
    Thanks.

    You need to use OO ABAP
    Use Class the class  1)  CL_GUI_ALV_GRID, 2) CL_GUI_CUSTOM_CONTAINER
    Create Sceen and container on same screen.
    Check following COde it used for printing purpose.
    Using AFTER_USER_COMMAND  Event you will find Check box selected entries.
    Capture those in another internal Table and use it for SO Creation
    DATA:  O_GRID TYPE REF TO CL_GUI_ALV_GRID,
           O_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
           T_FCAT TYPE LVC_T_FCAT,
           CONTAINER(15) TYPE C VALUE 'ET_CONTAINER'.
          CLASS EVENT_CLASS DEFINITION
    CLASS EVENT_CLASS DEFINITION.
      PUBLIC SECTION.
        METHODS: BEFORE_COMMAND FOR EVENT AFTER_USER_COMMAND OF CL_GUI_ALV_GRID IMPORTING E_UCOMM,
                 DOUBLE_CLICK_N  FOR EVENT DOUBLE_CLICK OF CL_GUI_ALV_GRID IMPORTING E_ROW E_COLUMN,
                 TOOLBAR FOR EVENT TOOLBAR OF CL_GUI_ALV_GRID IMPORTING E_OBJECT.
    ENDCLASS.                    "EVENT_CLASS DEFINITION
          CLASS EVENT_CLASS IMPLEMENTATION
    CLASS EVENT_CLASS IMPLEMENTATION.
      METHOD BEFORE_COMMAND.
        IF E_UCOMM = 'PRINT'.
          CLEAR : W_FLAG.
          T_FINAL2 = T_FINAL.
          SORT T_FINAL2 BY COL_CHK .
          DELETE   T_FINAL2 WHERE COL_CHK = ' '.
          IF NOT T_FINAL2 IS INITIAL.
            LOOP AT T_FINAL2 INTO WA_FINAL.
              IF W_FLAG IS INITIAL.
      Does some of modification/s in control parameters
                W_CONTROL_PARAM-NO_OPEN   = 'X'.
                W_CONTROL_PARAM-NO_CLOSE  = 'X'.
                W_CONTROL_PARAM-PREVIEW   = 'X'.
                W_CONTROL_PARAM-NO_DIALOG = SPACE.
                W_OUTPUT_OPTIONS-TDNEWID = 'X'.
                W_OUTPUT_OPTIONS-TDIMMED = SPACE.
      Opens the smartform print-job
                CALL FUNCTION 'SSF_OPEN'
                  EXPORTING
                    OUTPUT_OPTIONS     = W_OUTPUT_OPTIONS
                    CONTROL_PARAMETERS = W_CONTROL_PARAM
                  EXCEPTIONS
                    FORMATTING_ERROR   = 1
                    INTERNAL_ERROR     = 2
                    SEND_ERROR         = 3
                    USER_CANCELED      = 4
                    OTHERS             = 5.
                IF SY-SUBRC EQ 0.
                  W_FLAG = 'X'.
                ELSE.
                 LEAVE LIST-PROCESSING.
                ENDIF.
              ENDIF.
              IF W_FLAG = 'X'.
                CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
                  EXPORTING
                    FORMNAME           = 'ZFORM_BIW_PRINT'
                  IMPORTING
                    FM_NAME            = LF_FM_NAME
                  EXCEPTIONS
                    NO_FORM            = 1
                    NO_FUNCTION_MODULE = 2
                    OTHERS             = 3.
                IF SY-SUBRC <> 0.
                ENDIF.
                IF SY-SUBRC = 0.
                  CALL FUNCTION LF_FM_NAME
                    EXPORTING
                      CONTROL_PARAMETERS = W_CONTROL_PARAM
                     V_VBELN            = WA_FINAL-VBELN
                      WA_FINAL           = WA_FINAL.
                   TABLES
                     T_FINAL            = T_FINAL.
                ELSE.
                  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                          WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
                ENDIF.
              ENDIF.
            ENDLOOP.
           * Close the smartform print job
            IF W_FLAG EQ 'X'.
              CALL FUNCTION 'SSF_CLOSE'
                EXCEPTIONS
                  FORMATTING_ERROR = 1
                  INTERNAL_ERROR   = 2
                  SEND_ERROR       = 3
                  OTHERS           = 4.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDMETHOD.                    "BEFORE_COMMAND

  • Issue Regarding ALV List Report

    Hi,
    I have prepared a ALV List report.
    I have made use of <b>REUSE_ALV_LIST_DISPLAY</b>.
    I have put a <b>check box</b> in the output at the begining of every Record.
    Now what i want is to put a <b>SELECT ALL</b> & <b>DESELECT ALL Buttons</b> on Application Tool Bar & If i hit on them i should be able to <b>SELECT & DE-SELECT</b> all the <b>Records/Check Boxes</b> in the output.
    Can anybody tell me the logic for both <b><b>SELECT & DE-SELECT</b></b> functionalities.
    Thanks in advance.
    Thanks & Regards,
    Prasad.
    <b></b>

    Hi,
    <b>Call to F.M is as below:</b>
    FORM f_display_alv_report .
      DATA: l_valid,
            l_params LIKE pri_params.
      SET PF-STATUS c_alv.
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          mode           = 'BATCH'
          report         = v_repid
          no_dialog      = c_x
        IMPORTING
          out_parameters = l_params
          valid          = l_valid.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program       = v_repid
          i_callback_user_command  = c_command
          i_callback_pf_status_set = c_alv
          is_layout                = i_gd_layout
          it_fieldcat              = i_fieldcatalog[]
          it_events                = i_events
          is_print                 = i_params
          i_save                   = c_x
        TABLES
          t_outtab                 = i_display_data
        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.
    ENDFORM.                    " f_display_alv_report
    <b>Then User Command Call is as below:</b>
    FORM f_user_command USING p_ucomm    LIKE sy-ucomm
                              p_selfield TYPE slis_selfield.
      CLEAR:  v_field, v_index, v_line, v_value.
      IF p_ucomm EQ c_select.
        LOOP AT i_display_data.
          i_display_data-selected = c_x.
          MODIFY i_display_data TRANSPORTING selected.
          CLEAR i_display_data.
        ENDLOOP.
      ELSEIF p_ucomm EQ c_deselect.
        LOOP AT i_display_data.
          i_display_data-selected = space.
          MODIFY i_display_data TRANSPORTING selected.
          CLEAR i_display_data.
        ENDLOOP.
      ENDIF.
    Get cursor field, value and Line
      GET CURSOR FIELD  v_field
                 VALUE  v_value
                 LINE   v_line.
      v_line = v_line - 3.
      CLEAR: i_display_data,
             i_mem,
             v_mem_kschl,
             v_mem_printer,
             v_ucomm,
             v_mem_print.
      REFRESH: i_mem.
      LOOP AT i_display_data
              WHERE selected EQ c_x.
        i_mem-v_mem_vbeln   = i_display_data-vbeln.
        i_mem-v_mem_posnr   = i_display_data-posnr.
        APPEND i_mem.
        CLEAR i_mem.
      ENDLOOP.
    READ TABLE i_display_data INDEX v_line.
      IF sy-subrc EQ 0.
        v_mem_kschl   = p_kschl.
        v_mem_printer = p_print.
        v_ucomm       = sy-ucomm.
        EXPORT i_mem         TO MEMORY ID 'MEM'.
        EXPORT v_mem_kschl   TO MEMORY ID 'KSCHL'.
        EXPORT v_mem_printer TO MEMORY ID 'PRINTE'.
        EXPORT v_ucomm       TO MEMORY ID 'UCOM'.
      ENDIF.
      CASE p_ucomm.
    To Print SAP Script Output
        WHEN c_print.
          v_mem_print = c_x.
          EXPORT v_mem_print TO MEMORY ID 'PRINT'.
          v_return_code = c_999.
          v_screen      = c_x.
          IF ( v_field EQ c_mark     OR
               v_field EQ c_selected OR
               v_field EQ c_vbeln    OR
               v_field EQ c_posnr    OR
               v_field EQ c_kschl )  AND
               NOT v_value IS INITIAL.
            PERFORM f_entry IN PROGRAM zasdf0012_sales_order
                    USING v_return_code v_screen.
          ENDIF.
    Display SAP Script Output
        WHEN c_pripreview.
          v_return_code = c_999.
          v_screen      = c_x.
          IF ( v_field EQ c_mark     OR
               v_field EQ c_selected OR
               v_field EQ c_vbeln    OR
               v_field EQ c_posnr    OR
               v_field EQ c_kschl )  AND
               NOT v_value IS INITIAL.
            PERFORM f_entry IN PROGRAM zasdf0012_sales_order
                    USING v_return_code v_screen.
          ENDIF.
        WHEN c_back.
          BACK.
        WHEN c_exit.
          CALL METHOD cl_gui_cfw=>flush.
          LEAVE TO SCREEN 0.
        WHEN c_cancel.
          CALL METHOD cl_gui_cfw=>flush.
          LEAVE TO SCREEN 0.
        WHEN c_others.
      ENDCASE.
    ENDFORM.                               " F_USER_COMMAND
    <b>The Field Catalog Build up is :</b>
      i_fieldcatalog-fieldname   = 'KSCHL'.
      i_fieldcatalog-tabname     = 'I_DISPLAY_DATA'.
      i_fieldcatalog-seltext_m   = 'Output Type'.
      i_fieldcatalog-col_pos     = 1.
      i_fieldcatalog-outputlen   = 11.
      APPEND i_fieldcatalog.
      CLEAR i_fieldcatalog.
      i_fieldcatalog-fieldname   = 'VBELN'.
      i_fieldcatalog-tabname     = 'I_DISPLAY_DATA'.
      i_fieldcatalog-seltext_m   = 'Sales Document No'.
      i_fieldcatalog-col_pos     = 2.
      i_fieldcatalog-outputlen   = 17.
      APPEND i_fieldcatalog.
      CLEAR i_fieldcatalog.
      i_fieldcatalog-fieldname   = 'POSNR'.
      i_fieldcatalog-tabname     = 'I_DISPLAY_DATA'.
      i_fieldcatalog-seltext_m   = 'Sales Item No'.
      i_fieldcatalog-col_pos     = 3.
      i_fieldcatalog-outputlen   = 14.
      APPEND i_fieldcatalog.
      CLEAR i_fieldcatalog.
    <b>Events Build Up:</b>
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type = 0
        IMPORTING
          et_events   = i_events.
      READ TABLE i_events
           INTO wa_events
           WITH KEY name = slis_ev_top_of_page.
      IF sy-subrc = 0.
        MOVE c_top_of_page TO wa_events-form.
        MODIFY i_events FROM wa_events INDEX sy-tabix.
      ENDIF.
      READ TABLE i_events WITH KEY name = c_user_command
                          INTO wa_events.
      IF sy-subrc = 0.
        MOVE c_command    TO wa_events-form.
        MODIFY i_events FROM  wa_events INDEX sy-tabix.
      ENDIF.
    <b>Layout Buil up is as:</b>
      i_gd_layout-no_input          = space.
      i_gd_layout-colwidth_optimize = c_x.
      i_gd_layout-totals_text       = 'Totals'(201).            "#EC *
      i_gd_layout-box_fieldname     = 'SELECTED'.
      i_gd_layout-box_tabname       = 'I_DISPLAY_DATA'.
      i_gd_layout-edit              = c_x.
    Here one thing we need to take care id i am combining Check Box with & another field Output Type [KSCHL] like in Std. TCode VL71.
    Can anybody solve this issue!
    Thanks for reply.
    Thanks & Regards,
    Prasad.

  • Alv grid report problem

    Hi All
    I have a requirment form client side, when i print my customized alv grid report first of all it prints LIST STATUS (CtrlShiftF5)  then the report is printed is it possible to remove that LIST STATUS so that only the report is printed.
    thanks

    Dear radha
    I discussed the problem with ABAP team and the problem was solved thanks for your hint.
    regars 
    asim

  • Page Format for landscape/legal paper for ALV Grid report

    Hi!
    I have a request to set up a particular ALV Grid report as a background job with the report output printing on legal-size paper with landscape orientation.  We currently don't have any reports set up to print on legal size paper.  What do I need to do to set this up?  We currently use X_58_170 or X_65_255 which print on letter-size paper.  I cannot seem to find a page format for landscape legal other than LEGAL which seems to be available only for SAPscript or Smart Forms.  Any help will be greatly appreciated.
    Best Regards,
    Nik von Ruden
    Edited by: Nik Von Ruden on Oct 8, 2010 1:11 AM

    Hi,
    Thanks for you reply.
    I cannot control left and right margin in PDF. Also, it is a PDF file so eventhough somehow you are able to change left and right margin, the content does not adjust itself to fit the legal page (as it does in word or excel).
    Let me know if there is any other option.
    Thanks,
    RS

  • Report Printing - Excel error

    Hi all,
    I'm not sure what's causing this error.
    With a regular report (not Interactive) region, I have enabled the report printing. All file types open/save correctly except for Excel.
    When opening the file, Microsoft Excel actually pops up this error:
    File cannot be opened because:
    The server did not understand the request, or the request was invalid.
    Error processing resource 'http://www.w3.org/TR/xhmtl1/DTD/xhtml1-strict.dtd'.
    Line 3, Position 57.
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">If I save the file and try to open it, Excel pops up this error:
    This XML file cannot be opened because of an error. Check to make sure the file is a valid XML file, and that the XML syntax is correct.
    You can also try re-creating the file and closing other applications before you attempt to open it again.Excel version is Excel 2002 SP3 (v10.x).
    Some additional info that might be helpful:
    When Excel is opening, the status bar shows it is "Opening HTML.XLA", the shows "Opening {filename}.xls" but fails halfway through that.
    Any ideas?
    Chris

    Hi Chris,
    This is the output I get when I click on the Print link
    <?xml version="1.0" encoding="UTF-8"?>
    <DOCUMENT>
        <DATE>04-AUG-08</DATE>
        <USER_NAME>nobody</USER_NAME>
        <APP_ID>17977</APP_ID>
        <APP_NAME>Test Export</APP_NAME>
        <PAGE_ID>1</PAGE_ID>
        <TITLE>Page 1</TITLE>
        <P1_ROWS></P1_ROWS>
        <P1_GO></P1_GO>
        <P1_REPORT_SEARCH></P1_REPORT_SEARCH>
        <REGION ID="4149756408582108901">
            <ROWSET>
                <ROW>
                    <COL1>value1</COL1>
                    <COL2>value2</COL2>
                    <COL3>value3</COL3>
                </ROW>
                <ROW>
                    <COL1>value12</COL1>
                    <COL2>value22</COL2>
                    <COL3>value32</COL3>
                </ROW>
            </ROWSET>
        </REGION>
    </DOCUMENT>Regards,
    Dimitri
    -- http://dgielis.blogspot.com/
    -- http://www.apex-evangelists.com/
    -- http://www.apexblogs.info/

  • Dunning Report Print Layout Issue

    Hi
    I have a problem with the Dunning Report Print layout (Dunning All (system)). In the wizard I select all the Invoices (Which are over due and current) for the BP and sent to printer.
    In the print out all the due dates are mixed with the acctual Due dates.
    Acctuall Invoices
    Doc No.                  DOC Due            Level
    ======================================
    10000                     05.11.07              2
    10001                     25.02.08              1
    10002                     03.03.08              1
    10003                     03.04.08              0
    Print out
    Doc No.                  DOC Due            Level
    ======================================
    10000                     05.11.07              2
    10001                     03.03.08              1
    10002                     03.04.08              0
    10003                     25.02.08              1
    How can I fix this. This is coming from the System template and we havent change anything.
    Could you please help me.
    Thanks
    Sanjaya

    Hi
    I solved the problem. But the issue was when i ran the dunning wizard the layouts messed up. For example if I had a dunning letter with 3 lines (overdue documents). The last line would copy itself 4-6 times (it would show the last document 4-6times so the total lines in the dunning letter would be 7-9 lines). But I solve the issue. Somehow the attention person (which I got from the contact persons (ocrp) and not from the document contact person (oinv) ) did the issue. When i switch it to the oinv the issue was gone.
    kind regards
    Søren
    Edited by: Bundgaard Søren Hollænder on Jan 26, 2009 9:56 AM

  • How to suppress extra form feed for character report printing using ORARRP?

    Dear All,
    We are using Oracle Application Server 10g (10.1.2.0.2) on Windows 2003 Server and most of our client PC's are Windows XP Professional machines. We are migrating our existing oracle application from 2-tier architecture to 3-tier architecture (6i to 10g). We have installed ORARRP utility for remote direct printing and to a limited extent we are successfull in getting the things work out for our system users, However, we are facing a problem using the ORARRP utility for which we are not able to find a solution till date.
    We have configured ORARRP utility on every user's PC and the printing of bitmap reports is working well. However, while printing CHARACTER reports using ORARRP utility, after the report gets printed, an EXTRA FORM FEED is issued by ORARRP to the printer and because of this the printer stationary skips one extra page and advances to the next page. Please note that this EXTRA FORM FEED happens only while printing a CHARACTER REPORT.
    Has anyone come across such a problem using ORARRP ? How can we avoid this extra FORM FEED from CHARACTER REPORT printing using ORARRP ? Is there any other tool which supports remote direct printing just like ORARRP?
    I shall be highly obliged if anyone could reply to my queries ASAP.
    Regards,
    KrishnaKumar S

    Please help ! I tried the "send_form_feed" and "postscript_dos_print" parameters without success. The extra form feed is always there. Thanks.

  • Drill-Down Report Printing Problem for Selection Parameters

    Dear Experts,
    Have tried to configure Drill-Down Report for Vendor Balances,
    Am having trouble when printing this drill-down report, Printing is coming OK but it comes with ALL selection parameters, for e.g, have entered 20 vendor codes for the balance display, system first prints all selection parameters and then it prints the output of vendor balances,
    User does not want selection Parameters to be printed with the Report Output. Please find below screenshot for the problem.
    Input Parameter Screen
    Report Output Screen
    Print Preview Screen (First Page - Selection Parameters)
    Your help is much appreciated, if anyone can guide me, how to switch off selection parameters from Print Output of Drill-Down Report
    Thanks
    Regards
    P

    Hello Ms. Preeti,
    Thanks for your reply, Have designed the report through FKI0 (FKI*)
    Have already looked these setting, but these are not helping really, PFB screenshot for settings am having in my system, if you have any idea which can avoid User Input Parameters from printing then it will be really great help
    Thanks for your help
    Kind Regards
    P

  • Report printing

    Hi All,
    I am working on Apex with Oracle XE universal...i just tried to acheive print pdf functionality throgh integration of Apex with Apache cocoon...
    Everything is working fine...my Apache server is working,cocoon is working but when i m clicking on print button ....it showed me the following errors:
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1186
    ORA-12570: TNS:packet reader failure
    I don,t know what problem is there in my application...or I need to do some settings....
    if anyone knows please help me....
    I did the following settings in my report page:
    In APEX, I logged in as ADMIN into apex/apex_admin and went to Instance Settings and did the following:
    - Print Serverr: Standard Support
    - Print Server Protocol: HTTP
    - Print Server Host Address: XYZ
    - Print Server Port: 8181
    - Print Server Script: /cocoon/fop_post
    In my APEX application, in the Regions section, I click on the Print link next to my report. I have the following settings:
    - Enable Report Printing: Yes
    - Link Label: Print
    - Response Header: Print Server
    - Output Format: PDF
    - Report Layout: Default Report Layout
    - Print URL: f?p=&APP_ID.:1:&SESSION.:FLOW_XMLP_OUTPUT_R1063230002781575
    Edited by: user9139675 on Mar 23, 2010 1:54 AM

    what was your solution?

Maybe you are looking for

  • How can I grant users to access/modify system folders (C:/Windows/Fonts) by using GPO in Win7 ?

    In our company there are some folks that require often new fonts that they take from the internet. Unfortunately, some of them have offices on in a diferrent country, so going there to insert my admin paswoord is not a solution. If you copy the ttf f

  • Metadata of component ManageTicketWorkhourUIComp is not valid!

    Hi guys, i have a ui dc referencing a model dc. when i activate the ui dc, a problem  occurs"  Metadata of component ManageTicketWorkhourUIComp is not valid! com.neusoft.ase.tm.ticketworkhour.comp.ManageTicketWorkhourUIComp --> Component ManageTicket

  • Please Help me with Airport Question.......

    I am wondering what is the difference between Airport Extreme Base Station ($179) and Airport Express Base Station ($99)? I currently have a Linksys Cable Modem and a Linksys Wireless Router (WRT54GS) and am having lots of issues with it, so I am thi

  • HP Deskjet 5740 Printing Orientatio​n: Vista

    Issue is with other machine (laptop) on network running Vista SP2 added printer from network and able to print but will print starting in the middle of page. I checked all possible settings and still will print to middle of page. Able to print normal

  • Move to next record

    move to next record wont work with tom-muck horizontal repeat region anyone got an alternative or know why its throwing back errors