Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem with report

I am trying to print column 768 onwards from my file , I am unable to do so . Any inputs on whats wrong with the code.

REPORT ZABBTEST line-size 1023.

TYPES : BEGIN OF t_line,

record(1000)TYPE c ,

END OF t_line.

DATA : gs_line TYPE STANDARD TABLE OF t_line

WITH HEADER LINE.

parameters: p_file TYPE rlgrap-filename default 'D200FY3Q.out'.

OPEN DATASET p_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.

DO.

CLEAR gs_line.

READ DATASET p_file INTO gs_line-record.

IF NOT sy-subrc IS INITIAL.

EXIT.

ENDIF.

APPEND gs_line.

ENDDO.

LOOP AT gs_line .

write gs_line-record+768(35).

endloop.

The ouptu is always blank although the file has data at those columns.

Regards,

Ankur Bhandari

Tags:
Not what you were looking for? View more on this topic or Ask a question