2009 Feb 20 10:52 AM
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
2009 Feb 20 10:54 AM
[Link|http://www.sap-img.com/abap/insert-a-special-tab-delimited-character.htm]
2009 Feb 20 10:56 AM
File needs to be created at application server so 'WS_DOWNLOAD' or 'GUI_DOWNLOAD' is not feasible.
2009 Feb 20 11:03 AM
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
2009 Feb 20 11:08 AM
>
> 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
2009 Feb 20 12:02 PM
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.
2009 Feb 20 12:08 PM
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'.
2009 Apr 16 7:27 PM
2010 May 25 3:54 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |