Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Smartforms displaying quantity field

Former Member
0 Likes
2,280

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
874

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

4 REPLIES 4
Read only

Former Member
0 Likes
875

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

Read only

Former Member
0 Likes
874

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.

Read only

Former Member
0 Likes
874

Hi,

For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(2)&

Pls reward points.

Regards,

Ameet

Read only

Former Member
0 Likes
874

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