Skip to Content
Former Member
Oct 14, 2016 at 10:54 PM

DataHub in hybris 5.7: How to configure IDoc number sequence to autoincrement


Hello, we are using DataHub module to send idocs to SAP system.

We have set sapidocoutboundadapter.offset in the at Tomcat where the data-hub module is deployed. This works fine the first time we start Tomcat, since we configure a number that we know is available at SAP.

Then, when Tomcat gets restarted for any reason, the idoc number is reset and we obtain idoc number collision error, since we try to send a new idoc but using an idoc number already used.

In order to avoid this, we need to manually increment that offset in the properties file every time Tomcat gets restarted. This is fine in a development environment, but is not useful for a production environment.

We would like to be able to configure the starting number for the idoc and then get that number automatically incremented/managed, even if Tomcat is restarted.

Any documentation or suggestion on how to approach this?

Thanks in advance!