0% found this document useful (0 votes)
8 views13 pages

Chapter 04_ABAP Dictionary

The document provides an overview of the ABAP Dictionary, focusing on its integration and usage in programming within the SAP system. It explains how to 'paint' dictionary fields onto screens, create program fields, and access online help for data elements. Additionally, it emphasizes the importance of the ABAP Dictionary in maintaining consistent data structures across the system.

Uploaded by

Aniruddha_Ghosh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views13 pages

Chapter 04_ABAP Dictionary

The document provides an overview of the ABAP Dictionary, focusing on its integration and usage in programming within the SAP system. It explains how to 'paint' dictionary fields onto screens, create program fields, and access online help for data elements. Additionally, it emphasizes the importance of the ABAP Dictionary in maintaining consistent data structures across the system.

Uploaded by

Aniruddha_Ghosh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 13

IBM Global Services

ABAP Dictionary

ABAP Dictionary | Dec-2008 © 2005 IBM Corporation


IBM Global Services

Objectives

 The participants will be able to:


 Use ABAP dictionary fields in the screen.
 Use ABAP dictionary fields in the program.
 Understand ABAP dictionary integration.

2 ABAP Dictionary | Dec-2008 © 2005 IBM Corporation


IBM Global Services

Academy Awards Table

 For this chapter and many of the following chapters, we will use an ABAP
Dictionary table created for the purpose of demonstrating online programming
techniques. This table is named “YMOVIE” and it contains information about the
Academy Awards.

YMOVIE
Database Table

AAYear
Category
Winner
Notes
Critic

3 ABAP Dictionary | Dec-2008 © 2005 IBM Corporation


IBM Global Services

Academy Awards Online Program

All of these screen fields,


except for the Academy
Awards title, will be
“painted” from ABAP
Dictionary fields.

4 ABAP Dictionary | Dec-2008 © 2005 IBM Corporation


IBM Global Services

“Paint” Dictionary Fields

 To “paint” fields from the ABAP Dictionary, make sure you are in the Layout view.
Use the “Goto-> Secondary Window->Dict/program fields” menu path in the
Screen Painter
By selecting a “Key word” size,
Select the desired fields. you will get a text field.

5 ABAP Dictionary | Dec-2008 © 2005 IBM Corporation


IBM Global Services

Element List for Dictionary Fields

Screen Painter

The fields “painted” from the These fields are


ABAP Dictionary are marked as
automatically named referring to ABAP
Dictionary fields.
“<table name>-<field name>”.

6 ABAP Dictionary | Dec-2008 © 2005 IBM Corporation


IBM Global Services

Use Dictionary Fields

When you ** MZA01TOP - Top Include **


“paint” screen fields from PROGRAM SAPMZA01.
the ABAP Dictionary, you define
TABLES YMOVIE.
the program fields with the
“TABLES” statement.

** MZA01O01 - PBO Modules **


Screen 9000 MODULE INITIALISE OUTPUT.
CLEAR YMOVIE.
ENDMODULE.
PROCESS BEFORE OUTPUT.
MODULE INITIALIZE.
** MZA01I01 - PAI Modules **
PROCESS AFTER INPUT. MODULE SELECT_LISTING INPUT.
MODULE SELECT_LISTING. * code to select record from YMOVIE
ENDMODULE.

7 ABAP Dictionary | Dec-2008 © 2005 IBM Corporation


IBM Global Services

Online Help for Dictionary Fields

If a screen field is
“painted” from the
ABAP Dictionary,
it points to a data F1
element and the
data element’s
online help.
Data element
short text

Data element  system-wide


documentation
Data element
 automatic
supplemental  system-wide
documentation
 only if maintained
 screen-specific
 only if maintained
8 ABAP Dictionary | Dec-2008 © 2005 IBM Corporation
IBM Global Services

ABAP Dictionary Integration

Execute
transaction

If a change is made to an ABAP Dictionary field (e.g., category length is changed from
3 to 6 characters) and the appropriate Dictionary objects are reactivated, the change
will take effect throughout the system where this field is used.

Execute
Notice change
transaction
in “Category”
field length

9 ABAP Dictionary | Dec-2008 © 2005 IBM Corporation


IBM Global Services

Demonstration

 Creating a screen with fields having reference to the ABAP Dictionary.

10 ABAP Dictionary | Dec-2008 © 2005 IBM Corporation


IBM Global Services

Practice

 Creating a screen with fields having reference to the ABAP Dictionary.

11 ABAP Dictionary | Dec-2008 © 2005 IBM Corporation


IBM Global Services

Summary

 To “paint” fields from the ABAP Dictionary, make sure you are in the Layout view.
Use the “Goto-> Secondary Window->Dict/program fields” menu path in the
Screen Painter.
 If you go to the Element List (field types view), the screens fields “painted” from
the ABAP Dictionary are automatically named “<table name>-<field name>”.
 To create the program fields with the same names as the screen fields “painted”
from the ABAP Dictionary, you should use the “TABLES” statement in the Top
Include.
 A screen field that is “painted” from the ABAP Dictionary points to a data element.
The data element has online help associated with it. If the cursor is positioned in
the screen field and the ‘F1’ key is pressed, the system displays a dialog box with
this online help.
 The ABAP Dictionary is integrated throughout the SAP system.

12 ABAP Dictionary | Dec-2008 © 2005 IBM Corporation


IBM Global Services

Questions

 What is the menu path for referring ABAP Dictionary fields to the screen in screen
painter ?
 When a screen field is painted from the ABAP Dictionary, does it point to the data-
element’s documentation ?

13 ABAP Dictionary | Dec-2008 © 2005 IBM Corporation

You might also like