Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Displaying latest version of document in CV02N/CV03N

Hi

1. We need to display the document having latest version of changable status when CV02N is run (irrespective of the document version entered). Similarly when CV03N is run then document having latest version of released status should be displayed.

E.g. Document Test1 has Version 00 and 01 in status "Created" and version 02 and 03 in status "Released". Then,

Output of CV02N should be Test1 version 01 and Output of CV03N should be Test1 Version 03.

How do I go about this?

2. Do we get the change history of the document? i.e. time of chaneg and what changes were done? I just found status log.

3. Is there any way in which we can have indicators for invalid versions of documents?

Please help me with these.

Regards

Preeti

Former Member
replied

Hi Preeti,

I hope that the following information could be useful for you:

1. We need to display the document having latest version of changable status when CV02N is run (irrespective of the document version entered). Similarly when CV03N is run then document having latest version of released status should be displayed.

Here I think an implementation of BADI DOCUMENT_MAIN01 with method BEFORE_READ_DATA or AFTER_READ_DATA could be useful. With this mehtods you should be enabled to control which version of a document info record is displayed in CV02N or CV03N.

2. Do we get the change history of the document? i.e. time of chaneg and what changes were done? I just found status log.

The changes of a document info record could be displayed by using the menu 'Environment' >> 'Display Changes' in CV02N or CV03N transaction. This works if you have set the flag 'Change Docs' in transaction DC10 for the document type.

3. Is there any way in which we can have indicators for invalid versions of documents?

For this there is a menu entry called 'Versions' in menu "Extras". This entry lists up all existing versions and highlights the current one.

Best regards,

Christoph

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question