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

format internal table

Former Member
0 Likes
387

All experts:

helo, I want to add '|' character to internal table, and download it in to local file, how to do that.

like this,

A column B column C column

test test test

test test test

now add '|' and download to local file,

A column B column C column

'|' test '|' test '|' test '|'

'|' test '|' test '|' test '|'

how to write code in ABAP program?

Thanks in advance

2 REPLIES 2
Read only

Former Member
0 Likes
357

Hi,

First concatenate...


loop <table>
CONCATENATE 'I' <table-field> INTO <table-field> separated by space.
CONCATENATE 'I' <table-field1> INTO <table-field1> separated by space.
CONCATENATE 'I' <table-field2> INTO <table-field2> separated by space.
modify <table>
endloop.

now use fm WS_EXCEL to download it to excel or fm gui_download

Read only

Former Member
0 Likes
357

Hi Kevin,

You can find a sample code at this link for your requirement.

[http://www.sap-img.com/abap/insert-a-special-tab-delimited-character.htm]

Regards,

Amit.