Skip to Content
0
Former Member
Jan 01, 2008 at 09:22 AM

Text tab delimited format

41 Views

Hello All,

I have a file in application server in text tab delimited format.I have a used following code to open and read but i am gettin sy-subrc as 4 and its not fetching data into my table....pls advice

data: pfilename(250) " file name in application server
-
-
-
OPEN DATASET pfilenaem FOR OUTPUT IN BINARY MODE.
-
-
-
"sy-subrc is 0 ....
-
-
-
-
ASSIGN wa TO <hex_container> CASTING.


* Move all of the records into the data table.
  DO.
.
    READ DATASET pfilename INTO <hex_container>.
    IF sy-subrc <> 0. ********here sy-subrc is failin it is 4
      EXIT.
    ENDIF.

pls advice..........

Title edited and Code Formatted by: Alvaro Tejada Galindo on Jan 1, 2008 11:23 AM