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 PProgram S – Shell T- Translation Object Category I – Inbound T – Transaction O – Outbound U - Utility

Purpose of Object C-Conversion I – Interface E : Enhancement R – Report

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 Program Constants Global Variables Types Definition Global Structures Global Internal Tables Select-Options Parameters Table Type Field Symbols Ranges Local Constants Local Variables Local Static Variables Local Internal Tables Local Work Area Local Range Field Groups Prefixed by C_ W_ T_ WA_ I_ SO_ PO_ TT_ FS_ R_ LC_ L_ LS_ LI_ LWA_ LR_ FG_

Other Objects
Development Class Message Class Transport Request Tables ZNGL ZL Object id – TS<Version> - Description ZMM_<Description > : Supply ZLG_<Description> : Logistics ZFI_<Description > : FICO ZSM_ <Description > : Sales & Marketing ZS< Application Area >_<Description > ZV< Application Area >_<Description > ZDE< Application Area >_<Description > ZDO< Application Area >_<Description > ZTT< Application Area >_<Description > Z<Description > ZSH< Application Area >_<Description > EZ< Application Area >_<Description >

Structures Views Data Elements Domain Table Type Type Group Search Help Lock Object

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

IDOC Function Module
Logical Database

ZIDOC_[INBOUND / OUTBOUNT] _<MSG TYP>_<DESCRIPTION>
Z< Application Area >_<Description > 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

LSMW

Business objects Workflow related main program

Z< Application Area >_XXX ( XXX : Last three digits of the Object ID) Z< Application Area >_<Description >_XXX ( 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 M – Monthly I – Interval D – Daily W – Weekly

Q – Quarterly Y – Yearly 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 P - PP J - JV S – SD / SAM M – MM/Supply

R – Revenue L - Logistics Y – Cross Application

Object id: Use Test Director Object id.

Sign up to vote on this title
UsefulNot useful