05-14-2005 11:42 AM
Hello,
Any sample code on the above Mentioned topic or any help plz....
Thanks in Advance
05-14-2005 11:46 AM
<i><b>Downlaod file in Application server in tab delimited format</b></i>
Do you want to download file <b>from</b> the Application server to the local pc in tab delimited format?
or
upload file to Application server in tab delimited format?
Also close your previous thread and reward the answeres that helped you.
Regards
Raja
05-14-2005 11:46 AM
<i><b>Downlaod file in Application server in tab delimited format</b></i>
Do you want to download file <b>from</b> the Application server to the local pc in tab delimited format?
or
upload file to Application server in tab delimited format?
Also close your previous thread and reward the answeres that helped you.
Regards
Raja
05-14-2005 2:24 PM
hi Raja
AM selecting some data from my data base table in one internal table and now i want to downland that in the appln server.
i think its clear and yaa i will def reward u but the point u gave i have done that i think the issue with the bapi is some thing else.
05-14-2005 3:55 PM
Dear Raja,
first get your data in one internal table. Also you need to have path to your application server. then use below code to download same.
********
*p_file - File name with path to application server.
*itab - internal table with your data.
***********
OPEN DATASET: P_FILE FOR OUTPUT IN TEXT MODE ENCODING DEFAULT .
LOOP AT ITAB.
TRANSFER ITAB TO P_FILE.
ENDLOOP.
CLOSE DATASET: P_FILE.
************
If any more clarification needed do mail me.
Raj
05-14-2005 4:29 PM
Hi Raj,
Thanks for this but 1 question will it upload the data in TAB delimited format.
Please let me know some input on the BAPI also if possible.
and once again thanks for all this
05-15-2005 8:46 AM
data: record type string .
OPEN DATASET: P_FILE FOR OUTPUT IN TEXT MODE ENCODING DEFAULT .
LOOP AT ITAB.
clear records.
concatenate itab-field1 CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB itab-field2
CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB itab-field3
CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB itab-field4 into record .
TRANSFER record TO P_FILE.
ENDLOOP.
CLOSE DATASET: P_FILE.
Hope this is clear.
Regards
Raja
05-16-2005 4:32 AM
Hi,
Have a look at this link
http://www.sapdevelopment.co.uk/file/file_updown.htm
You will get a lot of sample codings.
Thanks & Regards,
Judith.