2012 Feb 08 2:34 AM
Hi experts,
I have a global structure GS_KOMVD (with structure KOMVD) that carrying the field KBETR with data element KBETR, and passing this field from ABAP to SMARTFORMS. The field is carrying value 240.00. However, when this field get printed in SMARTFORMS, the value becomes 24.000 instead of 240.00
I have tried to create a global variable GV_KBETR with data element KBETR (similar to KOMVD-KBETR) and assign GS_KOMVD-KBETR to GV_KBETR.
GV_KBETR = GS_KOMVD-KBETR.
The result I get printed for GV_KBETR on the form is 240.00. However the expected output is 24.000
Could someone advise me what went wrong.
Thanks in advance.
2012 Feb 08 3:37 AM
Hi,
You just get that value to work variable in the abap report and pass the work variable value to the smartforms it will work fine
2012 Feb 08 5:15 AM
Hi,
Thanks for your reply. In my earlier post, I have already did that, by assigning: -
GV_KBETR = GS_KOMVD-KBETR
I have even tried to did this in ABAP and passed to SMARTFORMS, but the outcome is the same.
Any ideas?
2012 Feb 08 6:10 AM
Just check the data type for text element variable getting printed in form seems it has data type with 3 decimal points maybe you have given data element of quantity in place of currency.
Thanks,
Pawan Gore
2012 Feb 08 6:32 AM
Hi Pawan,
In debugging mode, the value for GS_HKOMVD-KBETR is 240.00 and GV_KBETR is also 240.00, however when printed on the form, it shows 24.000.
Is this relating to customizing?
2012 Feb 08 6:52 AM
Though the value will show correct value 240.00, but in printing it will come to according to country specific ..
Can you confirm , whatever you are printing is which currency ???? INR or other.
You can check the currency settings spro>general settings>currencies...
But confirm that you are having issue with all currency or in particular currency ?
2012 Feb 08 7:20 AM
Hi,
Thanks again for your reply. I saw there are 2 records with Primary tick: -
HUF2 Hungarian Forint with 2 decimal places
USD United States Dollar
I hope I get the right currencies you meant. Go to SPRO>>SAP Netweaver>>General Settings>>Currencies>>Check Currency Codes???
2012 Feb 08 7:28 AM
Hi,
If you are not facing this decimal issue with all other currency then I believe code is fine . Not sure about exact where the currency decimal maintained , check with functional ppl but you can check in table TCURX.
2012 Feb 08 6:24 AM
Hi,
Hope the KBETR field is containting the value for INR or in other currency ?
If its for other currency( like RMB, JPY ), check the decimal value maintianed in config.
I have faced the same issue while printing FI/SD doc in other currency .
2012 Feb 08 6:28 AM
2012 Feb 08 9:46 AM
Hi ,
Actually the KBETR field is having 2decimal places only , so once you check the currency settings and Smart Styles also like , ex. like after three digits comma (1,00,000) like this had you mentioned anywhere .. i think instead of comma you taken dot may be check this scenario also.
Regards,
Krishna.