* System-ID
PARAMETERS: p_rfc TYPE sy-sysid DEFAULT 'XYZ'.
* Content-Repository
PARAMETERS: p_rep TYPE saearchivi DEFAULT 'AR'.
* ARC_DOC_ID
PARAMETERS: p_arc TYPE saeardoid DEFAULT '1402EC8FAAB21EC888CA63622402D29F'.
START-OF-SELECTION.
DATA: lv_message TYPE bapiret2.
DATA: it_raw_1024 TYPE STANDARD TABLE OF tbl1024 WITH DEFAULT KEY.
* Binärdaten eines Dokumentes über RFC zurückgeben
CALL FUNCTION 'ALINK_RFC_TABLE_GET' DESTINATION p_rfc
EXPORTING
im_docid = p_arc
im_crepid = p_rep
IMPORTING
ex_message = lv_message
TABLES
ex_document = it_raw_1024
EXCEPTIONS
system_failure = 1
communication_failure = 2
OTHERS = 3.
WRITE: / lv_message-message.
IF sy-subrc = 0.
* weitere Schritte mit it_raw_1024
ENDIF.