on 04-28-2009 2:33 PM
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
Hi,
Go to the properties of the Attribute which is binded to input field. there you will find formatting option.
Set Display leading zeros properties as Zeros as Blanks.
I hope it helps.
Regards,
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You are looping through the context elements right. Then try to use the set_attribute_null of each and every context element. I think you are calling anohter method(cleaR_leading_zeroes) where again you are using the node's method.
lt_elements = lr_node->get_elemnents( ). "LR_NODE has the node reference
Loop at lt_element into ls_element.
ls_element->set_attribute_null( name = 'XYZ' ).
Endloop.
This will do for all the elements. You can avoid calling the other method.
Regards,
Lekha.
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.