Skip to Content
0
Former Member
Dec 18, 2006 at 10:41 AM

App server

15 Views

hello gurus,

this below code works fine now

TABLES mara.

DATA:BEGIN OF itab OCCURS 0,

matnr LIKE mara-matnr,

mtart LIKE mara-mtart,

matkl LIKE mara-matkl,

END OF itab.

DATA:file(200) TYPE c VALUE 'F:\usr\sap\DEV\DVEBMGS00\data\X.txt'.

IF sy-subrc EQ 0.

SELECT matnr mtart matkl

FROM mara INTO TABLE itab

WHERE matnr = matnr.

ELSE.

ENDIF.

OPEN DATASET file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

IF sy-subrc EQ 0.

LOOP AT itab.

TRANSFER itab TO file.

ENDLOOP.

ELSE.

ENDIF.

CLOSE DATASET file.

I want to have a tab deleimited like aaa | bbb | ccc

into the file what i am writing in application server

senthil