Sunteți pe pagina 1din 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

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)**%" +,t# -une, +../ De0'aration '%.e !ere,- 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,ers. To t!e ,est of m-%our 1no2ledge3 t!is do"ument does not "ontain an- material t!at infringes t!e "op-rig!ts of an- ot!er indi(idual or organi+ation in"luding t!e "ustomers of 'nfos-s. &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,ution R7Q 6 *e7uest for Quotation BPT 6 Business Pro"ess Testing QTP 6 Qui"1 Test Professional QC 6 Qualit- Center BC 6 Business Component BP 6 Business Pro"ess

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, BPT, QC and QTP for SD MODULE............................................................................................................1

CO TE TS!................................................................................... " ". SALES O#DE#!..........................................................................$ $. 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!..........................................................................1-

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 ,usiness pro"ess. 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. T!e most 2idel- used fun"tional modules are) 9inan"e and Controls 4uman *esour"e Sales and Distri,ution Material Management Produ"tion Planning Qualit- Management Plant maintenan"e 2. Sa'es and Distri:ution $SD%" SAP SD stands for Sales and Distri,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-. T!is !elps to optimi+e tas1s and a"ti(ities "arried out in sales3 deli(er- and ,illing. ;e- elements are) presales support3 in7uir- pro"essing3 7uotation pro"essing3 sales order pro"essing3 deli(er- pro"essing3 ,illing and sales information s-stem. '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- a Order V>02 : C!ange Customer Deli(er- and issue t!e goods V90# : Create a 'n(oi"e V902 ? *elease t!e in(oi"e to a""ounting 8. 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 ,e deli(ered3 2!at material and !o2 mu"! is to ,e deli(ered3 and is t!e ,asis for all follo2ing do"uments in"luding t!e deli(er- do"uments and ,illing do"uments. 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- 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 ,e automated using SAP TAO3 BPT3 QTP and QC. @. 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. Automated testing is more relia,le3 "ost effe"ti(e3 repeata,le3 reusa,le3 and fast and pro(ides ,etter 7ualit-.

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

2009

$. 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. S"enario 'd SDA00# S"enario ame 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,er SDA00#A0# Test Case ame Sales order for t!e domesti" sales of standard goods 2!i"! is 2are!ouse managed.

Sales order for t!e domesti" sales of standard goods 2!i"! is 2are!ouse managed.

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. 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# ,usiness "omponent for automation using SAP TAO3 QTP and QC. SAP TAO) T!is is a Test A""elerating and Optimi+ation tool 2!i"! streamlines t!e "reation and maintenan"e of ,usiness "omponents. 5sing TAO3 it ma/imi+es t!e testing deplo-ment ,- redu"ing t!e time re7uired to ,uild or e/e"ute t!e s"ripts. 't also !elps in reuse and maintenan"e of t!e s"ripts de(eloped. &. Steps to 0reate t#e ;A.< Component" Step#) 'nspe"t all t!e s"reens re7uired for VA0# transa"tion using TAO inspe"t feature. Conne"t to TAO ,- 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 ,utton 'n t!e pop up 2indo2 gi(e t!e transa"tion name as BVA0#C and "li"1 O;

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, in SAP TAO T!e s"reens 2ill appear in t!e S"reen list of Transa"tion se"tion. Cli"1 on Sele"t all ,utton to inspe"t all t!e s"reens Cli"1 on 'nspe"t Button to 'nspe"t t!e s"reens. 'n"ase 2e !a(e to add some s"reens manuall- 2e "an do it ,- "li"1ing on t!e BAdd S"reens Manuall-D ,utton.

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- 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.

Status Bar

9ig s!o2s t!e Progress on 'nspe"tion and its *esult in Status ,ar

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 ,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 ,usiness pro"ess as per t!e manual test "ase ,- pulling in t!e re7uired "omponents. SAP TAO pro(ides some in,uilt Components for "ommonl- used a"tions su"! as Press 6nter3 Sele"t *o2 et" 2!i"! are present in TAO li,rar-. T!ese fun"tions "an ,e a""essed from t!e follo2ing pat! in QC) Components Ta, :E Components: *T> :E SAP *8 :E A"tions :E Foto Transa"tion

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

2009

9ig s!o2s t!e 'n,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 ,elo2.

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 ,e pulled to ma1e t!e VA0#ASalesAOrder ,usiness pro"ess 2!i"! is reusa,le and used in t!e a,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,utionAC!ann elA6dit Di(isionAedit SalesAOffi"eA6dit SalesAFroupA6dit PressAButton VA0#A@G0#A@0Su, 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,erA6dit Parameter OrderT-peAi SalesOrgAi DistrC!annelAi Di(isionAi SalesAOffi"eAi SalesAFroupAi ButtonA ame SoldAToAPart-Ai S!ipAToAPart-Ai POA um,erAi ame Parame ter Value

ame

VA0#A0#0#ASales do"'nitials"reenCre ate

6nter

10

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, s"reenSalesO(er(i e2Default VA0#A@900A@0Su, s"reenO(er(ie2TC 6ntr-Default *e7ADeli(ADateA6d it Ta,leASele"tA*o2 Ta,leAColumnA SetCellData POADateAi *e7ADeli(ADateAi *o2Ai Ta,leA ameAi *o2Ai ColumnA ameAi PlantAi Ta,leA ameAi *o2Ai ColumnA ameAi MaterialAi Ta,leA ameAi *o2Ai ColumnA ameAi Quantit-Ai Ta,leA ameAi *o2Ai ColumnA ameAi StorageA>o"ationA' Ta,leA ameAi *o2Ai ColumnA ameAi *outeAi ButtonA ame ButtonA ame

PressAButton PressAButton VA0#A#000AManu alAAddition Create STD Sales Order) 4eader Data

Ta,Asele"t SetCellData"User defined fun#tion$ PartnerColASalesA6 mplo-eeASetCellDa ta PartnerColAHo,AMa sterASetCellData

Ta,A ame Ta,leA ameAi *efAColAnameAi StrASales6mplo-ee ColumnA ameAi SalesA6mplo-eeA(al ueAi Ta,leA ameAi *efAColAnameAi StrAHo,Master ColumnA ameAi Ho,AMasterA(alueAi Ta,leA ameAi *efAColAnameAi StrA.ellMaster ColumnA ameAi .ellAMasterAValueAi

6nter Displado" !eader details Partner s

PartnerColA.ellAMa ster ASetCellData

11

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,leASele"tA*o2 PressAButton VA0#A&20#ASu,s" reenConditionS"re en2it!Ta,leContro Create STD Sales Order) 'tem Data FetA9irstA6mpt-A* o2 <5ser Defined 9un"tion= AmountA SetCellData

ButtonA ame ButtonA ame Ta,leA ameA' *o2Ai ButtonA ame Ta,leA ameAi *efAColumnA ameAi Ta,le ameAi *o2Ai Column ameAi AmountAValueAi 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, s"reenO(er(ie2TC 6ntr-Default Create STD Sales Order) O(er(ie2 Sele"tAMenu PressA,utton StatusABarAMessag e

6nter Ba"1

Sa(e SA>6SA O*D6* A 5MB 6*

12

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 as "onsolidating "reates one "omponent from t!e elements in our test s"ript. T!e ne2 "omponent "ontains all t!e Code and s"reen elements from t!e test s"ript. B- "onsolidating 2e ma1e our ,usiness pro"ess more reusa,le and more ro,ust. Before "onsolidation ensure t!at all t!e re7uired inputs parameters must !a(e some input (alue as TAO 2ill "onsolidate onl- t!ose parameters 2it! input (alues and t!e rest 2ill ,e omitted in t!e "onsolidated "omponent and is represented as 6MPTI parameter. To "onsolidate in TAO3 Cli"1 on t!e "onsolidate ta, and sele"t t!e ,usiness pro"ess 2!i"! !as to ,e "onsolidated from t!e folder stru"ture under BSele"t ,- Test PlanC se"tion. T!en "li"1 on t!e Consolidate Button.

13

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

2009

Consolidate Ta,

Test <BP= to ,e "onsolidated

Consolidate Button

9ig s!o2s t!e Consolidation Ta, s"reen in SAP TAO A pop up appears as1ing for Confirmation for "onsolidating t!e sele"ted test. Cli"1 on t!e Ies ,utton.

9ig s!o2s t!e "onfirmation pop up for Consolidation

14

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 ,ar.

Status ,ar Message

9ig s!o2s t!e status of Consolidation After "onsolidation3 t!is ,usiness pro"ess 2ill ,e present in t!e SAPA9ullABPs in QC under Business Components Ta,. T!e pat! for SAPA9ullABPJs in QC is gi(en in SAP TAO under Configuration lin1 :E Consolidate Ta,.

15

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- (alues are repla"ed ,- 6MPTI parameter as s!o2n ,elo2)

16

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- parameter After "onsolidation3 t!is ,usiness pro"ess "an ,e used%reused in an- test "ase 2!i"! !as VA0# as one of its "omponents3 !en"e impro(ing t!e 7ualit- and pro(iding more reusa,ilit-. >i1e2ise 2e "an ma1e t!e ot!er transa"tions present in t!e a,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 ,e tested using QTP.

17

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.

G. Referen0es" #= SAP TAO 5ser Fuide 2= QTP 4elp 8= QC 5ser Fuide

18

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