How to Iterate through GUI Label in SAPGUi Library

I am trying to find if a particular text is available in one of the SAP GUI labels. Also Is there a way to iterate through a set of GUIlabels and fetch id in SAP GUI library or robotframework for desktop applications.