Skip to Content

FILE_ID is not updating in FM - BAPI_DOCUMENT_GETDETAIL2

Hi,

My requirement is to fetch the DMS pdf attached file.

I have attached pdf document in CV01N and stored it through vault. But, when I use BAPI_DOCUMENT_GETDETAIL2 function module to fetch the attached file details in DOCUMENTFILES table, DOCUMENTFILES-FILE_ID field is not getting updated.

CALL FUNCTION 'BAPI_DOCUMENT_GETDETAIL2'
EXPORTING
documenttype = 'ZCS'
documentnumber = 'DATASHEET5'
documentpart = '000'
documentversion = '00'
getcomponents = 'X'
getactivefiles = 'X'
getdocdescriptions = 'X'
getdocfiles = 'X'
IMPORTING
documentdata = documentdata
return = return
TABLES
documentdescriptions = documentdescriptions
documentfiles = documentfiles
characteristicvalues = characteristicvalues
classallocations = classallocations.

Please suggest.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jan 28 at 06:51 PM

    DOCUMENTFILES is an internal table, not a structure. Use DOCUMENTFILES[ 1 ]-FILE_ID, not DOCUMENTFILES-FILE_ID.

    PS: header lines are obsolete.

    Add comment
    10|10000 characters needed characters exceeded