‎2007 Jul 18 11:35 AM
Hi experts,
In smartforms i need to display the quantity field without decimal values.
Actually it is displaying as 2.000 but i would like to display it as 2
can you tell me whether any way is available for this?
Thanks in advance,
Navaneeth
‎2007 Jul 18 11:37 AM
Hi
You can display a field in GLOBAL data of TYPE I (v_menge).
then in the related window of that Quantity field create PROGRAM LINES and in that write a small code such that
MOVE ITAB-MENGE to v_menge.
Now display this field v_menge in the smartform
<b>Reward points for useful Answers</b>
Regards
Anji
‎2007 Jul 18 11:37 AM
Hi
You can display a field in GLOBAL data of TYPE I (v_menge).
then in the related window of that Quantity field create PROGRAM LINES and in that write a small code such that
MOVE ITAB-MENGE to v_menge.
Now display this field v_menge in the smartform
<b>Reward points for useful Answers</b>
Regards
Anji
‎2007 Jul 18 11:49 AM
Hi,
Declare one variable in global definitions as Type C.
Move the quantity field to this variable and prnt this vriable.
In Program lines Node... MOVE It-value to Var.
&var&
Reward if helpfull.
‎2007 Jul 18 11:51 AM
Hi,
For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(2)&
Pls reward points.
Regards,
Ameet
‎2007 Jul 18 11:56 AM
use
&symbol(.N)& Display upto N decimal places
&symbol(Z)& Omit Leading Zeros
&symbol(S)& Omit Leading Sign
&symbol(<)& Display Leading Sign to the Left
&symbol(>)& Display Leading Sign to the Right
&symbol(C)& Compress Spaces
&symbol(.N)& Display upto N decimal places
&symbol(T)& Omit thousands separator
&symbol(R)& Right justified
&symbol(I)& Suppress output of the initial value
regards,
Prabhu
reward if it is helpful