Hi David,
Inserting BAPIs or methods into an LSMW session may be unavailable like others have said.
It is, however, quite easy to insert ABAP code into an LSMW recording.
I wrote a 4-page 'How-To' on it a few years ago: "Imbedding ABAP code in an LSMW project"
I also wrote on on programming events in LSMW.
I tried attaching the documents in pdf form, but the forum doesn't allow that type.
If the moderator is listening, could you advise me on this.
regards
Ed Baker