Vous êtes sur la page 1sur 6

NORME DE CODIFICATION ABAP

Abbreviation

Abbreviation

Meaning

Mm

Modul or Project

Abbreviation mm represents a SAP module (i.e. PP MM) or customer specific project.

Uu

Application area

.

K

constant

C

Alphanumeric character

N

Numeric character

Characters of any length

REGELES DE CODIFICATION GENERALE

Elements structurés

Type

Convention

Example

Package

Ymmuu…

ZPPRUECK

Reports

Ymmuu…

Ymmuu…

Modul Pools

SAPMYuu

SAPMYCAUB

Includes

TYmmuuccc

(A)*

MYCAUB_TOP

Transactions

Ymm

ZMM01

Message Class

Ymm

ZPPRUECK

WebDynpro ABAP

Ymm…**

ZPKS_ADMIN_1

B

TOP

> Top Include

> Process Before Output Include

PBO

> Process After Input Include

PAI

> FORMS

Include for forms

> CLASS

Include for local Classes

Data-Dictionary-Obejcts

Type

Convention

Example

Tables

Ymmuu…(t)

ZPPORDER

Views

Ymmuu…_V

ZPPORDER_V

Table types

Ymmuu…_TT

ZCADOCUMENT_TT

Structures

Ymmuu…_S

ZCADOCUMENT_S

Data elements and Domains

Ymmuu…

ZCAFTDATUV

Search help

Ymmuu….

ZPPPROJE

Lock objects

EY_<Tabelle>

EY_YSDMINFO

Type groups

Ymmcc

ZCA02

Classes & Interfaces

Type

Convention

Example

Classes

YCL_mm

ZCL_SD_FAKTURA

Interfaces

YIF_mm

ZIF_SD_BOOKING

ATTRIBUTES

LV

Attribute variable (local value …)

LS

Attribute structure (local structure …)

LT

Attribute table (local table…)

METHODS

set

Set values

get

Get values

send

Send information

save

Save data to database

etc.

SIGNATURE DES METHODES

Nr.

Parameter type

Prefix

0

Importing

I

1

Exporting

E

2

Changing

C

3

Returning

R

GROUPE FONCTION ET MODULES

Type

Convention

Example

Function Group

Ymm_ccc_…

ZCA_KONFIGURATION

Function Module

Ymm

ZSD_FAKTURA_ZU_WE

ENHANCEMENTS

Type

Convention

Example

Enhancement

Spot

YES

ZES_MV45A

Enhancement

Definition

YED

ZED_ MV45A

Enhancement

Implementation

YEI

ZEI_ MV45A

FORMS

Type

Convention

Example

Adobe Forms – Formular

Ymm

ZPP_VBK1

Adobe Forms – Interface

Ymm

IF

ZPP_VKB_IF

Smart Forms/SapScript – Forms

Ymm

ZPP_VBK1

Smart Forms/SapScript – Style

Ymm

ZPP_VBK1

Smart Forms/SapScript – Text modules

Ymm

ZPP_VBK1

Searchhelps

Ymmuu….

ZPPPROJE

Lock Objects

EY_<Tabelle>

EY_YSDMINFO

Type groups

Ymmcc

ZCA02

JOBS

Type

Convention

Example

Jobs

YMM_<Prio>_<BUKRS>_<DESC>

ZSD_1_1000_

ELEMENTS DE DONNEES

Data type

Prefix Part

Elementay Type/Variable

v

Structures

s

Tables

t

Data Reference

r

Class Reference

o

Interface Reference

i

BADI Reference

b

Exception Class Reference

x

Type of Declaration

Naming convention

Local Variable

l[t]_*

Global Variable

g[t]_*

Static Variable

s[t]_*

Local Field Symbol

<l[t]_*>

Global Field Symbol

<g[t]_*>

Local Constant

lc[t]_*

Global Constant

gc[t]_*

Select-Option

s_*

Parameter

p_

Function Module Parameter

i[t]_* für Importing

e[t]_* for Exporting

s[t]_*

c[t]_* for Changing

<l[t]_*>

t[t]_* for Tables

<g[t]_*>

FORM Parameter

p[t]_* für Using

c[t]_* for Changing

l[t]_*

t[t]_* for Tables

g[t]_*

Table type

tt_*

Structure Type

t_*

Objets de programmation

Entity

Namening Convention

Local Class

lcl_*

Global Class

cl_*

Local Interface

lif_*

Global Interface

if_*

Instance attribute

m[t]_*

Static Attribute

g[t]_*

Constant

c[t]_*

Method Parameter

i[t]_* for Importing

e[t]_* for Exporting

p_

c[t]_* for Changing

i[t]_* for Importing

r[t]_* for Returning

s[t]_*

Event Parameter

i[t]_*