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: 

Download generated report as a text file with specified delimiter

Former Member
0 Kudos

Hi,

I want to provide option for downloading the generated report in the application server(using open dataset...)as a text file with the delimiter "^". Suggest me how can I do this?

Regards,

Arokiaraj. S

4 REPLIES 4

Former Member
0 Kudos
  • Download internal table to Application server file(Unix)

DATA: e_file like rlgrap-filename value '/usr/sap/tmp/file.txt'.

open dataset e_file for output in text mode.

lOOP AT it_datatab......

transfer it_datatab to e_file.

<b> translate space using '^'.</b>

ENDLOOP.

close dataset e_file.

Thanks & Regards,

Judith.

Former Member
0 Kudos

Hi,

Concantenate all fields in one field using a separator. Then transfer this field to dsn.

concatenate <f1> <f2> .. <fn> into <f> separated by <del>.

Svetlin

0 Kudos

Thank you very much

Regards,

Arokiaraj. S

0 Kudos

If these answers have been helpful, please award points accordingly and mark the post as "solved". Thanks.

Regards,

Rich Heilman