on 12-29-2009 6:57 PM
Hi, I've a smartform where i'm using a field like LIPS-LFIMG, at my output i've for example 123,000. I need "trunc" result, i try to use trunc function at line code in my window of form, but TRUNC are not acessible in smartforms abap line code.
I need to create a function and then call her at smartform ? ...or there's another way to do this ?
Can someone help me ?
Thanks,
<MOVED BY MODERATOR TO THE CORRECT FORUM>
Edited by: Alvaro Tejada Galindo on Dec 29, 2009 2:03 PM
Hi,
just declare local variable of type p decimals 0 and then put the original value there and print out new variable. When you have variable without decimals, the value will be truncated automatically.
Regards,
Karol
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try moving it to a string type varaible and print using offset position.
check this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
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.