Hi
I have 4 source files. The columns are not at all the same in any of them. I want to merge them into a single output excel. Please let me know how this can be accomplished. I tried Union but since it could not match a single column, it did not return any data.
INPUT | |||||||||||||||||||
File 1 | Company Code | Vendor | Vendor Name | Net Due Date | Payment Date | ||||||||||||||
File 2 | Created Date | Closed Date | PO Number | Cost Centre | Revenue Centre | ||||||||||||||
File 3 | Material | Material Group | Procurement | Plant | Amount LCY | ||||||||||||||
File 4 | Amount USD | Amount GBP | Currency | Loading Currency | Country | ||||||||||||||
EXPECTED OUTPUT | |||||||||||||||||||
Company Code | Vendor | Vendor Name | Net Due Date | Payment Date | Created Date | Closed Date | PO Number | Cost Centre | Revenue Centre | Material | Material Group | Procurement | Plant | Amount LCY | Amount USD | Amount GBP | Currency | Loading Currency | Country |
Union is still your best option, but you can "Manually Configure Fields" so they line up the way you want!
I'm not sure why it wouldn't return anything... Do you have Output All Fields selected?
I don't think Union is what you are after here, although it's the answer to your question to merge disconnected files. A union will stack them vertically (and leave many many Null() cells), whereas a join will put them together horizontally. Sorry if I'm covering stuff you know, but I'm confused as to what's not working here.
Thank you @flying008 @KGT @alexnajm for your quick responses. I analysed the Union Tool and found it to be working.
However, I think the solution that I thought about, in itself is wrong. I do not know whether I will be able to clearly explain what I need but let me give it a try.
As of now, there is no key.
I have a requirement to extract 52 columns from SAP. I am using DVW Read Tool connector to extract the data. DVW is unable to handle so many columns.
Hence, I decided to split this 52 columns into 4 equal parts in 4 DVW Read Tool. In otherwords, the 52 columns is split into 13 columns per DVW Read Tool.
The data is now extracted properly but there is a problem.
Imagine there are 4 rows and 8 columns
Columns - Customer, Customer Name, Customer Address, PO Number, Vendor Number, Vendor Name, Invoice Number, Invoice Date
Each DVW Read Tool will contain 2 columns each
DVW Read Tool 1 = Customer, Customer Name
DVW Read Tool 2 = Customer Address, PO Number
DVW Read Tool 3 = Vendor Number, Vendor Name
DVW Read Tool 4 = Invoice Number, Invoice Date
The Read Tool extracts the data without any problem.
However, what I think is happening in the background is this
The first Read Tool reads the first row of the data and extracts Customer & Customer Name but it will not extract the other columns
The second Read Tool and I think this is what is happening in the background, will read the next row instead of Customer Address and PO Number of the first row.
Even if the Union tool works, the data is not correct.
Ideally, I want the Union Tool or any other method, to merge all the 4 Read Tools.
It must get the Customer, Customer Name from the first Read, append Customer Address, PO Number from the second Read, append Vendor Number, Vendor Name
from the third Read so on and so forth thereby creating a single line per record.
Since, all the 4 Read Tools, I suspect this is what is happening, read 4 individual lines, this solution will not work at all.
Hopefully, you can understand
OK, I expect that someone in your org knows more about the DVW connectors then, or I would ask DVW specifically. As this isn't an issue in other posts on here, I imagine there is a simple solution, I just don't know what it is.
@Kallis you may try to keep some unique column for each Read Tool
For example,
keep Customer# + PO# + Vendor# + Invoice# for each Read Tool,
So that it will generate the same for pattern and able to use Multiple Join tool to merge into 1 table.