cancel
Showing results for 
Search instead for 
Did you mean: 

addition of new column in standard ALV

Former Member
0 Kudos

Hi,

Can somebody help on

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

got some info

former_member199125
Active Contributor
0 Kudos

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

sahai
Contributor
0 Kudos

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