cancel
Showing results for 
Search instead for 
Did you mean: 

How do we create alphanumeric codes in custom key generator?

Former Member
0 Kudos

I have used following configurations for creating alphanumeric codes:

keygen.dispute.code.name=dispute_code keygen.dispute.code.digits=8 keygen.dispute.code.start=00000001 keygen.dispute.code.type=alphanumeric keygen.dispute.code.template=D$

Please find details of bean definition:

 <property name="key" value="${keygen.dispute.code.name}"/>
 <property name="digits" value="${keygen.dispute.code.digits}"/>
 <property name="start" value="${keygen.dispute.code.start}"/>
     <property name="type" value="${keygen.dispute.code.type}" />
 <property name="template" value="${keygen.dispute.code.template}"/>


Still I am getting numeric codes starting with 00000001. Please provide solution for this.

Accepted Solutions (0)

Answers (1)

Answers (1)

andyfletcher
Active Contributor
0 Kudos

I suspect that your problem is that the NumberSeries has already been created so your subsequent changes won't take effect.

You can try 'resetting' the series using the reset() method of PersistentKeyGenerator

There is some more detail here https://answers.sap.com/questions/12759129/how-to-reset-keygenerator.html?childToView=12788830#answe...

Alternatively you could just change the key property so that it generates a new series.