Error "You may only define methods within "CLASS class IMPLEMENTATION"
We have code in LMIGOSMC so that the vendor batch number appears in the MIGO transaction for certain movement types. We have created another, custom movement type in which this functionality should be available so I need to add it to LMIGOSMC. When I go in and try to make the modification I am getting the following error:
"You may only define methods within "CLASS class IMPLEMENTATION ...ENDCLASS".
What am I doing wrong?
You are not doing anything wrong with regard to the syntax error you are getting. During the syntax check of include program LMIGOSMC, the system is not aware of the CLASS... ENDCLASS statements within the program LMIGOSM4. Try the syntax check at the LMIGOSM4 program level (or even better, at the SAPLMIGO level) and you will see that the error is not given.