Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

eCATT SAPGUI: dealing with collapsed/ expanded nodes

Former Member
0 Likes
1,402

When you access SAP screens following a refresh or say with a different test ID, you encounter situation with some t-codes where you need to make changes to get to the default screen that the script was initially recorded with.

A classic example in my mind is ME21N, where the "Header", "Item", "Item overview" nodes are collapsed and document overview is on (see screenshot). As a result, the script fails. I am sure some of you folks out there must have faced this situation.

I am looking for inputs on how you managed this situation within the script itself.

Thanks!

1 ACCEPTED SOLUTION
Read only

nisha_sharma1
Active Contributor
0 Likes
1,199

Hello Archana

There is a table ESDUS which stores the values for last successful execution for transaction & user  and default it in next execution for that user & transaction.

ME21N Node States with Above ESDUS table values:

Above values control the expand & collapse of nodes. (Toggle state)

Create a script for ESDUS table & insert these values & Then REF ESDUS script before PO creation in Me21n Script.

By doing this you are always referring to default one state in ME21N and your script will work in all releases & all systems.

Note: You can insert/change ESDUS table.

Regards

Nisha

2 REPLIES 2
Read only

nisha_sharma1
Active Contributor
0 Likes
1,200

Hello Archana

There is a table ESDUS which stores the values for last successful execution for transaction & user  and default it in next execution for that user & transaction.

ME21N Node States with Above ESDUS table values:

Above values control the expand & collapse of nodes. (Toggle state)

Create a script for ESDUS table & insert these values & Then REF ESDUS script before PO creation in Me21n Script.

By doing this you are always referring to default one state in ME21N and your script will work in all releases & all systems.

Note: You can insert/change ESDUS table.

Regards

Nisha

Read only

0 Likes
1,199

Thanks Nisha! Something like this was exactly what I was looking for.

Archana