Skip to Content
author's profile photo
Former Member

merge row in ALV

hello everyone, im having a problem woth my ALV, how can i merge rows in ALV,

example i want to merge row 3 and row 4?

Another 1 how can I format a certain row in ALV?

example row 5, I want the displayed value be centered, or right aligned, or left aligned...

thank you very much

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    Oct 02, 2005 at 07:27 AM

    Christopher,

    I am not sure what is the functionality you are trying to achieve by merging rows. If you SORT the rows, there should be a option (Iam not sure whether it is in the field catalog or the layout most probably in the layout), where the rows with the same for specific columns will automatically get merged. However, it does not make sense if the entire row is duplicated. You probably can delete the adjacent duplicates by sorting the table even before displaying the data.

    I am not sure the formatting that you are asking, but you can trying passing different values to LVC_T_STYLE type table which has to be a part of you data internal table. So, for a specific row, you append the column names and the specific style that you want for individual columns.

    Regards,

    Ravi

    Note : Please reward points if this helps you.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Christopher,

      If all you want to make sure there are no duplicate rows are being displayed, I suggest to use "DELETE ADJACENT DUPLICATES", so that your internal table that is passed to the grid, does not have duplicate rows at all. So, you don't have to merge the rows.

      If your requirement is more than this, please explain the same in detail.

      Regards,

      Ravi

  • author's profile photo
    Former Member
    Oct 02, 2005 at 07:11 AM

    Hi

    I am not sure if merging rows is possible. You can merge the rows in internal table before passing it to ALV.

    However check this site , it is helpful for ALV.

    http://www.sapdevelopment.co.uk/reporting/alv/alvgrid.htm

    Cheers

    Add comment
    10|10000 characters needed characters exceeded