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 design an application we should take care how we are going to make abstract a module which contains several submodules. Considering the module implemented by a class, we can have an abstraction of the system done in an interface. But if we want to extend our application adding another module that contains only some of the submodules of the original system, we are forced to implement the full interface and to write some dummy methods. Such an interface is named fat interface orpolluted interface. The Interface Segregation Principle states that clients should not be forced to implement interfaces they don’t use. Instead of one fat interface many small interfaces are preferred based on groups of methods, each one serving one submodule.”
I am very curious whether SAP standard code contains such fat interface or not. So I wrote a small CDS view:
And get all interfaces which contains more than 10 methods:
DATA: lt_int TYPE STANDARD TABLE OF Zfat_Interface.
SELECT * INTO TABLE @lt_int FROM ZFAT_INTERFACE where method_count > 10 ORDER BY method_count DESCENDING.
The result is there are totally 3139 such interfaces in my CRM development system. I quickly go through the list, most of them are used to build system functionalities and NO application will implement them, so in my opinion the fact is acceptable. If you are intrested with the list, you can find the excel here.
On the other hand there is also another category of interfaces which has NO methods or attributes defined. Refer to this blog Tag(Marker) Interface in ABAP and Java for more detail.
要获取更多Jerry的原创文章,请关注公众号"汪子熙":
相关推荐
SAP接口文档SAP接口文档SAP接口文档SAP接口文档SAP接口文档SAP接口文档SAP接口文档
SAP与其他系统接口,包括RFC ( Romote Function Call,远程函数调用 ) 接口模式,BAPI (Business Application Programming Interface)接口模式,ALE(Application Link and Enabling )/IDocs(Intermediate DOCument)...
回车 SAP系统业务-查询系统日志信息全文共5页,当前为第1页。 SAP系统业务-查询系统日志信息全文共5页,当前为第1页。 2.ST03N 这是另外一种方法,可以看到更多一些的用户操作信息 双击用户 可以看到事务代码。 ...
关于SAP R/3 EDI AND INTERFACE的详细介绍 关于SAP R/3 EDI AND INTERFACE的详细介绍
SAP作为主流的ERP管理产品,也需要跟各大平台、系统或者是内部产品之间进行数据交换,这个时候我们就需要使用到接口。当然,这里我们要暂时忽略接口的广义定义,我们就当他是系统平台间数据传输的工具、一种技术。 ...
这是一个用于C#对接SAP系统的完整示例,示例包含连接sap、获取spa数据库指定表数据以及获取指定一条数据。
SAP 系统实现短信发送与查询回执信息功能的实现通过与短信平台系统接口实现。SAP 与短息平台接口开发时需要按照短信平台系统开发规范进行。
JAVA连接SAP的官方接口(通过sapjco3连接)文档 内含java端代码 内容详细 可用来学习
ABAP 接口 SAP-ABAP+IDOC+Interface.pdf ABAP interface IDOC 接口
MB PI 九恒星到SAP的POS过账及冲销接口 异步 创建步骤
ERP系统信息化资料:SAP系统同ABB接口功能规格说明书-SD模块.doc
SAP PI / XI使您能够设置跨系统通信和集成,并允许您基于不同的编程语言(如Java和SAP ABAP)连接SAP和非SAP系统。 它提供了一个开放源码环境,在复杂的系统环境中是必要的,用于系统集成和通信。
Java 调用SAP的 RFC 接口源码,附带 jco3.0 的动态链接库。
SAP内部经典资料系列-BC620(SAP IDoc Interface
2015年最新SAP用户界面技术路线图(sap user interface road map 2015.11)
SAP HANA开发的相关资料,包括hana程序开发的基础知识
此程序是基于DEV控件,使用C#调用SAP接口,运行环境VS2008。
SAP金税接口RFC函数样例,在开票软件通过调用RFC函数,直接获取开票数据,实际开票后自动调用回写函数,将金税发票号码回写到SAP.
SAP 金税接口 goden tax 中国金税接口 SAP ABAP,SD,FICO
SAP系统管理图书PDF版本SAP系统管理图书PDF版本