How to merge cell during sort in ALV

Dear all,
I wrote a ALV report, there is one columns for T001~BUTXT(company code description, data type: char )which has same contents. Using the 'sort', it is unable to merge the same cells, but it works in standard ALV sorting.
And in the Layout, I don't check the 'without cell merging during sort'.
Moreover, I also tried to add IT_SORT in the function module 'REUSE_ALV_GRID_DISPLAY', but it didn't work.
DATA:G_T_SORTCAT TYPE SLIS_T_SORTINFO_ALV,
          G_S_SORT TYPE SLIS_SORTINFO_ALV.
FORM FRM_DISPLAY_DATA .
   PERFORM FRM_BUILD_FIELDCAT.
   PERFORM FRM_BUILD_SORTCAT.
   PERFORM FRM_BUILD_LAYOUT.
   CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
     EXPORTING
       IT_FIELDCAT   = G_T_FIELDCAT
       I_DEFAULT     = 'X'
       IT_SORT       = G_T_SORTCAT
     TABLES
       T_OUTTAB      = IT_XCFY
     EXCEPTIONS
       PROGRAM_ERROR = 1
       OTHERS        = 2.
   IF SY-SUBRC <> 0.
* Implement suitable error handling here
   ENDIF.
ENDFORM. 
FORM FRM_BUILD_SORTCAT.
   G_S_SORT-FIELDNAME = 'BUTXT'.
   G_S_SORT-UP = 'X'.
   G_S_SORT-SUBTOT = 'X'. 
   G_S_SORT-GROUP = 'UL'.
   APPEND G_S_SORT TO G_T_SORTCAT.
ENDFORM.  
So, is there any way to realize cell merging during sort when using ALV function 'REUSE_ALV_GRID_DISPLAY'?
Thanks and Regards,
John

Hi John,
Set the COMP field of sort to 'X'. You can try as follows:
FORM FRM_BUILD_SORTCAT.
   G_S_SORT-FIELDNAME = 'BUTXT'.
   G_S_SORT-UP                  = 'X'.
   G_S_SORT-SUBTOT        = 'X'.
   G_S_SORT-GROUP         = 'X'.
    G_S_SORT-COMP            = 'X'.
   APPEND G_S_SORT TO G_T_SORTCAT.
ENDFORM.
You can refer to the following link in SCN.
http://scn.sap.com/thread/3150677
Regards,
Abijith

Similar Messages

  • How to merge cells in report designer

    Hello BW Experts,
    How to merge cells in report designer.
    Thanks in advance
    BWer

    Hi BWer,
    I had to check for some details from Development.
    You also need to have FEP 14 for the BI 7.x tools on SAP GUI 6.40, which was just released on Friday. You can find it at service.sap.com/swdc. In the format menu, you will now see a "Link Cells" option.
    With the link cells option, you cannot merge across row patterns. That means that you will probably have to make some changes to your report before you can merge the cells, based on what you described.
    I imagine that you started out with a report section something like the following (dashes added for formatting purposes):
    G0 Header ...
    G1 Header -
    Controlling Area
    Detail -
    Func Area
    And then moved controlling area to the right to the same column as functional area:
    G0 Header ...
    G1 Header -
    Controlling Area
    Detail -
    Func Area
    Resulting in an output that would look like:
    CA1000
    FA ABCA
    FA ABCB
    FA ABCC
    CA2000
    FA ABCA
    FA ABCB
    FA ABCC
    As shown above, these cells cannot be merged because they cross row patterns. You would instead need to move the controlling area member down to the same row as functional area:
    G0 Header ...
    G1 Header      
    Detail -
    Controlling Area    Func Area
    You can now merge these cells, resulting in an output that would look like the following:
    CA1000 FA ABCA
    CA1000 FA ABCB
    CA1000 FA ABCC
    CA2000 FA ABCA
    CA2000 FA ABCB
    CA2000 FA ABCC
    To merge the cells, you would simply highligh both cells with your cursor and then select the option from the menu.
    Regards,
    Katie

  • How to Merge Cells in Template in Smartform??

    Hi,
        Can somebody pls tell me how to merge cells vertically in to single cell in a Template in Smartforms..
    Regards,
    Rushikesh

    Hi Rushikesh,
    SAP does not directly provide option of merging the cells intemplate...Check out following
    to do the needful.
    1. Double click on the template node and go to table painter.
    2. say you want to merge two cells C1 & C2
    3. Click on the pencil icon above table painter to get plus type cursor now click on
       any cell from C1 or C2. The cell turns black indicating the selction .
    4. Right click -> Delete -> Cell. C1 is deleted.
    5. Again click on the pencil icon to get back the arrow cursor.
    6. Now take pointer on the boundary of cell C2. You the icon changes indicating
        the cell boundary can adjusted as per req. Do the necessary adjustment .
    7. Save and activating.
    Hope this helps you...
    Enjoy SAP.
    Pankaj Singh..

  • How to merge cells in Visio 2013

    Hi im created a grid in visio
    i want to merge some cells in table
    How to merge cells ?
    Thanks

    Hi,
    As far as I know, the Grid is shape in Visio, we could not merge the cells like Excel. Please try the workaround:
    Select the cells that need to merge>Format the shape> Choose no line
    Select the cells> right click> group
    Hope it's helpful.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How to merge cells in excel using X++ in AX 2009

     Hi all,
     How to merge cells in excel using X++ in AX 2009?
     for example i have 3 cells (A3:C3) i need to merge this 3 cells using X++
    can any one sujjest please
    Thanks in advance

    Hi,
    WinForm technology does not support X++ related cases.
    I just checked this link
    http://msdn.microsoft.com/en-us/library/aa867122.aspx and haven't found a related forum.
    I'll move your case to where is the forum for so that you may get some help about this.
    Regards,
    Barry Wang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to merge the 2 field in alv gride display

    Tables for ALV display
    DATA: it_fieldcat   TYPE  slis_t_fieldcat_alv,
          wa_fieldcat   TYPE  slis_fieldcat_alv,
          wa_layout     TYPE  slis_layout_alv,
          it_exclude    TYPE  slis_t_extab,
          wa_exclude    TYPE  slis_extab,
          it_header TYPE STANDARD TABLE OF zqm_imir_hdr,
          wa_header LIKE LINE OF it_header,
          it_final TYPE STANDARD TABLE OF zqm_imir_itm,
          wa_final LIKE LINE OF it_final,
          it_vcode      TYPE RANGE OF zqm_wtr_itm-vcode,
           wa_vcode      LIKE LINE OF  it_vcode.
    DEFINE m_fieldcat.
      wa_fieldcat-fieldname = &1.
      wa_fieldcat-tabname   = &2.
      wa_fieldcat-seltext_m = &3.
      wa_fieldcat-outputlen = &4.
      wa_fieldcat-col_pos   = &5.
      append wa_fieldcat to it_fieldcat.
      clear wa_fieldcat.
    END-OF-DEFINITION.
    DEFINE m_vcode.
      wa_vcode-option   = &1.
      wa_vcode-sign     = &2.
      wa_vcode-low      = &3.
      wa_vcode-high     = ''.
      append wa_vcode to it_vcode.
      clear wa_vcode.
    END-OF-DEFINITION.
    START-OF-SELECTION.
      PERFORM data_retrival.
      PERFORM lead_time_calculation.
      IF it_final[] IS NOT INITIAL.
        PERFORM alv_display.
      ENDIF.
    Display ALV
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = sy-repid
          is_layout          = wa_layout
          it_fieldcat        = it_fieldcat
          i_save             = c_x
          it_excluding       = it_exclude
        TABLES
          t_outtab           = IT_OUTPUT[]
        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.
      m_fieldcat: 'ZIMIRNO'  'IT_OUTPUT' text-003 21  0,
                  'PRUEFLOS'  'IT_OUTPUT' text-004 21  1,
                  'ZCRDAT'    'IT_OUTPUT' text-030 9 2,
                  'INITS'     'IT_OUTPUT' text-031 6 3,
                  'SPLIT'     'IT_OUTPUT' text-005 12  4,
                  'WERK'     'IT_OUTPUT' text-006  5 5,
                  'LOSMENGE'  'IT_OUTPUT' text-007 24  6,
                  'MENGENEINH' 'IT_OUTPUT' text-008  15  7,
                  'NAMEVEND'   'IT_OUTPUT' text-009  11  8,
    *& Hypercare - 721600 - IMIR Changes - Start
                 'KONT_PSPNR' 'IT_OUTPUT' text-023  15  7,
                  'POSID' 'IT_OUTPUT' text-023  15  9,
    *& Hypercare - 721600 - IMIR Changes - End
                  'LTEX1' 'IT_OUTPUT'  text-024  24  10,
                  'EBELN'    'IT_OUTPUT' text-010  26  11,
                  'MBLNR'    'IT_OUTPUT' text-011  24  12,
                  'ANZGEB'   'IT_OUTPUT' text-012  17  13,
                  'GEBEH'    'IT_OUTPUT' text-013  4 14,
                  'MATNR'    'IT_OUTPUT' text-014  18 15,
                  'TXZ01'   'IT_OUTPUT' text-015  128 16,
                  'SPECE'    'IT_OUTPUT' text-016  23  17,
                  'VCODE'   'IT_OUTPUT' text-017 24  18,
                  'TAGNO'   'IT_OUTPUT' text-018 10  19,
                  'HEATNO'   'IT_OUTPUT' text-019  11  20,
                  'IDCODE'   'IT_OUTPUT' text-020  7 21,
                  'TCNO'   'IT_OUTPUT' text-021  9 22,
                  'REMARKS'   'IT_OUTPUT' text-022 30 23,
                  'BUDAT'   'IT_OUTPUT' text-025 30 24,
                  'CPUTM'   'IT_OUTPUT' text-026 30 25,
                  'VDATUM'   'IT_OUTPUT' text-027 30 26,
                  'VEZEITERF'   'IT_OUTPUT' text-028 30 27,
                 'ZLTIME'    'IT_OUTPUT' text-029 30 26,
                  'LEADTIME'   'IT_OUTPUT' text-029 30 28.
    DATA : v_unit like T006-MSEHI VALUE 'HR',
           v_FCALID like SCAL-FCALID,
           v_zltim TYPE f,
           v_zltime TYPE p LENGTH 8 DECIMALS 2.
    SELECT SINGLE FABKL INTO v_FCALID FROM T001W WHERE WERKS = s_werks.
    SELECT zcrdat INTO TABLE it_zqm_imir_hdr
           from zqm_imir_hdr
            FOR ALL ENTRIES IN it_final
            where zcrdat EQ it_final-zcrdat.
    SELECT mblnr mjahr budat cputm
          INTO TABLE it_mkpf
          from mkpf
            FOR ALL ENTRIES IN it_final
          where mblnr EQ it_final-mblnr
            AND mjahr EQ it_final-mjahr.
    SELECT prueflos vdatum vezeiterf
          INTO TABLE it_qave
          from qave
            FOR ALL ENTRIES IN it_final
          where prueflos EQ it_final-prueflos.
    SORT it_mkpf    BY mblnr mjahr.
    SORT it_qave    by prueflos.
    SORT it_zqm_imir_hdr  BY zcrdat.
        LOOP AT it_final into wa_final.
          CLEAR: wa_output,wa_mkpf,wa_qave,wa_zqm_imir_hdr.
          MOVE-CORRESPONDING wa_final to wa_output.
    READ TABLE it_zqm_imir_hdr INTO wa_zqm_imir_hdr WITH KEY zcrdat = wa_final-zcrdat
                                                   BINARY SEARCH.
          READ TABLE it_mkpf INTO wa_mkpf WITH KEY mblnr = wa_final-mblnr
                                                   mjahr = wa_final-mjahr
                                                   BINARY SEARCH.
          MOVE wa_zqm_imir_hdr-zcrdat TO wa_output-zcrdat.
          MOVE wa_mkpf-budat TO wa_output-budat.
          MOVE wa_mkpf-cputm TO wa_output-cputm.
          READ TABLE it_qave INTO wa_qave WITH KEY prueflos = wa_final-PRUEFLOS
                                                   BINARY SEARCH.
          MOVE wa_qave-vdatum     TO wa_output-vdatum.
          MOVE wa_qave-vezeiterf  TO wa_output-vezeiterf.
    LV_START_DATE = wa_zqm_imir_hdr-zcrdat.
    LV_START_DATE = wa_mkpf-budat.
    LV_START_TIME =  wa_mkpf-cputm.
    LV_END_TIME   = wa_qave-vezeiterf.
    LV_END_DATE   =  wa_qave-vdatum.
    IF LV_START_DATE IS NOT INITIAL.
       IF LV_END_DATE IS NOT INITIAL.
          CALL FUNCTION 'SD_CALC_DURATION_FROM_DATETIME'
            EXPORTING
              i_date1                =  LV_START_DATE
              i_time1                =  LV_START_TIME
              i_date2                =  LV_END_DATE
              i_time2                =  LV_END_TIME
           IMPORTING
             E_TDIFF                =  LV_DIFF
            E_DATE2_EARLY          =  E_DATE2_EARLY
          EXCEPTIONS
            INVALID_DATETIME       = 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.
    eNDFORM.}
    This is my code unable to merge the to tabs position is on 3rd and 4th.
    need help ......
    thanks,

    Hi,
    From Your code I saw that you called Macro of fieldcat after Calling the ALV Function Did You Check That One.
    Following links may be useful for you ,
    ALV report: How to merge 2 columns into 1 column?
    Hope this information helps You
    Regards,
    Raghava Channooru

  • How to merge cells in SmartForms?

    Dear Experts,
              How can I  merge cells (Row wise adjecents cells)in a table of smart forms..
    thanks in adv....
    Moderator message: Please post your questions in the right forum and give more meaningful titles in the future.
    Edited by: kishan P on Oct 11, 2010 3:39 PM

    If you are using table, then realign the table my adding 2 cells in a row. Go to Main window==> table==> table tab==> click on details.. Now you will get the row details. Choose the row where you wants the merge. Let us consider you wants to merge cell 3 (2cm) & 4 (1 cm). then put 2 +1 = 3 cm for cell 3 and delete cell 4. Note: content will be deleted for this

  • How to Merge Cells in a JTable?

    First, a brief background. I have a 1.3.1 Swing application, and have a custom table framework that is extended from Swing. My table model manages row classes. Each row class has its own collection of renderers and editors. Renderers and editors are never shared; each cell has its own. My custom table asks each row for the renderer/editor as needed. This allows the GUI programmer to customize every cell of a row class, down to the renderer/editor, including which cells are editable. Essentially, my custom table framework puts all the brains into row classes. Each screen has its own row class. So, it's very granular but very powerful. However, I need more power.
    I need a way to merge cells across columns (column spanning). These merged cells do NOT need to be editable for now. I don't know how I can get the table to render one cell across others in the same row. I suspect this is largely a painting issue, and could really use some help.
    Thanks!
    Andy

    Thanks for the direction, Ian! That got me on my way.
    I subclassed BasicTableUI and copy-pasted the private methods into my subclass, and made them protected. I then modified the paintCell( ) method to change the rendering for the particular table row I'm interested in (test case).
    To make the first cell span the entire row, I changed the width of the painting rectangle to be the width of the table, instead of the width of the cell. I also had to NOT render any other cells in that row, so they wouldn't "interfere" with the first renderer. In other words, if I allow cell 3 to be rendered, it will prevent cell 0 from spanning, since cell 3 is rendered AFTER cell 0.
    Here's an example of my proof-of-concept (POC):
    // For row 5, only render cell 0
    if (row == 5) {
        if (column == 0) {
            rendererPane.paintComponent(g, component, table, cellRect.x, cellRect.y, table.getWidth(), cellRect.height, true);
        return;
    }You can see that only cell 0 will be rendered, and it will be as wide as the table.
    My next step will be to experiment with multiple spans in the same row, and then having a cell in the middle span the entire row. I'll post my results for the sake of posterity.

  • How to merge cells in AdvancedDatagrid?

    Hi All,
    I am using advanced datagrid in my project to show hierarchical data.
    we have a requirement to merge related cells so that it will look like below (just like row span in html table)
    1
    1.1
    1.2
    1.3
    2
    2.1
    2.2
    2.3
    For column header it can be done by AdvancedDataGridColumGroup. So there must be some solution to merge cells to create the same effect for row.
    Anyone has any idea on how to achieve this?
    Thanks!!!

    Check out the rendererProviders property on AdvancedDataGrid.  It lets you dynamicaly determine what renderer to use at runtime based on the data being rendered.  It takes a list of AdvancedDataGridRenderer instances, and those instnces have properties for colSpan and rowSpan.

  • How to merge cell in listview

    Hi all !
    I have a listview. Now, i want to merge cell on listView and insert richtextbox to merge it.
    Thanks!

    Hi vulc.le,
    It depends on how you display data in the ListView, I would suggest you reading Magnus's article:
    #WPF/MVVM: Merging Cells In a ListView
    http://social.technet.microsoft.com/wiki/contents/articles/24663.wpfmvvm-merging-cells-in-a-listview.aspx
    He used an ItemsControl in the CellTemplate of the GridViewColumn to display a list of several countries in the same cell
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to merge cells in tables if SmartForms like colspan/rowspan in HTML

    Hi!
    Is it possible to merge cells in a tables in SmartForms like colspan/rowspan parameters in HTML?
    Both horisontal and vertical merging needed both in header and in body of the table.
    Thanks!

    No it is not possible.
    For merging purpose we have to create seperate windows for that col or rows.

  • How to accumlate and use sort in ALV

    Hi
    I am using collect statement for accumalation.
    but it is not working.
    the code is like this:
      IF NOT p_otrstk  IS INITIAL.
        CLEAR it_zresult_tab1.
        LOOP AT it_mard_tab INTO wa_mard_tab.
          l_tabix = sy-tabix.
          READ TABLE it_zresult_tab1 INTO wa_zresult_tab1
            WITH KEY lgort = s_lgort1
                     lgort = s_lgort2
                     werks = s_werks
                     matnr = s_matnr.
          IF sy-subrc EQ 0.
            wa_zresult_tab1-speme = wa_mard_tab-speme.
            wa_zresult_tab1-umlme = wa_mard_tab-umlme.
            wa_zresult_tab1-insme = wa_mard_tab-insme.
            wa_zresult_tab1-retme = wa_mard_tab-retme.
            COLLECT wa_zresult_tab1 INTO it_zresult_tab1.
          ENDIF.
        ENDLOOP.
      ENDIF.
    do i need to use modify? but it is with modify it is giving dump.
    and how to do subtotals in ALV grid?
    the code is like this:
      IF grid1 IS INITIAL .
    Instantiate the grid container.
        CREATE OBJECT g_custom_container
        EXPORTING container_name = 'CCCONTAINER'.
    *Instantiate the grid itself within the container.
        CREATE OBJECT grid1
        EXPORTING
        i_parent = g_custom_container.
       i_appl_events = 'X'.
    Call method of grid1 class object to build/display the grid.
        CALL METHOD grid1->set_table_for_first_display
        EXPORTING
             i_structure_name = 'ZRESULT_TAB'
             is_variant =  variant
            i_save = 'U'
            is_layout = gs_layout
        CHANGING
            it_outtab = it_zresult_tab
            it_fieldcatalog = gt_fcat
            IT_SORT  = VT_SORT
        EXCEPTIONS
            invalid_parameter_combination = 1
            program_error = 2
            too_many_lines = 3
            OTHERS = 4
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    and in the fieldcatalog
    IF p_some  = 'X'.
      CLEAR: ls_sort.
       t_fcat-no_out     = 'X'.
         ls_sort-fieldname = 'MATNR'.
        ls_sort-subtot    = 'X'.
        APPEND ls_sort TO vt_sort.
    but this is also not working.
    Please help me.....
    Thanks
    Alekhya

    Hi,
    go thru this sample program which uses sort and sums the data
    report  yalv2  .
    declare data areas for listviewer******************
    type-pools:slis.
    data:g_repid like sy-repid,
    gs_layout type slis_layout_alv,
    gt_fieldcat type slis_t_fieldcat_alv,
    fieldcat_ln type slis_fieldcat_alv,
    gt_sort type slis_t_sortinfo_alv,
    gs_sort type slis_sortinfo_alv,
    gt_events type slis_t_event,
    gs_event type slis_alv_event,
    gt_list_top_of_page type slis_t_listheader,
    gs_line type slis_listheader,
    col_pos type i.
    data:begin of itab,
    field1(5) type c,
    field2(5) type c,
    field3(5) type p decimals 2,
    end of itab.
    data:begin of itab1 occurs 0.
            include structure itab.
    data:end of itab1.
    data:begin of itab_fieldcat occurs 0.
            include structure itab.
    data:end of itab_fieldcat.
    initialization.
      g_repid = sy-repid.
    start-of-selection.
      move 'test1' to itab1-field1.
      move 'test1' to itab1-field2.
      move '10.00' to itab1-field3.
      append itab1.
      move 'test2' to itab1-field1.
      move 'test2' to itab1-field2.
      move '20.00' to itab1-field3.
      append itab1.
      do 200 times.
        append itab1.
      enddo.
    end-of-selection.
      <b>perform build_fieldcat.</b> 
      <b>perform build_sortcat.</b>
      perform build_eventcat changing gt_events.
      perform build_commentcat changing gt_list_top_of_page.
      perform call_alv.
    *&      Form  build_fieldcat
          text
    -->  p1        text
    <--  p2        text
    form build_fieldcat .         "data field catalog, explain field desc
                                      "to alv
      fieldcat_ln-fieldname = 'FIELD1'.
      fieldcat_ln-tabname = 'ITAB1'.
      fieldcat_ln-key = ' '.                          "subtotal key
      fieldcat_ln-no_out = ' '.
      fieldcat_ln-seltext_l = 'HEAD1'.
      append fieldcat_ln to gt_fieldcat.
      fieldcat_ln-fieldname = 'FIELD2'.
      fieldcat_ln-tabname = 'ITAB1'.
      fieldcat_ln-no_out = ' '.
      fieldcat_ln-seltext_l = 'HEAD2'.
      append fieldcat_ln to gt_fieldcat.
      fieldcat_ln-fieldname = 'FIELD3'.
      fieldcat_ln-tabname = 'ITAB1'.
      fieldcat_ln-ref_tabname = 'MSEG'.
      fieldcat_ln-ref_fieldname = 'MENGE'.
      fieldcat_ln-no_out = ' '.
      fieldcat_ln-do_sum = 'X'.                       "sum upon display
      append fieldcat_ln to gt_fieldcat.
    endform.                    " build_fieldcat
    *&      Form  build_sortcat
          text
    -->  p1        text
    <--  p2        text
    form build_sortcat .           "data sorting and displaying subtotal
      clear gs_sort.
      gs_sort-fieldname = 'FIELD1'.
      gs_sort-spos = '1'.
      gs_sort-up = 'X'.
      append gs_sort to gt_sort.
      clear gs_sort.
      gs_sort-fieldname = 'FIELD2'.
      gs_sort-spos = '2'.
      gs_sort-up = 'X'.
      append gs_sort to gt_sort.
    endform.                    " build_sortcat
    *&      Form  build_eventcat
          text
         <--P_GT_EVENTS  text
    form build_eventcat  changing lt_events type slis_t_event.
    constants:
    gc_formname_top_of_page type slis_formname value 'TOP-OF-PAGE'.
    call function 'REUSE_ALV_EVENTS_GET'
    EXPORTING
       I_LIST_TYPE           = 0
    IMPORTING
       ET_EVENTS             = lt_events
    read table lt_events with key name = slis_ev_top_of_page into gs_event.
    if sy-subrc = 0.
    move gc_formname_top_of_page to gs_event-form.
    append gs_event to lt_events.
    endif.
    endform.                    " build_eventcat
    *&      Form  build_commentcat
          text
         <--P_GT_LIST_TOP_OF_PAGE  text
    form build_commentcat  changing gt_top_of_page type slis_t_listheader.
    clear gs_line.
    gs_line-typ = 'H'.
    gs_line-info = 'HEADER 1'.
    append gs_line to gt_top_of_page.
    clear gs_line.
    gs_line-typ = 'S'.
    gs_line-key = 'STATUS 1'.
    gs_line-info = 'INFO 1'.
    append gs_line to gt_top_of_page.
    clear gs_line.
    gs_line-typ = 'S'.
    gs_line-key = 'STATUS 2'.
    gs_line-info = 'INFO 2'.
    append gs_line to gt_top_of_page.
    endform.                    " build_commentcat
    form top_of_page.
    call function 'REUSE_ALV_COMMENTARY_WRITE'
      exporting
        it_list_commentary       = gt_list_top_of_page.
    write: sy-datum, 'Page no', sy-pagno left-justified.
    endform.
    form end-of-page.
    write at (sy-linsz) sy-pagno centered.
    endform.
    *&      Form  call_alv
          text
    -->  p1        text
    <--  p2        text
    form call_alv .
    call function 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
       I_CALLBACK_PROGRAM             = g_repid
       I_STRUCTURE_NAME               = 'ITAB1'
       IS_LAYOUT                      = gs_layout
       IT_FIELDCAT                    = gt_fieldcat
       IT_SORT                        = gt_sort
       IT_EVENTS                      = gt_events
      tables
        t_outtab                       = ITAB1
    endform.                    " call_alv
    Regards,
    Sowjanya.
    Message was edited by: sowjanya suggula

  • How to merge cell as Excel  with smartforms ???

    Hi all Gurus of SmartForms,
    I want to format a template as Excel by using Merge.
    I means I want Merge 2 cells into 1 and put data into center of new cell.
    But I dont know how to do that by SmartForms
    Who can help me step by step?
    Thanks.

    Thanks
    But I have a problem
         B               C     
                 D     E
    cell D and E is in the same row.
    I want cell C is in top center cell D and E.
    I want cell B  is in center cell C, D. If I do as your way, result isn't , cell B is only top not center C and D.
    Edited by: kathy a on May 27, 2008 10:47 AM

  • How to merge cell in jtable

    i want to merge the cell in the jtable , as one cell requires more space than other kindly tell me how to do so

    Try http://codeguru.earthweb.com/java/articles/139.shtml

  • How to merge cells in an ADF Table??

    I have to make a ADF Table in which user should be able to select adjacent cells and when clicked on a merge button these cells should be merged..
    Does any one have example on this??

    Hi,
    you can't since table cells are components and not just markup.
    Frank

Maybe you are looking for

  • How to display Page numbers in XMLreport(on PDF)

    hi all, we have a requirement where we need to display page numbers(e.g.page 1 of 10),on an XML report. can anybody suggest me the solution.

  • Problem with Kensington Bluetooth PocketMouse on an iMac G5

    Hi I got a new Apple Wireless Keyboard and a Bluetooth mouse with a scrollwheel (Kensignton PocketMouse Bluetooth Optical). The Name and Battery Level information of the mouse does not show up on the Bluetooth tab of System Preferences > Keyboard & M

  • PX4-300d : After reset : storage must be available before I can use this feature

    Hi, I must have a problem with one disk on the RAID5. But i don't which one. Does exist a way to reset the storage pool that failed to have no raid and begin the setup configuration to go to web session. For the moment, i can't because of the setup c

  • Router to Router VPN error

    Hi Everyone, I have a lab with (3) 2500series routers IOS 12.2. Have setup an ipsec vpn between the far side routers, but the ipsec sa is not establishing. After debugging isakmp to see if they establish phase 1, I get the following error: 03:52:45:

  • Can interactive report size be controlled?

    I have an interactive report. I know the region size grows based on the number of rows I asked to display. However, what I really want is to set the region size and instead of it growing if they ask for lots of rows I would like to have a scroll bar