09_interactive reporting exercises
TRANSCRIPT
-
8/9/2019 09_Interactive Reporting Exercises
1/23
ECC 6.0Exercises: Interactive Reporting SAP Development ABAP Training
The following exercises are designed to help you understand interactive reporting using ABAP.
The soltions !or the programs can "e !on# in pac$age %&ABAP'(TR)*. Writtensolutions can be found in your ABAP manuals.
Be!ore +o "egin the Interactive Reporting exercises, +o mst create a ne- Pac$age an#a ne- Change Reest, so +or -or$ is store# as it might "e on a client pro/ect.To do this, find the sheet used for your first Package and hange !e"uest #xercise and use thisif you need it to help you through the abbreviated instructions below$
reate a new Package, by going to the !epository Browser %transaction '(), and typing
&IR XX C in the package field %where XX is the last two digits of your logon id). lick on thedisplay pushbutton, and create the new Package, calling it something like *+nteractive !eportingPackage for your name-.
1TE: 2hen +o hit the save "tton, #o not se +or previos Change Reest. +nstead,when the hange !e"uest /uery &creen appears, click on the Create Reest pushbutton,enter a short description, such as *+nteractive !eporting hange !e"uest for your name-, andsave.
Write down the number of your change re"uest here$ 0000000000000000000000000000
1se the green arrow to go back to your new Package, and ensure that all you programs in the+nteractive !eporting section of the course are stored in this Package.
2ec34(('Page 5
-
8/9/2019 09_Interactive Reporting Exercises
2/23
ECC 6.0Exercises: Interactive Reporting SAP Development ABAP Training
Chapter 3, Exercise 4
Program name 6+!xx(705
reate an interactive report that initially shows a list of vendor information. &pecifically, it shouldlist the vendors +2 number %89A538+9:!), the vendors name%89A53:A;#5), and finally the vendors city %89A53
Also make sure that you maintain text elements for the column headings %column headingsshould read =#:2 ()). 2o not use the T#T#2 =#:2
Write code that reacts when the use presses the 57 key. This code will create a window thatcontains the text @T+& W+:2
-
8/9/2019 09_Interactive Reporting Exercises
3/23
ECC 6.0Exercises: Interactive Reporting SAP Development ABAP Training
Chapter 3, Exercise 4Sample 1tpt
2ec34(('Page 7
-
8/9/2019 09_Interactive Reporting Exercises
4/23
ECC 6.0Exercises: Interactive Reporting SAP Development ABAP Training
Chapter 3, Exercise 8
Program name 6+!xx(704
In the following exercises you will often see instructions telling you to make a copy of the program that you created in the previous exercise. You should keep in mind that you may or you may not have to replace significant parts of the code. You will need to decide.
opy your last program and rename it 6+!xx(704. +n this version of the program you shouldmaintain the column headings with the T
-
8/9/2019 09_Interactive Reporting Exercises
5/23
ECC 6.0Exercises: Interactive Reporting SAP Development ABAP Training
Chapter , Exercise 4Program name 6+!xx(E05
opy program 6+!xx(704and rename it 6+!xx(E05. This version of the program must useseveral ?1+ &tatuses to accomplish the same functionality as its predecessor.
The initial screen will use the ?1+ &tatus BA. BA should have a button and menu that willopen window A. 6ou must create the ?1+ &tatus BA.
Window A will use the ?1+ &tatus +:=Window 2 will use the ?1+ &tatus T
-
8/9/2019 09_Interactive Reporting Exercises
6/23
ECC 6.0Exercises: Interactive Reporting SAP Development ABAP Training
hange the T
2ec34(('Page G
-
8/9/2019 09_Interactive Reporting Exercises
7/23
ECC 6.0Exercises: Interactive Reporting SAP Development ABAP Training
Chapter (, Exercise 4
Program name 6+!xx(H05
opy program 6+!xx(E05 and rename it 6+!xx(H05. 1se the +2# method, and the AT 8+:#3#T+
2ec34(('Page H
-
8/9/2019 09_Interactive Reporting Exercises
8/23
ECC 6.0Exercises: Interactive Reporting SAP Development ABAP Training
Chapter (, Exercise 8
Write the following interactive report using AT P9 events %no ?1+ status) and the logicaldatabase F29. ;ake sure the user cannot select an invalid line to produce a list. When testingyour report, you may wish to limit your vendor selections to =#:2((( 3 =#:2(4(.
5) The basic list should contain vendor information with column headings in the formatspecified below %with column header and each vendors information on two lines)$
=endor :ame =endor +2=endor ity =endor ountry
89A53:A;#5 89A538+9:!89A53
-
8/9/2019 09_Interactive Reporting Exercises
9/23
ECC 6.0Exercises: Interactive Reporting SAP Development ABAP Training
Basic 8ist$ =endor Address 8isting
2ec34(('Page L
-
8/9/2019 09_Interactive Reporting Exercises
10/23
ECC 6.0Exercises: Interactive Reporting SAP Development ABAP Training
2etail 8ist K5$ =endor Bank +nformation
2ec34(('Page 5(
-
8/9/2019 09_Interactive Reporting Exercises
11/23
ECC 6.0Exercises: Interactive Reporting SAP Development ABAP Training
2etail 8ist K4$ =endor 2ocument +nformation
Chapter 7, Exercise 4
Program ame: 6+!xx('05
2ec34(('Page 55
-
8/9/2019 09_Interactive Reporting Exercises
12/23
ECC 6.0Exercises: Interactive Reporting SAP Development ABAP Training
6ou are to write a program that creates a basic list of vendor information. This list should includethe following$
89A538+9:!89A53:A;#589A53
At the beginning of each line in the list, there must be a field that can be used as a flag todesignate that line for further processing. This field should take the form of a check box.
After pressing a pushbutton %with an appropriate icon), an address list for the lines checked mustbe printed %int$ 8ook at the help on :#W3PA?# and specifically the additions P!+:T
2ec34(('Page 54
-
8/9/2019 09_Interactive Reporting Exercises
13/23
ECC 6.0Exercises: Interactive Reporting SAP Development ABAP Training
Sample 1tpt
2ec34(('Page 57
-
8/9/2019 09_Interactive Reporting Exercises
14/23
ECC 6.0Exercises: Interactive Reporting SAP Development ABAP Training
The above list is not the detail list for your interactive report. This list is in the spool re"uests%@&ystem -
-
8/9/2019 09_Interactive Reporting Exercises
15/23
ECC 6.0Exercises: Interactive Reporting SAP Development ABAP Training
2ec34(('Page 5E
-
8/9/2019 09_Interactive Reporting Exercises
16/23
ECC 6.0Exercises: Interactive Reporting SAP Development ABAP Training
Chapter , Exercise 4
Program ame: 6+!xx(L05
reate a basic listing of vendors. The listing should include the following fields$
89A53 8+9:!89A53 :A;#589A53
Be sure to include all appropriate column headers on the basic listing.
After positioning the cursor on a line and pressing a function key, double3clicking, or selecting amenu item, bank data for the selected vendor is to be displayed in a window. +f bank data doesnot exist, the window is still displayed with a message to the effect that no data exists.
+f bank data is found the following data should be displayed in the window$
B:FA3BA:FA 3 Bank :ame89BF3BA:F8 3 Bank :umber 89BF3BA:F: 3 Bank Account :umber 89BF3BA:F& 3 Bank ountry ode
+n addition to the bank information, the selected line is to be re3printed in the window. Based onthe location of the line selected in the basic listing, the window should be positioned accordingly
so as to leave the selected line visible in the basic list.
reate and maintain the ?1+ interfaces and titles. 9or the basic listing, choose status type 8+&T&TAT1& and for the bank data %window), choose 8+&T +: T# 2+A8
-
8/9/2019 09_Interactive Reporting Exercises
17/23
ECC 6.0Exercises: Interactive Reporting SAP Development ABAP Training
Sample 1tpt
2ec34(('Page 5H
-
8/9/2019 09_Interactive Reporting Exercises
18/23
ECC 6.0Exercises: Interactive Reporting SAP Development ABAP Training
2ec34(('Page 5'
-
8/9/2019 09_Interactive Reporting Exercises
19/23
ECC 6.0Exercises: Interactive Reporting SAP Development ABAP Training
Chapter , Exercise 8
Program ame: 6+!xx(L04
reate a company driven vendor listing. 9or each vendor and company, output the followingfields$
89A538+9:!89A53:A;#589B53B1F!&
After positioning the cursor on a line and pressing a function key, pressing a pushbutton %with
icon), or selecting a menu option, the documents that exist for that vendor under the currentcompany code are to be displayed in a window, positioned on the right hand side of the screen.
9or each document, the following fields should appear in the window$
B&+F3B#8:! 3 2ocument number B&+F3B12AT 3 Posting date
Be sure to create a column heading on the vendor listing within the window.
reate and maintain the ?1+ interfaces and titles. 9or the vendor basic listing, choose statustype 8+&T &TAT1& and for the document data %window), choose 8+&T +: T# 2+A8
-
8/9/2019 09_Interactive Reporting Exercises
20/23
ECC 6.0Exercises: Interactive Reporting SAP Development ABAP Training
Sample 1tpt
2ec34(('Page 4(
-
8/9/2019 09_Interactive Reporting Exercises
21/23
ECC 6.0Exercises: Interactive Reporting SAP Development ABAP Training
2ec34(('Page 45
-
8/9/2019 09_Interactive Reporting Exercises
22/23
-
8/9/2019 09_Interactive Reporting Exercises
23/23
ECC 6.0Exercises: Interactive Reporting SAP Development ABAP Training
Sample 1tpt
2ec34(('P 47