I have two scenarios in SAP, with list of data on screen and Empty Screen

SAP with list of data on screen and click one by one to extract data
Empty Screen with no data.
I want, if above 1 scenario pops up then



click on Material row and extract data.
else if above 2 scenario pops up just display message “No list for this week”.
Used Image Exists Activity, by capturing screen but failed.
Any suggestions please. attached images for info