cancel
Showing results for 
Search instead for 
Did you mean: 

Version management with Easy DMS

Former Member
0 Kudos

Dear Experts,

I would like to know if it is possible to restrict the creation of new versions of a document in EasyDMS depending on the status of the previous versions.

For example, I have 3 versions of a document (A, B and C). A and B have 'APPROVED' status and C has 'IN PROGRESS' status. If I want to create a new version (D) I would like the system to prevent creating new versions while the previous versions are not APPROVED.

There is an enhancement spot (ES_EASYDMS) which could be useful. But it can only be implemented by SAP.

Thanks in Advance,

Imanol Dehesa

Accepted Solutions (1)

Accepted Solutions (1)

christoph_hopf
Advisor
Advisor
0 Kudos

Hi Imanol,

as far as I know EasyDMS uses the function module BAPI_DOCUMENT_CREATEFROMSRC2 in the backend if you create new versions for a document info record. From this point of view I should be possible to influence the version creation process within this function module by using DMS BADIs like DOCUMENT_MAIN01 with method BEFORE_SAVE. In this BADI method you need to implement a check on the source version document info record to get its current status. And if this status is not set to

APPROVED then you should be able to abort the version creation process and raise an error message that informs the user.

I hope that this information could be a bit more useful.

Best regards,

Christoph

Former Member
0 Kudos

Hi,

I am creating a new version with BAPI_DOCUMENT_CREATENEWVRS2. When I execute this bapi in transaction SE37 it is giving me return parameter as 000 and after testing this bapi I am testing BAPI_TRANSACTION_COMMIT and it is also returning message as 000, but when I go to transaction CV02N, it is showing me parameters with these selection does not exist.

Can you guide me on this. I

Shilpa

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

It's not feasible in standard environment as the versions are controlled by DMS irrespective of status. for this you need to write a z-program.

Hope this will help.

Regards,

Ravindra