SAP Coding Guidelines

download SAP Coding Guidelines

of 21

  • date post

    07-Mar-2015
  • Category

    Documents

  • view

    253
  • download

    6

Embed Size (px)

Transcript of SAP Coding Guidelines

SAP Coding Guidelines

SAP Coding GuidelinesVersion No.: 1.0 Date: 02nd Dec 05

ECS Quality, Noida HCL Technologies

Copyright NoticeThis document contains proprietary information of HCL Technologies Ltd. No part of this document may be reproduced, stored, copied, or transmitted in any form or by means of electronic, mechanical, photocopying or otherwise, without the express consent of HCL Technologies. This document is intended for internal circulation only and not meant for external distribution.

PLCGN010

SAP Coding Guidelines

Revision History Version No. Date Prepared by / Modified by Significant Changes

1.0

02nd Dec 05

Taruna Bhatnagar

Glossary Abbreviation Description

Version No. : 1.0 Date: 2nd Dec 05

HCLT Confidential

Page 2 of 21

PLCGN010

SAP Coding Guidelines

Table of Contents1 Introduction....................................................................................................................................... 4 1.1 1.2 2 Purpose .................................................................................................................................... 4 Scope ....................................................................................................................................... 4

SAP Development Standards .......................................................................................................... 4 2.1 Multi Country Approach............................................................................................................ 4 2.1.1 2.2 2.3 Country Identifier ........................................................................................................ 4

MODULE IDENTIFICATION............................................................................................................. 5 Repository Browser Objects..................................................................................................... 5 2.3.1 Development Class .................................................................................................... 5

2.4 2.5 2.6 2.7 2.8 2.9 2.10 2.11 2.12

Online Program ........................................................................................................................ 6 Dialogue Module ...................................................................................................................... 6 Transaction Code ..................................................................................................................... 7 Function Groups....................................................................................................................... 7 Includes .................................................................................................................................... 8 SET/GET parameter ID ............................................................................................................ 8 AREA MENU....................................................................................................................... 8 Message Class/ Number..................................................................................................... 9 Dictionary Objects ............................................................................................................... 9 2.12.1 Domain....................................................................................................................... 9

2.13 2.14 2.15 2.16 2.17

DATA ELEMENT................................................................................................................. 9 STRUTURES .................................................................................................................... 10 TABLE TYPE .................................................................................................................... 10 VIEW ................................................................................................................................. 11 TABLE ............................................................................................................................... 11 2.17.1 2.17.2 2.17.3 BUFFERING ............................................................................................................ 11 INDEXES ................................................................................................................. 12 LOCK OBJECT ........................................................................................................ 12

2.18 2.19

SEARCH Help................................................................................................................... 13 ABAP Editor ...................................................................................................................... 13 2.19.1 2.19.2 2.19.3 2.19.4 2.19.5 2.19.6 Documenting with ABAP Code ................................................................................ 13 Program Documentation .......................................................................................... 13 Extended Program Check........................................................................................ 13 Modification to Code ................................................................................................ 14 Multi Language and Currency.................................................................................. 14 ABAP List Viewer..................................................................................................... 14

Version No. : 1.0 Date: 2nd Dec 05

HCLT Confidential

Page 3 of 21

PLCGN010

SAP Coding Guidelines

2.20 2.21

Function Builder ................................................................................................................ 14 Menu Planer...................................................................................................................... 15 2.21.1 2.21.2 GUI STATUS (MENU + FUNCTION KEYS) .................................................................... 15 GUI Title................................................................................................................... 15

2.22

SCREEN Painter............................................................................................................... 15 2.22.1 2.22.2 2.22.3 2.22.4 LAYOUT ..................................................................................................................... 15 ELEMENT List ......................................................................................................... 15 SCREEN Attributes.................................................................................................. 15 FLOW Logic ............................................................................................................. 16

2.23 2.24 2.25 3

EFFICIENCY..................................................................................................................... 16 Coding Standards ............................................................................................................. 16 Version Control ................................................................................................................. 16

Coding Standard Example ............................................................................................................. 16

11.1 Purpose

Introduction

This document describes the policy and procedures for creating SAP R/3 objects. All SAP R/3 developers will use these guidelines.

1.2 ScopeThis procedure applies to all personnel developing SAP R/3 objects as part of the SAP development process within Compass Group Plc .The policies and procedures in this document define our requirements for the development of all R/3 objects and also incorporate SAP recommendations where applicable. Compliance will ensure the support and development is kept separate for customer and SAP R/3 delivered applications

2

SAP Development Standards

2.1 Multi Country Approach2.1.1 Country IdentifierAll developments should be created to be country independent, where it becomes necessary to limit functionality to a single country the suffix _ must be appended to the object name. matching the corresponding values from SAP customizing table T005, some common example are shown below. Language and currency differences do not make a development country dependent as the texts and monetary elements will be coded to allow translation or conversion.

Version No. : 1.0 Date: 2nd Dec 05

HCLT Confidential

Page 4 of 21

PLCGN010

SAP Coding Guidelines

Country Great Britain Ireland Netherlands Belgium Norway

Code GB IE NL BE NO

Examples: ZBCREPO001 - Country Independent with standard layout ZBCREPO001_NL-Dutch specific due to differing report layout for legal requirements Other attribute settings / actions to note: None

2.2

MODULE IDENTIFICATIONModule BC FI TR CO EC LO SD MM IM LE QM PM CS PP Description Basis Components Financial Accounting Treasury Controlling Enterprise Controlling Logistics - General Sales and Distribution Materials Management Investment Management Logistics Execution Quality Management Plant Maintenance Customer Service Production Planning and Control Description Terms and Conditions Miscellaneous Module PS EH PA PT PY PE SV AP BW EO MS IS Description Project System Environment, Health & Safety Personnel Management Personnel Time Management Payroll Accounting Training and Event Management Service Advanced Planner and Optimizer - APO SAP Business Information Warehouse SAP Electronic Commerce Mobile Sales Industry-Specific Component