Chapter 07 abap dictionary changes1

Post on 07-Nov-2014

250 views 0 download

Tags:

description

 

transcript

ABAP Dictionary Changes

March-2005 ABAP Dictionary Changes | 2.07

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

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

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

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.

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

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.

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.

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.

Version Management (Contd.)

March-2005 ABAP Dictionary Changes | 2.07 10

Display

Compare

Retrieve stored version of object

REMOTE compare

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

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

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

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

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

Questions

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

maintained in SAP ?

March-2005 ABAP Dictionary Changes | 2.07 16