Code: Alles auswählen.
DATA url TYPE string.
DATA file_content TYPE xstring.
DATA file_content2 TYPE xstring.
url = '\\10.209.4.110\SAP-Dokumente\Betriebsanleitungen\ab 000.600.183\000.606.551.pdf'.
CLOSE DATASET url.
OPEN DATASET url FOR INPUT IN BINARY MODE.
IF sy-subrc EQ 0.
DO.
READ DATASET url INTO file_content.
IF sy-subrc EQ 0.
file_content2 = file_content.
ELSEIF sy-subrc <> 0.
EXIT.
ENDIF.
ENDDO.
ENDIF.
CLOSE DATASET url.