Sunteți pe pagina 1din 28

SAP R/3 Release 4.

7 Online Programming: Exercises SAP Development ABAP Training

The following exercises are designed to help you understand online programming. Remember that an online program can also be called a module pool program, a dialog program, or a transaction. For many of the online programs you create, you will be using the YMO !"#O$% database table that contains &cademy &ward information. 'e created this table for the purpose of demonstrating online programming techni(ues. )eep in mind that the concepts you learn using the YMO !"#O$% table can be applied to any online program using any &*&$ +ictionary table,s-. "ach of the exercises contains a testing section. This is not a comprehensi.e test plan. The (uestions as/ed in this section for each program should be used to ma/e sure the basics in your program are functioning properly. !f you can thin/ of any other important testing conditions, feel free to list them. T e sol!tions "or t e programming section can #e "o!n$ in pac%age &'ABAP47TR() . !f you are ha.ing trouble figuring out how an online program should wor/, execute the solution online program. 'ritten solutions can be found in your &*&$ manuals. Be"ore *o! #egin EA+, Online Programming exercises- *o! m!st assign *o!r create$ o#.ects to a Pac%age an$ a + ange Re/!est provi$e$ #* t e instr!ctor- so *o!r 0or% is store$ as it mig t #e on a client pro.ect.

$age 3

March 0112

SAP R/3 Release 4.7 Online Programming: Exercises + apter 1- Programming Section
Online program name4 5&$MYO$xx3 ,where 6xx7 is the last two digits of your logon idTransaction code4 YO$xx3 !nitial screen4 8111 5creen 81114 next screen 9 8113 5creen 81134 next screen 9 8111 The purpose of this exercise is for you to create a simple online program to become familiar with the basic components of an online program. &s you are creating this online program, try to identify each component you are creating4 screen attributes, screen layout, field attributes, flow logic, $*O modules, $&! modules, and global data. This online program will act as an adding machine. On the initial screen ,8111-, the user will enter two integers. &fter pressing the 6"nter7 /ey, the user should be ta/en to the next screen ,8113-. On this second screen, the two integers from the first screen will be displayed along with the result of the addition operation. These three fields should be display fields only ,i.e. the user should not be able to enter .alues in these three fields-. &fter pressing the 6"nter7 /ey, the user should be ta/en bac/ to the initial screen. The pre.ious .alues should be cleared out when the user returns to the initial screen. &ll three integer fields should be eight bytes long. &n example of these two screens can be seen on the next page. +on7t forget you need to create a transaction code to execute this online program. *ecause you ha.e not learned how to code an exit in an online program, the easiest way to execute the program is to use a :o;tcode<% in the command field of the standard toolbar. *y opening up a new session with your transaction, you can exit% the transaction by closing the session. !f you do not open a new session for your transaction, you can exit% the transaction by using a :n% or :n;tcode<% in the command field of your transaction ,e.g. a :nse=1% will exit the transaction and ta/e you to the Ob>ect *rowser-. Tip4 $ressing the 6?TR@7 and 6T&*7 /eys will mo.e the cursor to the command field.

SAP Development ABAP Training

$age 0

March 0112

SAP R/3 Release 4.7 Online Programming: Exercises


5creen 8111

SAP Development ABAP Training

5creen 8113

$age A

March 0112

SAP R/3 Release 4.7 Online Programming: Exercises Testing Section


,3- ?an you enter a number with decimals on the initial screenB ,expected 9 no-

SAP Development ABAP Training

,0- !s the result being calculated correctlyB ,expected 9 yes-

,A- &re all three .alues displayed on the second screenB ,expected 9 yes-

,C- ?an you enter .alues on the second screenB ,expected 9 no-

,2- &re the .alues cleared out when you return to the initial screenB ,expected 9 yes-

,D- +oes the program loop from screen 8111 to 8113 and bac/ to 8111 as you press 6"nter7B ,expected 9 yes-

$age C

March 0112

SAP R/3 Release 4.7 Online Programming: Exercises + apter 3- Programming Section
Online program name4 5&$MYO$xx0 ,where 6xx7 is the last two digits of your logon idTransaction code4 YO$xx0 !nitial screen4 8111 5creen 81114 next screen 9 8113 The purpose of this exercise is for you to learn how to create the .arious graphical elements on a screen4 radio buttons, chec/ boxes, frames, and pushbuttons. You will not code any logic into this program. 'o! s o!l$ not spen$ more t an 42 min!tes on t is program. The !nstructor% input:output template should be A1Elength character field. The ".aluation% input:output template should be a scrollable field with a defined length of D1 characters and a .isible length of A1 characters. The 65ubmit ".aluation7 pushbutton should ha.e an icon and be assigned the function code " &@%.

SAP Development ABAP Training

$age 2

March 0112

SAP R/3 Release 4.7 Online Programming: Exercises SAP Development ABAP Training

Testing Section
,3- &re the radio buttons mutually exclusi.eB ,expected 9 yes-

,0- !s the 6".aluation7 template scrollableB ,expected 9 yes-

$age D

March 0112

SAP R/3 Release 4.7 Online Programming: Exercises + apters 432- Programming Section
Online program name4 5&$MYO$xxA ,where 6xx7 is the last two digits of your logon idTransaction code4 YO$xxA !nitial screen4 8111 5creen 81114 next screen 9 8113 5creen 81134 next screen 9 8111 The purpose of this exercise is for you to learn how to use &*&$ +ictionary fields in an online program. You will build upon this program in future exercises. 5creen 8111 On this initial screen, the user will enter a year and category. These fields ,both the templates and text labels- should be painted% from the YMO !"#O$% table. The year template should be a re(uired field. &fter pressing the 6"nter7 /ey, the user should be ta/en to the next screen ,8113-. 5creen 8113 On this second screen, the two .alues from the first screen will be displayed. These two fields should be display fields only. &lso on this screen, the winner, the fi.e nominees, and the notes should be displayed for the specified year and category. These fields ,both the templates and text labels- should be painted% from the YMO !"#O$% table. These fields should be both input and output fields. &fter pressing the 6"nter7 /ey, the user should be ta/en bac/ to the initial screen. The pre.ious .alues should be cleared out when the user returns to the initial screen. &n example of these two screens can be seen on the next page.

SAP Development ABAP Training

$age F

March 0112

SAP R/3 Release 4.7 Online Programming: Exercises


5creen 8111

SAP Development ABAP Training

5creen 8113

$age =

March 0112

SAP R/3 Release 4.7 Online Programming: Exercises Testing Section


,3- &re $!?%, M&@%, and F"M% the only acceptable entries for the category template on the initial screenB ,expected 9 yes-

SAP Development ABAP Training

,0- !s the year field re(uired on the initial screenB ,expected 9 yes-

,A- !s the proper record being selected from YMO !"#O$%B ,expected 9 yes- GHote4 loo/ at the table contents in the &*&$ +ictionary ,5"33- or +ata *rowser ,5"3D-I

,C- &re the winner, nominees, and notes fields open for input on the second screenB ,expected 9 yes-

,2- &re the year and category fields display only on the second screenB ,expected 9 yes-

,D- !f you enter a nonEexisting record ,e.g. 3831, $!?- on the initial screen, are the winner, nominees, and notes fields blan/ on the second screenB ,expected 9 yes-

,F- &re the .alues cleared out when you return to the initial screenB ,expected 9 yes-

,=- +oes the program loop from screen 8111 to 8113 and bac/ to 8111 as you press 6"nter7B ,expected 9 yes-

$age 8

March 0112

SAP R/3 Release 4.7 Online Programming: Exercises + apters 435- Programming Section
Online program name4 5&$MYO$xxC ,where 6xx7 is the last two digits of your logon idTransaction code4 YO$xxC !nitial screen4 8111 5creen 81114 next screen 9 8113 5creen 81134 next screen 9 8111 The purpose of this exercise is for you to learn how to use messages in an online program, flag fields as open for input, and set default .alues and cursor positioning. 'o! s o!l$ cop* *o!r SAP6'OPxx3 program to create program SAP6'OPxx4. First create the new $ac/age, then select program 5&$MYO$xxA in the Ob>ect *rowser and clic/ on the copy pushbutton ,or use the +e.elopment ob>ect < ?opy% menu path-. Ma/e sure you select all the components to copy ,documentation, .ariants, JK! status, screens, includes-. You will be prompted to create new include programs EE >ust clic/ on the 6?opy7 pushbutton or press the 6"nter7 /ey. The $ac/age screen should appear L enter the new $ac/age here, and ensure the new ?hange Re(uest is used. The appearance of the screens will not change in this program. &dd the following functionality4 5creen 8111 You need to code two chec/s into this screen. First, if the user enters an in.alid year, an appropriate message ,e.g. !n.alid year%- should force the user to ma/e a change before mo.ing on to the next screen. & year is in.alid if it is before 380F or after the current year. This current year should not be hardEcoded ,i.e. this year should be current for the time the transaction is executed-. !f the message is issued, the year and category fields should be open for input. 5econd, if the user enters a record that does not exist, an appropriate message ,e.g. Ho record exists%should force the user to ma/e a change before mo.ing on to the next screen. !f the message is issued, the year and category fields should be open for input. The in.alid year chec/ should occur before this one EE there is no reason to attempt to select the record if an in.alid year was entered. To issue these messages, you should create your own messages in your own message class ,!+-. ,?reate message class YMM, where your last two digits of your 5&$ @ogon !+ should replace MM5creen 8111 ,cont.+efault .alues should appear in the year and category fields on the initial screen. Kse parameter !+s to accomplish this tas/. 5creen 8113 The cursor should be positioned in the notes field.

SAP Development ABAP Training

$age 31

March 0112

SAP R/3 Release 4.7 Online Programming: Exercises Testing Section


N This section will only test for new functionality ,3- !f an in.alid year is entered, is an appropriate error message is displayed and the year and category fields left open for inputB ,expected 9 yesG+on7t forget to test the boundaries here. 6380F7 should pass the year chec/, but 6380D7 should not. @i/ewise, 6388F7 should pass the year chec/, but 6388=7 should not.I

SAP Development ABAP Training

,0- !f a record does not exist, is an appropriate error message is displayed and the year and category fields left open for inputB ,expected 9 yes-

,A- 'hen either chec/ fails, does the user ha.e to ma/e a change to mo.e on to the next screenB ,expected 9 yes-

,C- +o default .alues appear in the year and category fieldsB ,expected 9 yes-

,2- On the second screen, is the cursor positioned on the notes fieldB ,expected 9 yes-

+ apters 7389- Programming Section


Online program name4 5&$MYO$xx2 ,where 6xx7 is the last two digits of your logon idTransaction code4 YO$xx2 !nitial screen4 8111 5creen 81114 next screen 9 8111 5creen 81134 next screen 9 8113 5creen 8110 ,dialog box-4 next screen 9 8110 The purpose of this exercise is for you to learn how to use a Jraphical Kser !nterface ,JK!- in an online program and how to dynamically determine the screen se(uence based on the user7s actions. 'o! s o!l$ cop* *o!r SAP6'OPxx4 program to create program SAP6'OPxx2. First create the new pac/age, then select program 5&$MYO$xxC in the Ob>ect *rowser and clic/ on the copy pushbutton ,or use the +e.elopment ob>ect E< ?opy% menu path-. Ma/e sure you select all the components to copy ,documentation, .ariants, JK! status, screens, includes-. You will be prompted to create new include programs EE >ust clic/ on the 6?opy7 pushbutton or press the 6"nter7 /ey. The $ac/age screen should appear E enter the new $ac/age here, and ensure the new ?hange Re(uest is used.

$age 33

March 0112

SAP R/3 Release 4.7 Online Programming: Exercises SAP Development ABAP Training

The JK! for this program will include the following function codes4

Function ?ode
&++ "+!T "M!T !H!T MO+! R"T

+escription
&dd Record "dit Record "xit !nitial 5creen Modify Record Return to ?alling 5creen

Function Type
" "

The screen descriptions and screen prints below will help you determine which of these function codes is used on what JK! status. Remember the JK! status type depends on the screen type. The title bar of each screen should be4 &cademy &wards%. The next screen% attribute for each screen should be itself. +o not use 5YEK?OMM in this program. 5creen 8111 This screen should use the JK! status 6F!R5T7 with the following function codes4 "M!T, "+!T, and &++. 'ith the 6"dit Record7 and 6&dd Record7 pushbuttons, the user determines whether to insert a new record or update an existing record based on the specified year and category. !f the user clic/s on the 6"dit Record7 pushbutton ,which in.o/es the 6"+!T7 function code-, an error message should be issued if the record does not exist. !f the user clic/s on the 6&dd Record7 pushbutton ,which in.o/es the 6&++7 function code-, an error message should be displayed if the record already exists. Once this chec/ is passed, and the in.alid year chec/ from the pre.ious example, the user should be ta/en to screen 8113. !t is on screen 8113 where the user will add or edit the record. !f the user clic/s on the 6"xit7 pushbutton ,which in.o/es the 6"M!T7 function code-, the transaction should be terminated. !f the user presses the 6"nter7 /ey, the user should not be ta/en to the next screen.

$age 30

March 0112

SAP R/3 Release 4.7 Online Programming: Exercises SAP Development ABAP Training

5creen 8113 This screen should use the JK! status 65"?OH+7 with the following function codes4 "M!T, !H!T, and MO+!. On this screen, the user will ultimately be able to insert or update a record with the 6Modify Record7 pushbutton. You will not add this functionality to the 6MO+!7 function code until the next example. !f the user clic/s on the 6"xit7 pushbutton ,which in.o/es the 6"M!T7 function code-, the transaction should be terminated. !f the user clic/s on the 6!nitial 5creen7 pushbutton ,which in.o/es the 6!H!T7 function code-, the user should be ta/en bac/ to screen 8111. !f the user presses the 6"nter7 /ey, the user should not be ta/en bac/ to screen 8111. You will need to add two new fields to this screen. First, the critic template should be painted% from the YMO !"#O$% table ,only the template should be painted%, not the /ey word-. This field should be a display only field. 5econd, you should create the 6"nter ?ritic7 pushbutton and assign it the function code 6H&M"7. !f the user clic/s on the 6"nter ?ritic7 pushbutton ,which in.o/es the 6H&M"7 function code-, the user should be ta/en to screen 8110 ,a dialog box-.

$age 3A

March 0112

SAP R/3 Release 4.7 Online Programming: Exercises SAP Development ABAP Training

$age 3C

March 0112

SAP R/3 Release 4.7 Online Programming: Exercises


5creen 8110 You will ha.e to create this new screen. !t is a dialog box that will be called% from screen 8113. The only two fields on this screen should be painted% from the YMO !"#O$% table. You want both the critic template and critic /ey word. This screen should use the JK! status 6TO!R+7 with the function code 6R"T7. This function code should be assigned to the 6"nter7 /ey. !f the user presses the 6"nter7 /ey ,which in.o/es the 6R"T7 function code-, the user should be ta/en bac/ to the calling% screen. +O HOT FORJ"T TO ?O+" & '&Y OKT OF TO!5 +!&@OJ *OMPPP

SAP Development ABAP Training

$age 32

March 0112

SAP R/3 Release 4.7 Online Programming: Exercises Testing Section


N This section will only test for new functionality ,3- !f the user clic/s on the 6"xit7 pushbutton on screen 8111 or 8113, is the transaction terminatedB ,expected 9 yes-

SAP Development ABAP Training

,0- !f the user clic/s on the 6!nitial 5creen7 pushbutton on screen 8113, is the user returned to screen 8111B ,expected 9 yes-

,A- !f the user clic/s on the 6"dit Record7 pushbutton on screen 8111 and the record does not exist, is an appropriate error message displayed and the year and category fields left open for inputB ,expected 9 yes-

,C- !f the user clic/s on the 6&dd Record7 pushbutton on screen 8111 and the record already exists, is an appropriate error message displayed and the year and category fields left open for inputB ,expected 9 yes-

,2- !f the user clic/s on the 6&dd Record7 pushbutton on screen 8111 and the record does not exist, is the user ta/en to screen 8113 with all the fields ,except the year and category- blan/B ,expected 9 yesG& good way to test this one completely is to try to add an existing record ,e.g. 388C, $!?-. You should get an error message. Then, change the year and category to one that does not exist and clic/ on 6&dd7 again. &ll the fields ,except the year and category- should be blan/ on screen 8113.I

,2- !s the critic field display only on screen 8113B ,expected 9 yes,D- !f the user clic/s on the 6"nter Hame7 pushbutton on screen 8113, is the user ta/en to the dialog box screen 8110B ,expected 9 yes-

,F- !f the user hits the 6"nter7 /ey on screen 8110, is the user ta/en bac/ to screen 8113 with the appropriate critic displayedB ,expected 9 yes-

$age 3D

March 0112

SAP R/3 Release 4.7 Online Programming: Exercises + apters 81384- Programming Section
Online program name4 5&$MYO$xxD ,where 6xx7 is the last two digits of your logon idTransaction code4 YO$xxD !nitial screen4 8111 5creen 81114 next screen 9 8111 5creen 81134 next screen 9 8113 5creen 8110 ,dialog box-4 next screen 9 8110 The purpose of this exercise is for you to learn how to conditionally execute modules, update or insert a record in the database, and use the logical loc/ing mechanism. 'o! s o!l$ cop* *o!r SAP6'OPxx2 program to create program SAP6'OPxx4. First create the new $ac/age, then select program 5&$MYO$xx2 in the Ob>ect *rowser and clic/ on the copy pushbutton ,or use the +e.elopment ob>ect < ?opy% menu path-. Ma/e sure you select all the components to copy ,documentation, .ariants, JK! status, screens, includes-. You will be prompted to create new include programs EE >ust clic/ on the 6?opy7 pushbutton or press the 6"nter7 /ey. The $ac/age screen should appear L enter the new $ac/age here, and ensure the new ?hange Re(uest is used. The appearance of the screens will not change in this program. Ma/e sure that the 6"M!T7 and 6!H!T7 function codes on your JK! are defined as type 6"7 function codes. To use the logical loc/ing mechanism, you can use the existing loc/ ob>ect 6"Q#MO !"MM7 or you can create your own. !f you create your own loc/ ob>ect, it should be named 6"Q#MO !"MM7 ,where 6MM7 is the last two digits of your logon id-. Remember that a loc/ ob>ect is an &*&$ +ictionary ob>ect. &dd the following functionality to the program4 5creen 8111 !f the user clic/s on the 6"xit7 pushbutton ,which in.o/es the 6"M!T7 function code of type 6"7-, the transaction should be terminated e.en before the automatic screen field chec/s occur. !f the user clic/s on the 6"dit Record7 or 6&dd Record7 pushbutton and the record is currently loc/ed, an error message should be issued ,e.g. This record is currently loc/ed%-. !f this error message is displayed, the year and category fields should be open for input. 5creen 8113 !f the user clic/s on the 6Modify Record7 pushbutton ,which in.o/es the 6MO+!7 function code-4 ,3- The record will be updated in the database if the user had clic/ed on the 6"dit Record7 pushbutton ,6"+!T7 function code- on the initial screen or ,0- The record will be inserted into the database if the user had clic/ed on the 6&dd Record7 pushbutton ,6&++7 function code- on the initial screen.
$age 3F March 0112

SAP Development ABAP Training

SAP R/3 Release 4.7 Online Programming: Exercises SAP Development ABAP Training

!f the update:insert is successful, the changes should be confirmed to the database and the user should be ta/en bac/ to screen 8111. !f the update:insert is not successful, the changes should be canceled and the user should be ta/en bac/ to screen 8111. You can display appropriate messages for each scenario, but ma/e sure that the user can return to the initial screen ,i.e. do not use an error or abend message-. !f the user clic/s on the 6"xit7 pushbutton ,which in.o/es the 6"M!T7 function code of type 6"7-, the transaction should be terminated e.en before the automatic screen field chec/s occur. !f the user clic/s on the 6!nitial 5creen7 pushbutton ,which in.o/es the 6!H!T7 function code of type 6"7-, the user should be ta/en bac/ to screen 8111 e.en before the automatic screen field chec/s occur. *efore the user returns to screen 8111, the record should be unloc/ed. Remember that you will ha.e more than one way bac/ to the initial screen.

$age 3=

March 0112

SAP R/3 Release 4.7 Online Programming: Exercises Testing Section


N This section will only test for new functionality ,3- !f the user clic/s on the 6"xit7 pushbutton on screen 8111 or 8113, is the transaction terminated before any automatic screen field chec/s occurB ,expected 9 yes-

SAP Development ABAP Training

,0- !f the user clic/s on the 6!nitial 5creen7 pushbutton on screen 8113, is the user returned to screen 8111 before any automatic screen field chec/s occurB ,expected 9 yes-

,A- &re records being loc/ed and unloc/ed correctlyB ,expected 9 yesG& good way to test this one is to ha.e multiple sessions running the transaction. 'ith multiple transactions, you can try to edit:add a record that is currently loc/ed. Once you determine that the loc/ing% is wor/ing, ma/e sure that the records are being unloc/ed%.I

,C- !s the record being updated:insertedB ,expected 9 yes-

$age 38

March 0112

SAP R/3 Release 4.7 Online Programming: Exercises + apter 82- Programming Section
Online program name4 5&$MYO$xxF ,where 6xx7 is the last two digits of your logon idTransaction code4 YO$xxF !nitial screen4 8111 5creen 81114 next screen 9 8111 5creen 81134 next screen 9 8113 5creen 8110 ,dialog box-4 next screen 9 8110 5creen 811A4 next screen 9 8111 The purpose of this exercise is for you to learn how to create and use a stepEloop bloc/. 'o! s o!l$ not co$e t is program !ntil *o! ave ca!g t !p on *o!r ot er exercises. Oowe.er, you should understand the concept of stepEloops before going bac/ to your other exercises. 'o! s o!l$ cop* *o!r SAP6'OPxx4 program to create program SAP6'OPxx7. First create the new $ac/age, then select program 5&$MYO$xxD in the Ob>ect *rowser and clic/ on the copy pushbutton ,or use the +e.elopment ob>ect < ?opy% menu path-. Ma/e sure you select all the components to copy ,documentation, .ariants, JK! status, screens, includes-. You will be prompted to create new include programs EE >ust clic/ on the 6?opy7 pushbutton or press the 6"nter7 /ey. The new $ac/age screen should appear L enter the new $ac/age here, and ensure the new ?hange Re(uest is used. 5creen 8111 &dd the 6'inners for Year7 pushbutton to the JK!. This pushbutton should be assigned the 6@OO$7 function code. !f the user clic/s on the 6'inners for Year7 pushbutton, the user should be ta/en to screen 811A to display all the winners for the specified year. !f no winners exist for the specified year, an appropriate error message should be issued.

SAP Development ABAP Training

$age 01

March 0112

SAP R/3 Release 4.7 Online Programming: Exercises SAP Development ABAP Training

5creen 811A You will ha.e to create this new screen. !t is a normal% type screen and its next screen% attribute should be 8111. This screen should use the JK! status 6FOKRTO7 with the function code 6!H!T7. The text label and template for the year should be painted% from the YMO !"#O$% table. The category:winner bloc/ should be created as a fixed step loop bloc/. The .alues in the stepEloop bloc/ are the winners in each category for the year specified on the initial screen. Ho processing ta/es place on this screen. The appropriate .alues are >ust displayed to the user. &ll fields on this screen are display only fields. !f the user presses the 6"nter7 /ey, the user should be ta/en bac/ to screen 8111. !f the user clic/s on 6!nitial 5creen7 pushbutton, the user should be ta/en bac/ to screen 8111.

$age 03

March 0112

SAP R/3 Release 4.7 Online Programming: Exercises SAP Development ABAP Training

Testing Section
N This section will only test for new functionality ,3- !f the user clic/s on the 6'inners for Year7 pushbutton on screen 8111 and at least one record exists for the specified year, is the user ta/en to screen 811AB ,expected 9 yes,0- !f the user clic/s on the 6'inners for Year7 pushbutton on screen 8111 and no records exist for the specified year, is the appropriate error message issuedB ,expected 9 yes-

,A- &re the correct .alues being placed in the stepEloop fieldsB ,expected 9 yes-

,C- !f the user presses the 6"nter7 /ey on screen 811A, is the user ta/en bac/ to screen 8111B ,expected 9 yes-

+ apter 84- Programming Section


Online program name4 5&$MYO$xx= ,where 6xx7 is the last two digits of your logon idTransaction code4 YO$xx= !nitial screen4 8111 5creen 81114 next screen 9 8113 5creen 81134 next screen 9 8113 5creen 8311 ,5ubscreen-4 next screen 9 8311 !n this exercise, you will create and program which uses a tabstrip control that changes 0it t e application server. Your tabstrip control will return fields from the YMO !"#O$ table based on a year that the user enters in screen 8111 and which tab is selected in screen 8113. &ll your tabs will display the same fields in subscreen 8311.

$age 00

March 0112

SAP R/3 Release 4.7 Online Programming: Exercises Screen 7999 SAP Development ABAP Training

Screen 7998

$age 0A

March 0112

SAP R/3 Release 4.7 Online Programming: Exercises SAP Development ABAP Training

+ apter 84- Programming Section


Online program name4 5&$MYO$xx8 ,where 6xx7 is the last two digits of your logon idTransaction code4 YO$xx8 !nitial screen4 8111 5creen 81114 next screen 9 8113 5creen 81134 next screen 9 8113 5creen 8311 ,5ubscreen-4 5creen 8313 ,5ubscreen-4 !n this exercise, you will create and program which uses a tabstrip control that changes 0it o!t t e application server. Your tabstrip control will return fields from the YMO !"#O$ table based on the year and category that the user enters in screen 8111. Remember, all field held within the tabstrip must be populated before the tabstrip screen is displayed. !n your tabstrip, you will ha.e two tabs. One will hold the information of a winner for a specific category, while the other holds nominee information.
March 0112

$age 0C

SAP R/3 Release 4.7 Online Programming: Exercises


8111

SAP Development ABAP Training

8113 ,'inner-

$age 02

March 0112

SAP R/3 Release 4.7 Online Programming: Exercises SAP Development ABAP Training

8113 ,Hominees-

+ apter 87 :Ta#le +ontrol; Programming Section


Online program name4 5&$MYO$xx31 ,where 6xx7 is the last two digits of your logon idTransaction code4 YO$xx31 !nitial screen4 8111 5creen 81114 next screen 9 8113 5creen 81134 next screen 9 8113 !n this exercise, you will create a program that uses a table control. Your table control will display ,in screen 8113-, fields from the YMO !"#O$ table based on a year that the user enters in screen 8111.
$age 0D March 0112

SAP R/3 Release 4.7 Online Programming: Exercises SAP Development ABAP Training

The YMO !"#O$ fields to display in screen 8113 are4 Y"&R?, ?&T"JORY, '!HH"R, H&M"3, H&M"0, H&M"A, H&M"C and H&M"2. The year and category columns are fixed columns, while the others are scrollable. 8111 For this screen7s $&!, you should select records for the chosen year and put those records in an internal table.

$age 0F

March 0112

SAP R/3 Release 4.7 Online Programming: Exercises


8113 ?hoose the table control siRe so that it can show two records. !n the $*O for this screen, you should loop through the internal table containing the records and display them in the table control.

SAP Development ABAP Training

$age 0=

March 0112

S-ar putea să vă placă și