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: 

value changes after smartform display

raffinkira
Participant
0 Kudos
1,009

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.

1 ACCEPTED SOLUTION

rosenberg_eitan
Active Contributor
0 Kudos
645

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.

13 REPLIES 13

venkat_aileni
Contributor
0 Kudos
645

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

Arun_Prabhu_K
Active Contributor
0 Kudos
645

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.

0 Kudos
645

It's the picture.

It's Chinese but I think you can understand what I mean.

0 Kudos
645

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

0 Kudos
645

Ming Yu,

     Please check in smartforms if any code snippet is available to do the multiplication logic.

     Otherwise it is impossible.

Regards.

0 Kudos
645

I am not sure, but can you give this in your smartform?

&wa_tab-fkimg(K)&

0 Kudos
645

it has no effect.

0 Kudos
645

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

former_member214709
Participant
0 Kudos
645

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

rosenberg_eitan
Active Contributor
0 Kudos
646

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.

0 Kudos
645

Hi

if it's a currency or quantity field then you  need to give a reference for the field in the smartform

if you  don't give any reference  then this problem might be there

0 Kudos
645

I defined a reference type in the smartform.

Other currency/quantity fields work well, just this one got the problem.

0 Kudos
645

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.