Skip to Content
avatar image
Former Member

ALV Column Heading as Bold


Hi all,

How can we make the column heading as Bold.

I searched in SCN but couldnot find any required solution.

e.g. This is my ALV grid output screen.

Here i want to change the 'Material' to Bold.

How to do this, please guide.

Regards,

Munu

mara_capt.PNG (2.3 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Sep 10, 2014 at 01:17 PM

    Hi Munu,

    I know that you can make the whole column bold easily by using emphasize in field catalog or layout.

    Please refer to the link below to make only the column header bold:

    SAP-ABAP Technical: Alv with header in bold

    Regards,

    Ashvin

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 10, 2014 at 01:20 PM

    In my opinion i don't think this is currently possible.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 10, 2014 at 02:00 PM

    Hi Munu,

    You can bold a column passing on parameter "is_layout" values what you want, below a sample statement example:

      gt_layout-no_input= 'X'.

      gt_layout-colwidth_optimize = 'X'.

      gt_layout-coltab_fieldname = 'CELLCOLOR'.


    DATA: WA_CELLCOLOR TYPE LVC_S_SCOL.


      LOOP AT "YOUR_ITAB" INTO "YOUR_WORKAREA".

        WA_CELLCOLOR-FNAME = 'COLUMN'.

        WA_CELLCOLOR-COLOR-COL = sy-tabix.

        WA_CELLCOLOR-COLOR-INT = '1'.  "1 = Intensified on, 0 = Intensified off

        WA_CELLCOLOR-COLOR-INV = '0'.  "1 = text colour, 0 = background colour

        APPEND WA_CELLCOLOR TO "YOUR_WORKAREA".

        MODIFY "YOUR_ITAB" from "YOUR_WORKAREA" INDEX SY-TABIX TRANSPORTING CELLCOLOR.

    ENDLOOP.

    Regards

    Add comment
    10|10000 characters needed characters exceeded