cancel
Showing results for 
Search instead for 
Did you mean: 

File size of original in DIR

Former Member
0 Kudos

Hello,

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

Please help in what needs to be done.

Anirudh,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

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.

Espen

christoph_hopf
Advisor
Advisor

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,

Christoph

P.S.: Please reward points for useful information

Answers (0)