Skip to Content
avatar image
Former Member

dynamically set the Alv Column Header

Dear Web Dynpro ABAP Guru's

     I have requirement from my client is that change the ALV Web dynpro Column Header is Dynamic ( i.e ..in the ALV one of the Column is Vendor Name i have to show the instead of the Vendor Name statistical text, Vendor name that is in the one of the Variable LFA1-NAME 'Ge Electriclas' ). Please help me regarding this Situation.

Thanks & Regrads,

Suresh Reddy

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Mar 30, 2015 at 05:42 AM

    Hi Suresh,

    You can achieve your requirement as below

    • Get the column list from alv and loop over each column
      • when you get the column "Vendor Name", get the object reference of column header i.e type ref to class cl_salv_wd_header
      • Now set the header text as required ... i.e lo_col_hdr->set_text( 'Vendor123' ).

    Please refer the below link

    Hope this helps you.

    Regards,

    Rama

    Add comment
    10|10000 characters needed characters exceeded