Skip to Content
Author's profile photo Jerry Wang

How to resolve error message Number not in interval XXX – XXX when downloading a customer from ERP

I have created one Sales customer via tcode VD01 in ERP:

/wp-content/uploads/2016/09/clipboard1_1042520.png

And I have defined a request in tcode R3AR2 to try to download it to CRM via request download:

/wp-content/uploads/2016/09/clipboard2_1042521.png

After download is finished, I saw following error message in tcode SMW01:

/wp-content/uploads/2016/09/clipboard3_1042522.png

Error message: Number not in interval XXX – XXX

/wp-content/uploads/2016/09/clipboard4_1042523.png

Why middleware complains this very interval 0000300000 – 0000399999? Where does it come from?

In order to answer this question, we need to go to ERP to check first.

Every time you create a customer in VD01, you need to specify one account group. In my example below it is DEBI.

When this customer is saved, it is stored in table KNA1, field KTOKD.

/wp-content/uploads/2016/09/clipboard5_1042524.png

/wp-content/uploads/2016/09/clipboard6_1042525.png

In table CRMKTOKD, the mapping relationship between account group in ERP and CRM is maintained. In this example, the corresponding group in CRM is 0002.

( See function module PI_BP_GET_CLASSIF_FROM_KTOKD )

/wp-content/uploads/2016/09/clipboard7_1042526.png

When the customer is downloaded into ERP from CRM, the business partner will be created with a proper number. The number range is maintained based on mapped CRM partner group, in this example 0002:

/wp-content/uploads/2016/09/clipboard8_1042527.png

Here you assign the number range setting to the mapped group 0002.

In my system, currently group 0002 is assigned with number range 07:

/wp-content/uploads/2016/09/clipboard9_1042528.png

This explains why 0000300000 ~ 0000399999 is complained in error message.

/wp-content/uploads/2016/09/clipboard10_1042529.png

After I reassign group 0002 with correct number range 03, the issue is resolved.

/wp-content/uploads/2016/09/clipboard11_1042530.png

The number range interval check for CRM partner inbound processing is done in function module below:

/wp-content/uploads/2016/09/clipboard12_1042531.png

Assigned Tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo Former Member
      Former Member

      PIDE should have correct configuration, it’s good tips.

      BTW, create customer should use TCODE XD01, not VD01. ^_^