2013 Dec 10 5:28 AM
Hi, all
I met a problem.
I have a numeric field in an internal table in smartform.
when it is displayed on the smartform preview, its value enlarged by 10 times.
i.e., the original value is 1 in the program & smartform(I checked it in debug mode), and on smartform preview it showed 10.
2013 Dec 10 8:39 AM
Hi,
If this is VBRP-FKIMG this is a quantity field .
This field is related to VBRP-VRKME .
You need to pass this field as well.
You can also define this kind of relations under global definition.
Regards.
2013 Dec 10 5:34 AM
Can you place some screen shots expanding till your text object where you are displaying your field? Also check for Program Lines in your Main Window where you might be calculating something.
-Venkat
2013 Dec 10 5:38 AM
Hello Ming Yu.
That's very weird.
How did you create your smartform text?
Can you post some screenshot(s) to get some idea?
Regards.
2013 Dec 10 5:50 AM
It's the picture.
It's Chinese but I think you can understand what I mean.
2013 Dec 10 5:54 AM
Hi-
Can you place a screen shot expanding till your text object in Smart Form? Not the debugging screen/Output. I just want to see the steps before code gets triggered. Have you used any Program Lines?
-Venkat
2013 Dec 10 8:02 AM
Ming Yu,
Please check in smartforms if any code snippet is available to do the multiplication logic.
Otherwise it is impossible.
Regards.
2013 Dec 10 8:16 AM
I am not sure, but can you give this in your smartform?
&wa_tab-fkimg(K)&
2013 Dec 10 9:05 AM
2013 Dec 10 9:09 AM
Hi Ming
Do as follow. Before the field is displayed put a code statement
data:Gv_fkimg(17) type c. --Global data
write wa_tab-fkimg to lv_fkimg unit wa_tab-vkrme.
Use this GV_FKIMG
It will always print correct value
2013 Dec 10 8:15 AM
Hi Ming,
Just modify all the values in the internal table i.e. divide all the 'FKIMG' values in the internal table by 10 and modify the internal table.
Now use this internal table in the smartform itself .
Regards,
Dinesh
2013 Dec 10 8:39 AM
Hi,
If this is VBRP-FKIMG this is a quantity field .
This field is related to VBRP-VRKME .
You need to pass this field as well.
You can also define this kind of relations under global definition.
Regards.
2013 Dec 10 8:48 AM
Hi
2013 Dec 10 9:07 AM
I defined a reference type in the smartform.
Other currency/quantity fields work well, just this one got the problem.
2013 Dec 10 9:11 AM
OK, I solved it.
The problem is: I didn't change the data type for fkimg in reference definition in smartform.
I should have changed it from curr to quan.
Thank you, all.