Automate

 View Only
  • 1.  GTM Trading Expense Workbench - RAISE_EXCEPTION outside of GUI

    Posted 03-05-2021 11:03

    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
    ------------------------------


  • 2.  RE: GTM Trading Expense Workbench - RAISE_EXCEPTION outside of GUI

    Employee
    Posted 03-09-2021 10:58
    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.

    OWB_EXP_1 Trading Contract: Incident.Cost Type
    OWB_EXP_10 Grouping of Expense Classes
    OWB_EXP_2 Expenses: Class
    OWB_EXP_3 Expenses: Customer/Vendor
    OWB_EXP_4 Expenses: Vendor Billing Doc.
    OWB_EXP_5 Trading Contract: Posting Types
    OWB_EXP_6 Expenses: VBD Type DetMeth
    OWB_EXP_7 Expenses: Assign Classes
    OWB_EXP_8 Expenses: Accounting Types
    OWB_EXP_9 Grouping of Expense Classes
    OWBEXPCUST Customizing GT Expenses
    S_P0D_25000029 WB2B_EXPENSE
    WBLFDETSIM VBD Determination Simulation

    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
    ------------------------------