Skip to Content
avatar image
Former Member

File size of original in DIR


We have a requirement to view file size of original in DIR.

Please help in what needs to be done.


Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Feb 11, 2008 at 03:24 PM


    My initial idea would be as follows.

    Develop a tab for the avilable custom tab in the DIR. Load the file size and original name from the relevant tables. I think file size can be found in the table DMS_PH1_CD.


    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      You can read the file size by using the function module 'SDOK_PHIOS_FILE_PROPERTIES_GET'. It asks for 'Object ID' and 'class'. You got the Object ID (LOIO-ID) of originals (LO_OBJID) from the table 'DMS_DOC2LOIO' or by executing report DMS_KPRO_READ.

      For executing the function module 'SDOK_PHIOS_FILE_PROPERTIES_GET' to get the file-size of originals, you would have to fill the two fields 'CLASS' and 'OBJID' of the originals in the input table 'OBJECT_FILEPROPERTIES'. Then, when you execute, it will display the filesize of the required originals.

      To get the 'Class' and 'ObjID' of the originals, execute the FM 'BAPI_DOCUMENT_GETDETAIL2' by giving the Document number, type, part and version.The table 'Document Files' gives all the details of the originals, from which you can get the 'File_ID'. It refers to 'OBJID'.

      In the table 'DMS_PH_CD1', you can search for the 'Class' of the original by giving 'PHIO_ID' as the 'OBJID' value. The class is DMS_PCD1. This is the only existing class in the DMS area.

      Best regards,


      P.S.: Please reward points for useful information