I built an ecatt script for ME21N. This executes fine when I run it alone with multiple data sets provided 1 at a time with each test run.
Thereafter, I pulled the script into a test configuration, added a couple of variants (via test data container) and kicked off execution. The first run with the first variant was successful.
The second run fails however with the error message -
"Screen Check Error: Transaction Code Expected:ME21N Current:ME21N,Program Expected:SAPLMEGUI
Current:SAPMSSY0,Screen Expected:14 Current:120. Probably an error in previous SAPGUI / Processed Screen"
What am I doing wrong? My ME21N recording ended with capturing the PO generation message. Did I need to come back to the SAP Easy access screen before ending the recording?
Follow up question - if I now need to modify my test script to add that last step of clicking the back arrow and returning to SAP Easy access screen - how do I do this? Would I need to record the entire script again from scratch?
Thanks!