8/28/13
Sams Teach Yourself ABAP/4 in 21 Days -- Appendix A-Naming Conventions
Sams Teach Yourself ABAP/4 in 21 Days
Appendix A
Naming Conventions
Program Naming Conventions
Naming Conventions for Reports
Naming Conventions for Dialog Programs
Customer Name Ranges
Program Naming Conventions
There are two program types:
Reports
Dialog programs
Each program type has its own naming conventions. Table A.1 contains the characters that are not allowed in
program names.
Table A.1 Invalid Characters for Program Names
Character
Description
Period
Comma
Blank
www.sapnet.ru/abap21day/appendix-a.htm
()
Parentheses
'
Single quote
"
Double quote
Equal sign
Asterisk
Underscore
Percent sign
1/6
8/28/13
Sams Teach Yourself ABAP/4 in 21 Days -- Appendix A-Naming Conventions
Umlaut and "scharfes s"
characters
Naming Conventions for Reports
Customer report names follow the convention Yaxxxxxx or Zaxxxxxx, where:
The first character must be a Y or Z.
The second character represents the application area.
The maximum program length is 10.
The second character is the short form for the application area (see Table A.2). For example, a customer
report for Treasury would follow the convention Z5xxxxxx, while a logistics report would be named
Z21xxxxx.
Each application area can be represented by a code. Each code has two commonly used forms, the short
form and the long form. There is also a code used only for logical database names. These codes are shown in
Table A.2.
Table A.2 Codes for the Application Areas in R/3
Application
Area
Long
Form
Short
Form
LDB
Form
FI
Materials Management
MM
Sales and Distribution
SD
Production Planning and Control
PP
Treasury
TR
Quality Management
QM
Project System
PS
Plant Maintenance
PM
Warehouse Management
WM
Human Resources
HR
10
Asset Accounting
AA
11
Controlling
CO
12
Process Industries
PI
13
Investment Management
IM
14
Logistics (General)
LO
21
International Development
IN
22
Cross Application Functionality
CA
23
Financial Accounting
Naming Conventions for Dialog Programs
Customer dialog program names follow the convention SAPMYxxx or SAPMZxxx, where:
www.sapnet.ru/abap21day/appendix-a.htm
2/6
8/28/13
Sams Teach Yourself ABAP/4 in 21 Days -- Appendix A-Naming Conventions
The first four characters must be SAPM.
The fifth character must be a Y or Z.
The last three characters may be any valid characters.
Programs written by SAP follow the convention SAPMaxxx, where ais the short form for an application area.
Customer Name Ranges
The R/3 system contains many types of development objects. If you want to create a development object
yourself, you must create it in the customer name range. The conventions for customer name ranges are
shown in Table A.3.
Table A.3 Customer Name Ranges for All R/3 Development Objects
Object
Type
Max
Length
Naming
Convention
ABAP/4 Query
Query
Functional Area
Function Group
2
4
3
*
*
*
Append Structures
Append Structure
Append Structure Fields
10
10
Y* Z*
YY* ZZ*
Application Logs
Object
Sub-Object
4
10
Y* or Z*
Y* or Z*
Area Menus
Y* Z*
Authorizations
Authorization
12
any
4
30
10
Y* Z*
Y* Z*
Y* Z*
CATT Flows
Y* Z*
Change Document Objects
10
Y* or Z*
Codepages
9*
Data Elements
Data Element
Data Element Supplement
10
4
Y*Z*
*
9*
Data Models
Data Model
Entity
10
10
Y* Z*
Y* Z*
Development Classes
Y* Z*
Dialog Modules
30
Y* Z* RP_*
RH_INFOTYP_9*
Documentation Modules General Text
(TX)
Test Run Description
Main Chapter (BOOK)
Chapter of IMG
Chapter (CHAP)
28
20
20
20
20
Y* Z*
Y* Z*
Y* Z*
Y* Z*
Y* Z*
Authorization Class
Authorization Group
Authorization Object
SAP Supplement
www.sapnet.ru/abap21day/appendix-a.htm
Notes
Not allowed in 2nd position
If customer created the data
element
If SAP created the data element
3/6
8/28/13
Sams Teach Yourself ABAP/4 in 21 Days -- Appendix A-Naming Conventions
Chapter Note (NOTE) Release
Information
Structure
Online Text
26
20
12
28
Y* Z*
Y* Z*
Y* Z*
Y* Z*
Domains
10
Y* Z*
Enhancements
Enhancement
Enhancement Project
8
8
Y* Z*
*
Function Codes
Function Code
Menu Exit
4
4
Y* Z*
+*
Function Library
Function Group
User Exit Function Grp
Function Module
Field Exit Func Module
4
4
30
30
User Exit Func Module
Conversion Exits
30
30
Y* Z*
XZ*
Y_* Z_*
FIELD_EXIT_*
FIELD_EXIT_*_x
EXIT_pppppppp_nnn
CONVERSION_EXIT_xxxx_INPUT
CONVERSION_EXIT_xxxx_OUTPUT
GUI Status
IDOCs
Segment Type
Basis IDOC Type
Enhancement Type
IDOC Type
7
8
8
8
Z1*
Y* Z*
*
Y* Z*
Includes (DDIC)
Customizing Includes
10
CI_*
Includes (Program)
Include
Include for User Exits
(function modules)
8
8
Y* Z*
ZffffUnn ffff
Info Types
9*
Lock Object
10
EY* EZ*
Logical Databases
Y*a Z*a
Logistics Info System
Event
Unit
2
2
Y* Z*
Y* Z*
Maint. & Transport Objects
10
Y* Z*
Matchcodes
Matchcode
Matchcode Object
1
4
0-9
Y* Z*
Messages
Message Classes
Message Numbers
2
3
Y* Z*
*
Module Pools
Dialog Module Pools
Screen Module Pools
Info Type Module Pools
Subroutine Module Pools
Update Pgm Module Pools
8
8
8
8
8
SAPDY* SAPDZ*
SAPMY* SAPMZ*
MP9*
SAPFY* SAPFZ*
SAPUY* SAPUZ*
Number Range Objects
10
Y* Z*
www.sapnet.ru/abap21day/appendix-a.htm
Only used in an SAP-created
table
= func group
a = app area (LDB form, see
Table A.2)
4/6
8/28/13
Sams Teach Yourself ABAP/4 in 21 Days -- Appendix A-Naming Conventions
Parameter Ids
Y* Z*
Printer Macros
Y* Z* 9*
Relation IDs
Y* Z*
R/3 Analyzer Identifier
20
Y* Z*
8
4
Y* Z*
Y* Z*
X* CUS&*
Reports
Report Name
Report Category
Report Variant
Transportable, Global
Transportable, Local Not
Transportable
14
14
14
Y*
Z*
Report Writer
Report
Report Group
Library
Standard Layout
8
4
3
7
*
*
*
*
1st char not 0-9
1st char not 0-9
1st char not 0-9
1st char not 0-9
SAPScript
Layout Set
Form
Standard Text ID
Standard Text Name
Style
12
16
4
32
8
Y* Z*
Y* Z*
Y* Z*
Y* Z*
1st char not 0-9
Screens
9*
>0
For screen exits for
customer dialog
programs
Spool
Layout Type
Font Group
Device Type
Page Format
System Barcode
16
8
8
8
8
Y* Z*
Y* Z*
Y* Z*
Y* Z*
Y* Z*
Standard Task
9*
Standard Roll
9*
Structure (DDIC)
10
Y* Z*
SYSLOG Message ID
Y* Z*
Tables
Field Name
10
3
10
Y* Z*
Y* Z*
Index Name
Transparent, Pool,
Cluster Name
Pool Name
T9
Table Pool Name
Table Cluster Name
10
10
P9*
PA9* PB9*
PS9*
HRT9* HRP9*
HRI9*
Y* Z*
Y* Z*
Titlebars
Transaction Codes
Y* Z*
Type Group
Y* Z*
User Profiles
12
any
www.sapnet.ru/abap21day/appendix-a.htm
In append structures:
YY* ZZ* only
For pooled tables in the
ATAB pool for
customer info types
_ not allowed in 2nd position
5/6
8/28/13
Sams Teach Yourself ABAP/4 in 21 Days -- Appendix A-Naming Conventions
Views
View Cluster
View Name
Help View
10
10
10
View Maintenance Data
View Content
Table Content
Workflow Object Type
10
Y* Z*
*
H_Y* H_Z*
reserved in TRESC
reserved in TRESC
Y* Z*
You will find that a few SAP objects exist within customer name ranges and thus intrude on the above naming
conventions. These objects were created before the preceding conventions were adopted. A list of these
exceptions can be found in table TDKZ.
Copyright, Sams Publishing. All rights reserved.
www.sapnet.ru/abap21day/appendix-a.htm
6/6