2024 Jul 03 10:38 AM
Hi experts
How can I call a custom function module from LSMW?
We have written a custom function module to perform some complex calculations for an interface, but now need to execute the same function module multiple times in a large batch directly in SAP.
My thoughts are to use LSMW but not sure how to specify my FM.
How can I call a custom function module from LSMW?
2024 Jul 03 10:48 AM
2024 Jul 03 10:56 AM
Thank you @RaymondGiuseppi ! Let me take a look
2024 Jul 03 10:57 AM
2024 Jul 03 11:04 AM
Hello @oppenheim_jm
Have a look at LSMW Processing Times documentation. Here you can insert your own code and call the function module from there. I think you should put a call to your function in __BEGIN_OF_RECORD__ or __END_OF_RECORD__ processing time.
Best regards
Dominik Tylczynski
2024 Jul 03 12:15 PM
Can you elaborate on 'custom function module to perform some complex calculations for an interface'
Does your FM update some data form input or just format this input to send them in another interface, is the FM the only step?