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

PROBLEM ON SHOW AMOUNT IN SAMRTFORMS

Former Member
0 Likes
527

hi expert.

i have big problem with amount in smartform.

i want to show  582,135 but when system shows 821355 .i don't know why but it seems system shift left 1 time !!!!!

3 REPLIES 3
Read only

Former Member
0 Likes
489

Try this way.

Declare a local variable in Global definitions tab

l_amt type char20.

Before you display the amount field, insert a coding node and write the following statement.

WRITE <amount field> TO l_amt

        CURRENCY <currency field existing in the table>.

  CONDENSE l_amt.

Insert field  l_amt in the corresponding node.

Read only

Former Member
0 Likes
489

1. If you are using templates or table and if its right aligned ensure that there is adequate space for   text     element.

2. Also, if you have declared amount variable in global definition.
   Ensure that you have provided the reference field in currency/quantity fields for amount variable.
   For e.g. for qauntity its meins.
   Then use this variable directly in text element.

Read only

Arun_Prabhu_K
Active Contributor
0 Likes
489

Hello Maryam.

It would be better if you let us know details of the variable data type declaration and how you had inserted it in smartforms, so that we can find out the root cause of this issue.

Regards.