Sunteți pe pagina 1din 8

QlikStart for use with SAP™ SD Sales and Distribution

QlikStart for Use with SAP™ SD -


Sales and Distribution

2011-01-14
QlikView Version: 10.xx English

Page 1 of 8
QlikStart for use with SAP™ SD Sales and Distribution

Contents
1 INTRODUCTION................................................................................................................. 3

2 PREREQUISITES................................................................................................................ 4

3 INSTALLATION AND POPULATION..................................................................................5


3.1 CONTENTS.................................................................................................................... 5
3.2 DATA LOAD................................................................................................................... 5

4 SCRIPT DETAILS................................................................................................................ 7
4.1 SD SALES AND DISTRIBUTION TABLES............................................................................7
4.1 Calculated Fields......................................................................................................... 7

Page 2 of 8
QlikStart for use with SAP™ SD Sales and Distribution

1 Introduction

QlikStart templates provide a sample set of key information deliverables for your SAP™ modules
that combine data extraction scripts, pre defined calculations and a variety of sample analyses in
a front end application combining dashboards, charts and reports.

QlikStart templates contain value for both IT and the business, for IT a series of predefined
extraction scripts with table joins and calculations provide valuable insight. The business user
can start using the predefined reports to analyse their business within a very short time.

A high level architecture diagram of the QlikStart template is described below:

SAP R/3 01-SAP-SD_QVDGENERATOR.qvw QVD Layer 02-SAP-SD_LAYOUT.qvw

This document covers the technical background involved with the data extraction along with a
step by step guide to implement the QlikStart template .

Page 3 of 8
QlikStart for use with SAP™ SD Sales and Distribution

2 Prerequisites
Completion of the QlikView Designer training courses as the process assumes knowledge of
standard QlikView script syntax such as mapping load etc.

Prior to starting the process you should have downloaded and installed the QlikView Connector
for use with SAP™ from here. The installation guide includes all the information re setup of the
connector on both the client and SAP™ instances.

Page 4 of 8
QlikStart for use with SAP™ SD Sales and Distribution

3 Installation and Population

3.1 Contents

The QlikStart template consists of 2 qvw files:

 01_SAP-SD_QVDGENERATOR.qvw
o Connection string for SAP™
o Load script to extract relevant tables with calculations and associated key fields
o QVD creation script

 02_SAP-SD_LAYOUT.qvw
o Load script for previously created QVD's
o Dashboards and reports for SAP™ SD Sales and Distribution

3.2 Data Load

The first step in the process will be to create the qvd files from which the layout application can
read from to populate the various reports contained within.

1. Copy both qvw files to a file location and create a folder for the QVD files.

2. Open 01_SAP-SD_QVDGENERATOR.qvw and set the variables shown:

 The SAP Language variable is used in the mapping load for various descriptions.
 QVD Destination determines the location the resulting qvd files will be stored.
 The start date will add a date to a where clause based on the following dates:
o VBAK - ERDAT
o VBAP - ERDAT
o VBEP - EDATU
o LIKP - ERDAT
o LIPS - ERDAT
o VBRK - ERDAT
o VBRP - ERDAT.

Page 5 of 8
QlikStart for use with SAP™ SD Sales and Distribution

3. Open the script editor and add your connection string using the QVSAPConnector.dll
option.
4. Reload the script.

5. Open the 02_SAP-SD_LAYOUT application and set the QVD Location of the extracted
qvd files:

and reload the application.

Page 6 of 8
QlikStart for use with SAP™ SD Sales and Distribution

4 Script Details

4.1 SD Sales and Distribution Tables


The extraction script will connect to SAP™ and pull information from the following tables
described below:

Table Description
T001 Company Codes
T001W Plants/Branches
TSPAT Divisions
TVKOT Sales Organisations
TVTWT Distribution Channels
TVKBT Sales Offices
TVGRT Sales Groups
T001L Storage Locations
TVSTT Shipping Points
KNA1 Customer Master
KNVV Customer Master Sales Data
T134T Material Type Descriptions
MAKT Material Descriptions
T023T Material Group Descriptions
MARA Material Master
VBAK Sales Document Header
VBAP Sales Document Item
VBKD Sales Document Business Data
VBEP Sales Document Schedule Lines
LIKP Delivery Document Header
LIPS Delivery Document Item
VBFA Sales Document Flow
VBRK Billing Document Header
VBRP Billing Document Item

Each table has a key field prefixed with '%' these fields are hidden from the main reporting
application via the SET HidePrefix = '%' command on the main tab.

4.1 Calculated Fields

The extraction process contains a number of calculated fields used in the front end analysis
application as shown below:

Table Column Calculation Description


MAKT/LIPS/ Material ApplyMap('MAKT',MATNR) Material descriptions for
VBRP Description sales,billing and delivery

Page 7 of 8
QlikStart for use with SAP™ SD Sales and Distribution

VBAK Company ApplyMap('T001',BUKRS_VF) Sales order company code


description description
VBRK Company ApplyMap('T001',BUKRS) Billing company code
description description
VBAK/LIKP/ Sales org ApplyMap('TVKOT',VKORG) Sales org descriptions for
VBRK description sales,billing and delivery
VBAK/LIPS/ Distribution ApplyMap('TVTWT',VTWEG) Distribution channel
VBRK channel descriptions for sales,billing
description and delivery
VBAK/LIPS/ Sales office ApplyMap('TVKBT',VKBUR) Sales office descriptions for
VBRP description sales,billing and delivery
VBAK/LIPS/ Sales group ApplyMap('TVGRT',VKGRP) Sales group descriptions for
VBRP description sales,billing and delivery
VBAP/LIPS/ Plant description ApplyMap('T001W',WERKS) Plant descriptions for
VBRP sales,billing and delivery
VBAP/LIPS/ Division applymap('TSPAT',SPART) Division descriptions for
VBRP description sales,billing and delivery

Page 8 of 8

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