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 - Decimal type value appearing with comma and dot

Former Member
0 Likes
6,618

Hey guys

I am currently modifying a Smartform (SAP standard copied over in Z namespace) which prints Purchase Order. Everything seems to be in order except decimal type fields which are 13 long with 3 decimal places appear as per the user decimal settings on the first row with a dot e.g., 100.00 and all of the subsequent rows show the values with a comma instead of a dot e.g., 200,00. Please help as I don't seem to have any lead. I have tried to debug the generated code and nothing seems to be different between first and second except values.

Many thanks in advance.

Cheers,

S.

Hey guys

I am currently modifying a Smartform (SAP standard copied over in Z namespace) which prints Purchase Order. Everything seems to be in order except decimal type fields which are 13 long with 3 decimal places appear as per the user decimal settings on the first row with a dot e.g., 100.00 and all of the subsequent rows show the values with a comma instead of a dot e.g., 200,00. Please help as I don't seem to have any lead. I have tried to debug the generated code and nothing seems to be different between first and second except values.

Many thanks in advance.

Cheers,

S.

7 REPLIES 7
Read only

arpitr
Participant
0 Likes
3,890

Hi Saleem,

please check declaration type of your field . It must be of type Menge or Netwr .

Ex abc(fieldname) type netwr .

Declare this in your  SF ->Global Definition->Global Data.

Also go through following link and use data accordingly.

Output Options for Field Contents - Information System Administration - SAP Library

In your case, when printing quantity or currency inside a cell, you can use &fieldname(CZT).

Regards,

Arpit R

Read only

VenkatRamesh_V
Active Contributor
0 Likes
3,890

Hi Saleem,

Check the user's Decimal  notification.

T-code  su01.

Hope it helpful,

Regards,

Venkat.

Read only

satvik_panchal
Participant
0 Likes
3,890

Hello,

U can also check t-code : OY01 (Country Global Parameters : Details).

In this t-code, select Country and check Decimal Format.

Read only

0 Likes
3,890

Hi Satvik,

Why dont you check domain and what type of data type You have given .

Regards,

Ramesh

Read only

0 Likes
3,890

1. Create a Program Line , Input Parameter Quantity , Output Parameter a variable (GV_VAR1 Type Char15).

2. Write the Quantity with Currency in variable and pass it in the Quantity field.

Read only

former_member185116
Active Participant
0 Likes
3,888

hi saleem,

there should not be any problem with decimal,

if you are printing data from internal table ,

check in se11 the table field which u r internal table field is referencing,

if u r using a field locally in smartform check  to declare reference field under currency/Qty fields of global data,

i tried with this,

also specify as &wa_itab-amount(C)&

regards

vinay reddy

Read only

Former Member
0 Likes
3,888

Check to see if a 'SET COUNTRY' or 'SET LOCALE' is issued anywhere in the code and then not reset again.

Rich