Skip to Content
0
Aug 23, 2010 at 11:12 AM

How to get the version no of a document created/updated in KM

14 Views

Hi All,

We are currently working on SAP 7.0 SP16.

We have used the KM API to store our documents into the KM repositories.

The problem we are facing here is related to the version no of the documents created.

I will explain this with an example :

I have created a document "test.txt" --> default version no is 1

I updated the same twice now there are 3 version for this document 1, 2 & 3.

Now if I delete the version no 1 then there are only 2 document versions remaining in the system, but the Portal still displays them as 2 and 3.

Now when I want to read the version history of this document I get an IResource object for each version but I am not able to find any means through which I can retrieve the version no of the IResource object which is currently being read.

Can someone please help me the information regarding how to retrieve the version no from the IResource object returned whenever a document is read using KM API.

Thanks in advance!

Regards,

Manish