1. instantiate the ALV component as below

  

   DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.

   lo_cmp_usage =   wd_this->wd_cpuse_alv( ).

  IF lo_cmp_usage->has_active_component( ) IS INITIAL.

    lo_cmp_usage->create_component( ).

  ENDIF.

  2.  then call get model class of ALV component

  

data lo_interfacecontroller type ref to iwci_salv_wd_table .

lo_interfacecontroller =   wd_this->wd_cpifc_alv( ).

   data lv_value type ref to cl_salv_wd_config_table.

   lv_value = lo_interfacecontroller->get_model(

   ).

3. now add below line to add Header in ALV Column

/wp-content/uploads/2014/12/1_599654.png

4. we will get output is as below

/wp-content/uploads/2014/12/2_599655.png

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

Leave a Reply