Hi,
There are 10 lines within the editable table but I can remove only the first line of the default zeros.
How can I refer within the below loop each line to remove the other lines
Regards
ertas
this method has tow paramters NODE->String ATTRIBUT -> String
method CLEAR_LEADING_ZEROS . Data: l_node type ref to if_wd_context_node. l_node = wd_context->get_child_node( NODE ). l_node->set_attribute_null( exporting name = ATTRIBUT ). endmethod.
method WDDOINIT .
DATA: lt_kteile TYPE if_main=>elements_zkauf,
wa_kteile TYPE if_main=>element_zkauf,
lv TYPE REF TO if_wd_context_node.
DO 10 TIMES.
APPEND wa_kteile TO lt_kteile.
ENDDO.
lv = wd_context->get_child_node( name = 'ZKAUF' ).
lv->bind_table( new_items = lt_kteile ).
LOOP AT lt_kteile INTO wa_kteile.
wd_this->clear_leading_zeros(
node = 'ZKAUF'
attribut = 'MGK'
).
ENDLOOP.
endmethod.
Edited by: Ilhan Ertas on Apr 28, 2009 4:01 PM