GET
DATASET .
DATA: dset TYPE string VALUE 'test.dat',
pos TYPE i.
OPEN DATASET dset FOR INPUT IN BINARY MODE
FILTER 'uncompress'.
...
GET DATASET dset ATTRIBUTES DATA(attr).
IF attr-fixed-indicator-filter <(><<)>> 'X'.
GET DATASET dset POSITION pos.
ELSE.
...
ENDIF.
CLOSE DATASET dset.
Runtime Exceptions
Catchable Exceptions
CX_SY_FILE_OPEN_MODE The file is
not open.
CX_SY_FILE_POSITION The file
could not be read because an invalid status exists or the type of file
does not permit position specification.
CX_SY_CONVERSION_OVERFLOW The
variable pos was assigned a type that is too small to include the
current position.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved