cancel
Showing results for 
Search instead for 
Did you mean: 

0UNit (time) conversion

former_member183113
Active Participant
0 Kudos

fm2.pngHI Folks,

we need to convert one key-figure values into H (hours). Currently we have H , STD, TAG as units for this key figure. Tried to use the function module 'RSW_UNIT_CONVERSION'.

But throwing error " INput type" not matched when i ever i execute DTP. . and this FM may not fit for our case bcause we dont have different source and target fields. we have one key figure and 0unit and need to use them as source and target fields in this FM. Need your inputs. screenshots attached.

Thanks.

Raki

fm.png

Accepted Solutions (1)

Accepted Solutions (1)

former_member183113
Active Participant
0 Kudos

HI Erdem,

thanks a lot for reply. I just changed the data type of key figure from Dec to FLTP. then it started to work correctly.

RegardsDRavi.B

Answers (1)

Answers (1)

erdempekcan
Contributor
0 Kudos

Hi Raki,

Try UNIT_CONVERSION_SIMPLE function. Following sample works fine.

DATA: lv_output TYPE /BCV/FND_QUANTITY..

CALL FUNCTION 'UNIT_CONVERSION_SIMPLE'
  EXPORTING
    INPUT                      = 1
   NO_TYPE_CHECK              = 'X'
   UNIT_IN                    = 'TAG'
   UNIT_OUT                   = 'H'
 IMPORTING
   OUTPUT                     = lv_output .

WRITE 😕 lv_output.