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

smartform numeric value display

Former Member
0 Likes
2,016

I have a table with some sales amount on one field (Data type is CURR)

after I import that into the smart form and when I was trying to print, it is coming in different way. for exaple if the amount is in the table is 980,65.00 it is display in the smart form as 980,65<,000.00. Any body can help me please. Is there anything I am missing?

Thanks in Advance

9 REPLIES 9
Read only

Laxmana_Appana_
Active Contributor
0 Likes
1,383

Hi,

Try to use format options for amount :

Ex:

&X_ITAB-AMOUNT(5.2)&

or

check your user settings :

system->user profile->own data->defaults->decimal notation

Regards

Appana

Read only

0 Likes
1,383

I tried this one did not give any change

Read only

Former Member
0 Likes
1,383

Hi ,

You can't directly display the currency fields in smartforms. You create a Field of char type and assign the currency field to it before dispalying.

Regards,

Vinod.

Don't forget to assign points if it was usful.

Read only

0 Likes
1,383

if we use the char type, then how can I get the comma seperater.

Read only

0 Likes
1,383

I have another problem too. I was trying to print page no and total number of pages. if total number of pages is less than 10, then it is fine. if it is more than 10, it is printing *

&SFSY-PAGE& of &SFSY-FORMPAGES&

Read only

0 Likes
1,383

Use a variable type P decimals 2.

For the number of pages the * usually means that there isn't enough space to print out the value. Try widening your window.

Read only

0 Likes
1,383

Hi,

define character variables with length 3(if it is not sufficient for maximum pages,then increase the length) ,then pass

SFSY-PAGE,SFSY-FORMPAGES values to the defined variables and use the variables to print the data.

regards,

Appana

Read only

0 Likes
1,383

I solved the page no issue, still I am not able to diplay the amount properly

Read only

0 Likes
1,383

TT,

I had this problem with my smartforms. I moved the CURR type variables to type P and the comma seperator is displayed.