The ABAP Report Wizard was developed on NetWeaver 7.0. It leverages the ALV O!e"t #odel whi"h was introd$"ed in NetWeaver %00&' so it sho$ld wor( on that release as well. )n*ort$natel+' this sol$tion will not wor( on releases prior to NetWeaver %00&. The *irst step is to i,port the -APlin( n$gget *ile into +o$r s+ste,. I* +o$ do not have -APlin( installed on +o$r s+ste,' +o$ "an download it *ro, http.//"ode.google."o,/p/saplin(/. 0o$ will also need the *ollowing pl$g1ins whi"h "an e downloaded *ro, http.//"ode.google."o,/p/saplin(1 pl$gins/. Re2$ired Pl$g1ins 3$n"tion 4ro$ps #essage 5lasses 6i"tionar+ O!e"ts 6o"$,entation On"e +o$ have -APlin( and the re2$ired pl$g1ins installed' +o$ "an r$n the e7e"$tale progra,' 8-APLIN9. -ele"t the radio$tton *or :I,port N$gget;' and sele"t the n$gget *ile *ro, the *ile lo"ation. Lastl+' "li"( the :<7e"$te; $tton' or hit 3=. >ope*$ll+' the *ollowing s"reen will +ield all s$""ess ,essages' signi*ied + the green lights. Noti"e that ,ost o* the i,ported o!e"ts *ollow a si,ilar na,ing "onvention' and hope*$ll+ these o!e"ts do not "on*li"t with e7isting o!e"ts in +o$r s+ste,. 1.2 Activation of Imported Objects Ne7t' +o$ need to a"tivate all o!e"ts whi"h have een i,ported. O* "o$rse' there are a *ew wa+s to do this' $t in order to ins$re a "lean a"tivation' *ollow these steps. ?@ 4o to SE8' and sele"t :Ina"tive O!e"ts; *ro, the o!e"t navigator drop down. %@ Open the 6ata <le,ents node o* the o!e"t tree elow. -ele"t all data ele,ents + "li"(ing on the *irst one' holding down ->I3T and "li"(ing the last' then right1"li"( and "hoose' :A"tivate;. A@ Ne7t' do the sa,e *or the -tr$"t$res and Tale T+pes at the sa,e ti,e' + sele"ting In the sa,e wa+' "li"( the *irst' hold ->I3T and "li"( the last' then right1"li"( and :A"tivate;. &@ Lastl+' +o$ "an now a"tivate the 3$n"tion 4ro$p and the 5lasses' si,pl+ sele"t all' and a"tivate as +o$ did with the other o!e"ts. >ope*$ll+' all o!e"ts are now a"tivated with o$t errors. 1.! Creatin" t#e Pattern In SE8' "hoose $tilities %& 'ore $tilities %& Edit Pattern %& Create Pattern. In the dialog enter' ()*EPO*+),I(A*- and "li"( the green "he"(. In the pattern editor' enter *$&$MUSTER and "li"( :-ave; and then the :Ba"(; $tton. 2.1 Startin" t#e ,i.ard Now that the pattern has een "reated' +o$ "an now $se the wizard. In SE8' p$t +o$r "$rsor on an e,pt+ line within the so$r"e "ode editor' and "li"( the pattern $tton. In the dialog' sele"t the radio$tton *or :Pattern; and enter the na,e o* the pattern as ()*EPO*+),I(A*- and "li"( the green "he"(. The wizard will then e triggered. 2.2 $sin" t#e A/AP *eport ,i.ard This *irst s"reen o* the wizard is si,pl+ *or in*or,ation p$rposes' "li"( "ontin$e to go to the *irst step o* the wizard. In this step' +o$ will de*ine the title o* the report and the data so$r"e. 0o$ "an either do a single tale read' or a tale !oin. I* +o$ sele"t :Tale;' +o$ will e as(ed to enter the na,e o* the tale. I* +o$ sele"t :Tale Boin;' +o$ will e as(ed to de*ine the tale !oin + "li"(ing the :6e*ine; $tton. When +o$ "li"( the :6e*ine; $tton' +o$ will e presented with a graphi"al !oin editor. 5li"( the :Insert Tale; i"on on the appli"ation toolar. <nter the na,e o* the *irst tale in the !oin. The tale will then e added to the displa+. Ne7t' "li"( the :Insert Tale; i"on on the appli"ation toolar again to add the se"ond tale in the !oin. Again' give the na,e o* the tale and hit enter. The graphi"al editor will then displa+ oth tales as well as the !oin "ondition etween the two. 5li"( the :Ba"(; $tton to leave the editor. 5ontin$ing to the ne7t step o* the wizard' +o$ will need to de*ine the sele"tion "riteria. This is where +o$ will de*ine what -<L<5T1OPTION- or PARA#<T<R- will e "reated in +o$r *inal progra,. B+ de*a$lt' the sele"tions' will e -<L<5T1OPTION-' +o$ ,$st "he"( the "he"(o7 *or :Para,eters; in order to swit"h to a PARA#<T<R- state,ent. 0o$ "an also de*ine the, as oligator+. 5li"( :5ontin$e; when *inished de*ining +o$r sele"tion s"reen. The ne7t step o* the wizard is to de*ine the o$tp$t *ields in +o$r report. Open the node o* the spe"i*i" tale an sele"t the *ields that +o$ want to e displa+ed in the ALV O$tp$t. 5li"( :5ontin$e; when *inished sele"ting +o$r o$tp$t *ields. The ne7t step in the wizard is to de*ine so,e options *or +o$r generated report progra,. 5$rrentl+ there is onl+ two options' event handler generation' and save la+o$t *$n"tionalit+. I* +o$ sele"t the :5reate <vent >andler; option' the wizard with then "reate a lo"al "lass *or handling events raised + the ALV 4rid. I* +o$ sele"t :Allow $ser to save the la+o$t;' the ALV la+o$t *$n"tionalit+ will e t$rned on. 5li"( :5ontin$e;. The last s"reen is a :5o,pletion; s"reen. -i,pl+ "li"( the "o,plete $tton. The re2$ired so$r"e "ode will then e written to +o$r progra,' save' a"tivate and r$n +o$r progra,. The o$tp$t will rese,le the i,age elow.