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

Need to include TAB in the string

Former Member
0 Likes
1,371

Hi,

I need to include the TAB between to text.

can you pls. suggest something through which i can create TAB delimited file.

Thanks a lot.

Regards,

Hemant

Hi,

I need to include the TAB between to text.

can you pls. suggest something through which i can create TAB delimited file.

Thanks a lot.

Regards,

Hemant

8 REPLIES 8
Read only

Former Member
0 Likes
1,323

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

Read only

Former Member
0 Likes
1,323

File needs to be created at application server so 'WS_DOWNLOAD' or 'GUI_DOWNLOAD' is not feasible.

Read only

0 Likes
1,323

Use:

Open DataSet <Filename> for input in text/Binary Mode.

Loop at itab.

Transfer <itab> to <filename>.

Endloop.

CLose Dataset.

Use can check the LOCation of the created file on Application Server using TCODE:AL11

[OPEN DATASET|http://help.sap.com/saphelp_nw04/helpdata/EN/fc/eb3d42358411d1829f0000e829fbfe/content.htm]

Regards,

Gurpreet

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,323

>

> can you pls. suggest something through which i can create TAB delimited file.

Hello Hemant,

There are two ways of doing so:

Step1: Download to Presentation server

In the FM 'GUI_DOWNLOAD' just pass the param WRITE_FIELD_SEPARATOR = 'X'. Only catch is that the file should be ASCII.

For Binary file, you need to separate the fields by the attribute CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.

Step2: Download to Application Server

In this case you need to separate the texts using the attribute CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.

Hope this helps.

BR,

Suhas

Read only

Former Member
0 Likes
1,323

Hi Suhas,

The method you have mentioned is correct. But when i try to do it.

It is including '#' as a separator.

It is not showing 'TAB' while displaying the file. (e.g. if you are downloading the file with 'GUI_DOWNLOAD' than you can see the tab in the file)

Thanks for your quick reply.

Read only

0 Likes
1,323

Hi hemanth

IT is the general probelm while uploading the file to APP server .

And in application server will not support TAB .

when we download the data to a file then TAB will be shown .

i have tried so many times for this .. but no solution to place TAB in APP server ..

u cam conacatenate string v_new for TAB sepeartor .

where v_TAB(01) type X balue '09'.

Read only

Former Member
0 Likes
1,323

Concatenate command is not supported for Hexa data type

Read only

Former Member
0 Likes
1,323

Closed