Hi Josh
I can only answer in general terms, since I don't know specifically which tcode - WB2B Expense contains a number of transactions - all which I have never used - and I'm not certain I have an up to date GTS system to try them:
SAP Package WB2B_EXPENSE contains 13 transactions.
I always try non-batch first, then batch, then revert to GUI. I believe there will be tcodes what work across all of these modes in GTM.
With GUI scripting, I always search for a BAPI to see if it will work - just google SAP BAPI and the tcode. I think it would help us if you share exactly what you are trying to do in GTM - what tcode you are using. Then there might be someone out there who knows of or can find a BAPI for you.
The other way to approach to this may be to ask your Basis team if they can find or create a BAPI or remote-enabled Function Module to make automation easier, perform well and be more predictable. Since you shared you are using a custom tcode, this may be the best route, using GUI scripting in the interim.
Best Regards,
Sigrid
------------------------------
Sigrid Kok
PSE | Winshuttle NA
------------------------------