on 09-08-2009 10:55 PM
I'm just displaying PO Items in a table UI element. I would like to display the quantity field (EKPO-MENGE) without the decimals point.
My context is bind to a structure where the quantity field point to the unit field MEINS. We used EA (each) as the UOM, so I don't the decimals part with the zeros.
Example, 99 instead 99,000
thanks
Alexandre Giguere
Hi,
If you want only integer part then you can use following code.
Data: var1 type EKPO-MENGE.
Data: var2 type i.
var2 = var1.
Now suppose value of var1 is 99.000 then var2 will contain 99 only.
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.
Thanks, I know I can do that... I will need to change the typping of the field MENGE to an integer and maybe create a new data element in cases I don't want to lose the original description. The thing is that with the standard ALV functionality, QUAN fields adapt their format to their corresponding UNIT, it does not seems the case with WD4A,
Alex
HI,
Check in the context attribute propetires,
FORMATTING->
DISPALY_LEADING ZEROS as zeros as blanks.
Hope it works.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
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.