Application Development 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: 

Strange output in SMARTFORM in field KOMVD-KBETR

Former Member
0 Kudos
305

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.

10 REPLIES 10

Former Member
0 Kudos
140

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

0 Kudos
140

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?

0 Kudos
140

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

0 Kudos
140

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?

0 Kudos
140

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 ?

0 Kudos
140

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???

0 Kudos
140

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.

former_member198275
Active Contributor
0 Kudos
140

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 .

0 Kudos
140

Hi,

Can you share how could I check in the configuration?

krishna_k19
Contributor
0 Kudos
140

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.