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 occurredI'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
------------------------------
Original Message:
Sent: 05-14-2021 14:52
From: Senthil Nattamai Sekar
Subject: MIGO_GR - Runtime error RAISE_EXCEPTION has occurred
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 |
Original Message:
Sent: 05-14-2021 10:45
From: Sigrid Kok
Subject: MIGO_GR - Runtime error RAISE_EXCEPTION has occurred
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
Original Message:
Sent: 05-13-2021 12:07
From: Senthil Nattamai Sekar
Subject: MIGO_GR - Runtime error RAISE_EXCEPTION has occurred
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,
- Recorded the script in batch mode and executed with Start SAP GUI checked or with SAP GUI unchecked
- Recorded the script in non-batch mode and executed with Start SAP GUI checked or with SAP GUI unchecked
- 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 |
------------------------------