09-12-2007 11:07 AM
Hi all
I had a requirement to subtract two Number/Units
Example v_test type anzhl ,
v_test1 type anzhl .
v_test2 type anzhl .
i want to subtract v_test from v_test1 is there any function module is there or we can directly subtract it
like v_test2 = v_test-v_test1 .
will this work
09-12-2007 11:08 AM
09-12-2007 11:08 AM
09-12-2007 11:14 AM
As anzhl is of type DEC.....u can directly subtract two fields.....
Regards
Vasu
09-12-2007 11:17 AM
Hi Hitesh,
Ur code will work if the type is numeric-type.
Otherwise u can use subtract statement.
Regards,
LIJO
09-12-2007 11:18 AM
hi Hitesh ,
just put space there while subtracting after v_test in second line..
Data:
v_test type anzhl ,
v_test1 type anzhl ,
v_test2 type anzhl .
v_test = '2.20' .
v_test1 = '1.20' .
v_test2 = v_test - v_test1 .
write v_test2 .
09-12-2007 11:19 AM
09-12-2007 11:19 AM