Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

help with conversion

$
0
0

Hi,

 

 

Please, can anyone help me?

I have a smartform and inside a program line I have the following code:


DATA: NUM TYPE i.

     NUM = WA_LIPS-LFIMG.

     WRITE NUM TO V_LFIMG .

     SHIFT V_LFIMG LEFT DELETING LEADING SPACE.

     V_CONT_LOTE = V_CONT_LOTE + 1.

 

The problem is about to show the result number with decimals like '12.345'. I try to add 3 decimals in the result number but the following line of code

"write num to v_lfimg" the result round to next higher number just like in:

"write NUM TO v_lfimg decimals 3" but this way

 

 

How can I show the result number with the correct decimals?

 

 

 

PS: wa_lips (input parameter)

       v_lfimg type char17 (Output parameter)

       LFIMG type quan length 13 decimals 3 (LIPS table).


Viewing all articles
Browse latest Browse all 8332

Trending Articles