cancel
Showing results for 
Search instead for 
Did you mean: 

Quantity field is rounded off - Need to print with decimal places

Former Member
0 Kudos

Hi Experts,

In the smartform quantity got printed as 16Kg, Actually it has to be 15.5Kg.

I have confirmed that the Internal table contains quantity as 15.5Kg while the smartform got triggered.

In the smartform i have used the &wa_zssabc-LFIMG& to write

the quantity. The work area also refers the standard dictionaty object for quantity LIKP-LIFMNG.

Could anyone advice about this.

Regards

Prasath

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi kumar,

I suspect that .... there could few possibilities...

1) have you used the same structure in smartform. some where u r moving to the field ... i will explain with example...

*** i have declared variable..
 data :v_round_amt TYPE p LENGTH 13.
data : v_qty type p length 13 decimals 2.

v_qty = '5000.55'.

move v_qty to v_round_amt.

the value of v_round_amt is 5001.

it will round to nearest integer... so please make sure before prining this value in smartform do the caliculation as per ur requirement. place the break-point before this qty field and check this at run time....

if still problem is persisting plz feel free to contact me....and dont forget to reward points...

Regards,

Sreenivasa sarma K.

Edited by: sharmashree kashi on Apr 9, 2008 5:32 PM

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

As u said above it should not display like this.

try to debug the smartform and check what is the value of the variable at the time of passing it to the smartform.

Regards

Sandipan