Hello Steve,
welcome in the Scripting forum.
You can use /n in front of you transaction code, e.g.
session.findById("wnd[0]/tbar[0]/okcd").text = "/nSE38"
On this way you jump back and start the new transaction in the same session.
Hope it helps. Let us know.
Cheers
Stefan