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

SAP One Order应用的跟踪工具CRMD_TRACE_SET SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

程序员文章站 2022-06-13 17:26:45
...

The object event history could record the event of the object involvement in business scenario such as adding an individual object to a business transaction.

The record is done via IOITF ( Object integration framework ). The detail functionality explanation and necessary could be found in SAP help.

There is a useful user parameter which is not clearly documented in SAP help:

 

SAP One Order应用的跟踪工具CRMD_TRACE_SET
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

My issue

After I finish all necessary customizing and add one object to service order, the event history assignment block is empty. I expect there is one entry which records the

 

SAP One Order应用的跟踪工具CRMD_TRACE_SET
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

I set the user parameter as X in SU3 and remove the object from service order and add it once again, it will stop everywhere the method CL_COM_IOITF_DEBUG~BREAKPOINT is called. So we can debug to investigate the handling logic of IOITF framework.

 

SAP One Order应用的跟踪工具CRMD_TRACE_SET
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

In order to find the root cause for my dedicated issue, I create a dynamic breakpoint on ABAP keyword MESSAGE, since I assume there must be some error message raised which blocks the event creation.

 

SAP One Order应用的跟踪工具CRMD_TRACE_SET
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

After I click F8 the debugger stops at the code where one error message is raised:

 

SAP One Order应用的跟踪工具CRMD_TRACE_SET
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

Go upper callstack and I know the framework complains the necessary settype COM_COMMERCIAL is not assigned to object category.

 

SAP One Order应用的跟踪工具CRMD_TRACE_SET
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

After I add this set type to object category,

 

SAP One Order应用的跟踪工具CRMD_TRACE_SET
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

After that once I add the object to service order, I could see the expected record in object Event History assignment block.

 

SAP One Order应用的跟踪工具CRMD_TRACE_SET
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud 

 

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

SAP One Order应用的跟踪工具CRMD_TRACE_SET
            
    
    
        SAPSAP云平台SAP Cloud PlatformSAP成都研究院Cloud