欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

使用SAP CRM中间件下载customer的错误消息:Number not in interval XXX – XXX SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

程序员文章站 2022-06-15 19:22:02
...

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

 

使用SAP CRM中间件下载customer的错误消息:Number not in interval XXX – XXX
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

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

 

使用SAP CRM中间件下载customer的错误消息:Number not in interval XXX – XXX
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

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

 

使用SAP CRM中间件下载customer的错误消息:Number not in interval XXX – XXX
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

Error message: Number not in interval XXX – XXX

 

使用SAP CRM中间件下载customer的错误消息:Number not in interval XXX – XXX
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

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.

 

使用SAP CRM中间件下载customer的错误消息:Number not in interval XXX – XXX
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 使用SAP CRM中间件下载customer的错误消息:Number not in interval XXX – XXX
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

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 )

 

使用SAP CRM中间件下载customer的错误消息:Number not in interval XXX – XXX
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

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:

 

使用SAP CRM中间件下载customer的错误消息:Number not in interval XXX – XXX
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

Here you assign the number range setting to the mapped group 0002. In my system, currently group 0002 is assigned with number range 07:

 

使用SAP CRM中间件下载customer的错误消息:Number not in interval XXX – XXX
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

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

 

使用SAP CRM中间件下载customer的错误消息:Number not in interval XXX – XXX
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

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

 

使用SAP CRM中间件下载customer的错误消息:Number not in interval XXX – XXX
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

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

 

使用SAP CRM中间件下载customer的错误消息:Number not in interval XXX – XXX
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

要获取更多Jerry的原创文章,请关注公众号"汪子熙":

使用SAP CRM中间件下载customer的错误消息:Number not in interval XXX – XXX
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud