Hello All,
I am not able to transfer the contents of application server into internal table.The READ statement returns sy-subrc as 4.please let me know wats wrong in the below code.
DATA: file TYPE string VALUE `/usr/sap/tmp/PO.TXT`,
hex_container TYPE x LENGTH 10000,
len TYPE i.
FIELD-SYMBOLS <mbepoh> TYPE mbepoh.
START-OF-SELECTION.
DESCRIBE FIELD <mbepoh> LENGTH len IN BYTE MODE.
OPEN DATASET file FOR INPUT IN BINARY MODE.
ASSIGN hex_container TO <mbepoh> CASTING.
DO.
READ DATASET file INTO hex_container MAXIMUM LENGTH len.
IF sy-subrc = 0.
ELSE.
EXIT.
ENDIF.
ENDDO.
CLOSE DATASET file.
Thanks,
Rakesh.