ABAP Language Versions

ABAP LANGUAGE VERSIONS – STUDY NOTES
Overview

Each ABAP program has a program attribute called ABAP Language Version, defined internally by a version ID. The version specifies:

⬡Which language elements can be used
⬡Which repository objects are accessible
⬡Which syntax rules apply
Current ABAP Language Versions
Language Version Version ID Description
Standard ABAP (Unicode) X Universal basic version covering entire ABAP language scope for Unicode systems. Unicode checks are performed.
ABAP for Key Users 2 Restricted version for secure enhancements via enhancement points by key users. No obsolete elements allowed.
ABAP for SAP Cloud Platform 5 Restricted version for developments in ABAP Environment of SAP Cloud Platform. No obsolete elements allowed.
Standard ABAP (Unicode)
Characteristics
⬡Universal basic version of ABAP
⬡Covers the entire language scope of ABAP
⬡Usable only in Unicode systems
⬡Unicode checks are performed on programs
⬡This documentation describes all ABAP language elements
ABAP for Key Users
Purpose
⬡Secure implementations of enhancements
⬡Used for enhancement points provided by SAP
⬡Designed for key users (not developers)
Restrictions
Aspect Restriction
Language Elements Very restricted set
Repository Objects Access restricted
Implementation In methods only
Syntax Rules Stricter rules for classes apply automatically
Obsolete Elements Not allowed
ABAP for SAP Cloud Platform
Purpose
⬡Developments in ABAP Environment of SAP Cloud Platform
⬡Cloud-based ABAP development
Restrictions
Aspect Restriction
Language Elements Very restricted set
Repository Objects Access restricted
Implementation In methods only
Syntax Rules Stricter rules for classes apply automatically
Obsolete Elements Not allowed
Technical Implementation
Version ID Storage
⬡Stored in column UCCHECK of database table TRDIR
⬡Set by associated tools
⬡Usually transparent for developers
Setting Version in Code

ABAP statements for editing programs:

Statement Purpose
INSERT REPORT Insert program with optional VERSION addition
SYNTAX-CHECK Syntax check with optional VERSION and DIRECTORY ENTRY additions
Important Notes

Unknown Version IDs: Programs with version IDs not in the table are treated as not supporting any language elements

Whitelist Program: ABAP_DOCU_VERSION_WHITELIST shows allowed repository objects for restricted versions

Obsolete Versions: Some obsolete ABAP language versions exist but should not be used

Demo Program: DEMO_ABAP_VERSIONS allows checking ABAP source code using syntax rules of different versions

Version Comparison
Feature Standard ABAP (Unicode) ABAP for Key Users ABAP for SAP Cloud Platform
Full Language Scope ✅ Yes ❌ No ❌ No
Unicode Checks ✅ Yes ✅ Yes ✅ Yes
Repository Access Full Restricted Restricted
Obsolete Elements Allowed Forbidden Forbidden
Method-only Implementation Optional Required Required
Cloud Ready ❌ No ❌ No ✅ Yes
Key Takeaways
ABAP Language Version is a program attribute defining allowed language elements
Standard ABAP (Unicode) is the universal version with full features
Restricted versions (Key Users, Cloud Platform) limit access for security/cloud scenarios
Version ID stored in TRDIR-UCCHECK
Obsolete language elements are forbidden in restricted versions
Use DEMO_ABAP_VERSIONS to test code against different versions
TERMINAL_INPUT >

Content Source: https://help.sap.com/

If you have problem, please fell free to contact.Thanks.

About me:

This post is come from www.hot583.com, you can share/use it with the post original link for free.

But pay attention of any risk yourself.

If you like, Fell free to let your friends know this. Thanks.

Original Post In Wechat《The End》

Leave a Comment

Your email address will not be published.