on 11-20-2014 12:19 PM
Hi Experts,
While i am feching data from table i am getting value as Ex: 100-(negative), but i want to show this as -100.
I got the data from RFC.
Data i am getting now:
Mat Customer Value Qty
M100 C100 100- 10-
But i want to show this as below.
Mat Customer Value Qty
M100 C100 -100 -10
I am not expert in WDJ, please give some suggitions or sample coding(if possible).
Thank you a lot.
Terry
Hi Terry,
what dataType is Value / Qty? It looks like if you are using Strings for those values? For Strings you could use:
if (value.endsWith("-")) {
value = "-" + value.substring(0, value.length()-1);
}
But i think this is rather dirty. You should define this fields as Decimal and the backend system should deliver them the right way.
Regards,
Tobias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ask your abaper to fix it from their end.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.