‎2018 Nov 12 1:06 PM
Hello,
I am using open datasets to transfer a dynamic internal table into the folder.
However the fields are not properly aligned with each other like this:

Open datasets...
TRANSFER HEADER TO LVS_DOWNLOAD_PATH.
Loop at table1 into table2.
CONCATENATE V_STRING <FS_FIELD> INTO DATA(V_STRING) SEPARATED BY '|'.
TRANSFER V_STRING TO LVS_DOWNLOAD_PATH.
ENDLOOP.
CLOSE DATASET LVS_DOWNLOAD_PATH.
Can sb help me align them properly.
‎2018 Nov 12 1:50 PM
Try to use CL_ABAP_CHAR_UTILITIES classe's: HORIZONTAL_TAB attribute for separating adjacent rows and CR_LF for a new line (row) insert at the end of each row.
‎2018 Nov 12 2:22 PM
so I tried :
CONCATENATE header V_STRING INTO data(L_STRING) SEPARATED BY cl_abap_char_utilities=>horizontal_tab.and it puts all in a horizontal line.
Please tell me how it should be correct in this case