I have a combination of 2 DataStore, lds_header and lds_detail which is fetching data in 1 DataWindow. I've set the columns of the DataWindow based on the columns of the header.
lds_header has 10 columns to export for header segment - holds in first row only
lds_detail has 5 columns to export for detail segment - holds in second row and so on.
DataWindow has 10 columns.
When the .TXT (Tab Delimited) File was generated. the detail segment carry over the another 5 columns. Now my question is, how to remove the unnecessary columns for the detail segment when using a DataWindow Save AS method?
Actually, I was able to deliver the expected output in using FileOpen method then used a string concatenation but FileOpen method has a limitation in terms of holding a string value that's why I want to do the exportation in a DataWindow SaveAs method.