Skip to Content
0
Former Member
Oct 17, 2007 at 04:12 PM

Problem Reading Flat File from Application server

9 Views

Hi All,

I want to upload a Flat File which is having a Line Length of 3000.

While uploading it to Application server , only upto 555 length it is getting uploaded .

i am using the code :

DATA: BEGIN OF TB_DATA OCCURS 0,

LINE(3000),

END OF TB_DATA.

*----Uploading the flat file from the Local drive using FM "UPLOAD".

OPEN DATASET TB_FILENAM-DATA FOR OUTPUT IN TEXT MODE." ENCODING DEFAULT.

IF SY-SUBRC NE 0.

WRITE:/ 'Unable to open file:', TB_FILENAM-DATA.

ELSE.

LOOP AT TB_DATA.

TRANSFER TB_DATA TO TB_FILENAM-DATA.

ENDLOOP.

ENDIF.

CLOSE DATASET TB_FILENAM-DATA.

What could be the problem?

Could it be due to any Configuration Problem?

Waiting for your replies.

Thanks and Regards.

Suki