Skip to Content

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

Different number ranges for shopping carts

Hi all,

We are on SRM 4.0 Extended classic, One instance

Users from US & Asia needs to create shopping carts with different number ranges.

Is there any way to do this?

Thanks in advance


Former Member

Ok !!

Thanks Yann.


in that case, during SC creation (i.e. where SC ID is generated), the FM BBP_PD_SC_CREATE is called with a minimum of header data. BADI BBP_DOC_CHANGE_BADI is called just before the standard programs.

So use this BADI to initialize the SC number range (based on your own number ranges logic).

Then during document creation, the system won't try to generate a SC ID. But in that case, it will consider this SC ID as an "external" number. So it will check that this ID belongs to the external number range assigned to SC transaction type.

So in your number range logic, you must use SC external number range.

If you have only 2 countries, you could use standard nb for one country, and external number for 2nd country (with a custom number range object to increment the SC ID).

If you want to be more flexible and add more countries, then define a wide external number range that includes all the country "sub number ranges", assign it to SC transaction type as external nb range.

And create a custom number range object per country (ex: ZSC<country code>), that you can call in the BADI depending on the user's country.



0 View this answer in context

Helpful Answer

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