Application Development 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: 

Downlaod file in Application server in tab delimited format

Former Member
0 Kudos

Hello,

Any sample code on the above Mentioned topic or any help plz....

Thanks in Advance

1 ACCEPTED SOLUTION

athavanraja
Active Contributor
0 Kudos

<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

6 REPLIES 6

athavanraja
Active Contributor
0 Kudos

<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

0 Kudos

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.

0 Kudos

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

0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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.