on 2021 May 24 9:31 AM
Hi,
Working on a data services interface that reads a file and load documents into SAP. Created a file format with '|' delimited. However, the source system can send the file with field names matching the file structure but not in the same field order.
Is there a way to read file in SAP DS with dynamic field order but the field names will be exactly same?
In SAP LSMW, there is a check box where it says the field order matches source structure definitions but this provision doesn't seem to be available in DS.
Request clarification before answering.
Hi Siva,
One idea I thought of, perhaps it could help you.
Since the source file is sent with field names, you can manipulate the first row to adapt it to the output file in order to match the changed columns order.
Please let me know if this helps.
Thanks
Nawfal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nawfal,
Thanks for your response. At some stage, I need to convert field1, field2, .... field n with generic type lets say varchar(100), to real field names so that transformation can happen. I am not using LSMW, Just gave an example of how this can be done in LSMW.
The DS interface Extracts, transforms and Loads data in to SAP.
How do we convert the generic fields to real fields?
Hi,
If you are loading data directly to SAP then I'm not sure. However if you are passing via text file then you don't need to rename the fields as the first row will have actually headers, and if you are loading to a db table then you can set the option to compare columns by position rather name, assuming that the table is always set to much the source.
thanks.
Hi,
there is no way of doing that within the input file format afaik.
Why don't you adapt your file format within DS as per the source system format and then map each attribute within a query as per your target SAP system column order?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
30 | |
10 | |
8 | |
8 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.