Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Align strings below each other

former_member2492
Active Participant
0 Likes
945

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.

2 REPLIES 2
Read only

0 Likes
805

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.

Read only

0 Likes
805

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