here is a low level question. I am sure that this has already been answered, unfortunately I do not find it …
I want to search for a value (PurRqs) in the column “MRP elemnt” and output the value (0010044128/00010) from the next column (MRP element data) as a variable. I’ve created a datatable for this. My idea is to get the row number of “PurRqs” and then a query with row number & column number? Or are there better options?
You can directly retrieve the row which has PurRqs in MRP Element Column and use the Column Name or Index to access the Value in the corresponding MRP Element Data Column like below.
Read the Datatable and store it in a variable, for instance, dtT
Use the Select Method of Datatable to get the rows where MRP elemnt = ‘PurRqs’
MRP_Value = dtT.Select("[MRP elemnt] = 'PurRqs'")(0).Item("MRP element data").ToString