SAP Dynamic window object value storing

I want to store the document number generated in dynamic SAP screen, which may appear at any of the row number, as in below screenshot. How should I capture that object. Will anchor to Message work here as row number is not fixed ? What is the recommended method of capturing objects like this

Hi @sanvedna_khaire Yes, anchoring to Messages can work but it is not the most reliable approach because SAP table structures can shift dynamically.
Instead of targeting a single cell directly on screen, extract the text rows as a structured table.

Cheers

@sanvedna_khaire

Look at the Ui Element through Ui Explorer. These values gets plotted as labels on the screen.

Better approach would be using Get Text to get full text from the page and then use RegEx to extract Document number.

@sanvedna_khaire

  1. extract table data
  2. filter for row with data
  3. regex to ge the document number

alternately use regex in the selector itself to get the row you need only and get innertext or text value and use regex to extract

cheers