chapter 07 abap dictionary changes1

16
ABAP Dictionary Changes March-2005 ABAP Dictionary Changes | 2.07

Upload: kranthi-kumar

Post on 07-Nov-2014

264 views

Category:

Documents


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Chapter 07 abap dictionary changes1

ABAP Dictionary Changes

March-2005 ABAP Dictionary Changes | 2.07

Page 2: Chapter 07 abap dictionary changes1

Objectives

• The participants will be able to: – Explain why an Object must be activated and

demonstrate how to activate an Object.– Describe how SAP handles Version Management.

March-2005 ABAP Dictionary Changes | 2.07 2

Page 3: Chapter 07 abap dictionary changes1

Activation

March-2005 ABAP Dictionary Changes | 2.07 3

Activation Icon

ABAP DictionaryABAP Dictionary

Data Object

An object must be fully activated in the SAP system in order to be used by other objects

Page 4: Chapter 07 abap dictionary changes1

Mass Activation

March-2005 ABAP Dictionary Changes | 2.07 4

The mass activation program RDDMASG0 can either be run online or scheduled as a background job

Online

Background

Page 5: Chapter 07 abap dictionary changes1

Table Activation

March-2005 ABAP Dictionary Changes | 2.07 5

ABAP ProgramsABAP Programs

UpdatesUpdates

Screen PainterScreen Painter

? Log EntriesConsistency Checks

?

ABAP programs and Screen Painter screens always use the current version of a table activated in the Dictionary.

A data object is automatically checked for consistency (among data types) when the object has been changed.

Page 6: Chapter 07 abap dictionary changes1

Database Utility

March-2005 ABAP Dictionary Changes | 2.07 6

DB

ABAP ABAP Dictionary

Dictionary

Log File

Onlinevs.

Background

The Database (DB) Utility is a tool used in SAP to serve as an interface between the database management software (i.e., ORACLE™, INFORMIX™, DB2™, INGRES™, etc) and the ABAP Dictionary

Page 7: Chapter 07 abap dictionary changes1

Change Key of Value Table

March-2005 ABAP Dictionary Changes | 2.07 7

TablesYANGIE1YEMPLOY

Domain

“YZIPCODES”Value Table

1 9 7 0 21 9 7 0 2

NUMC 10

“YZIP”

Changing the primary key of a value table that is being used by a domain, requires a lengthy process because of the embedded links between the domain and the value table.

Page 8: Chapter 07 abap dictionary changes1

Versions

March-2005 ABAP Dictionary Changes | 2.07 8

An object in the ABAP Dictionary can exist in various versions There are two VERSIONS of an object that can exist in the ABAP Dictionary:

Active & Revised.

Page 9: Chapter 07 abap dictionary changes1

Version Management

March-2005 ABAP Dictionary Changes | 2.07 9

Active Version

Historical Version

Several temporary versions of an active object can be stored when a CTS is open. Historical versions are created every time a CTS is released.

Page 10: Chapter 07 abap dictionary changes1

Version Management (Contd.)

March-2005 ABAP Dictionary Changes | 2.07 10

Display

Compare

Retrieve stored version of object

REMOTE compare

Page 11: Chapter 07 abap dictionary changes1

Demonstration

• Creation of an ABAP report program and assigning the same to a package.

• Subsequently releasing the same program and then making further changes to the program.

• Then going to the version management for the program and viewing the differences between the current active version and the one released previously.

March-2005 ABAP Dictionary Changes | 2.07 11

Page 12: Chapter 07 abap dictionary changes1

Practice

• Creation of an ABAP report program and assigning the same to a package.

• Subsequently releasing the same program and then making further changes to the program.

• Then going to the version management for the program and viewing the differences between the current active version and the one released previously.

March-2005 ABAP Dictionary Changes | 2.07 12

Page 13: Chapter 07 abap dictionary changes1

Locks on Dictionary Objects

March-2005 ABAP Dictionary Changes | 2.07 13

ABAP ABAP Dictionar

Dictionaryy

When you activate an object any locks on the object are automatically released

Page 14: Chapter 07 abap dictionary changes1

SPDD Transaction

March-2005 ABAP Dictionary Changes | 2.07 14

Versions of repaired SAP standard objects can be compared with new SAP standard objects by using the transaction SPDD

Page 15: Chapter 07 abap dictionary changes1

Summary• An object must be fully activated in the SAP system in order to be

used by other objects• When an object is changed and re-activated, all other objects

currently linked to the changed object are automatically updated• Changing the primary key of a value table that is being used by a

domain, requires a lengthy process because of the embedded links between the domain and the value table

• The various versions of an object in the ABAP Dictionary can be viewed via the menu path Utilities Version management.

• Versions of modified (repaired) SAP standard objects can be compared with new SAP standard objects by using the transaction SPDD.

March-2005 ABAP Dictionary Changes | 2.07 15

Page 16: Chapter 07 abap dictionary changes1

Questions

• Why should SAP Objects be activated ?• How are different versions of programs

maintained in SAP ?

March-2005 ABAP Dictionary Changes | 2.07 16