Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

VOFM coding help wanted

Former Member
0 Likes
525

I have been assigned a task to create a scale base routine in VOFM based on using KBETR. I believe it's based on the following code:                   

  1. * Partial quantity 
  2. form frm_staffelbas_023. 
  3.    data: da_xkwert like komv-kawrt, 
  4.          da_xkwerx(16). 
  5.    unpack xkwert to da_xkwerx. 
  6.    move '000' to da_xkwerx+13. 
  7.    pack da_xkwerx to da_xkwert. 
  8.    xkwertxkwert = xkwert - da_xkwert. 
  9. endform. 

Can anyone help me on what the formula should looked like as modifying this particular code does not work for us.

1 REPLY 1
Read only

iotatau
Participant
0 Likes
488

As a first step I'd correct line 8 to "xkwert = xkwert - da_xkwert".

If this is not sufficient then please provide more information - what kind of calculation should be performed?