I’ve come across an issue while trying to automate a sub process of an invoice verification process. The objective is to capture the PO Number using a ‘Get Text’ activity and store it in a variable for later use. However after the initial invoice PO is captured and the Bot proceeds to the next invoice the selector for the text field becomes invalid as it changes from invoice to invoice. I’ve tried using the * sign to indicate the possible change but i’m finding it difficult to figure out the right syntax to do so.
Example : The Numbers 46:0389, 46:0406, 46:0401 vary from invoice to invoice.
I’m afraid i still cant get it to work. After many iterations i checked, the “SAPLDISPLAY46:” is constant. So is there a way to concatenate and build the selector like this?
sap id =‘usr/subSUB_MAIN:/COCKPIT/SAPLDISPLAY46:’ & * & ‘/subSUB_HDR:/COCKPIT/’
or
sap id =‘usr/subSUB_MAIN:/COCKPIT/SAPLDISPLAY46:’ + * + ‘/subSUB_HDR:/COCKPIT/’
Thank you for your suggestion. However, i already tried this method. As the PO Field ID changes with each invoice, the “Get Attribute” can only return the Field ID if the selector matches the initial selector so extracting the ID seems fruitless.