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

Quickly finding the data source of a screen field


In this recipe, we will see a quick method that will enable us to find the database table and field in which the data of a particular SAP screen field is stored. We will use the SQL trace and the EXEC operation for this purpose.

Getting ready

We will use PA30 and its Infotype 0002 in this example transaction. We assume that we are not sure which table name and field stores the first name of an employee.

How to do it...

Proceed as follows:

  1. Call transaction PA30. Enter an employee number in the field provided. Also enter 0002 (personal data)in the Infotype field, and then click on the Change button.

  2. Once you are in the Change Screen, change the First Name of the employee in the relevant field. Do not press the Save button.

  3. In another session, switch on the SQL trace.

  4. Go back to the transaction PA30 and save the data.

  5. Once the save message appears, go back to the SQL trace transaction and click the Display Trace button.

  6. On the Display Trace selection...