Skip to Content
0
Former Member
Nov 28, 2006 at 04:27 AM

Need file on Application server to be pipe delimited

520 Views

Hi,

I want the file in the application server with headings and pipe delimited... I have used

IF NOT T_OUTPUT[] IS INITIAL.

  • Transfer the changed T_INPUTFILE data to application server.

OPEN DATASET V_FILEPATH FOR OUTPUT IN TEXT MODE ENCODING DEFAULT

MESSAGE V_MSG.

IF SY-SUBRC <> 0.

MESSAGE I008. " File could not be opened.

EXIT.

ENDIF.

  • Transferring Data

LOOP AT T_OUTPUT.

TRANSFER T_OUTPUT TO V_FILEPATH.

ENDLOOP.

CLOSE DATASET V_FILEPATH.

ENDIF.

But this is not giving me output like below...

RefDoc.No.

Text

Period

Year

9

Dummy Text

002

2006

How do I get a pipe delimited file on the application server ... ??