cancel
Showing results for 
Search instead for 
Did you mean: 

Original document file size in content server

Former Member
0 Kudos

Dear All,


Is it possible to search content server and get how many files do we have that have file size greater than 100 MB?

With Regards,

Brijesh Sah

Accepted Solutions (1)

Accepted Solutions (1)

christoph_hopf
Advisor
Advisor
0 Kudos

Hi Brijesh,

for getting the file size you can use database table DMS_PHF_CD1. Here you can select by using the PHIO-ID which is available and unique for each original file stored in the content server. This PHIO-ID can be retrieved by using report DMS_KPRO_READ.

In table DMS_PHF_CD1 you will also find the field FILE_SIZE which shows the size in bytes.

Best regards,

Christoph

Former Member
0 Kudos

Hei Christpoh,

Thanks for your reply.

We  were thinking to create ABAP program and use function module 'SDOK_PHIOS_FILE_PROPERTIES_GET' to get the file size.  As per my knowledge, Files are stored in compressed and encrypted format in contenet server so we can not get file size without using ABAP program.,


With Regards

Brijesh Sah

Answers (1)

Answers (1)

Former Member
0 Kudos

Yes . Write a program which will input the document type. Go to table draw and get all the document numbers (or use a BAPI). loop at that internal table and use 'BAPI_DOCUMENT_GETDETAIL2' and count the entries in table documentfiles.

The size i am not completely sure about it. Will search and let you know.