on 02-06-2012 10:47 AM
Hi,
Can somebody help on
How to add new col in the ALV and also addition of a custom button.
got some info
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.