I received raw data from SAP that I need to add to one local database. The issue I have is that I received two separate data sets per table.
- One header file (describing the Name, Type, Primary Key, Not Null)
- Actual data file (input to the rows defined in the header file)
I can only add them as flat file as far as I was able to research (and try out), and that means that I can only add one of those files. Either missing the header completely, or missing the input data.
Merging them manually within one CSV file would mean losing all additional information (Type, Primary Key, Not Null, etc.), right?
Any idea how I can proceed?
Thanks for helping me out.
Glad to learn something new here.
Sample header:
+-------------------------------+
| Col1 |
+-------------------------------+
| TABNAME CHAR 000030 000000 |
| DDLANGUAGE LANG 000001 000000 |
| ... |
+-------------------------------+
Sample data:
+------+-------+------+------+-----+
| Col1 | Col2 | Col3 | Col4 | ... |
+------+-------+------+------+-----+
| LFB1 | ZBOKD | A | ... | ... |
| ... | ... | ... | ... | ... |
+------+-------+------+------+-----+
Merged they would like this (and if I am not mistaken, they need to look like that):
+---------+------------+-----+-----+
| TABNAME | DDLANGUAGE | ... | ... |
+---------+------------+-----+-----+
| LFB1 | ZBOKD | A | ... |
| ... | ... | ... | ... |
+---------+------------+-----+-----+