on 01-16-2018 10:33 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.