21
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 Revision History: Ver. No. Date Author Description 1.0 25/06/2009 Nagavalli BN Initial version Document Name: Steps for Creation of Business Component Using SAP TAO, QTP, QC, BPT for SDModule Ver. Rev: 1.00 Authorized by: 1. Nagavalli B N Date: 25/06/2009

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

Embed Size (px)

Citation preview

Page 1: Steps for Creation of Business Component Using SAPTAO, BPT, QC and QTP for SD MODULE

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

Revision History:

Ver. No. Date Author Description1.0 25/06/2009 Nagavalli BN Initial version

Author(s): Nagavalli B N

Date written (MM/DD/YY): 25th June, 2009

Declaration

Document Name: Steps for Creation of Business Component Using SAP TAO, QTP, QC, BPT for SDModule

Ver. Rev: 1.00

Authorized by: 1. Nagavalli B N Date: 25/06/2009

Page 2: Steps for Creation of Business Component Using SAPTAO, BPT, QC and QTP for SD MODULE

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

2009

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 ProcessingERP – Enterprise Resource PlanningSAP TAO – Systems Applications and Products in Data Processing Test Acceleration and OptimizationSD – Sales and DistributionRFQ – Request for QuotationBPT – Business Process TestingQTP – Quick Test ProfessionalQC – Quality CenterBC – Business ComponentBP – Business Process

Contents:

1. INTRODUCTION:

2. Sales and Distribution (SD):

2

Page 3: Steps for Creation of Business Component Using SAPTAO, BPT, QC and QTP for SD MODULE

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

2009

3. SALES ORDER:

4. BENEFITS OF AUTOMATION:

5. AUTOMATION OF SALES ORDER CREATION:

6. STEPS TO CREATE THE VA01 COMPONENT:

7. References:

3

Page 4: Steps for Creation of Business Component Using SAPTAO, BPT, QC and QTP for SD MODULE

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 referenceVL01N – Creating the delivery with reference to sales orderVL02N – Picking and goods issueVF01 – Creating the invoice against the deliveryVF02 – 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.

4

Page 5: Steps for Creation of Business Component Using SAPTAO, BPT, QC and QTP for SD MODULE

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 Scenario NameSD_001 Sales order for the domestic sales of

standard goods which is warehouse managed.

The test cases under this scenario are:

Scenario Id Scenario Name Test case ID Test Case Number

Test Case Name

SD_001 Sales order for the domestic sales of standard goods which is warehouse managed.

SD_001_01 SD_001_01 Sales order for the domestic sales of standard goods which is warehouse managed.

The transactions involved in this test case are:

Test Case ID Test Case Name

Transactions

SD_001_01 Sales order for the domestic sales of standard goods which is warehouse managed.

VA01VL01NLT03LT12VL02NVF01VF02

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

5

Page 6: Steps for Creation of Business Component Using SAPTAO, BPT, QC and QTP for SD MODULE

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

2009

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.

6

Add Transaction Button

Transaction Code Name

Inspect Tab in SAP TAO

Page 7: Steps for Creation of Business Component Using SAPTAO, BPT, QC and QTP for SD MODULE

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

2009

Fig shows details to add screen manually

Step2: Once the inspection process is done we get a status bar message saying “Inspection Process Ended”.

7

Inspect Button

Select AllButton

To add screens manually if not found

Status Bar

Page 8: Steps for Creation of Business Component Using SAPTAO, BPT, QC and QTP for SD MODULE

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

2009

Fig shows the Progress on Inspection and its Result in Status barAll the inspected screens will be exported to QC under the folder structure shown in figure

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

8

Inspected Screens under VA01 Component

Page 9: Steps for Creation of Business Component Using SAPTAO, BPT, QC and QTP for SD MODULE

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.

9

Page 10: Steps for Creation of Business Component Using SAPTAO, BPT, QC and QTP for SD MODULE

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

2009

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

Application Screen Name

Application Field Name

Parameter Name Parameter Value

VA01_0101_SalesdocInitialscreenCreate

Create Sales Order Initial Screen

Order_Type_Edit OrderType_i

Sales_Organization_Edit

SalesOrg_i

Distribution_Channel_Edit

DistrChannel_i

Division_edit Division_iSales_Office_Edit Sales_Office_iSales_Group_Edit Sales_Group_iPress_Button Button_Name Enter

VA01_4701_40SubscreenDocumentPartnerinoverviewscreen

Create STD Sales Order: Overview SoldtoParty_Edit Sold_To_Party_i

ShiptoParty_Edit Ship_To_Party_iVA01_4021_40HeaderSubscreenforOverviewscreenLarge

PONumber_Edit PO_Number_i

10

Screens Inspected from TAO (BC)

Page 11: Steps for Creation of Business Component Using SAPTAO, BPT, QC and QTP for SD MODULE

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

2009

PO Date_Edit PO_Date_iVA01_4440_40SubscreenSalesOverviewDefault

Req_Deliv_Date_Edit Req_Deliv_Date_i

VA01_4900_40SubscreenOverviewTCEntryDefault

Table_Select_Row Row_i

Table_Column_ SetCellData

Table_Name_iRow_iColumn_Name_iPlant_iTable_Name_iRow_iColumn_Name_iMaterial_iTable_Name_iRow_iColumn_Name_iQuantity_iTable_Name_iRow_iColumn_Name_iStorage_Location_ITable_Name_iRow_iColumn_Name_iRoute_i

Press_Button Button_Name Enter

Press_Button Button_NameDisplay doc header details

VA01_1000_Manual_Addition

Create STD Sales Order: Header Data

Tab_select Tab_NamePartners

SetCellData(User defined function)PartnerCol_Sales_Employee_SetCellData

Table_Name_iRef_Col_name_iStr_SalesEmployee Column_Name_iSales_Employee_value_i

PartnerCol_Job_Master_SetCellData

Table_Name_iRef_Col_name_iStr_JobMasterColumn_Name_iJob_Master_value_i

PartnerCol_Well_Master _SetCellData

Table_Name_iRef_Col_name_iStr_WellMasterColumn_Name_iWell_Master_Value_i

Press_Button Button_Name EnterPress_Button Button_Name Back

VA01_4900_40Sub Create STD Table_Select_Row Table_Name_I

11

Page 12: Steps for Creation of Business Component Using SAPTAO, BPT, QC and QTP for SD MODULE

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

2009

screenOverviewTCEntryDefault

Sales Order: Overview Row_i

Press_Button Button_NameItem Conditions

VA01_6201_SubscreenConditionScreenwithTableContro

Create STD Sales Order: Item Data

Get_First_Empty_Row (User Defined Function)

Table_Name_iRef_Column_Name_i

Amount_ SetCellData

TableName_iRow_iColumnName_iAmount_Value_i

CnTy_SetCellDataTableName_iRow_iColumnName_iCnTy_Value_i

Press_Button Button_Name EnterPress_Button Button_Name Back

VA01_4900_40SubscreenOverviewTCEntryDefault

Create STD Sales Order: Overview

Select_Menu Menu_Path_i

Press_button Button_Name Save

Status_Bar_Message TargerField_i

SALES_ORDER_NUMBER

12

Page 13: Steps for Creation of Business Component Using SAPTAO, BPT, QC and QTP for SD MODULE

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

2009

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

Input ValueBusiness

Component Name

Page 14: Steps for Creation of Business Component Using SAPTAO, BPT, QC and QTP for SD MODULE

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

2009

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

Test (BP) to be consolidated

Consolidate Tab

Consolidate Button

Page 15: Steps for Creation of Business Component Using SAPTAO, BPT, QC and QTP for SD MODULE

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.

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_BP’s in QC is given in SAP TAO under Configuration link -> Consolidate Tab.

15

Status bar Message

Page 16: Steps for Creation of Business Component Using SAPTAO, BPT, QC and QTP for SD MODULE

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

2009

Fig shows the path for SAP Full BP’s in SAP TAO

Fig shows the consolidated component under SAP_Full_BP’s in QC

After consolidation the parameters which did not have any values are replaced by EMPTY parameter as shown below:

16

Consolidated Component

SAP Full BP’s

Page 17: Steps for Creation of Business Component Using SAPTAO, BPT, QC and QTP for SD MODULE

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

2009

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

Empty Parameter

Consolidated Component

Page 18: Steps for Creation of Business Component Using SAPTAO, BPT, QC and QTP for SD MODULE

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 (BP’s)

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 Guide2) QTP Help3) QC User Guide

18