on 02-09-2008 12:19 PM
Hello,
We have a requirement to view file size of original in DIR.
Please help in what needs to be done.
Anirudh,
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
104 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.