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

Display Quantity in Smart Form

Former Member
0 Likes
1,812

Hi all,

i want to display the value of quantity in smart forms .

I got the value but it displays like: 1,584,863.28.

But i want to display it has 1584863.28.

Help me out.....

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,496

Hello Ranjith,

In the Text Module which you have created to display the quantity.

Try to change to &V_QUANTIY(T)&. This will ensure 1000 separator is not printed.

BR,

Suhas

Hello Ranjith,

In the Text Module which you have created to display the quantity.

Try to change to &V_QUANTIY(T)&. This will ensure 1000 separator is not printed.

BR,

Suhas

11 REPLIES 11
Read only

Former Member
0 Likes
1,496

Hi ,

Befor pass this field into the form .u can write this following code.

REPLACE ALL OCCURRENCES OF ',' in x with '.' .

Read only

0 Likes
1,496

The prob is that.....

i have seen in debugging mode...

In report its displaying 1584863.28 value only...

But when it goes to form its changing to 1,584,863.28.....

why.....

Read only

Former Member
0 Likes
1,496

What data type you use for quantity field?

You can try changing the decimal format in your user profile :tcode SU3

Regards

Karthik D

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,497

Hello Ranjith,

In the Text Module which you have created to display the quantity.

Try to change to &V_QUANTIY(T)&. This will ensure 1000 separator is not printed.

BR,

Suhas

Read only

Former Member
0 Likes
1,496

Thanks Subas..

the prob has solved but it raises a new problem..

that is......

now its displaying the quantity field is display in new line not in a same line.

for that i have used earlier

&V_QUANTIY(CZ)&

This will suppress leading spaces and zeros.

but now i am change it to &V_QUANTIY(T)&

now its displaying the quantity field in new line not in a same line....

what to do

Read only

Former Member
0 Likes
1,496

Hi,

Try using;

&V_QUANTIY(CZT)&

or

&V_QUANTIY(CT)&

Regards

Karthik D

Read only

Former Member
0 Likes
1,496

Thanks Karthik..

the prob has solved...

but from where can we get all the formating options.

from where r u get this answer...

can u tell me..pls

Read only

Former Member
0 Likes
1,496

Hi,

Glad that your problem is solved.

You can find all available format options under the heading "Output Options for Field Contents" in the print version of SAP Smart Forms (BC-SRV-SCR). {see page 71/72}

You can download it from the below link.

[SAP Smart Forms (BC-SRV-SCR)|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVSCRSF/BCSRVSCRSF.pdf]

Regards

Karthik D

Read only

Former Member
0 Likes
1,496

Thanks ones again...

karthik...

for giving that smart form pdf.....

Read only

Former Member
0 Likes
1,496

Hi Ranjith...

Create a variable of type c

Pass the quantity to variable created

Display it.

This will solve your issue.

Regards

Siva.

Read only

Former Member
0 Likes
1,496

Hi,

I have a similiar issue with Decimal formats, I am also outputting Quantity field in the smartform.

In the purchase order smartform Quantity output messages numbers are in a wrong format.

Format in the messages is 1,000.00 but i want to display like this 1.000,00

, and . are interchanging each other.

I have even checked in user profiles

Thanks,

Ravi