Skip to Content
0
Former Member
Jun 16, 2011 at 07:57 PM

Create formula in the transaction VOFM

60 Views

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