on 12-26-2008 7:25 PM
Hi,
In my webdynpro application, table data is getting displayed from BAPI. In one particular column, the
price value is having leading zeroes when i am checking in R3 infotype. The leading zeroes are not
getting displayed in Webdynpro screen but it's taking space in that particular column.
In this case if i have to trim these leading zeroes from that column, how to do that.
Thanks a lot.
Hi,
Make a similar context node in the context, just map the UI to that node and while copying the values from orignal node to another node change the format as you want like
DecimalFormat df2 = new DecimalFormat( "#,###,###,##0.00" );
double dd = 1234.432;
System.out.println(df2.format(dd)); // Will print 1,234.43 if commas are needed change the format accordingly
dd = 3456.45678;
System.out.println(df2.format(dd));// output 3,456.46
Regards
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Srini,
While getting the values from backend, use trim() function, it eliminates both leading and trailing zeroes
This will surely work.
Regards,
Nikhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.