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

SAP ABAP和Java的动态代理实现 SAPC4CCloudCDS viewCloudFoundry 

程序员文章站 2022-06-13 17:56:53
...

I have assigned relationship PRDLOCS to product category MAT_HAWA in CRM:

 

SAP ABAP和Java的动态代理实现
            
    
    
        SAPC4CCloudCDS viewCloudFoundry 

 

And I create a product based on category MAT_HAWA. To my surprise, I could not see Location assignment block as expected. I use the following test code in my utility class to list what exactly relationships assigned to my product:

 

SAP ABAP和Java的动态代理实现
            
    
    
        SAPC4CCloudCDS viewCloudFoundry 

 

In the list result, PRDLOC is NOT there ( only PRDLOI ).

 

SAP ABAP和Java的动态代理实现
            
    
    
        SAPC4CCloudCDS viewCloudFoundry 

 

So I begin to debug function module COM_PRCAT_IL_REL_GET_RELTYPES:

 

SAP ABAP和Java的动态代理实现
            
    
    
        SAPC4CCloudCDS viewCloudFoundry 

 

I could see PRDLOC is selected successfully from database table, so it must be filtered out somewhere else.

 

SAP ABAP和Java的动态代理实现
            
    
    
        SAPC4CCloudCDS viewCloudFoundry 

 

Soon I found there is a special check routine for PRDLOC:

 

SAP ABAP和Java的动态代理实现
            
    
    
        SAPC4CCloudCDS viewCloudFoundry SAP ABAP和Java的动态代理实现
            
    
    
        SAPC4CCloudCDS viewCloudFoundry 

 

It will call its dedicated check function module:

 

SAP ABAP和Java的动态代理实现
            
    
    
        SAPC4CCloudCDS viewCloudFoundry 

 

This check function module will check whether MARC and MARC_KEY is registered for adapter object MATERIAL in tcode R3AC1. After I add these two missing entries,

 

SAP ABAP和Java的动态代理实现
            
    
    
        SAPC4CCloudCDS viewCloudFoundry 

 

The expected relationship PRDLOC is now available for my product.

 

SAP ABAP和Java的动态代理实现
            
    
    
        SAPC4CCloudCDS viewCloudFoundry 

 

And finally I could see the Location assignment block in Overview page.

 

SAP ABAP和Java的动态代理实现
            
    
    
        SAPC4CCloudCDS viewCloudFoundry 

 

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

SAP ABAP和Java的动态代理实现
            
    
    
        SAPC4CCloudCDS viewCloudFoundry