on 04-08-2006 1:09 PM
Hi,
My requirement is to upload the file with tablimited to unix directory.
Actually here i am not havin the class <b>cl_abap_char_utilities</b> in SE24.
So i can't make use of <b>cl_abap_char_utilities=>horizontal_tab</b>.
<b>So how can i download the SAP data into Application server with TAB Delimited.</b>
MY Version is <b>4.6</b>.
If anybody have the solution please post.
Is there any other way for this.
In Output i am getting # B/N fields.
Thanks in advance.
Thanks & Regards,
Rayeez.
Hi Shaikh,
I suppose you have tab delimited text file with you .
If you want to upload that text file.
Have you used the Function Module GUI_UPLOAD? In that, use the parameter HAS_FIELD_SEPARATOR.
CALL FUNCTION 'GUI_UPLOAD'
exporting
filename = 'D:\SP\KUN1.TXT'
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = '#'
tables
data_tab = itab[].
This will work.
Regards,
SP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your error message is confusing. If you look at what is enclosed in the paranthesis, you can see that there is 'X' in it as one of the possibilities. This is the only way in 46 version. Can you post your data declaration as it is and also the code where you do the concatenate?
Regards,
Srinivas
This is actually working pretty good for with a tab delimited text file.
report zrich_0001.
types: begin of ttabx ,
fld1(20) type c,
fld2(20) type c,
fld3(20) type c,
end of ttabx.
data: itabx type table of ttabx.
data: xtabx type ttabx.
start-of-selection.
call method cl_gui_frontend_services=>gui_upload
exporting
filename = 'c:test.txt'
has_field_separator = 'X'
changing
data_tab = itabx.
loop at itabx into xtabx.
write:/ xtabx-fld1, xtabx-fld2, xtabx-fld3.
endloop.
This has been tested on a WebAS 7.0
Regards,
Rich Heilman
Hi All,
I tried the code in following way.
REPORT ztab_delim .
<b>DATA: part1(2) TYPE c.
DATA: part2(3) TYPE c.
DATA: combine(100) TYPE c.
DATA: lv_ctab(1) TYPE c.
DATA: v_ppath(50) TYPE c
VALUE '/pw/data/erp/D5S/pp/down/Tabtest.txt'.
FIELD-SYMBOLS <f_hex> TYPE x.
ASSIGN lv_ctab TO <f_hex> CASTING.
<f_hex> = '09'.
part1 = 'aa'.
part2 = 'bb'.
CONCATENATE part1 part2 INTO combine SEPARATED BY lv_ctab.
WRITE combine.
OPEN DATASET v_ppath FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
TRANSFER combine TO v_ppath.
CLOSE DATASET v_ppath.</b>
And in specified Application server path <b>['/pw/data/erp/D5S/pp/down/Tabtest.txt']</b> i got the output as below:
<b>aa#bb</b>
Then i had down loaded above code into presentation server <b>C:\</b> Drive there i got the output as below:
<b>aa bb</b>
So i think obviously using the above process TAB Delimeter is working fine.
Thanks for all your efforts.
Thanks & Regards,
Rayeez.
use this code.
data: tab type x value '09' .
data: w_data type string .
w_data = 'abc' .
concatenate w_data tab w_data into w_data .
error message 'TAB' Must be char-type data object [C,N,D,T,X]. will happen if "Unicode checks active" check box is selected in the program attributes. just uncheck you will no longer get the error message.
Regards
Raja
Use this FM and declare the field separator that you want
SAP_CONVERT_TO_TEX_FORMAT
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shaik,
Go to Profile Management (top of menu) -> Update Profile -> Change your First Name, Last Name and Display Name -> Click on Update Profile button (Below).
Hope this will help.
Regards,
Ferry Lianto
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
100 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.