In this code the bot is downloading the excel file from SAP and as we can see in Figure one for certain “Billing Document” the value of Bill documents remain same but GT invoice changes
So currently bot is picking up one GT invoice value only but requirements is that it pics multiple GT invoice example Figure 2.
First get all the “Billing document” column values without duplicates using datatable.DefaultView.ToTable(True,“Column Name”).loop through each billing document and use filter datatable activity to get all the Gt invoice number corresponding to the billing document