how to create a report based on an sap query · pdf file 2 efore we begin, let‘s have a...

Download How to create a report based on an SAP query · PDF file  2 efore we begin, let‘s have a look at the SAP GUI to find out more about how a query looks like in SAP

If you can't read please download the document

Upload: phamduong

Post on 06-Feb-2018

227 views

Category:

Documents


2 download

TRANSCRIPT

  • How to create a report based on

    an SAP query

    www.theobald-software.com 1

  • www.theobald-software.com 2

    Before we begin, lets have a look at the SAP GUI to find out more about how a query looks like in SAP.

  • SAP Queries are created in SAP with Transaction SQ01Insert the name of an existing query (1)

    Execute the query (2)

    www.theobald-software.com 3

  • This is the Selection Screen of the SAP QueryFill in selection parameters (1)

    Execute the query (2)

    www.theobald-software.com 4

  • The result of the query ...

    www.theobald-software.com 5

  • www.theobald-software.com 6

    Lets go back to Visual Studio and see how to integrate the query with Reporting Services

  • Start with a blank report thenselect New Dataset from the Dropdownlist

    www.theobald-software.com 7

  • First select the Datasource Type Xtract RS (1)Next step is to fill in the host parameters (2)

    www.theobald-software.com 8

  • Switch to the Credentials Tab (1)Insert the Credentials (2)

    or you can prompt for the Credentials in the report (3)Click OK to confirm Credentials (4)

    www.theobald-software.com 9

  • Click to change the DataSource Type to SAP query(1)Open the look up dialog for the SAP query (2)

    www.theobald-software.com 10

  • Fill in the name of the SAP-Query (1)Click to search Query BC407_CONNEX (2)

    Select Query from the list (3)Confirm selection with OK (4)

    www.theobald-software.com 11

  • Now the meta data is fetched from SAP Click the Edit link to open the Edit Range dialog (1)

    In the Range dialog define the selection for the parameters (2)

    www.theobald-software.com 12

  • It is also possible to use variables (1)The usage of variables is generating appropriate report parameters automatically (of course you can edit the

    parameters manually)

    www.theobald-software.com 13

  • Click if you want to use a variant (1)A list of possible variants is shown in the dialog (2)

    Select one of the variants and click OK to confirm selection (3)

    www.theobald-software.com 14

  • Layout the report as you like in the Layout tab.All columns of the query are now available in the dataset

    www.theobald-software.com 15

  • Now you can preview the report (1)

    www.theobald-software.com 16

  • Insert values for the parameters (1)Click to Preview Report (2)

    www.theobald-software.com 17

  • Report is being generated

    www.theobald-software.com 18

  • Enjoy the result.....

    www.theobald-software.com 19