Вы находитесь на странице: 1из 8

ABAP Programming Standards

This Presentation describes general programming guidelines, methodologies and


Naming conventions for all the ABAP objects developed for BP oneNGL SAP
Project.
ABAP Programs / Transaction Codes

Z X X X X XXX
Last 3 Digits of the Object ID in the Test Director

Type of Object
A – Architecture D - Data Declare F – Function P-
Program S – Shell T- Translation

Object Category
I – Inbound O – Outbound
T – Transaction U - Utility
Purpose of Object
C-Conversion I – Interface R – Report
E : Enhancement F- Form (script /smartform)
< Application Area > ( Refer Appendix – 1 )

Z For Custom Developed Object

All Test programs/Objects should start with ‘Y’ instead of ‘Z’ .


Program Header

Add the below header at the beginning of Every ABAP program


************************************************************************
* OBJECT ID :
* PROGRAM TITLE :
* MODULE :
* PROGRAM TYPE :
* INPUT :
* OUTPUT :
* CREATED BY :
* CREATION DATE :
*-----------------------------------------------------------------------------------------------------------
* DESCRIPTION :
*
*
*
************************************************************************
* Modification history:
* ----------------------------------------------------------------------------------------------------------
* DATE |User ID |TS Ver | Transport Request | Description
* ----------------------------------------------------------------------------------------------------------
*
************************************************************************

Use Pattern: ZHEADER


Program Sub-Objects

Program Component Prefixed by

Program Constants C_
Global Variables W_
Types Definition T_
Global Structures WA_
Global Internal Tables I_
Select-Options SO_
Parameters PO_
Table Type TT_
Field Symbols FS_
Ranges R_
Local Constants LC_
Local Variables L_
Local Static Variables LS_
Local Internal Tables LI_
Local Work Area LWA_
Local Range LR_
Field Groups FG_
Other Objects
Development Class ZNGL

Message Class ZL

Transport Request Object id – TS<Version> - Description

Tables ZMM_<Description > : Supply


ZLG_<Description> : Logistics
ZFI_<Description > : FICO
ZSM_ <Description > : Sales & Marketing
Structures ZS< Application Area >_<Description >

Views ZV< Application Area >_<Description >

Data Elements ZDE< Application Area >_<Description >

Domain ZDO< Application Area >_<Description >

Table Type ZTT< Application Area >_<Description >

Type Group Z<Description >

Search Help ZSH< Application Area >_<Description >

Lock Object EZ< Application Area >_<Description >


Other Objects ( Contd..)
SAPScripts /Smartforms ZF< Application Area >_<Description >
Smart Style ZFS < Application Area >_<Description >
Function Groups Z< Application Area >_<Description >
Function Modules Z< Application Area >_<Description >

BAPI ZBAPI_ < Application Area >_<Description >


IDOC Function Module ZIDOC_[INBOUND / OUTBOUNT] _<MSG
TYP>_<DESCRIPTION>
Logical Database Z< Application Area >_<Description >
LSMW Project : Z< Application Area >_<Description >
Sub Project : Z <Project Name excluding ‘Z’ >_nn
Object : Z <Project Name excluding ‘Z’>_nn_mm
nn : Sequence Number of the Subproject
mm: Sequence Number of the Object
Business objects Z< Application Area >_XXX
( XXX : Last three digits of the Object ID)
Workflow related main Z< Application Area >_<Description >_XXX
program ( XXX : Last three digits of the Object ID)
Batch Job

Z X X X XXX
Last 3 Digits of the Object id in the TD - As
descriptive as possible (eg <company code
- <interface Code )

H- Hourly D – Daily W – Weekly


M – Monthly Q – Quarterly Y – Yearly
I – Interval R - On Request

Production / Test Indicator


P- Production T – Non Production

< Application Area > (Refer Appendix – 1)

Z For Custom Developed Object


Appendix 1

Application Area
B - Basis C - CO F- FI W - PM
S – SD / SAM M – MM/Supply P - PP
R – Revenue L - Logistics J - JV
Y – Cross Application

Object id: Use Test Director Object id.

Вам также может понравиться