Skip to Content

SAP Global Trade Management (GTM) – Trading Execution Workbentch (TEW)

Okay, here is the 2nd GTM component/functionality which is called Trading Execution Workbentch (TEW).

As I described in my last blog, we have a new logistics document in GTM called Trading Contract (T/C).  This is a portal document to start a trading scenario.

After creating a sales order (S/O) and purchase orders (P/O) from T/C, we recommend a GTM user to use TEW which is a workbentch transaction to manage logistics execution.

What does logistics execution means?

The logistics execution means Goods Receipt (G/R), Inbound/Outbound Delivery, Billing and Logistics Invoice Verification in SAP. So let’s say goods movement, A/R and A/P processings are related to this in real business.

As you know, SAP created separate transactions/documents for each execution steps respectively and user go to ‘MIGO, ‘VL01N’, ‘VF01’ and ‘MIRO’ to process.

This might be okay in traditional business, but in trading business it is not.

Because an user (trader) actually does not crassify sales and purchasing. Trading is a chain process from purchasing a product and selling it and has to be streamlined.

If you were a an user (trader), do you remember each transaction code and process the documents? Of course not.

You really need one screen to finish everything you need to do, right?

Yes, that is why we developed TEW.

Trading Execution Workbentch (TEW)

 it is a smple screen, there are a few attribution fields and they all can be customized by customer regarding their business terms.

Once an user enter basic parameters, TEW try to search a target document to process , selecting target document(s) and pressing ‘Execute’ button.

To report this post you need to login first.

35 Comments

You must be Logged on to comment or reply to a post.

  1. Hi Nob,

    Thanks for your informative document on TEW.

    One question on mentioned subject though.

    How do we perform multiple R/3 Transactions in single step within TEW (say perform Goods Receipt + Invoice verification in one step).

    Is there any customization settings to do this.

    Please advise on this

    Thanks & Regards

    Ninad Raje

    (0) 
    1. Nobuhiro Kusumoto
      Hi Ninad,

      Thank you for posting your question.

      Before answering your question, please let me explain the prerequistes.

      Every single transaction executed from TEW is controlled by a program called ‘Action Class’.
      It’s an ABAP program using ABAP Object.
      We, SAP deliverred some sample action classes for your referece.
      If you go to GTM IMG from SPRO or WB2B_CUS and under Trading Execution Workbench (TEW), we will see the customize item, ‘Define Action Class’.
      Select this and go under ‘LO-GT’, you will see all of the action classes we deliverred.

      To answer your question, copy the name of one action class,’CL_WB2_ACTION_GR_CREATE’ and see the inside of this using SE80.
      You can see the actual coding.

      If you need a new action class for your own, just copy a most likely one to your name space, modify it and assign it to the right TEW step.

      If you do the above step correctly, TEW automatically recognize what they need to do when the user select the assgined TEW step.

      Hope this help.

      Thank you, Nob

      (0) 
      1. Hi Nob,

        Thanks for the information.I guess all the standard classes provided in the system are for 1 R/3 Transaction.

        So if we need to combine 2 transactions , we will need to develop a new action class & write program to combine 2 transactions codes.

        Please correct me if I am wrong.

        Thanks & Regards

        Ninad

        (0) 
        1. Nobuhiro Kusumoto
          Hi Ninad,

          Some of the SAP standard Action Classes have a capability to execute more than one transaction, however, we don’t support that usage.

          Basically how you design and develop your own action class is not what SAP deliver out of box but a common project practice.

          Of course this requires a certain level of skill and resouces, but not big challenge.
          In fact, we have some go-live customers realized it by themselves.

          Thank you,

          Nob

          (0) 
  2. Sophie M
    Hi Mr GTM,
    My client is a pure trading company (without stock), except from one very simple material flow. In this flow, the goods are purchased and stored in inventory until it is sold and transported by the only customer. They are thinking about using GTM for all their other trading business, is there something that stops them from using GTM for this simple flow (that includes material inventory) as well?

    Br, Sophie

    (0) 
    1. Nobuhiro Kusumoto
      Hi Sophie,

      Thank you for your contact.

      First of all, your sentense below means that your client does a paper trading (commodity), which buy and sell against the market like CBOT?

      > My client is a pure trading company (without stock), except from one very simple material flow.

      If so, GTM, no SAP is not a good platform for that business because they are required more real time than we do.
      Of course, we, SAP do something, but from my experiences with paper trading companies before tells different impression.
      Most of them have two different software, one is most likely desktop application like Sungard, Triple Point and the other is a backbone system like SAP to transfer data from front.
      But this normally will be resulted from the interview with your client.

      Next, inventory scenario you described is that SAP (GTM) can do something and we have a scenario out of box.

      Hope this helps.

      Thanks,

      Nob

      (0) 
      1. Sophie M
        Thanks for your answer. When I used the term “pure trading business” I meant that the company has no stock. It handles with material and I believe GTM is the perfect fit system wise. For the other flow, where the company keeps stock, can we for example use GTM or would it be easier to have the standard SD/MM solution? From a user perspective, it would be much easier to work with the GTM solution for both flows. 
        (0) 
  3. Rachana Sharma
    Hi Nob,

    I have a scenario on TEW.
    I am creating a Purchase side T/C with say 100 qtys and the follow on docs should be closed with 90 only. Is it possible?

    To try this, I created a Purchase Side T/C. Clicked on the Standard PO (follow-on doc got created). There is change button available, when I click on it to change the qty, I get an error, “Transaction type not compatible with teh mode of the TEW”

    Also there is a field in Contract Type (IMG) – “Direct Follow-on docs”, in the drop down opts we have “Direct/Indirect Sync”  – What does this mean?

    Thank you for your help.
    Regards
    Rachana

    (0) 
    1. Nobuhiro Kusumoto
      Hi,

      First of all, sorry for my delayed res.

      Not sure I understood you.
      You create a P only T/C with 100 and release it. (of course you have a P/O with 100 too)

      What does your ‘close’ mean?
      Do you want to change the P/O quantity to 90 (#1) or receive a G/R against this P/O with 90 and want no one process further (90 is final quantity #2)?
      Or something else?

      If #1, go back to T/C, change the quantity to 90 and release it.

      If #2, when you receive it with 90, set the flag (KOMWBGT-COMPLETE) called ‘Final Logistics Indicator (FLI)’ in the GT tab at header and save it, so that TEW does not allow anyone to process that document.

      If something else, I need more clarification to understand.

      Thanks, Nob

      (0) 
  4. Natalie Deshpande
    It seems that we have combo box for tew selection..where the first option is standard..would like to more about it..what else can be other than standard.

    it seems TEW is more kind of cockpit attached to  tcode wb21/wb22/wb23…where from docflow we can link to respective tcodes.

    System is not preventing to edit doc in VF02 but looks to me it not desirable due to data inconsistency.   one will need SD/MM/FI config as usual & on top of that GTM to move forward with trading requrements.

    please expain & correct if wrong.

    (0) 
    1. Nobuhiro Kusumoto
      Hi,

      Your perception on TEW is not correct.
      TEW is not that simple.

      If you looking for the capability of TEW, please go to GTM IMG tree (under Trading Execution Workbench).
      You can build your logistics scenarios using TEW framework and it’s core control is managed by a program called ‘Action Class’.
      For example, you have a drop shipment process like you ask supplier to ship product(s) to customer directly. Normally you will receive a delivery confirmation from either shipping company or supplier said deliery to customer has completed and you process customer billing and supplier invoice verification after based on this shipping notification.
      This means that you always process sales and purchase invoice based on the shipping confirmation.
      If that is the case, would not be nice if this billing/payment processes happen when you prcess service confirmation?

      If you agree, can standard SAP (SD/MM) do that for you?

      Maybe no.

      But TEW, yes.

      Do you think this capability is provided by simle transaction call like key in transaction code VL01N, VF01 and MIRO?

      TEW is an advanced technical platform that you can build customized logistics scenarios on it.

      I don’t not what you want to build with TEW, but it’s more flexible and scalable place than SD/MM.

      But be careful that your logic is supported by you not SAP.

      (0) 
  5. Sergey Demianchenko
    Hi, Nob
    Can scenarios with Inbound deliveries with reference to PO be implemented without programming new action class? I see action class CL_WB2_ACTION_ID_CREATE, but it is actually without any coding as many other classes with interface IF_WB2_ACTION.

    Thanks&Regards
    Sergey

    (0) 
    1. Nobuhiro Kusumoto
      Hi,

      Actually we don’t deliver that scenario as standard because of a challenge to do that. If you are familier with compatibility between inbound delivery and goods receipt, you know what I mean.

      We, however, deliver that scenario at one customer project, so technicallly possible (please don’t take my above comment negatively).

      So the bottom line is that you need to create your own Action Class for that.

      Thanks,

      Nob

      (0) 
    1. Nobuhiro Kusumoto
      Hi,

      Unfortunately I could not find any IDES information around GTM at public web site (help.sap.com), sorry!

      We have delivered two scnearios, one is stock and the other one is B2B (drop shipment), don’t think that we deliver any documentation with it (which is really bad).

      If you take a look at predefined parameters well, you will find some naming rules (i.e. T/C Type 0001) around it and able to run T/C and TEW wihtout any documents.

      Thank you,

      Nob

      (0) 
  6. Koki Hayashi
    Dear Nobuhiro-san

    Our company is planning to implement the GTM on current SDMM module. Currently we have warehouse system (not SAP) to communicate with SDMM to do the Goods Issue for Delivery, Goods Receipt for PO and stock transfer which are done by call transaction of “VL02N” and bapi of “BAPI_GOODSMVT_CREATE” in SDMM. My question is with GTM, it seems all GI, GR have to been done through GTM to keep the document consistency, appreciate if you could let me know if there is any Badi or function module in GTM work the same as above? Or what other suggestions you could have. 

    (0) 
    1. Nobuhiro Kusumoto
      Hayashi san,

      Thank you for your question.

      Before answering your question, please allow me state the options you have, since you are already implemented some scenario on SD/MM.

      TEW is not mandatory in GTM.
      You have two options, one is with TEW for logstics execution and the other is without TEW which means enhance your scenario in GTM without implementing TEW.

      Okay, let’s go back to your question.
      TEW adopt ABAP Object technology. I will not explain the details here because I am not an expert in this area ;-).
      You can just imagine object oriented technique here.
      There are programs called ‘class’ in ABAP Objects, it’s like a capsulated program like function module.
      This class controls actual system behavior.
      There are four different kinds of classes in TEW.
      1. Enhanced Class to fill additional data in TEW ALV
      2. Filter Class to show or not show the fields in TEW ALV selection
      3. Check Class to control the transferred data to Action Class
      4. Action Class to control SAP transaction called from TEW

      They are prerequisite to think about your enhancement because you need to know where you put your own logc and for what.

      And now the final answer is that please go to IMG under Logistics – SAP Global Trade Management – Trading Execution Workbench – Enhancements Using Business Add-Ins

      You can see the available BAdIs in TEW there.

      Hope this answers your question.

      Thank you,

      Kusumoto

      (0) 
      1. Koki Hayashi
        Kusumoto-san

        Thank you very much for your prompt answer, besides BAdi (Class), is it possible to call transaction “WTEW” by BDC in the Z program ? I do not have the GTM and TEW actived yet to check since we are still in planning, if this is not your area I am sorry about that.

        (0) 
        1. Nobuhiro Kusumoto
          No, TEW does not work in background (TEW is designed to use in online).

          If you really think of the customized process, the SD/MM option may be better for you.

          Thank you,

          Kusumoto

          (0) 
          1. Koki Hayashi
            I see, TEW only work for online. If I use SD/MM option, Is there a way to keep the document consistency SD/MM with GTM ?

            Thank you.

            (0) 
            1. Nobuhiro Kusumoto
              Hi,

              I don’t understand the document consistency you meant…

              Please let me clarify the points in case you choose the option ‘T/C-SD/MM’.

              Trading Contract (T/C) is mandatory when you use GTM, so you will start business from T/C creation.
              After you create a T/C and release it. a subsequent Sales Order (S/O) and Purchase Order(s) are created automarically.
              Once you create a S/O and P/O(s), you are NOT allowed to change this wihtout GTM interface. This means that you need to use the T/C to update business data and release to synchronize with S/O and P/Os.

              You, however, get a freedom after S/O and P/O processes like delivery or goods receipt because you have selected an option to use standard SD/MM for logistics execution.

              If you would like to implement user-exit or BAdI, go ahead. You can do it with your own risk.

              Even though you can touch S/O and P/O directly, you still can implement it’s user exit and BAdI with your own risk.

              If your question is related to connect some data between SD and MM in logistics, Hmm, maybe you need something TEW does…

              Thanks,

              Kusumoto

              (0) 
              1. Koki Hayashi
                I am sorry if I make you confusion and appreciate your time. what I mean consistency here is creating the T/C(SO, PO) and delivery by GTM, but Goods Issue and Goods Receipt by SDMM directly. Because the Goods Issue and Goods Receipt have to been done automatically by the interface from external warehouse system. Or is the Action Class you mentioned previously in GTM can do the Job of Goods Issue and Goods Receipt? 
                (0) 
  7. Sergey Demianchenko
    Dear Nob
    We decided to go for a GTM in our new project for Russian chemicals trader which started one month ago. I am now rather deep in GTM. Your valuable blog was a great contributor. Still due to lack of documentation many questions remains unanswered.
    Here is just one of them:
    Is it possible to create PO (TC) with reference to MM contract within standard framework of GTM?
    Can it be done with enhancements? ( like new Z field in TC and then implementation of IF_EX_WB2_RELEASE_CHANGES~CHANGE_PURCHASE_ITEM)
    I found some traces in action class CL_WB2_PO_CREATE. It looks like it is part of so called “Import scenario”. What this scenario is about? Is it TEW scenario?

    Thank you in advance.
    Sergey

    (0) 
    1. Nobuhiro Kusumoto
      Hi,

      Sorry for my delayed res.
      The following is my answers;

      > Is it possible to create PO (TC) with reference to MM contract within standard framework of GTM? Can it be done with enhancements? ( like new Z field in TC and then implementation of IF_EX_WB2_RELEASE_CHANGES~CHANGE_PURCHASE_ITEM)

      No, we don’t provide this framework as standard.
      Basically a TC can be created reference with Pre TC. We, however, will release a new feature called ‘Shadow TC’ with EhP5.
      This allows user to create a TC from either a SO or a PO.
      Also another feature allows user to create a purchase contract from a TC from EhP5.

      With a BAPI this might be possible, but I have not tried ever.

      > I found some traces in action class CL_WB2_PO_CREATE. It looks like it is part of so called “Import scenario”. What this scenario is about? Is it TEW scenario?

      You have an eagle eye.
      Yes, we have had a project before and used the enhancement to support a purchase contract creation from a TC.
      Needless to say, this is out of standard support and as I described above that this will be coming as standard from EhP5.
      But again, this is not a TC creation from a purchase contact you asked.

      Hope this helps.

      Thank you,

      Nob

      (0) 
      1. Sergey Demianchenko

        Dear Nob,<br/>Thanks again for your help.<br/>If you don’t mind several more questions:<br/>1.     <We, however, will release a new feature called ‘Shadow TC’ with EhP5.<br/>This allows user to create a TC from either a SO or a PO.<br/>Also another feature allows user to create a purchase contract from a TC from EhP5.<br/>I didn’t get it.  You create PO and SO and then above them ‘Shadow TC’?  So, it other way round of what we are doing now?<br/>2.     Is EhP5 already available for customers? Is it documented?  It’s really big pain, Nob (I mean lack of documentation).  I am  familiar with many SAP modules and find that things are very poor in GTM in this respect.  And things get worse with EhPs.  And it’s a pity because module is well designed and will suite to broad range of customers (especially in Russia with its emphasis  on commodity trading).<br/>3.     You mentioned the other day, that  IS-OIL TEW will be available to ERP customers without IS-OIL licensing. You also mentioned that it is preliminary.  Does it hold true?<br/>

        (0) 
        1. Nobuhiro Kusumoto
          Sorry for my delayed res again, I have been really busy and no time to res.

          All right.

          1. This allows user to create a TC from either a SO or a PO.
          Also another feature allows user to create a purchase contract from a TC from EhP5.
          I didn’t get it. You create PO and SO and then above them ‘Shadow TC’? So, it other way round of what we are doing now?

          > I got your point, but we have been asked from some customers about reversal link from SO, PO to TC.
          The usage of this may vary.
          If you don’t get it, you don’t have to use it.

          2. Is EhP5 already available for customers? Is it documented? It’s really big pain, Nob (I mean lack of documentation). I am familiar with many SAP modules and find that things are very poor in GTM in this respect. And things get worse with EhPs. And it’s a pity because module is well designed and will suite to broad range of customers (especially in Russia with its emphasis on commodity trading).

          > No, EhP5 is not generally available yet. But I know what’s in it. The necesary documentation/information will be released with it. If you can’t wait, please go to SAP Service Marketplace and will see EhP5 high level information there.

          If you would like to learn about GTM at detail level, there is a complete set of configurations on IDES and you can play with it.

          3. You mentioned the other day, that IS-OIL TEW will be available to ERP customers without IS-OIL licensing. You also mentioned that it is preliminary. Does it hold true?

          > I did not mention any about pricing, this is not my area. So please contact local SAP sales.
          I have heard some plan change about IS-Oil from EhP5, so you should ask them as well.

          Thank you,

          Nob

          (0) 
  8. srini v
    Hi Nob
    I have created a delivery via TEW against a TC (both sided), but I have not done the PGI for the same. Now I wanted to do the PGI using the standard TEW flow(group-0002 -> step-0011 -> mode-0002 -> previous step-0011) with selection step 0001-trading contract. I have executed after giving the TC number. But there are no selectable items.
    Even I cannot able to delete, display, reverse my outbound delivery.

    Would you please help me in this regard.

    Thanks
    Srini

    (0) 
    1. Nobuhiro Kusumoto
      Hi,

      First off, please understand that it’s really difficult to give any advice without seeing the system.

      Second, please check the field entry ‘WBGT-ERROR_TEW’ from SE16.
      If you find the entry ‘X’ for your outbound delivery out there, that’s the reason why you have this situation.

      TEW filter class take this entry out from your sight because of this flag.

      To retry the transaction, simply you can delete this flag from SE16.

      If this is not the case, I would recommend you send an OSS message and have SAP access your system or ask GTM SME for help.

      Hope this helps,

      Nob

      (0) 
      1. srini v
        Hi Nob,

        Thanks for your reply, your solution (removing X from the field WBGT-ERROR_TEW) has resolved my problem.

        Thanks again
        Srini

        (0) 
  9. Felipe Bueno
    Hello Nub,
    We have implemented GTM and for some business scenarios we want to use TEW for Logistics Execution (GR, Deliveries, etc.), but for other scenarios  we want to process Trading contract with normal transactions such as Migo, Miro, Vf01, etc.
    Is this possible, how can we do this?
    Thank you for your response
    Regards
    (0) 
    1. Nobuhiro Kusumoto
      Hi,

      Very sorry for my delayed res because I checked this with SAP Development.

      The answer is yes, you can do that.

      It is possible that you can swith the TEW activation and deactivation at T/C type level in the same client.
      The best possible case is TEW type is different for those T/C types, but even though TEW type is same, you can control this with the method; SET_TEW_DISABLED of BAdI: WB2_ADDITIONAL_DATA.

      Hope this helps.

      Thank you,

      Nob

      (0) 
  10. srini v
    Hi Mr GTM
    I do have a requirement like, when I export/import goods, there are chances that my product does not meet the customer requirements or supplier does not meet my standards in terms of difference in product weight, or any quality factor like percentage of fat which is not as per the agreement. The end result is to raise a debit note or credit note which then assigns to the costs to the trading contract.
    I may handle the following claim types
    USDA- products are checked for contamination (like ecoli) or damage under this regulation
    FAT- for checking the fat in excess of specified (and penalized as per the regulations of MICA guidelines)
    Trucking- Claims against trucking company
    Shorts- if product is delivered short

    My questions is there any product/module available in SAP in co-ordination with SAP GTM to maintain the claims in system and then post a credit/debit note with reference to it and those costs will be assigned to Trading contracts.

    Also, please let me know what if ‘SAP Compensation Management’ will help me in this regard.

    Thanks
    Srini

    (0) 
    1. Nobuhiro Kusumoto
      Hi,

      As far as I read your contexts, Trading Expenses (T/E) is the one you can try.

      T/E allows you to handle any expenses during trading processes and associated with either T/C or incurred logistics documnents.

      As for SAP Compensation Management, this is a SAP module designed for chargeback processes in Wholesale Distribution.
      This is slightly different from trading business, but it is a type of trading down stream.
      If you are a wholesale distributor and need to initiate a subsequent financial transaction against manufacture (revenue recovery), this would help you to do that.

      Hope this answer your question.

      Thanx, Nob

      (0) 

Leave a Reply