Файл: BC430_EN_Col62_FV_Part_A4_-_ABAP_Dictionary.pdf

ВУЗ: Не указан

Категория: Не указан

Дисциплина: Не указана

Добавлен: 03.04.2021

Просмотров: 2300

Скачиваний: 40

ВНИМАНИЕ! Если данный файл нарушает Ваши авторские права, то обязательно сообщите нам.
background image

Unit 6: Changes to Tables

BC430

Solution 10: Database Utility (SE14)

Dealing with Problems (Optional)

Task:

You should prevent data from getting lost when errors are made in the conversion.

1.

Avoiding loss of data.

Caution: Before you proceed, you must copy the content of the
employee and department tables into corresponding temporary
tables.

a)

Copy the table for the employees and the table for the departments
using SE11 or SE80.

b)

Copy the content of the tables using an ABAP report (ABAP command

INSERT

)

c)

In addition, change the type definition for the table field of the
department in both tables and use the data type CHAR 4 as a

built-in

type

. In this way, the temporary tables become independent of the

changes that will be made to the domain.

2.

Change the domain for the departments from length 4 to length 2 and
activate the domain.

a)

Follow the same procedure as in the previous exercises.

3.

Activate the dependent objects (tables), too.

a)

Confirm the following dialog using the

Next

pushbutton.

.

4.

Display the log.

Note:

Although only warnings are mentioned in the activation

message, you will find error messages highlighted in red in the log
and an instruction telling you that the tables have to be converted.

Continued on next page

168

© 2007 SAP AG. All rights reserved.

2006/Q2


background image

BC430

Lesson: Changes to Tables

5.

First convert the departments table using transaction SE14.

a)

Enter the table name in the initial screen of the database utilities.

b)

Choose

Edit

.

c)

Choose

Activate and adjust database

to start the conversion process.

Note:

The conversion process ends without an error message.

Despite this, you should take a closer look at the log and
evaluate the messages.

6.

Now convert the employees table and check its contents.

a)

Enter the table name (SE14) in the initial screen of the database

utilities.

b)

Choose

Edit

.

c)

Choose

Activate and adjust database

to start the conversion process.

Caution:

The conversion process ends without an error

message. Despite this, you should take a closer look at the log
and evaluate the messages.

7.

If the conversion fails, try to reverse it again.

a)

There is probably a note in the conversion log that duplicates have

appeared in the primary key.

Result

Discuss with the instructor the possibilities of returning the data to its original state.

2006/Q2

© 2007 SAP AG. All rights reserved.

169


background image

Unit 6: Changes to Tables

BC430

Lesson Summary

You should now be able to:

Make changes to tables

Estimate the effect of these changes on the database

Convert tables

Continue terminated conversions

Add customer fields to SAP standard tables by means of append structures
without modifications

170

© 2007 SAP AG. All rights reserved.

2006/Q2


background image

BC430

Unit Summary

Unit Summary

You should now be able to:

Make changes to tables

Estimate the effect of these changes on the database

Convert tables

Continue terminated conversions

Add customer fields to SAP standard tables by means of append structures
without modifications

2006/Q2

© 2007 SAP AG. All rights reserved.

171


background image

Unit Summary

BC430

172

© 2007 SAP AG. All rights reserved.

2006/Q2