BC400 Lesson: Data ModeIing and Descriptive EIements in the ABAP Dictionary
Exercise 4: Using GIobaI Structures for
Data Objects and DiaIogs Exercise Objectives AIter completing this exercise, you will be able to: Establish the technical names oI data types ( descriptions) and data objects ( variables) that are used in user dialogs. Run where-used lists within an ABAP program. Business ExampIe You have to examine a speciIied ABAP program to see whether global data types ( descriptions deIined in the Dictionary) are used in it, and iI so, which ones. Hint: The main purpose oI this unit is to get inIormation Ior a speciIied program and not its syntax. Hence you should not try to understand the entire syntax oI the program. This especially applies to the statements TABLES and MOVE-CORRESPONDING. Their meaning and Iunctionality will be discussed later on in this course. Task 1: Search for program and execute it 1. Display the object list Ior package BC400 in the Obfect Navigator. Find the program SAPBC400WBT_GETTING_STARTED and display its object list. Throughout the exercise, make sure that you remain in display mode. 2. Run the program to Iind out how it works. Task 2: Analyze selection screen 1. What inIormation must you provide to the program on the selection screen? (Use the Iield help F1.) Continuea on next page 2006/Q2 2006 SAP AG. All rights reserved. 69
Unit 3: Introduction to the ABAP Dictionary BC400 2. What values can you enter? (Use the input help F4.) 3. What is the technical name oI the input Iield (deIinition name in the program)? Find this inIormation in the deIinition in the source code and then try Iinding the same inIormation in the technical information on the F1 Iield help. Which inIormation there also contains the technical name oI the input Iield? Task 3: Analyze screen 1. What is the number oI the displayed screen? (For this, choose the Status entry oI the System menu on the screen.) 2. Which inIormation is output on the screen? (Use the Iield help F1.) 3. What are the technical names oI the screen Iields? Continuea on next page 70 2006 SAP AG. All rights reserved. 2006/Q2
BC400 Lesson: Data ModeIing and Descriptive EIements in the ABAP Dictionary Do the Iields belong to a structure with a type deIined in the ABAP Dictionary? (Use the technical information on Iield help F1 as well as the navigation by double-clicking.) Task 4: Analyze the program source code (using the object list oI the program) 1. Which data objects (variables) are deIined in the program (see the object list oI the program)? Where in the program are they deIined? 2. Where in the program are they used? (Use the Where-Usea List in the ABAP-Eaitor.) 3. Under which name is the input Iield deIined on the selection screen oI the program? Can you also Iind the name in the object list oI the program? 2006/Q2 2006 SAP AG. All rights reserved. 71
Unit 3: Introduction to the ABAP Dictionary BC400 SoIution 4: Using GIobaI Structures for Data Objects and DiaIogs Task 1: Search for program and execute it 1. Display the object list Ior package BC400 in the Obfect Navigator. Find the program SAPBC400WBT_GETTING_STARTED and display its object list. Throughout the exercise, make sure that you remain in display mode. a) Carry out this step as usual. 2. Run the program to Iind out how it works. a) Carry out this step as usual. Task 2: Analyze selection screen 1. What inIormation must you provide to the program on the selection screen? (Use the Iield help F1.) Answer: Short description oI an airline 2. What values can you enter? (Use the input help F4.) Answer: With F4, a list oI available, usable airline codes appears: AA, LH and so on. 3. What is the technical name oI the input Iield (deIinition name in the program)? Find this inIormation in the deIinition in the source code and then try Iinding the same inIormation in the technical information on the F1 Iield help. Which inIormation there also contains the technical name oI the input Iield? Answer: PACAR The inIormation on the screen fiela. Task 3: Analyze screen 1. What is the number oI the displayed screen? (For this, choose the Status entry oI the System menu on the screen.) Answer: 100 Continuea on next page 72 2006 SAP AG. All rights reserved. 2006/Q2
BC400 Lesson: Data ModeIing and Descriptive EIements in the ABAP Dictionary 2. Which inIormation is output on the screen? (Use the Iield help F1.) Answer: The short description, long name, and local currency oI the requested airline. 3. What are the technical names oI the screen Iields? Do the Iields belong to a structure with a type deIined in the ABAP Dictionary? (Use the technical information on Iield help F1 as well as the navigation by double-clicking.) Answer: SBC400CARRIER-CARRID and SBC400CARRIER- CURRCODE. Yes, these are the components oI the structure SBC400CARRIER, as visible under Fiela Data. You can display this by double-clicking the speciIied structure. Task 4: Analyze the program source code (using the object list oI the program) 1. Which data objects (variables) are deIined in the program (see the object list oI the program)? Where in the program are they deIined? Answer: In the object list oI the program, open the Fielas node and display the corresponding statement in the program by double-clicking the appropriate variable. 2. Where in the program are they used? (Use the Where-Usea List in the ABAP-Eaitor.) Answer: You can run the where-used list oI a data object in the program either Irom the object list via the context menu oI the data object in question or Irom the ABAP Eaitor aIter selecting the data object in question and pressing the where-used list button. This results in a list oI locations Iound. You can navigate to the program part in question by double-clicking. 3. Under which name is the input Iield deIined on the selection screen oI the program? Can you also Iind the name in the object list oI the program? Answer: PACAR In the object list oI the program, you will Iind the name under the Fielas node. 2006/Q2 2006 SAP AG. All rights reserved. 73
(Symbolic Computation - Artificial Intelligence) M. M. Botvinnik (Auth.) - Computers in Chess - Solving Inexact Search Problems-Springer-Verlag New York (1984)