Application Development 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: 

Check in eCATT if a screen exists

Former Member
0 Kudos

Hello,

I have a question about checking an optional screen element. There is a CHEGUI and I check a field in there. But it is possible that the screen, that is checked by the CHEGUI, doesn't occure. Is there a possibility to check if the screen is there (and do the CHEGUI) or if it is not there to skip the CHEGUI?

In other test automation frameworks like QTP are mehtods (EXISTS() )for such an operation but in eCATT I didn't find something until now.

regards,

Wolfgang

3 REPLIES 3

Former Member
0 Kudos

hi Wolfgang,

One way is to use SAPGUI recording. There's a field called "Available" in the interface.

Parameterize it. If the screen occurs, the parameter will have a value "X" .

This can be used as a check before executing the CHEGUI.

"Available" can be found under the "ProcessedScreen" node.

A better way is to parameterize the "Active" field as 'O' in the CHEGUI interface.

The step gets executed only if the screen exists and not otherwise.

"Active" can be found under the "Application" node under the "Information" node.

hope this helps.

BR,

Sheetal

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Wolfgang,

At first you need to split the SAPGUI command at Methods/Properties level after the split for that particular SAPGUI which is optional , go to the command interface and set the Active to 'O' under the processed screen.

This indicates this particular SAPGUI command is set as optional which gets executed if it appears else continues with next SAPGUI command.

Hope it helps.

Thanks,

Aj

Former Member
0 Kudos

Hello,

thank you Sheetal and Aj. That was the solution. I didn't find that option first because it is not displayed in the standard view like in SAPGUI control.

So you have to switch from custom view to detail view, that the Information\Application node appears. See screenshot attaches where you can see custom view button (hand symbol) and detail view button (paper symbol).

regards,

Wolfgang