ABAP第七章练习:表操作与优化.pdfVIP

  • 0
  • 0
  • 约2.27千字
  • 约 3页
  • 2026-02-04 发布于北京
  • 举报

Exercise

Chapter7

练习(第7章):

在这些练习中,您将编写程序来帮助您理解带有和不带标题行的表。

目标

完成此练习后,您将能够:•理解表的工作原理以及带有和不带标题行的内

部表之间的区别。

预计完成此练习所需时间:30分钟

练习

以下练习在第7章和第7a章中学到的概念的实际操作练习。

练习1:

将你的程序命名为YIN010_XX。效率专家已经了你的程序,并认为使用

SELECT语句反复查询数据库非常低效(我知道,我也很惊讶)。他们建议你将上

一个练习(程序YIN009_XX)中创建的列表中的所有信息先放入表,然后再

将其写入报告。创建并填充一个用于你希望从数据库中选择的信息的表。

首先创建一个带有表头的表,然后,修改你的程序以使用带有单独工作区的

表。参考程序YIN010以获取两种方法的解决方案。

练习2

你的最后一个程序为YIN011_XX。编写一个与YIN009_XX目的相同但使用

在YIN010_XX中创建的表的程序。此外,应将ONCHANGEOF语句更改

为AT...ENDAT语句。输出应完全相同。参考程序YIN011以获取解决方案。

Exercise(Chapter7):

Intheseexercisesyouwillwriteprogramstohelpyoutounderstandinternaltabwith

andwithoutheaderlines.

Objectives

Aftercompletingthisexercise,youwillbeableto:

•Understandhowinternaltabworkandthedifferencesweeninternaltabwith

andwithoutheaderlines.

Estimatedtimetocompletethisexercise:30minutes

Exercises

ThefollowingexercisesprovidepracticeworkingwiththeconceptslearnedinChapter7

andChapter7a.

Exercise1:

NameyourprogramYIN010_XX.Theefficiencyexpertshavelookedatyourprograms

andhavedecidedthathittingthedatabaserepeatedlywiththeselectstatementis

extremelyinefficient(Iknow,Iwasshockedtoo).Theysuggestyoutakeallthe

informationfromthelistyoucreatedforthelastexercise(programYIN009_XX)and

firstputitintoaninternaltablebeforewritingitouttoareport.Createandpopulatean

internaltablethatwillholdtheinformationyouwouldliketoselectfromthedatabase.

Firstcreateaninternalwithaheaderline,next,changeyourprogramtouseaninternal

tablewithaseparateworkarea.RefertoProgramYIN010forsolutionstobothmethods.

Exercise2

CopyyourlastprogramasYIN011_X

文档评论(0)

1亿VIP精品文档

相关文档