Skip to Content
0
Mar 10, 2009 at 12:20 PM

problem with VOFM

157 Views

Hi experts,

please someone elaborate me how to create a VOFM routine because when i want to create a new routine a popup with SAP access key appears.

I have search and read some threads with this subject but i did not understand how works.

I saw that almost each routine has few CHECK intstructions.

And because an example is like 1000 words, please someone explain this simple VOFM routine:

* Pricing for free goods (100%-discount)
form kobed_055.
  sy-subrc = 4.
  if komp-kposn ne 0.
    check: komp-prsfd eq 'B'.
  endif.
  sy-subrc = 0.
endform.
* Prestep
form kobev_055.
  sy-subrc = 0.
endform.

Thank you.