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
------------------------------
Original Message:
Sent: 03-05-2021 11:02
From: Josh Ward
Subject: GTM Trading Expense Workbench - RAISE_EXCEPTION outside of GUI
I am building a high impact script for our business in the GTM (Global Trade Management) module. I can build the script using GUI scripting, but it is slow and does not provide a solid process. We want to use Standard or Batch scripting, but Standard cannot get around the error "RAISE_EXCEPTION" and Batch stops too early in the process before expense actualizations are created. I have confirmed with Winshuttle Support that what I am trying to record (a custom t-code based on SAP package WB2B_Expense) requires GUI scripting. However, I would like to know if another customer has tackled a trading use case in the GTM module. Were you able to do it without using GUI Scripting? If so, what t-code/BAPI did you use? Any tips would be appreciated!
------------------------------
Josh Ward | Senior Advisor
Phillips 66 | 9189777675
------------------------------