cancel
Showing results for 
Search instead for 
Did you mean: 

dynamically set the Alv Column Header

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

ramakrishnappa
Active Contributor
0 Kudos

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