Skip to Content
0
Former Member
Nov 01, 2007 at 06:03 AM

Writing to application server - inserting seperator?

29 Views

I am writing data from internal table to application server using datasets.

I want that the text file which gets created at server should have seperator as semicolon.How do i do it?How do i ensure that when i use transfer statement the fields are seperated by semicolon.

Following code i hv written...

SELECT * FROM t777a INTO TABLE gt_itab1.

OPEN DATASET dataset_one FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

IF sy-subrc EQ 0.

LOOP AT gt_itab1 INTO gwa_itab1.

TRANSFER gwa_itab1 TO dataset_one.

ENDLOOP.

ENDIF.

how do i ensure that .txt file contains semicolon seperated values?