Code: Alles auswählen.
CALL FUNCTION 'BAPI_DOCUMENT_GETDETAIL2' DESTINATION p_des1
EXPORTING
documenttype = ls_key-dokar
documentnumber = ls_key-doknr
documentpart = ls_key-doktl
documentversion = ls_key-dokvr
getobjectlinks = 'X'
getcomponents = 'X'
getstatuslog = 'X'
getlongtexts = 'X'
getactivefiles = 'X'
getdocdescriptions = 'X'
getdocfiles = 'X'
getclassification = 'X'
getstructure = 'X'
getwhereused = 'X'
IMPORTING
documentdata = <es_documentdata>
return = s_bapiret
TABLES
objectlinks = <tobjectlinks>
documentdescriptions = <tdocumentdescriptions>
longtexts = <tlongtexts>
statuslog = <tstatuslog>
documentfiles = <tdocumentfiles>
components = <tcomponents>
characteristicvalues = <tcharacteristicvalues>
classallocations = <tclassallocations>
documentstructure = <tdocumentstructure>
whereusedlist = <twhereusedlist>
EXCEPTIONS
communication_failure = 1 MESSAGE msg_text
system_failure = 2 MESSAGE msg_text
OTHERS = 3.