Sei sulla pagina 1di 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

Document Name:

Authorized by:

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

Ver. Rev:

1.00

Date: 25/06/2009

Revision History: Ver. No. 1.0 Date 25/06/2009 Author Nagavalli BN Description Initial version

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

2009

Author(s): Nagavalli B N Date written (MM/DD/YY): 25th June, 2009 Declaration I/We hereby declare that this document is based on my/our personal experiences and/or experiences of my/our project members. To the best of my/our knowledge, this document does not contain any material that infringes the copyrights of any other individual or organization including the customers of Infosys. Nagavalli B N Project Details Project(s) involved: BHMSAPIV H/W Platform: NA S/W Environment: Application Type: SAP Project Type: Upgrade Target readers: All Keywords: SAP - Systems Applications and Products in Data Processing ERP Enterprise Resource Planning SAP TAO Systems Applications and Products in Data Processing Test Acceleration and Optimization SD Sales and Distribution RFQ Request for Quotation BPT Business Process Testing QTP Quick Test Professional QC Quality Center BC Business Component BP Business Process

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

CONTENTS:................................................................................... 3 3. SALES ORDER:..........................................................................4 4. BENEFITS OF AUTOMATION:.......................................................4 5. AUTOMATION OF SALES ORDER CREATION:.................................5 6. STEPS TO CREATE THE VA01 COMPONENT:.................................5 7. REFERENCES:..........................................................................18

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

2009

1. INTRODUCTION: SAP R/3 is an ERP software package implementation designed to coordinate all the key elements required to complete the business process. This is arranged into different functional modules covering the typical functions in place in an organization. The most widely used functional modules are: Finance and Controls Human Resource Sales and Distribution Material Management Production Planning Quality Management Plant maintenance 2. Sales and Distribution (SD): SAP SD stands for Sales and Distribution and this is the module which is used to manage customer-focused activities, from selling to delivery. This helps to optimize tasks and activities carried out in sales, delivery and billing. Key elements are: presales support, inquiry processing, quotation processing, sales order processing, delivery processing, billing and sales information system. It also includes RFQ Sales orders Pricing Picking (and other warehouse processes) Packing Shipping Some of the main SAP SD transactions are: VA01 - Create Customer/Sales Order VL01N - Create a Delivery VA03 - Display a Order VL02N - Change Customer Delivery and issue the goods VF01 - Create a Invoice VF02 Release the invoice to accounting 3. Sales Order: The sales order defines who the customer is, what pricing the customer is to receive, when the order is to be delivered, what material and how much is to be delivered, and is the basis for all following documents including the delivery documents and billing documents. Sales order creation involves the following transactions in the standard SAP: VA01- Creating the sales order without reference VL01N Creating the delivery with reference to sales order VL02N Picking and goods issue VF01 Creating the invoice against the delivery VF02 Releasing the invoice to the accounting The sales order creation can be automated using SAP TAO, BPT, QTP and QC. 4. Benefits of Automation: Automation is the use of strategies, tools and artifacts that augment or reduce the need of manual or human involvement or interaction in unskilled, repetitive or redundant tasks. Automated testing is more reliable, cost effective, repeatable, reusable, and fast and provides better quality.

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

2009

5. Automation of Sales Order Creation: Consider the scenario wherein we need to create a sales order for the domestic sales of standard goods which is warehouse managed. Scenario Id SD_001 Scenario Name Sales order for the domestic sales of standard goods which is warehouse managed.

The test cases under this scenario are: Scenario Id SD_001 Scenario Name Sales order for the domestic sales of standard goods which is warehouse managed. Test case ID SD_001_01 Test Case Number SD_001_01 Test Case Name Sales order for the domestic sales of standard goods which is warehouse managed.

The transactions involved in this test case are: Test Case ID SD_001_01 Test Case Name Sales order for the domestic sales of standard goods which is warehouse managed. Transactions VA01 VL01N LT03 LT12 VL02N VF01 VF02

In this document we shall see how to create the VA01 business component for automation using SAP TAO, QTP and QC. SAP TAO: This is a Test Accelerating and Optimization tool which streamlines the creation and maintenance of business components. Using TAO, it maximizes the testing deployment by reducing the time required to build or execute the scripts. It also helps in reuse and maintenance of the scripts developed. 6. Steps to create the VA01 Component: Step1: Inspect all the screens required for VA01 transaction using TAO inspect feature. Connect to TAO by giving all the user credentials for SAP connection and QC and QTP connection Select the Inspect tab and click on Add transaction button In the pop up window give the transaction name as VA01 and click OK

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

2009

Inspect Tab in SAP TAO

Transaction Code Name

Add Transaction Button

Fig Shows the details of Inspect Tab in SAP TAO The screens will appear in the Screen list of Transaction section. Click on Select all button to inspect all the screens Click on Inspect Button to Inspect the screens. Incase we have to add some screens manually we can do it by clicking on the Add Screens Manually" button.

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

2009

Select All Button

To add screens manually if not found

Inspect Button

Fig shows details to add screen manually Step2: Once the inspection process is done we get a status bar message saying Inspection Process Ended.

Status Bar

Fig shows the Progress on Inspection and its Result in Status bar

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

2009

All the inspected screens will be exported to QC under the folder structure shown in figure

Inspected Screens under VA01 Component

Fig shows the path for Inspected screens in QC for VA01 Step3: In the Test Plan Area, under the specific module folder, create the business process as per the manual test case by pulling in the required components. SAP TAO provides some inbuilt Components for commonly used actions such as Press Enter, Select Row etc which are present in TAO library. These functions can be accessed from the following path in QC: Components Tab -> Components- RTL -> SAP R3 -> Actions -> Goto Transaction

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

2009

Fig shows the Inbuilt Components provided by TAO Step4: Pull in the required screens (Inspected through TAO under VA01 component) for forming the VA01_Sales_Order Business process as shown below.

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

2009

Screens Inspected from TAO (BC)

The list of components that needs to be pulled to make the VA01_Sales_Order business process which is reusable and used in the above mentioned test case: Business Component Name VA01_0101_Sales docInitialscreenCre ate Application Screen Name Create Sales Order Initial Screen Application Field Name Order_Type_Edit Sales_Organization _Edit Distribution_Chann el_Edit Division_edit Sales_Office_Edit Sales_Group_Edit Press_Button VA01_4701_40Sub screenDocumentPa rtnerinoverviewscr een VA01_4021_40Hea derSubscreenforOv Create STD Sales Order: Overview SoldtoParty_Edit ShiptoParty_Edit PONumber_Edit Parameter Name OrderType_i SalesOrg_i DistrChannel_i Division_i Sales_Office_i Sales_Group_i Button_Name Sold_To_Party_i Ship_To_Party_i PO_Number_i Parame ter Value

Enter

10

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

2009

erviewscreenLarge PO Date_Edit VA01_4440_40Sub screenSalesOvervi ewDefault VA01_4900_40Sub screenOverviewTC EntryDefault Req_Deliv_Date_Ed it Table_Select_Row Table_Column_ SetCellData PO_Date_i Req_Deliv_Date_i Row_i Table_Name_i Row_i Column_Name_i Plant_i Table_Name_i Row_i Column_Name_i Material_i Table_Name_i Row_i Column_Name_i Quantity_i Table_Name_i Row_i Column_Name_i Storage_Location_I Table_Name_i Row_i Column_Name_i Route_i Button_Name Button_Name

Press_Button Press_Button VA01_1000_Manu al_Addition Create STD Sales Order: Header Data

Tab_select SetCellData(User defined function) PartnerCol_Sales_E mployee_SetCellDa ta PartnerCol_Job_Ma ster_SetCellData

Tab_Name Table_Name_i Ref_Col_name_i Str_SalesEmployee Column_Name_i Sales_Employee_val ue_i Table_Name_i Ref_Col_name_i Str_JobMaster Column_Name_i Job_Master_value_i Table_Name_i Ref_Col_name_i Str_WellMaster Column_Name_i Well_Master_Value_i

Enter Display doc header details Partner s

PartnerCol_Well_Ma ster _SetCellData

11

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

2009

Press_Button Press_Button VA01_4900_40Sub screenOverviewTC EntryDefault Create STD Sales Order: Overview Table_Select_Row Press_Button VA01_6201_Subsc reenConditionScre enwithTableContro Create STD Sales Order: Item Data Get_First_Empty_R ow (User Defined Function) Amount_ SetCellData

Button_Name Button_Name Table_Name_I Row_i Button_Name Table_Name_i Ref_Column_Name_i TableName_i Row_i ColumnName_i Amount_Value_i TableName_i Row_i ColumnName_i CnTy_Value_i Button_Name Button_Name Menu_Path_i Button_Name TargerField_i

Enter Back

Item Conditi ons

CnTy_SetCellData Press_Button Press_Button VA01_4900_40Sub screenOverviewTC EntryDefault Create STD Sales Order: Overview Select_Menu Press_button Status_Bar_Messag e

Enter Back

Save SALES_ ORDER _NUMB ER

12

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

2009

Business Component Name

Input Value

Fig shows the screens that are pulled to form VA01 component Step5: Once all the required screens/components are pulled to form the flow of VA01 as per the test case, this has to be consolidated as consolidating creates one component from the elements in our test script. The new component contains all the Code and screen elements from the test script. By consolidating we make our business process more reusable and more robust. Before consolidation ensure that all the required inputs parameters must have some input value as TAO will consolidate only those parameters with input values and the rest will be omitted in the consolidated component and is represented as EMPTY parameter. To consolidate in TAO, Click on the consolidate tab and select the business process which has to be consolidated from the folder structure under Select by Test Plan section. Then click on the Consolidate Button.

13

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

2009

Consolidate Tab

Test (BP) to be consolidated

Consolidate Button

Fig shows the Consolidation Tab screen in SAP TAO A pop up appears asking for Confirmation for consolidating the selected test. Click on the Yes button.

Fig shows the confirmation pop up for Consolidation

14

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

2009

After successful consolidation, it shows Done in the status bar.

Status bar Message

Fig shows the status of Consolidation After consolidation, this business process will be present in the SAP_Full_BPs in QC under Business Components Tab. The path for SAP_Full_BPs in QC is given in SAP TAO under Configuration link -> Consolidate Tab.

15

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

2009

Fig shows the path for SAP Full BPs in SAP TAO

SAP Full BPs

Consolidated Component

Fig shows the consolidated component under SAP_Full_BPs in QC After consolidation the parameters which did not have any values are replaced by EMPTY parameter as shown below:

16

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

2009

Empty Parameter

Consolidated Component

Fig shows the Empty parameter After consolidation, this business process can be used/reused in any test case which has VA01 as one of its components, hence improving the quality and providing more reusability. Likewise we can make the other transactions present in the above given test case and later pull these transactions in accordance with the manual test case and make a complete end to end script which can be tested using QTP.

17

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

2009

Fig shows end to end test case using different transaction codes (BPs) This completes the end-to end creation of Business process VA01_Sales_Order which is reused across test cases; also across modules.

7. References: 1) SAP TAO User Guide 2) QTP Help 3) QC User Guide

18

Potrebbero piacerti anche