on 12-06-2008 6:00 AM
can someone tell me how to remove the leading zeroes in a table's coloumn .... its a NUMC data type..
i tried with abap statement shift leading zeroes, but its not working for me.... the sorting is missing..
in properties is there any option to remove the leading zerores>
niraja
hi niraja,
The attribute which you have binded ...do the formatting of that attribute by making property display leading zeros as Zeros as Blanks.
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 Niraja,
Just click on the context attribute which You have binded below that only You will see a table having coloumns property and value.
Over there You will see One Formattingoption. Under that if You are able to see property Display leading zeros then change it accordingly. if u r nt able to see that then click on Formatting You will able to see that property.
get back to me if still you get the problem.
Greetings,
Rohit
Hi Niraja,
I am displaying a table with information from SFLIGHT. The CONNID field is of type NUMC and so it too used to contain the leading zeroes. I so deleted the leading zeroes in my WDDOINIT method before binding the internal table to the context node. The table now does not display the leading zeroes as earlier. Find my coding as shown below:
METHOD wddoinit .
DATA: lr_node TYPE REF TO if_wd_context_node,
wa_sflight TYPE ig_componentcontroller=>element_node,
lt_sflight TYPE ig_componentcontroller=>elements_node.
SELECT * FROM sflight INTO TABLE lt_sflight.
LOOP AT lt_sflight INTO wa_sflight.
SHIFT wa_sflight-connid LEFT DELETING LEADING '0'.
MODIFY lt_sflight FROM wa_sflight TRANSPORTING connid.
ENDLOOP.
lr_node = wd_context->get_child_node( name = ig_componentcontroller=>wdctx_node ).
lr_node->bind_table( new_items = lt_sflight ).
ENDMETHOD.
Regards,
Uday
Hi,
check this.........
[https://forums.sdn.sap.com/click.jspa?searchID=19606118&messageID=6203953]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
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.