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

Correcting the value

karthik_rajaspic
Participant
0 Likes
743

Hi,

I have a field KWERT which has a value 126048.52 in the program.

But when it is printed using the script, it is displayed as 12604852.

Whether I need to specify anything near the field in the script form.

Please let me know.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
724

Hi,

For ur requirement you can use formatting options..

use this &table-KWERT(.2)&

6 REPLIES 6
Read only

Former Member
0 Likes
725

Hi,

For ur requirement you can use formatting options..

use this &table-KWERT(.2)&

Read only

0 Likes
724

Hi,

the syntax is,

&KWERT(N)&.

If you want two decimal places for your field means give like,

&KWERT(.2)&.

Thanks.

Read only

Former Member
0 Likes
724

Hi

try like this

&EKPO-MENGE& -> 1,234.560

&EKPO-MENGE(.1) -> 1,234.6

&EKPO-MENGE&(.4) -> 1,234.5600

&EKPO-MENGE&(.0) -> 1,235

for more info

Regards

Shiva

Read only

0 Likes
724

Hi All,

Thanks for the replies.

But the ideas did not work.

The dictionary specification shows that it has a total length of 17 with 2 for decimals.

I have checked in the debugging mode. Till the CLOSE FORM, it gives 126048.52.

But in the debug mode for form, it is taking as 12604852.

Please help me in this regard.

Thanks in advance.

Read only

0 Likes
724

Hi Friends,

I checked the value in the debug mode for both the program and the script form.

The value for the field till that particular text element is 126048.52

But in the form debug mode it takes the value as 12604852.

So even if I specify &KWERT(.2)&, it gives the value as 12604852.00

Please help me in this regard.

Thanks in advance.

Read only

karthik_rajaspic
Participant
0 Likes
724

Hi All,

Thanks a lot for your answers.