I have a DT which is in unsorted order, then i make a copy and sort the DT (to meet some of my requirements) and i pass data to SAP, which returns Completed or failed. Once all the rows are processed, I want to update the status value from the copied DT to the main DT(unsorted).
Input
After Processing
The output i am expecting
Thankyou
lrtetala
(Lakshman Reddy)
October 24, 2023, 2:03pm
2
Hi @hansen_Lobo
Try with VLOOKUP function
ppr
(Peter Preuss)
October 24, 2023, 2:06pm
3
is it guranteed, that after sorting the position will still be valid?
We do have a duplicated 31.
Lets assume:
1,2,31,4,5,31
31,31 Execution with result Failed, Completed
After sorting Failed, Completed should be kept in the order, otherwise the first 31 will be paired with the second 31 result
lrtetala
(Lakshman Reddy)
October 24, 2023, 2:21pm
4
@hansen_Lobo
By using VLOOKUP
O/P:
Book1.xlsx (9.7 KB)
Please find the below xaml for your reference
BlankProcess12.zip (133.8 KB)
Hope this helps!!
@hansen_Lobo
you try with the linq query aslo
refer the below xaml
updatedstatus.zip (10.2 KB)
1 Like
postwick
(Paul)
October 24, 2023, 3:01pm
6
This is called a join, it’s a standard database operation. Use the Join Data Table activity.
ppr
(Peter Preuss)
October 24, 2023, 3:12pm
7
We keep in mind: Join is pairing and and not stack mapping
so we will get on duplicated 31 4 rows within the result
postwick
(Paul)
October 24, 2023, 3:15pm
8
Oh I didn’t realize there are duplicate PO numbers here. Good catch.
system
(system)
Closed
October 27, 2023, 3:15pm
9
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.