Java JUnit框架里@Category注解的工作原理
Suppose you have a large number of unit test cases and you don’t want them to be executed all at the same time during Maven build. You can simply achieve it via annotation @Category.(1) Create empty c
使用Java JUnit框架里的@SuiteClasses注解管理测试用例
Suppose you need to repeatedly execute some test method in your unit test case, for example, you would like to test getPrice based on the first set of test data 5 times in test method test1() while fo
使用Java JUnit框架里的@Rule注解的用法举例
Suppose you need to repeatedly execute some test method in your unit test case, for example, you would like to test getPrice based on the first set of test data 5 times in test method test1() while fo
Java注解@Cacheable的工作原理
In order to avoid unnecessary query on database it is a common pattern to define a cache in application layer to cache the query result from database. See one example below. Here the application cache
通过阶乘的例子,练习在JavaScript, Scala和ABAP里实现尾递归(Tail Recursion)
Before we start to research tail recursion, let’s first have a look at the normal recursion.A simple factorial implementation by recursion:function factorial(n){ if(n ===1) 
SAP CRM中间件Generic stop set的错误如何解决
I have Q7Q/504 as ERP system and QDD/504 as CRM system.A new material named JERRY2 is newly created in ERP and successfully downloaded to CRM via request download.However, after that I made changes on
如何把ABAP视图添加到SAPGUI的收藏夹里
Suppose I need to add the maintenance view COMV_PARTNER_FCT to my favorite list. I expect once the entry in the favorite list is double clicked, it will automatically navigate to the view detail like
Spring框架里注解@Autowired的工作原理
Suppose I have a bean named HelloWorld which has a member attribute points to another bean User.With annotation @Autowired, as long as getBean is called in the runtime, the returned HelloWorld instanc
ABAP模拟Java Spring依赖注入(Dependency injection)的一个尝试
Recently I will deliver a session regarding dependency inversion principle to my team.As Java Spring is already widely used in all other Java development teams in my site, some ABAPers are n
SAP ABAP Netweaver里的胖接口(fat interface)
Recently I am planning an internal training regarding Software engineering concept to my colleagues and one topic is “Interface Segregation”.The following guideline is quoted from OODesign:“When we de
ABAP代码静态分析工具SQF - Support Query Framework
如果系统里没有SQF这个tcode,可以参考note 1814328: SQF: Plug-In for Source Code Scans进行安装。ABAP static analysis tool SQF is a static code analysis tool developed in package SUPPORT_QUERY_FRAMEWORK in software compone
SAP ABAP和Java里的弱引用(WeakReference)和软引用(SoftReference)
Jerry前一篇文章 SAP ABAP一组关键字 IS BOUND, IS NOT INITIAL和IS ASSIGNED的用法辨析 介绍了在ABAP里判断引用变量是否包含了一个有效引用的关键字:IS BOUND.本文则从ABAP和Java编程语言里不同的引用类型这个角度来继续引用这个话题的讨论。不知道大家留意过这个ABAP抽象类CL_ABAP_REFERENCE吗?这个抽象类
如何为ABAP类创建隐式增强
Display all possible implicit enhancement options. It is only possible to create implicit enhancement within these options. The available options are normally located in the beginning and ending part
一个快速找到Spring框架是在哪里找到XML配置文件并解析Beans定义的小技巧
We can define bean configuration in xml and then can get instantiated bean instance with help of all kinds of containers for example ClassPathXmlApplicationContext as displayed below:The content of Be
SAP OData服务性能测量的几种工具和手段
The OData service url being tested is: /sap/opu/odata/sap/CRM_ODATA/TaskCollection?$filter=isMyTask eq true&$expand=DocumentNotes,DocumentNextUserStatuses,DocumentHistories,DocumentApplicationLogs
辟谣 - SAP CRM WebClient UI的性能,一定不如ABAP Webdynpro吗?
Background of this BlogFor several CRM projects in China which I am involved, I found the partner have chosen ABAP webdynpro when custom development is necessary. When asked why they do not consider w
使用ABAP代码给SAP CRM Business object创建附件Attachment
For a complete list of all my blogs regarding content management, please see here.I create a utility class with method CREATE_DOC. It has following four input parameters:iv_data type xstring – th
SAP CRM WebClient UI,如何快速定位到抛出错误消息的那一行代码
本文是Jerry的原创,最早发表于SAP官方社区,英文版链接如下:https://blogs.sap.com/2013/09/25/how-to-quicly-locate-the-source-code-where-raises-a-given-message-in-webclient-ui/As a developer in my daily life I always need to qui
ABAP关键字 IS BOUND, IS NOT INITIAL和IS ASSIGNED的用法辨析
ABAP里的IS BOUND, IS NOT INITIAL和IS ASSIGNED这组关键字,如果平时不留心,很容易理解地似是而非。今天我们就来说一说它们的区别。先把SAP帮助文档抄过来:IS BOUNDIt checks whether a reference variable contains a valid reference. A data reference variable that
根据ABAP BAdI definition名称找到SPRO里配置路径的办法
假设BAdI名称为CRM_PRODIL_ADD_DATA,我想知道SPRO里什么路径可以基于该BAdI实现增强。SE18里BAdI definition的Where-Used List不支持搜索Customizing activities.解决方案查询表CUS_IMGACH, ATTRIBUTES字段指定成BAdI definition名称,查询出的记录里,TEXT字段就为SPRO里定义该BAdI