Automate

 View Only
  • 1.  MIGO_GR - Runtime error RAISE_EXCEPTION has occurred

    Posted 05-13-2021 12:07
    Hello,

    I have created a script for MIGO_GR(using WS studio version 12) this is for process where GR is done with reference to inbound delivery since each line has unique batch where Business user needs to capture few batch characteristic per batch it was decided to automate using Winstulle script. But the script does not work consistently for me, although the document gets posted it keeps giving me the error "Runtime error RAISE_EXCEPTION has occurred". I tried below things but it doesn't fix the issue and same the face issues with all these options,
    1. Recorded the script in batch mode and executed with Start SAP GUI checked or with SAP GUI unchecked
    2. Recorded the script in non-batch mode and executed with Start SAP GUI checked or with SAP GUI unchecked
    3. Debugged the script  and face the same issue.
    A similar script which i created with Transaction version 10.7 worked consistently but our company is upgrading every license to studio soon so need to understand this issue.

    We are in SAP ECC 6.0 with BASIS version 701 and use SAP GUI version 760.




    ------------------------------
    Senthil Nattamai Sekar |
    Infineon Technologies North America Corporation |
    ------------------------------


  • 2.  RE: MIGO_GR - Runtime error RAISE_EXCEPTION has occurred

    Posted 05-13-2021 14:46
    Hi Senthil -

    Quick question, are you not able to run the 10.7 based script in 12.1?  Scripts are backwards compatible, so Studio 12.1 can certainly run v10 based scripts. Does this also run with errors? 

    Thanks,

    ------------------------------
    Jennifer Hwang | SE
    Winshuttle North America
    ------------------------------



  • 3.  RE: MIGO_GR - Runtime error RAISE_EXCEPTION has occurred

    Posted 05-13-2021 15:16
    Hello Jennifer,

    I am able to run the 10.7 based script in 12.1 but it ends up with same error, I need to correct one point from original post. I couldn't record this script in batch mode because the batch classification screen doesn't work on batch mode recording when i click Classification button nothing happens so couldn't complete the recording properly.

    I tried below things but it doesn't fix the issue and same issue with these options,

    1. Recorded the script in non-batch mode and executed with Start SAP GUI checked or with SAP GUI unchecked
    2. Debugged the script  and face the same issue.


    ------------------------------
    Senthil Nattamai Sekar |
    Infineon Technologies North America Corporation |
    ------------------------------



  • 4.  RE: MIGO_GR - Runtime error RAISE_EXCEPTION has occurred

    Employee
    Posted 05-14-2021 10:46
    Hi Senthil


    This t-code is an "enjoy" transaction, and can be tricky to automate.  I have a script that I created in v10.3 in 2012 that still works :-),  but it doesn't have batches.

    • You are right that Start SAP GUI has to be checked. 
    • Make sure you have the details section expanded, as not everyone will have it that way by default.


    Can you please attach your script and potentially template (data scrubbed)?  I will take a look.

    Best Regards,
    Sigrid

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



  • 5.  RE: MIGO_GR - Runtime error RAISE_EXCEPTION has occurred

    Posted 05-14-2021 14:52
    Hello Sigrid,

    PFA the script and data template,  I can also send you the logs if you need those separately in an email.

    ------------------------------
    Senthil Nattamai Sekar |
    Infineon Technologies North America Corporation |
    ------------------------------



  • 6.  RE: MIGO_GR - Runtime error RAISE_EXCEPTION has occurred

    Employee
    Posted 05-14-2021 19:11
    Hi Senthil

    Thanks for sending your files.  

    I had to setup some data to try this out. 

    I am able to script it, and if I enable EXTENDED LOG 
    I'm seeing this, which means the document posts, but there is still some type of error in SAP as you leave the tcode.
    - Material document 2004000097 posted
    - Runtime error RAISE_EXCEPTION has occurred

    I've:
    • tried recording in BATCH mode, which is often suggested for these errors, but the classification window wouldn't open for me in BATCH mode.  If you could skip the classification screen, BATCH mode works just fine.  Can you use the BATCH entry on the screen instead?  Or are there other characteristics to fill in?
    • tried using another way to exit the tcode - exit then YES to save
    • looked some Winshuttle Function Module settings 
    • I upgraded my GUI from SAP 760 patch level 4 to patch level 9
    • I also looked in ST22 at the dumps, and asked someone else smarter than me to look at them with me, and they're not helpful
    I still have the same issue as you.

    I think you may need to open a support ticket, and potentially check with your BASIS team, who may have some insights into the issue in ST22.

    I will still look into it next week, but I'm out of time today to take this further.

    Hope you have a nice weekend,
    Sigrid

    PS:  There is also a good BAPI for goods receipt:  BAPI_GOODSMVT_CREATE, but while it supports a set of custom fields, it doesn't look like it supports class characteristics.  

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



  • 7.  RE: MIGO_GR - Runtime error RAISE_EXCEPTION has occurred

    Posted 05-14-2021 20:06
    Hi Sigrid,

    Your response helped me resolve this issue and I was able to find the reason for the issue as well see below for details.

    Since you mentioned about the ST22 dumps, I analyzed those for a while - I was a ABAPer a decade ago so I can understand the code but didn't think of it before because little out of touch with programing topics in SAP.

    In the dump, noticed the exception was thrown from the ALV tree .

    I opened MIGO_GR screen  to see the ALV tree objects and the only ALV tree i could find is "My Documents" section which i disabled it by clicking on "Hide Overview" and then script worked without any issue. I also tested again by enabling it and received the Raise Exception again.


    I believe this is the reason for inconsistent behavior of the script (worked fine for me first, Business user 1 had this issue , Business user 2 did not face this issue, i started facing issue this week) and the exception reason may be the system is trying the add the newly posted material document onto the list there which I believe is a screen change so ending up with exception may be just a guess.

    This post can be closed as resolved. Thanks again.

    ------------------------------
    Senthil Nattamai Sekar |
    Infineon Technologies North America Corporation |
    ------------------------------



  • 8.  RE: MIGO_GR - Runtime error RAISE_EXCEPTION has occurred

    Employee
    Posted 05-14-2021 20:12
    Wow Senthil - that's great news - thanks for sharing! 

    I saw ALV grid, but didn't put 2 and 2 together, so I appreciate that you did so!

    I usually close that window in other tcodes but didn't think it mattered. 

    It's too bad there isn't a setting to have it closed by default.  

    Did you close it as part of the recording?  Or just closed it separately and then the script worked?

    Thanks again!  
    Sigrid

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



  • 9.  RE: MIGO_GR - Runtime error RAISE_EXCEPTION has occurred

    Posted 05-14-2021 20:20
    I just open MIGO_GR and disabled it that's all, did not do new recording if i remember correctly i think that section was there while recorded the script.

    ------------------------------
    Senthil Nattamai Sekar |
    Infineon Technologies North America Corporation |
    ------------------------------