Skip to Content
0
Former Member
Aug 01, 2005 at 10:44 PM

problem for read dataset

196 Views

Hi,

i have a problem to read a file with datasets. This is my report:

************************************

data: begin of record,

MATNR_001(018),

MBRSH_002(001),

MTART_003(004),

...

...

HERKL_088(003),

end of record.

( 953 characters length )

OPEN DATASET P_DATASET

FOR INPUT IN TEXT MODE

ENCODING DEFAULT.

do.

read dataset p_dataset into record.

...

...

enddo.

*********************************************

When 'p_dataset' is read 'record' has only the first 240 characters of the dataset and the other fields of structure 'record' are empty.

Which is the problem?

If I see the file with AL11, its only shows the first 240 characters of each row but if I download the file to my pc it contains all fields completely.

Anyone can help me?

Thanks in advance