You are on page 1of 287
HORST KELLER ee KRUGER ABAP Objects An Introduction to Programming SAP Applications MW Library a AYE Other titles in the series Flying start with SAP R/3 by Gabriele Schicht and Andrea Schmieden SAP R/3 Quality Management by Michael Hélzer and Michael Schramm ‘SAP R/3 Plant Maintenance by Britta Stengl and Reinhard Ematinger SAP R/3 Financial Aecounting by Sandra Brinkmann and Axel Zelinger Security and Data Protection with SAP Systems by Werner Homberger and Jirgen Schneider mySAP.com Industry Solutions by Prof Dr Henning Kagermann and Dr Gerhard Keller SAP R/3 Performance Optimization by Thomas Schneider SAP R/3 Change and Transport Management by Sue McFarlane Thetzger and Susanne Roehrs ‘SAP R/3 System Administration by Liane Will ABAP Objects Introduction to Programming SAP Applications Dr Horst Keller and Sascha Kriiger Wy Addison-Wesley {london «Boston» Indianapolis. New York. Mexico Cty» Toronto Sydney «Tokyo» Singapore» Hong Kong + Cape Towa» New Dell Madi: Pariss Amsterdam » Munich = Milan Stockholms PEARSON EDUCATION LIMITED Head Otice: London Ofte ainburgh Gate 128 Long Acre Harlow CM20 28 London WC2E 9AN Tek: +48 (0)1279 623623 Te: 944 (0720 7487 2000 Bax: +44 (0/1279 431059 Ban 44 (0320 7240 5771 ‘Website wir tsminds.com vonavicom(cseng ust published in Great Britain in 2002 "English edition © Pearson Edwestion Led 2002 ist published in German in 2001 by Galileo Press, Gartense 24, $3229 Bonn, The rights of Horst Keller and Sescha Krier tobe identified as Authors of this Work have been asserted by them in accordance withthe Copyright, Designs and Patents Ac 1985, ISBN 0201 750805 British Library Cataloguing n Publication Data NIP catalogue ecord fortis book can be obtained from the ts Library. brary of Congress Cataloging in Pubcon Data Kelley Host, 1960 ABAP objet: introdetion to programming SAP applications / Hort Keller and sascha Keer, Pen. Includes bibiographlcal references and index. ISBN 0-201-75060-5, 1. ABAP/4 (Computer program language) 2 SAP R/. 3. Clientserver computing. Krier, Sascha, I. Title (0476:73.412 Ks 2002 ons.133-ae21 2002019190 Allright reserved no part ofthis publication may be reproduced, stored in aretival system, ‘or tansmited in any form or by ny means, electronic, mechanical, photocopying recording, or ‘otherwise without efter the prior written permission ofthe Pblishers or aleence permitting restulcted copying in the United Kingdom issued by the Copyight Licensing Agency Lid, 50 Tottenham Court Rox, London WIP OLF. This book may’ nat be lent, reso, hired autor ‘otherwise csposed of by way af rade in any form of binding or cover other than that in which st3s published, without the prior consent ofthe Publishers, ‘The programs in this book have been includ for thelr instructional value. The publsher does not offer any warranties or representations in respect oftheir ines fora pertcular purpose, ‘hor does the publisher accept any lability for any los or damage arling fom thelr. 987654321 Translated by internation ‘Typeset by Panel Ants Lt, Maidstone, Kent Printed snd bound in the UK by Biles Ltd of Guildford and King’ Lym. [eee Contents Preface from SAP Preface from SHS Informationssysteme AG Foreword INTRODUCTION 1.1 What is ABAP Objects? 1.2. Target readership 1.3 How to read this book 1.4 How to use this book in practice 1.5 Syntax conventions ‘A°PRACTICAL INTRODUCTION 24 2.2 23 Introduction First steps with the ABAP Workbench 2.2.1 Gelting started with the ABAP Workbench 2.2.2 Working with the Object Navigator The first program 2.3.1 ABAP syntax 2.3.2 — General program structure 2.3.3. Insert: a “Hello World!” program 2.34 View of the first application program 2.3.5 Copying programs 2.3.6 — Creating a screen 2.3.7 Dialog modules in the ABAP program 2.3.8 Working with the ABAP Debugger 2.3.9 Creating @ GUI status 2.3.10 The data interface between the program and screen 2.3.11 Aclassical main program

You might also like