Skip to Content
0

FILE_ID is not updating in FM - BAPI_DOCUMENT_GETDETAIL2

Jan 28 at 11:15 AM

54

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Sandra Rossi Jan 28 at 06:51 PM
0

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

PS: header lines are obsolete.

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi,

I know this is an internal table but in that internal table why FILE_ID field is not getting updated.

1