Skip to Content

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

Unique number generating in Java Mapping

Hi guys,

I'm working on a mapping and in some cases (when Object ID is missing) I need to generate a unique number. But this can't be genereted as a timestamp but from a sequence. This sequence must start at 10000 and be increased by 1 every time a number is needed. I could use a Container or Global container for this, but how to initialize it for the 1st time, so it starts at 10000. And I need to ensure the same number will not be repeated again.

Can you please help me how to resolve this?

Thanks,

Olian

Former Member
Not what you were looking for? View more on this topic or Ask a question