將ABAP透明表的定義(後設資料)解析出來匯入到剪下板(clipboard)裡
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 or polluted 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.
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的原創文章,請關注公眾號"汪子熙":
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24475491/viewspace-2703840/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- clipboard.js原始碼解析-複製到剪下板外掛JS原始碼
- vim沒有clipboard,沒法複製到系統剪下板,透過xclip將複製、刪除的內容放到系統剪下板
- ABAP資料庫表的後設資料資料庫
- 定時將資料匯入到hive的shell指令碼Hive指令碼
- SAP ABAP裡資料庫表的Storage Parameters從哪裡來的資料庫
- 好程式設計師web前端分享js剪下板Clipboard.js 使用程式設計師Web前端JS
- 【匯入匯出】將資料匯入到其他使用者
- Java Spring Beans.xml裡的Bean定義是如何被解析出來的JavaSpringBeanXML
- 使用EXPDP/IMPDP匯入匯出表中資料/後設資料測試
- 把Excel表資料匯入到mysqlExcelMySql
- 將drawable設定到imageview裡View
- vim設定與系統剪下板互通
- 匯入自定義板塊的方法
- ORACLE資料庫裡表匯入SQL Server資料庫Oracle資料庫SQLServer
- 把資料匯入到不同的表空間
- 將Mysql資料匯入到ElasticSearch叢集MySqlElasticsearch
- 將資料從文字匯入到mysql(轉)MySql
- Mysql 大資料表 資料匯入到SqlServer 中的方法MySql大資料Server
- 使用IMP將資料匯入指定的表空間
- QTP和Clipboard(剪下板)完美組合解決QQ聊天記錄獲得的問題薦QT
- Sqoop將MySQL資料匯入到hive中OOPMySqlHive
- odps平臺將資料匯入到hdfs
- Progress資料表的匯入匯出
- 一個小技巧,快速找出一段ABAP程式碼裡訪問到的所有透明表
- windows10怎麼開啟剪下板_windows10的剪下板在哪裡開啟Windows
- pl/sql developer將excel資料匯入到資料庫中SQLDeveloperExcel資料庫
- 資料匯入終章:如何將HBase的資料匯入HDFS?
- 將資料匯入kudu表(建立臨時hive表,從hive匯入kudu)步驟Hive
- Oracle 巧用外部表將大量excel資料匯入資料庫OracleExcel資料庫
- impdp匯入資料後,system 表空間整理
- 將表匯入到其他使用者的impdp命令
- PostgreSQL後設資料庫講解-物件(表、索引、函式、序列、檢視…)在哪裡、如何識別、如何求物件定義SQL資料庫物件索引函式
- mysqldump匯入匯出表資料MySql
- 資料泵匯出匯入表
- 如何將外部資料庫 匯入到系統的SQL中資料庫SQL
- 將表格資料匯入Excel表程式碼例項Excel
- js一鍵複製到剪下板JS
- Excel 表匯入資料Excel