on 08-11-2008 12:27 PM
how to edit the contents of the table at output.
closed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
Please get the table content at runtime by using get_static_attribute.
it return the table content into your internal table. after getting all rows, you can again bind the table to node.
make sure the selection of the node should be 0...n
DATA LO_ND TYPE REF TO IF_WD_CONTEXT_NODE.
LO_ND->GET_STATIC_ATTRIBUTES_TABLE(
IMPORTING
TABLE = ITAB).
LO_ND->BIND_TABLE( ITAB ).
Yogesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please ckeck this link
check this code
1. get Instance of ALV using Code wizard.
2. Call interface method GET_MODEL of ALV.
3. Write the below code
*ALV Component usage
DATA: l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
l_ref_cmp_usage = wd_this->wd_cpuse_alv( ).
IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
l_ref_cmp_usage->create_component( ).
ENDIF.
*Call Get_model() of Interface Controller to set changes to the output
*table
DATA: l_ref_interfacecontroller TYPE REF TO iwci_salv_wd_table .
l_ref_interfacecontroller = wd_this->wd_cpifc_alv( ).
DATA:
l_value TYPE REF TO cl_salv_wd_config_table.
l_value = l_ref_interfacecontroller->get_model(
).
data:lr_input type ref to CL_SALV_WD_UIE_INPUT_FIELD.
l_column = l_value->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN( 'PRICE' ).
CREATE OBJECT lr_input
EXPORTING
value_fieldname = 'PRICE'
.
l_column->set_cell_editor( value = lr_input ).
*Set the table Editable
l_value->IF_SALV_WD_TABLE_SETTINGS~SET_READ_ONLY( value = abap_false ).
thanks
suman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.