cancel
Showing results for 
Search instead for 
Did you mean: 

wrong decimal format in script

Former Member
0 Kudos

Hi

am working on APP Cheque Printing and Payment Advice Printing

In my payment Advive Script ZF110_IN_AVIS , in LAST Page SUMMARY window

&REGUD-SUMME& variable Displaying the Net Total INR value..But in my case it is displaying wrong decimal Value.

for example if the Actual Total Net Value is *******11,320.00 ,

but it displaying the value in ****************113.20

How to solve this Problem ??

Plz help me out ..

Thanks in Advance

JACK

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

REGUD-SUMME is type CHAR24.

Please check how you are populating the value into this character field.

Regards,

Raju.

former_member585060
Active Contributor
0 Kudos

Try to give and see this way

&REGUD-SUMME(.0)&

or

&REGUD-SUMME(T)&

Regards

Bala Krishna

Edited by: Bala Krishna on Oct 3, 2008 11:47 AM

Former Member
0 Kudos

No ,

sorry to inform u that, none of ur suggestion helped me out to solve the problem..

i hav a solution for this but need ur help to solve it..

The variable &REGUD-SUMME& contains Value ****************113.20

so in the above variable if i will hold only Numeric value and multiply it with 100 then my problem will be resolved... But how i will hold only numeric value (113.20)from the value ****************113.20 ??

Please help me out

Former Member
0 Kudos

Hi jack,

Check the character format of this field &REGUD-SUMME&

Regards,

Sravanthi

former_member195383
Active Contributor
0 Kudos

Hi..

This depends on ur SU3 settings...Go to SU3>DefaultsDecimal Notation.

There set the correct notation..save and relogin...The amount will come in proper format if

the type of the variable that u have used to display amount, is of currency type.

Former Member
0 Kudos

Hi

In User profile the decimal Notation is in correct format i.e.

1,234,567.89

Still wrong Net Amount figure is coming

former_member195383
Active Contributor
0 Kudos

Hi Jack,

u declare a currency variable globally..say

wf_amount of type konv-kwert.

then assign the value that u are usinmg to it as...

wf_amount = wf_variable.

here wf_variable is the variable thru which u are currently displaying the amount.

when u use wf_amount for displaying the amount the format will be as per the user profile