2016 Feb 26 7:06 AM
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.
2016 Feb 27 6:10 AM
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
2016 Feb 27 7:45 AM
Hi Saleem,
Check the user's Decimal notification.
T-code su01.
Hope it helpful,
Regards,
Venkat.
2016 Feb 27 8:53 AM
Hello,
U can also check t-code : OY01 (Country Global Parameters : Details).
In this t-code, select Country and check Decimal Format.
2016 Feb 27 11:14 AM
Hi Satvik,
Why dont you check domain and what type of data type You have given .
Regards,
Ramesh
2016 Feb 29 11:46 AM
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.
2016 Feb 29 12:55 PM
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
2016 Feb 29 2:47 PM
Check to see if a 'SET COUNTRY' or 'SET LOCALE' is issued anywhere in the code and then not reset again.
Rich