Automate

 View Only
  • 1.  Winshuttle Transaction Recording Customer Transaction (Zeta TCODE)

    Posted 06-06-2022 17:16
    Hello Community.

    I'm having and issue recording a script for a customer transaction (zeta tcode). I'm using Winshuttle Studio 12.01.00190.5082 running with WFM 12.1.

    In my SAP system there is a customer transaction "ZFI which reads a plain text file (entered as parameter for execution) and create records in two customer zeta tables taking the data from the file read.

    One of theses tables is for header and the other is for line items. Transaction "ZFI" also has routines to convert the spool output to PDF and send an email with this info.

    When the execution finishes, a dialog message appears: "Records updated = 836" (for example).

    When I record the steps of "ZFI" in Winshuttle Studio the execution finishes with the message: "Records updated = 0" and the tables for header and line items are empty.

    Running transaction "ZFI" directly in SAP works as expected, no issues.

    This case could be because a limitation of Winshuttle Studio Recording? I'm using standard mode for recording, I tried batch input and SAP GUI modes as well with the same results.

    Thank you in advance.

    Regards

    Fernando


  • 2.  RE: Winshuttle Transaction Recording Customer Transaction (Zeta TCODE)

    Employee
    Posted 06-07-2022 13:05
    Hi Fernando

    We have lots of customers who have automated a lot of custom tcodes, but admittedly, all of them won't work - even some standard ones don't work.

    I'm not 100% sure what this tcode is doing.  You shared
    1. it reads a text file
    2. it creates records in 2 tables
    3. it converts some type of output to a spool request
    4. that spool request gets converted to a pdf and emailed

    It's really hard to help on custom tcodes since we won't have them.  So eow much of this is the tcode doing, versus some automated backend user exit or program?  Can you provide some screen shots?

    Best Regards,
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------



  • 3.  RE: Winshuttle Transaction Recording Customer Transaction (Zeta TCODE)

    Posted 06-07-2022 13:52
    Hi Sigrid.

    Thank you for your reply and interest in this case.

    Basically the transaction does what you have listed. Here, there are some screenshots.

    1. The input for the transaction, after entering the parameters press F8 for execution.

    2. The output of the transaction is a message with the number of records uploaded. When recording in Winshuttle Studio the execution, the number of records is always zero and tables remain empty.

    3. Tables are these: ZFITB_DETRA_C and ZFITB_DETRA_D, as shown in the following images data is populated after running directly in SAP

    4. In the code of the transaction the records are inserted with instruction INSERT.

    5. After inserting the records, the transactions converts the spool output to PDF and sends an email using the following standard functions:

    If there is no solution for technical limitations, please let me know to look for another options.

    Best regards,

    ------------------------------
    Fernando



  • 4.  RE: Winshuttle Transaction Recording Customer Transaction (Zeta TCODE)

    Employee
    Posted 06-08-2022 15:19
    Hi Fernando

    Thanks for the details. 

    I difficult to be certain why this is happening.  Since this is doing more than just updating SAP through the application layer, it may be that we don't support it.  For example even in standard tcodes, if you want to export output to a PDF, it will pop-up what looks to be a Windows-like screen to choose a location and enter a file name.  We can't record that - it looks like SAP but it's really a Windows pop-up that looks a bit like SAP.

    I'd suggest you either try a standard tcode that would at get your partially there to start with, and also potentially open a support ticket and loop in someone on your Basis team who is familiar with the tcode.    

    Best Regards,
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------



  • 5.  RE: Winshuttle Transaction Recording Customer Transaction (Zeta TCODE)

    Posted 06-08-2022 15:38
    Hi Sigrid.

    Thank you for your feedback. It seems this custom transaction won't be supported by Winshuttle.

    I will have to look for a solution outside it.

    I really appreciate your help.

    Best regards,

    ------------------------------
    Fernando Franco | Consultor SAP Senior
    Minsur | 959727473
    ------------------------------



  • 6.  RE: Winshuttle Transaction Recording Customer Transaction (Zeta TCODE)
    Best Answer

    Employee
    Posted 06-08-2022 15:50
    Wish I had a better suggestion, Fernando, but I don't.

    Maybe an RPA tool that does 'surface automation'?  SAP can be tricky to do that, but it's possible.

    Best Regards,
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------



  • 7.  RE: Winshuttle Transaction Recording Customer Transaction (Zeta TCODE)

    Posted 06-08-2022 16:25
    Yes, I'm going to try RPA as an alternative.

    Best regards,

    ------------------------------
    Fernando Franco | Consultor SAP Senior
    Minsur | 959727473
    ------------------------------



  • 8.  RE: Winshuttle Transaction Recording Customer Transaction (Zeta TCODE)

    Posted 06-15-2022 02:48
    Some transactions in SAP are so complex that it is better to run them in SAP GUI scripting mode, this is what we did in our case. SAP GUI Scripting must of course be enabled on the server and the user must have the required RFC permissions. I would try it in your case.

    Best regards Matthias

    ------------------------------
    Matthias Lautenschlaeger | PLM Assistance
    GSI Helmholtzzentrum für Schwerionenforschung GmbH |
    ------------------------------



  • 9.  RE: Winshuttle Transaction Recording Customer Transaction (Zeta TCODE)

    Posted 06-15-2022 10:49
    Thank you for your reply Matthias.

    I have tried all recording modes including SAP GUI Scripting. None worked in my case.

    Best regards,

    ------------------------------
    Fernando