cancel
Showing results for 
Search instead for 
Did you mean: 

Custom version assignment

Former Member
0 Kudos

Hi all.

I'm configuring some Document Types into DMS and the customer did a special requirement to me:

He wants that the version number sequence for documents created by the BAPI: BAPI_DOCUMENT_CREATE2 be XX, 00...99 and for documents created by T-CV01N be 00...99.

Into the T-DC10 I've found that the "Version Number Increment Control" field could have the value 'Z - Own sequence definition'. I did select this value and create entries into the table TDWA_VERSION with 'Z' as the value into the field DOKVR_INC and then set to 'Z' the field "Version Sequence" and it works, the versions goes from XX then 00 to 99. The problem is that its working for every type of creation (BAPIs/Standard Transactions).

The customer don't want to implement BADIs for this purpose.

I hope that somebody could help me.

Regards.

Gregory.

Edited by: Gregory Mayorga on Feb 25, 2011 6:37 PM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I already solve the problem doing what I described into the previous post plus one validation into the method DOCVERSION_CHECK of BADI DOCUMENT_NUMBER01.

Now the customer wants to validate that the user can create a new version for a document only if the last one is in an specific status. I think I could implement this into the method named before, but i haven't the doc_number to find the latest version.

Does anybody knows if there is an EXIT or BADI where I can implement that?

Regards.

Gregory.

Former Member
0 Kudos

Hi Gregory,

The version have control with specific document types not the status. Version can be controlled with respect to document types only not the status. Hope this will help.

Regards,

Ravindra

Former Member
0 Kudos

Hi Ravindra, thanks for your answer.

I did solve the problem coding the validation into the method BEFORE_READ_DATA of the BADI DOCUMENT_MAIN01.

Regards.

Gregory.