Book Image

SAP ABAP Advanced Cookbook

By : Rehan Zaidi
Book Image

SAP ABAP Advanced Cookbook

By: Rehan Zaidi

Overview of this book

ABAP (Advanced Business Application Programming) is SAP's proprietary 4th Generation Language (4GL). SAP core is written almost entirely in ABAP.ABAP is a high level programming language used in SAP for development and other customization processes."SAP ABAP Advanced Cookbook"ù covers advanced SAP programming applications with ABAP. It teaches you to enhance SAP applications by developing custom reports and interfaces with ABAP programming. This cookbook has quick and advanced real world recipes for programming ABAP.It begins with the applications of ABAP Objects and ALV tips and tricks. It then covers Design Patterns and Dynamic Programming in detail.You will also learn the usage of quality improvement tools such as transaction SAT, SQL Trace, and the Code Inspector.Simple transformations and its application in Excel Downloading will also be discussed, as well as the newest topics of Adobe Interactive Forms and the consumption and creation of Web services. The book comes to an end by covering advanced usage of Web Dynpro for ABAP and the latest advancement in Floorplan Manager.
Table of Contents (22 chapters)
SAP ABAP Advanced Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Coding search help exits for creating better F4 helps


In this recipe, we will see how search help (and help exits) will help you meet the user requirements when providing the input values of a particular selection screen's input field. We will create a search help in this recipe and will assign it to an input field.

The requirement is to provide a personnel number field with input help that shows all the employees whose birthdays fall in the current month. This means, if the program is run in March, all the employees whose birthdays are in March will be shown in the input help.

Getting ready

We will create a search help for personnel number. The name of the search help is ZST9_SEARCH_HELP and it uses the database table, pa0002. The fields PERNR, NACHN, VORNA, and GBDAT are selected and displayed in the hit list.

Next, we will create a program in which we will declare a parameter pernr, based on PERNR of the table PA0002. We use the matchcode object addition to assign the search help ZST9_SEARCH_HELP...