2011 Jun 16 8:57 PM
Hello
I am new to ABAP programming and I'm starting to make a formula in the transaction do two queries VOFM
SELECT
SINGLE KZWI5
INTO WA_KZWI5-KZWI5
FROM VBRP
WHERE
VBELN = KOMP-VGBEL AND
POSNR = KOMP-VGPOS.
SELECT
SINGLE NETWR
INTO WA_NETWR-NETWR
FROM VBRP
WHERE
VBELN = KOMP-VGBEL AND
POSNR = KOMP-VGPOS.
The result of these of these consultations I have them I do a split and assigned to the field
KOMV-KBETR = WA_KZWI5-KZWI5 / WA_NETWR-NETWR.
My problem is that the result is of type float and I can not assign to the field KOMV-KBETR which is CURR
How I can do to make this field takes the value
I hope I can help
Rafael Soto
2011 Jun 16 10:57 PM
VBRP-KZWI5 and VBRP-NETWR are both type CURR fields. How do you get a floating point type result? Did you define your target field as float?