將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原始碼
- ABAP資料庫表的後設資料資料庫
- vim沒有clipboard,沒法複製到系統剪下板,透過xclip將複製、刪除的內容放到系統剪下板
- SAP ABAP裡資料庫表的Storage Parameters從哪裡來的資料庫
- 好程式設計師web前端分享js剪下板Clipboard.js 使用程式設計師Web前端JS
- Java Spring Beans.xml裡的Bean定義是如何被解析出來的JavaSpringBeanXML
- 匯入自定義板塊的方法
- vim設定與系統剪下板互通
- odps平臺將資料匯入到hdfs
- Sqoop將MySQL資料匯入到hive中OOPMySqlHive
- Mysql 大資料表 資料匯入到SqlServer 中的方法MySql大資料Server
- 資料匯入終章:如何將HBase的資料匯入HDFS?
- 將資料匯入kudu表(建立臨時hive表,從hive匯入kudu)步驟Hive
- 一個小技巧,快速找出一段ABAP程式碼裡訪問到的所有透明表
- openGauss 設定透明資料加密_TDE加密
- 如何將外部資料庫 匯入到系統的SQL中資料庫SQL
- Excel 表匯入資料Excel
- windows10怎麼開啟剪下板_windows10的剪下板在哪裡開啟Windows
- Salesforce和SAP Netweaver裡資料庫表的後設資料設計Salesforce資料庫
- GeoRapter工具將shapefile資料匯入到Oracle空間資料庫中APTOracle資料庫
- python將目標檢測資料匯入到指定資料庫中Python資料庫
- .NET Core使用NPOI將Excel中的資料批量匯入到MySQLExcelMySql
- js一鍵複製到剪下板JS
- ClickHouse 資料表匯出和匯入(qbit)
- 如何把某個網站的SSL Server certificate鏈匯入到ABAP Netweaver系統裡網站Server
- Transmit教程|如何將Transmit傳輸到新的Mac並匯入資料MITMac
- 匯入excel資源到資料庫Excel資料庫
- Flume:資料匯入到hdfs中
- js複製文字到貼上板(Clipboard.writeText())JS
- 如何將Excl內資料匯入資料庫?資料庫
- ABAP 資料庫表 Size Category 欄位的準確含義資料庫Go
- SAP ABAP資料表的操作
- 教你如何將二進位制檔案匯入到資料庫資料庫
- 11g後設資料匯入19c分割槽表建立不成功
- 如何將kafka中的資料快速匯入Hadoop?KafkaHadoop
- 歡迎來到海量資料1024開發者日:在這裡,我們定義未來,創享不凡
- C# 操縱貼上板 Clipboard(傳送資料、讀取資料、清空資料)C#
- IIS 日誌匯入到資料庫的方法資料庫