Skip to Content
Former Member
Jul 22, 2009 at 04:06 PM

Issue with simple calculation


Hello, Can someone please tell me what I am doing wrong here. With this code I am getting a right value of 7.85 into m_kbetr_lb in my test program but I am getting a value of 784844.72 in my user-exit . I am not sure what is going on here. Any suggestions please.

data : m_kbetr_kg like komv-kbetr,
          m_kbetr_lb  like komv-kbetr,
          m_lb            type p deciamls 5 value '2.20462'.

m_kbetr_kg = 356 / 100.
m_kbetr_lb  = m_kbetr_kg * m_lb
write :/ m_kbetr_lb..