Skip to Content
avatar image
Former Member

How to merge cells of particular row in the alv grid

Hello All,

I want to merge particular cells of a particular row in the alv grid.

Response required immediate.

Points rewarded

vijay

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

6 Answers

  • avatar image
    Former Member
    May 30, 2006 at 11:39 AM

    in fieldcat try cell_merge option

    Add comment
    10|10000 characters needed characters exceeded

  • May 30, 2006 at 11:58 AM

    Hi,

    you can do option key and key_sel in fieldcat

    <b>
     x_fieldcat-key = 'X'.
        x_fieldcat-key_sel = 'X'.</b>

    Regards

    vijay

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 30, 2006 at 12:01 PM

    Hi vijay kumar,

    1. I don't think we can explicitly merge

    cells, as per our choice.

    (like we do in excel)

    2. Only if the data in the column is REPEATED,

    then it will automatically merge the cells.

    regards,

    amit m.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 30, 2006 at 12:04 PM

    You cannot merge data row wise, column wise can merged using the CELL_MERGE of the field catalog.

    Regards,

    Ravi

    Note : Please mark all the helpful answers

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 30, 2006 at 12:07 PM

    Hii

    what is the functionality that you want to achieve??

    is it for removing duplicates

    <b>you cannot merge or split cells, in a ALV grid.</b>

    The maximum you can do is when you SORT, there is a cell merge functionality there will be only row of data shown for all the common data of the column.

    however, You can merge the rows in internal table before passing it to ALV.

    Reward points if helpful

    Regards

    Naresh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 30, 2006 at 12:08 PM

    hi,

    set no_merging = ' '.

    hope tghis helps.

    keerthi.

    Add comment
    10|10000 characters needed characters exceeded