[ABAP] IDoc in einem Tree analog der WE02 anzeigen

* Nummer des IDocs
DATA: idocnum TYPE EDIDD-DOCNUM value 0000000000049245.

CALL FUNCTION 'EDI_DOCUMENT_DATA_DISPLAY'
  EXPORTING
    docnum               = idocnum
  EXCEPTIONS
    no_data_record_found = 1
    OTHERS               = 2.

IF sy-subrc NE 0.
  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.