Professional Documents
Culture Documents
"Variables
data: context_node
"this is t
"declare l
"Create ob
********************************************************************************
****
************** COLUMNAS QUE VAMOS A VISUALIZAR EN EL ALV Y CUALES NO ***********
****
************** ASI COMO CAMBIOS EN EL NOMBRE DE LAS COLUMNAS
***********
****
********************************************************************************
****
* Create an instance of ALV component created ALV1 is usage name
wd_this->m_table_usage2 = wd_this->wd_cpuse_alv2( ).
if wd_this->m_table_usage2->has_active_component( ) is initial. "Si ya existe
destruyo el componente para volverlo a creerla y as ya no tendr valores
wd_this->m_table_usage2->create_component( ).
endif.
wd_this->m_table2 = wd_this->wd_cpifc_alv2( ).
alv_config_table = wd_this->m_table2->get_model( ).
"Vamos hacer las columnas que queramos en editables
call method alv_config_table->if_salv_wd_column_settings~get_columns
receiving
value = lr_columns. "get columns into a columns table
**Now insert input field into each column
loop at lr_columns into ls_columns.
**Create object for input
create object lr_input
exporting
value_fieldname = ls_columns-id. "Column name
if ls_columns-id <> 'IMPORTE_KM'.
an a ser editables menos la de IMPORTE_KM