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: 
Read only

quantity fields on screen - Urgent

Former Member
0 Likes
1,166

Hi Friends

I have 3 quantity fields on screen..

i m multiplying 2 quan fields and placing in 3rd quan field. But it is calculating wrong.

l1 is quan field on screen: 10.000

l2 is quan field on screen: 10.000

i m doing calculation in PAI, as l3 = ( l1 * l2 ) / 196.

Here l3 is showing wrong entry on the screen.

Any suggestions?

Thanks.

Points will be given for helpful answers.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,139

Hi,

What I think by seeing the value is that it is a Unicode issue.

Ur Program must have the 'Unicode Checks active' checkbox checked in its Attributes. Hence this issue.

U can just use :

l3 = ( l1 * l2 ) / (196 * 1000).

This will solve ur issue.

Regards,

Himanshu.

Hi Friends

I have 3 quantity fields on screen..

i m multiplying 2 quan fields and placing in 3rd quan field. But it is calculating wrong.

l1 is quan field on screen: 10.000

l2 is quan field on screen: 10.000

i m doing calculation in PAI, as l3 = ( l1 * l2 ) / 196.

Here l3 is showing wrong entry on the screen.

Any suggestions?

Thanks.

Points will be given for helpful answers.

9 REPLIES 9
Read only

Former Member
0 Likes
1,139

What is the value being displayed in the third field after calculation??

Read only

0 Likes
1,139

The right value is: - 0.510204......

But the decimal places are placing in left like: - 5102,04

Read only

Former Member
0 Likes
1,140

Hi,

What I think by seeing the value is that it is a Unicode issue.

Ur Program must have the 'Unicode Checks active' checkbox checked in its Attributes. Hence this issue.

U can just use :

l3 = ( l1 * l2 ) / (196 * 1000).

This will solve ur issue.

Regards,

Himanshu.

Read only

0 Likes
1,139

Hi Himanshu,

This is showing some different value than the previous one.

Read only

Former Member
0 Likes
1,139

hi hari,

do one thing jus place V in text field of layout , that will take of all the calculation..

like that

text .......................V.

hope so this will work

regards

vijay dwivedi

rewards if answer is helpfull to you

Read only

0 Likes
1,139

HI Vijay,

These are quantity fields.

Can someone help on this?

Read only

Former Member
0 Likes
1,139

Hi,

Fixed Point Arthemtic has been checked.

Sugavanam,

Read only

0 Likes
1,139

No..In Attributes...Fixed Point Arithmetic is not checked

unicode is checked.

It is a standard SAP program...and I am working on screen exit for these quantity fields.

Read only

0 Likes
1,139

Friends,

Thanks for all your help.