2 Replies Latest reply: Feb 6, 2012 12:16 PM by srinivas sana RSS

addition of new column in standard ALV

A a
Currently Being Moderated

Hi,

 

Can somebody help on

 

How to add new col in the ALV and also addition of a custom button.

  • Re: addition of new column in standard ALV
    shitanshu sahai
    Currently Being Moderated
    Durgasp wrote:

     

    Hi,

    >

    > Can somebody help on

    >

    > How to add new col in the ALV and also addition of a custom button.

     

    Number of columns depend upon the attributes present in your node...with which you have bind the alv...so to achieve the requirement you should need to create attribute dynamically in the node of yours.

     

    Regards,

    Sahai.S

  • Re: addition of new column in standard ALV
    srinivas sana
    Currently Being Moderated

    Check this..

    for adding column

        data lo_cmp_usage type ref to if_wd_component_usage.

     

        lo_cmp_usage =   wd_this->wd_cpuse_alv1( ). " alv1 is my alv component name

        if lo_cmp_usage->has_active_component( ) is initial.

          lo_cmp_usage->create_component( ).

        endif.

     

        data lo_interfacecontroller type ref to iwci_salv_wd_table .

        lo_interfacecontroller =   wd_this->wd_cpifc_alv1( ).

     

        data lo_value type ref to cl_salv_wd_config_table.

        lo_value = lo_interfacecontroller->get_model(

        ).

     

        data: lo_column1 type ref to cl_salv_wd_column.

        lo_column1 = lo_value->if_salv_wd_column_settings~create_column( 'ATTRIBUTE NAME IN CAPITAL ).

     

     

    Regards

    Srinivas

  • Re: addition of new column in standard ALV
    A a
    Currently Being Moderated

    got some info

Actions