You are on page 1of 18

Steps for Creation of Business Component using SAP TAO BPT QTP and QC for SD Module

2009

Steps for Creation Of Business Component Using SAPTAO, BPT, QC and QTP for SD MODULE

Do"ument

ame)

Aut!ori+ed ,-)

Steps for Creation of Business Component Using SAP TAO, QTP, QC, BPT for SDModule 1 Nagavalli B N

Ver. *e()

1 !!

Date) 2$%0&%2009

Revision

istor!" o. Date 2$%0&%2009 Aut!or Nagavalli BN Des"ription 'nitial (ersion

Ver. #.0

Center BC 6 Business Component BP 6 Business Pro"ess 2 .de"lare t!at t!is do"ument is .ased on m-%our personal e/perien"es and%or e/perien"es of m-%our pro0e"t mem. &agava''i B & Pro1e0t Detai's 2 Pro1e0t$s% invo'ved" B4MSAP'V 2 )3 P'atform" A 2 S)3 Environment" 2 App'i0ation T!pe" SAP 2 Pro1e0t T!pe" 5pgrade Target readers" All 4e!(ords" SAP 5 S-stems Appli"ations and Produ"ts in Data Pro"essing ERP 6 6nterprise *esour"e Planning SAP TAO 6 S-stems Appli"ations and Produ"ts in Data Pro"essing Test A""eleration and Optimi+ation SD 6 Sales and Distri.ers.est of m-%our 1no2ledge3 t!is do"ument does not "ontain an.t# -une.ot!er indi(idual or organi+ation in"luding t!e "ustomers of 'nfos-s.. +. To t!e ./ De0'aration '%..ution R7Q 6 *e7uest for Quotation BPT 6 Business Pro"ess Testing QTP 6 Qui"1 Test Professional QC 6 Qualit.Steps for Creation of Business Component using SAP TAO BPT QTP and QC for SD Module 2009 Aut#or$s%" &agava''i B & Date (ritten $MM)DD)**%" +.e !ere.material t!at infringes t!e "op-rig!ts of an.

................................................$ '.. QC and QTP for SD MODULE.............$ $.Steps for Creation of Business Component using SAP TAO BPT QTP and QC for SD Module 2009 Contents" Steps for Creation Of Business Component Using SAPTAO. " "................. SALES O#DE#!...................................................1- 3 ............................................................. BPT............................................1 CO TE TS!............. BE E%&TS O% AUTOMAT&O !........................................................................................' (....... AUTOMAT&O O% SALES O#DE# C#EAT&O !............................................................................. STEPS TO C#EATE T)E *A+1 COMPO E T!................ #E%E#E CES!............................' ..

le3 "ost effe"ti(e3 repeata. Sa'es Order" T!e sales order defines 2!o t!e "ustomer is3 2!at pri"ing t!e "ustomer is to re"ei(e3 2!en t!e order is to .le3 reusa.and issue t!e goods • V90# : Create a 'n(oi"e • V902 ? *elease t!e in(oi"e to a""ounting 8. Sa'es and Distri:ution $SD%" SAP SD stands for Sales and Distri.pro"essing3 7uotation pro"essing3 sales order pro"essing3 deli(er. T!is !elps to optimi+e tas1s and a"ti(ities "arried out in sales3 deli(er.and .e deli(ered3 and is t!e . 4 .etter 7ualit-. Sales order "reation in(ol(es t!e follo2ing transa"tions in t!e standard SAP) VA0#: Creating t!e sales order 2it!out referen"e V>0# ? Creating t!e deli(er.do"uments and .e deli(ered3 2!at material and !o2 mu"! is to . Automated testing is more relia.illing do"uments.used fun"tional modules are) • 9inan"e and Controls • 4uman *esour"e • Sales and Distri.e automated using SAP TAO3 BPT3 QTP and QC. 't also in"ludes • *9Q • Sales orders • Pri"ing • Pi"1ing <and ot!er 2are!ouse pro"esses= • Pa"1ing • S!ipping Some of t!e main SAP SD transa"tions are) • VA0# : Create Customer%Sales Order • V>0# : Create a Deli(er• VA08 : Displa.Steps for Creation of Business Component using SAP TAO BPT QTP and QC for SD Module 2009 #8 9&TRODUCT9O&" SAP *%8 is an 6*P soft2are pa"1age implementation designed to "oordinate all t!e 1eelements re7uired to "omplete t!e .illing and sales information s-stem.elements are) presales support3 in7uir.ution and t!is is t!e module 2!i"! is used to manage "ustomer:fo"used a"ti(ities3 from selling to deli(er-.asis for all follo2ing do"uments in"luding t!e deli(er.2it! referen"e to sales order V>02 ? Pi"1ing and goods issue V90# ? Creating t!e in(oi"e against t!e deli(erV902 ? *eleasing t!e in(oi"e to t!e a""ounting T!e sales order "reation "an . T!e most 2idel. T!is is arranged into different fun"tional modules "o(ering t!e t-pi"al fun"tions in pla"e in an organi+ation.ution • Material Management • Produ"tion Planning • Qualit.usiness pro"ess.a Order • V>02 : C!ange Customer Deli(er.e. .Management • Plant maintenan"e 2. @.illing.pro"essing3 .le3 and fast and pro(ides . Benefits of Automation" Automation is t!e use of strategies3 tools and artifa"ts t!at augment or redu"e t!e need of manual or !uman in(ol(ement or intera"tion in uns1illed3 repetiti(e or redundant tas1s.

.< Component" Step#) 'nspe"t all t!e s"reens re7uired for VA0# transa"tion using TAO inspe"t feature.usiness "omponent for automation using SAP TAO3 QTP and QC. T!e transa"tions in(ol(ed in t!is test "ase are) Test Case 'D SDA00#A0# Test Case ame Sales order for t!e domesti" sales of standard goods 2!i"! is 2are!ouse managed.gi(ing all t!e user "redentials for SAP "onne"tion and QC and QTP "onne"tion • Sele"t t!e 'nspe"t ta. &. and "li"1 on Add transa"tion .Steps for Creation of Business Component using SAP TAO BPT QTP and QC for SD Module 2009 $.utton • 'n t!e pop up 2indo2 gi(e t!e transa"tion name as BVA0#C and "li"1 O. S"enario 'd SDA00# S"enario ame Sales order for t!e domesti" sales of standard goods 2!i"! is 2are!ouse managed. 5sing TAO3 it ma/imi+es t!e testing deplo-ment . • Conne"t to TAO . 't also !elps in reuse and maintenan"e of t!e s"ripts de(eloped.A.usiness "omponents. 5 .er SDA00#A0# Test Case ame Sales order for t!e domesti" sales of standard goods 2!i"! is 2are!ouse managed.. Automation of Sa'es Order Creation" Consider t!e s"enario 2!erein 2e need to "reate a sales order for t!e domesti" sales of standard goods 2!i"! is 2are!ouse managed. T!e test "ases under t!is s"enario are) S"enario 'd SDA00# S"enario ame Test "ase 'D SDA00#A0# Test Case um. SAP TAO) T!is is a Test A""elerating and Optimi+ation tool 2!i"! streamlines t!e "reation and maintenan"e of .uild or e/e"ute t!e s"ripts. Sales order for t!e domesti" sales of standard goods 2!i"! is 2are!ouse managed. Steps to 0reate t#e . Transa"tions VA0# V>0# >T08 >T#2 V>02 V90# V902 'n t!is do"ument 2e s!all see !o2 to "reate t!e VA0# .redu"ing t!e time re7uired to .

'n"ase 2e !a(e to add some s"reens manuall. 6 .Steps for Creation of Business Component using SAP TAO BPT QTP and QC for SD Module 2009 'nspe"t Ta. in SAP TAO Transa"tion Code ame Add Transa"tion Button 9ig S!o2s t!e details of 'nspe"t Ta.utton to inspe"t all t!e s"reens Cli"1 on 'nspe"t Button to 'nspe"t t!e s"reens.utton. in SAP TAO • • • • T!e s"reens 2ill appear in t!e S"reen list of Transa"tion se"tion.2e "an do it .."li"1ing on t!e BAdd S"reens Manuall-D . Cli"1 on Sele"t all .

Steps for Creation of Business Component using SAP TAO BPT QTP and QC for SD Module 2009 Sele"t All Button To add s"reens manuall. Status Bar 9ig s!o2s t!e Progress on 'nspe"tion and its *esult in Status .if not found 'nspe"t Button 9ig s!o2s details to add s"reen manuallStep2) On"e t!e inspe"tion pro"ess is done 2e get a status .ar message sa-ing B'nspe"tion Pro"ess 6ndedC.ar 7 .

T!ese fun"tions "an .Steps for Creation of Business Component using SAP TAO BPT QTP and QC for SD Module 2009 All t!e inspe"ted s"reens 2ill .rar-.uilt Components for "ommonl.usiness pro"ess as per t!e manual test "ase .e a""essed from t!e follo2ing pat! in QC) Components Ta.. SAP TAO pro(ides some in.e e/ported to QC under t!e folder stru"ture s!o2n in figure 'nspe"ted S"reens under VA0# Component 9ig s!o2s t!e pat! for 'nspe"ted s"reens in QC for VA0# Step8) 'n t!e Test Plan Area3 under t!e spe"ifi" module folder3 "reate t!e . :E Components: *T> :E SAP *8 :E A"tions :E Foto Transa"tion 8 .pulling in t!e re7uired "omponents.used a"tions su"! as Press 6nter3 Sele"t *o2 et" 2!i"! are present in TAO li.

uilt Components pro(ided .TAO Step@) Pull in t!e re7uired s"reens <'nspe"ted t!roug! TAO under VA0# "omponent= for forming t!e VA0#ASalesAOrder Business pro"ess as s!o2n ..Steps for Creation of Business Component using SAP TAO BPT QTP and QC for SD Module 2009 9ig s!o2s t!e 'n.elo2. 9 .

le and used in t!e a.utionAC!ann elA6dit Di(isionAedit SalesAOffi"eA6dit SalesAFroupA6dit PressAButton VA0#A@G0#A@0Su.erA6dit Parameter OrderT-peAi SalesOrgAi DistrC!annelAi Di(isionAi SalesAOffi"eAi SalesAFroupAi ButtonA ame SoldAToAPart-Ai S!ipAToAPart-Ai POA um. s"reenDo"umentPa rtnerino(er(ie2s"r een VA0#A@02#A@04ea derSu.s"reenforO( Create STD Sales Order) O(er(ie2 SoldtoPart-A6dit S!iptoPart-A6dit PO um.o(e mentioned test "ase) Business Component Appli"ation S"reen ame Create Sales Order 'nitial S"reen Appli"ation 9ield ame OrderAT-peA6dit SalesAOrgani+ation A6dit Distri.Steps for Creation of Business Component using SAP TAO BPT QTP and QC for SD Module 2009 S"reens 'nspe"ted from TAO <BC= T!e list of "omponents t!at needs to .erAi ame Parame ter Value ame VA0#A0#0#ASales do"'nitials"reenCre ate 6nter 10 .usiness pro"ess 2!i"! is reusa.e pulled to ma1e t!e VA0#ASalesAOrder .

leA ameAi *efAColAnameAi StrA. s"reenO(er(ie2TC 6ntr-Default *e7ADeli(ADateA6d it Ta.ellAMa ster ASetCellData 11 .ellMaster ColumnA ameAi .ellAMasterAValueAi 6nter Displado" !eader details Partner s PartnerColA.Steps for Creation of Business Component using SAP TAO BPT QTP and QC for SD Module 2009 er(ie2s"reen>arge PO DateA6dit VA0#A@@@0A@0Su.A ame Ta.leA ameAi *efAColAnameAi StrAHo.Asele"t SetCellData"User defined fun#tion$ PartnerColASalesA6 mplo-eeASetCellDa ta PartnerColAHo.AMasterA(alueAi Ta.leA ameAi *o2Ai ColumnA ameAi StorageA>o"ationA' Ta.leAColumnA SetCellData POADateAi *e7ADeli(ADateAi *o2Ai Ta. s"reenSalesO(er(i e2Default VA0#A@900A@0Su.Master ColumnA ameAi Ho.leA ameAi *o2Ai ColumnA ameAi MaterialAi Ta.AMa sterASetCellData Ta.leA ameAi *o2Ai ColumnA ameAi *outeAi ButtonA ame ButtonA ame PressAButton PressAButton VA0#A#000AManu alAAddition Create STD Sales Order) 4eader Data Ta.leA ameAi *o2Ai ColumnA ameAi Quantit-Ai Ta.leASele"tA*o2 Ta.leA ameAi *efAColAnameAi StrASales6mplo-ee ColumnA ameAi SalesA6mplo-eeA(al ueAi Ta.leA ameAi *o2Ai ColumnA ameAi PlantAi Ta.

s" reenConditionS"re en2it!Ta.leASele"tA*o2 PressAButton VA0#A&20#ASu.leA ameAi *efAColumnA ameAi Ta.le ameAi *o2Ai Column ameAi AmountAValueAi Ta.Steps for Creation of Business Component using SAP TAO BPT QTP and QC for SD Module 2009 PressAButton PressAButton VA0#A@900A@0Su. s"reenO(er(ie2TC 6ntr-Default Create STD Sales Order) O(er(ie2 Ta.utton StatusABarAMessag e 6nter Ba"1 Sa(e SA>6SA O*D6* A 5MB 6* 12 .leContro Create STD Sales Order) 'tem Data FetA9irstA6mpt-A* o2 <5ser Defined 9un"tion= AmountA SetCellData ButtonA ame ButtonA ame Ta. s"reenO(er(ie2TC 6ntr-Default Create STD Sales Order) O(er(ie2 Sele"tAMenu PressA.leA ameA' *o2Ai ButtonA ame Ta.le ameAi *o2Ai Column ameAi CnT-AValueAi ButtonA ame ButtonA ame MenuAPat!Ai ButtonA ame Targer9ieldAi 6nter Ba"1 'tem Conditi ons CnT-ASetCellData PressAButton PressAButton VA0#A@900A@0Su.

T!e ne2 "omponent "ontains all t!e Code and s"reen elements from t!e test s"ript.e omitted in t!e "onsolidated "omponent and is represented as 6MPTI parameter. 13 .le and more ro.usiness pro"ess more reusa. B.usiness pro"ess 2!i"! !as to . To "onsolidate in TAO3 Cli"1 on t!e "onsolidate ta..e "onsolidated as "onsolidating "reates one "omponent from t!e elements in our test s"ript.t!ose parameters 2it! input (alues and t!e rest 2ill . and sele"t t!e ."onsolidating 2e ma1e our .ust. Before "onsolidation ensure t!at all t!e re7uired inputs parameters must !a(e some input (alue as TAO 2ill "onsolidate onl.e "onsolidated from t!e folder stru"ture under BSele"t .Test PlanC se"tion. T!en "li"1 on t!e Consolidate Button.Steps for Creation of Business Component using SAP TAO BPT QTP and QC for SD Module 2009 Business Component 'nput Value ame 9ig s!o2s t!e s"reens t!at are pulled to form VA0# "omponent Step$) On"e all t!e re7uired s"reens%"omponents are pulled to form t!e flo2 of VA0# as per t!e test "ase3 t!is !as to .

e "onsolidated Consolidate Button 9ig s!o2s t!e Consolidation Ta. 9ig s!o2s t!e "onfirmation pop up for Consolidation 14 .utton.Steps for Creation of Business Component using SAP TAO BPT QTP and QC for SD Module 2009 Consolidate Ta. Test <BP= to . Cli"1 on t!e Ies . s"reen in SAP TAO A pop up appears as1ing for Confirmation for "onsolidating t!e sele"ted test.

T!e pat! for SAPA9ullABPJs in QC is gi(en in SAP TAO under Configuration lin1 :E Consolidate Ta.ar Message 9ig s!o2s t!e status of Consolidation After "onsolidation3 t!is . 15 .. Status .Steps for Creation of Business Component using SAP TAO BPT QTP and QC for SD Module 2009 After su""essful "onsolidation3 it s!o2s BDoneC in t!e status .e present in t!e SAPA9ullABPs in QC under Business Components Ta.usiness pro"ess 2ill ..ar.

Steps for Creation of Business Component using SAP TAO BPT QTP and QC for SD Module 2009 9ig s!o2s t!e pat! for SAP 9ull BPJs in SAP TAO SAP 9ull BPJs Consolidated Component 9ig s!o2s t!e "onsolidated "omponent under SAPA9ullABPJs in QC After "onsolidation t!e parameters 2!i"! did not !a(e an.elo2) 16 .6MPTI parameter as s!o2n ..(alues are repla"ed .

ilit-. 17 .Steps for Creation of Business Component using SAP TAO BPT QTP and QC for SD Module 2009 6mptParameter Consolidated Component 9ig s!o2s t!e 6mpt.e tested using QTP.parameter After "onsolidation3 t!is . >i1e2ise 2e "an ma1e t!e ot!er transa"tions present in t!e a.e used%reused in an.and pro(iding more reusa.test "ase 2!i"! !as VA0# as one of its "omponents3 !en"e impro(ing t!e 7ualit.o(e gi(en test "ase and later pull t!ese transa"tions in a""ordan"e 2it! t!e manual test "ase and ma1e a "omplete end to end s"ript 2!i"! "an .usiness pro"ess "an .

G.Steps for Creation of Business Component using SAP TAO BPT QTP and QC for SD Module 2009 9ig s!o2s end to end test "ase using different transa"tion "odes <BPJs= T!is "ompletes t!e end:to end "reation of Business pro"ess VA0#ASalesAOrder 2!i"! is reused a"ross test "asesK also a"ross modules. Referen0es" #= SAP TAO 5ser Fuide 2= QTP 4elp 8= QC 5ser Fuide 18 .