精品伊人久久大香线蕉,开心久久婷婷综合中文字幕,杏田冲梨,人妻无码aⅴ不卡中文字幕

打開APP
userphoto
未登錄

開通VIP,暢享免費電子書等14項超值服

開通VIP
System Class for Database Features

SAP NetWeaver AS ABAP Release 751, ?Copyright 2017 SAP AG. All rights reserved. 

ABAP - Keyword Documentation → ABAP - Reference → Processing External Data → ABAP Database Accesses → 

System Class for Database Features

The method USE_FEATURES of the class CL_ABAP_DBFEATURES can be used to detect whether the current database or a database specified using adatabase connectionsupports particular features and whether these can be used at runtime in ABAP. One or more featurescan be queried and then passed to the method in an internal table. The potential row content of theinternal table is determined using constants of the class CL_ABAP_DBFEATURES. Other values raise an exception from the class CX_ABAP_INVALID_PARAM_VALUE.

ConstantDatabase FeatureUse in ABAP
AMDP_TABLE_FUNCTIONTable FunctionsAccess to CDS table functions in Open SQL.
EXTERNAL_VIEWSSAP HANA viewsAccess to external views in Open SQL
CALL_AMDP_METHODSupports AMDPMethod call of AMDP procedure implementations
CALL_DATABASE_PROCEDUREDatabase ProceduresCall of database procedures using CALL DATABASE PROCEDURE
TABLE_KEYCNT_MAX1Up to 120 key fieldsA table can contain more key fields than is permitted as a cross-platform table.
TABLE_KEYLEN_MAX1Keys can have up to 2000 bytesThe key of a table can contain more bytes than is permitted as a cross-platform table.
TABLE_LEN_MAX1A table row can have up to 16293 bytesA table row can contain more bytes than is permitted as a cross-platform table.

The method USE_FEATURES returns the value of abap_true if the feature is supported by the database and the specified use in ABAP is possible.

  • The features AMDP_TABLE_FUNCTION, EXTERNAL_VIEWS, CALL_AMDP_METHOD, and CALL_DATABASE_PROCEDUREcan be used statically in ABAP programs regardless of the current database system, which means thatno syntax errors are produced when one of these database features is used in an ABAP program. For example,it is possible to access external views in every ABAP program or AMDP methods can be called. An exceptionis raised only if the current database does not support the feature in question at runtime. A syntaxwarning (which can be hidden by a pragma) indicates the potential exception. The class CL_ABAP_DBFEATUREScan be used to check whether a special form of access is possible at runtime, instead of catching the corresponding exception. Replacement implementations can be used if an access type is not possible.
  • The features TABLE_KEYCNT_MAX1, TABLE_KEYLEN_MAX1, and TABLE_LEN_MAX1 can currently only be usedby SAP developers as internal flags for database tables, which indicate the tables potentially exceedglobally defined and cross-platform sizes. When a table like this is accessed using Open SQL, a syntax check warning occurs that can be hidden by a pragma. The warning for TABLE_LEN_MAX1 also occurs forviews that use a table of thistype. In standard SAP systems, these tables are usually delivered within the general limits, but customersand partners can enhance them and exceed these sizes. Tables enhanced like this can only be accessedon database systems that support these expanded limits. Other database systems use a replacement implementation that can be accessed using the class CL_ABAP_DBFEATURES.

Notes

  • If a syntax warning due to expanded database features occurs when a database object is accessed,it should only be hidden by a pragma if the object was accessed on database systems that support thefeatures or if there is a replacement implementation. It is a good idea to wrap accesses to these types of database objects in an API.
  • Tables flagged as potentially exceeding cross-platform sizes should never be accessed globally.They should always be accessed within an API wrapper and the associated replacement implementation should be wrapped too.
  • As soon as all database systems support a database feature and it can be used in ABAP, the checksare no longer necessary. The associated constant is then disallowed and removed from the class CL_ABAP_DBFEATURES. This currently applies to the following constants:
  • VIEWS_WITH_PARAMETERS, CDS views with input parameters are supported by all database from Release 7.50.
  • The class CL_ABAP_DBFEATURES_AUNITHELPER can be used to reduce the set of database features in CL_ABAP_DBFEATURES during aunit test. In programs thatuse CL_ABAP_DBFEATURES, this makes it possible to test replacement implementations for databases that support fewer features than the current database.





本站僅提供存儲服務,所有內容均由用戶發布,如發現有害或侵權內容,請點擊舉報
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
在 SAP HANA 數據庫編寫 Database Procedure 的兩種方式
Excel file (*.xlsx) Export/Import | SAP Blogs
Introduction – ABAP Programming on HANA
ABAP-SQL基礎知識
PostgreSQL,MySQL,商業數據庫,誰更好
New "Orcas" Language Feature: Extension Methods
更多類似文章 >>
生活服務
分享 收藏 導長圖 關注 下載文章
綁定賬號成功
后續可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點擊這里聯系客服!

聯系客服

主站蜘蛛池模板: 凯里市| 祁连县| 沂南县| 余江县| 达日县| 三门县| 阿克陶县| 贵州省| 辽宁省| 嘉鱼县| 麦盖提县| 英德市| 肃北| 甘孜| 建湖县| 黄石市| 蒲城县| 河北区| 义乌市| 荆门市| 蒙山县| 当雄县| 乌苏市| 棋牌| 沂源县| 茶陵县| 年辖:市辖区| 九龙坡区| 聂拉木县| 财经| 荃湾区| 科尔| 台东县| 班戈县| 新乡县| 连山| 通道| 清远市| 萝北县| 石景山区| 崇信县|