How to create a report in SSRS 2008 based on an SAP...

25
How to create a report in SSRS 2008 based on an SAP BAPI www.theobald-software.com 1

Transcript of How to create a report in SSRS 2008 based on an SAP...

Page 1: How to create a report in SSRS 2008 based on an SAP BAPItheobald-software.com/files/Product/Xtract-RS/ClickThrough-Xtract... · How to create a report in SSRS 2008 based on an SAP

How to create a report in SSRS 2008

based on an SAP BAPI

www.theobald-software.com 1

Page 2: How to create a report in SSRS 2008 based on an SAP BAPItheobald-software.com/files/Product/Xtract-RS/ClickThrough-Xtract... · How to create a report in SSRS 2008 based on an SAP

This demo shows how to create a report in Reporting Services 2008 based on the output of the SAP BAPI BAPI_CUSTOMER_GETLIST.The function returns a list of customers to a

given set of parameters.

www.theobald-software.com 2

Page 3: How to create a report in SSRS 2008 based on an SAP BAPItheobald-software.com/files/Product/Xtract-RS/ClickThrough-Xtract... · How to create a report in SSRS 2008 based on an SAP

We have to create a new SSRS projectStart Visual Studio. Click „File“ -> „New“ -> „Project…“(1)Select

„Business Intelligence Projects“ -> “Report Server Project“ (2)Enter project name (3) and click OK to create the project…(4)

www.theobald-software.com 3

Page 4: How to create a report in SSRS 2008 based on an SAP BAPItheobald-software.com/files/Product/Xtract-RS/ClickThrough-Xtract... · How to create a report in SSRS 2008 based on an SAP

Click to open Solution Explorer pane (1)Right click „Reports“ – Select „Add“ – „New Item…“ (2)

www.theobald-software.com 4

Page 5: How to create a report in SSRS 2008 based on an SAP BAPItheobald-software.com/files/Product/Xtract-RS/ClickThrough-Xtract... · How to create a report in SSRS 2008 based on an SAP

Select „Report“ Template (1)Fill in report name (2)

www.theobald-software.com 5

Page 6: How to create a report in SSRS 2008 based on an SAP BAPItheobald-software.com/files/Product/Xtract-RS/ClickThrough-Xtract... · How to create a report in SSRS 2008 based on an SAP

Now we have a blank report. At the Report Data pane we select „New“ -> „Data Source…“ (1)

In the Data Source Properties dialog select „Xtract RS“ from the dropdown list (2)

www.theobald-software.com 6

Page 7: How to create a report in SSRS 2008 based on an SAP BAPItheobald-software.com/files/Product/Xtract-RS/ClickThrough-Xtract... · How to create a report in SSRS 2008 based on an SAP

Click to open connection properties (1)Next step is to fill in the host parameters (2)

www.theobald-software.com 7

Page 8: How to create a report in SSRS 2008 based on an SAP BAPItheobald-software.com/files/Product/Xtract-RS/ClickThrough-Xtract... · How to create a report in SSRS 2008 based on an SAP

Switch to the credentials screen (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 8

Page 9: How to create a report in SSRS 2008 based on an SAP BAPItheobald-software.com/files/Product/Xtract-RS/ClickThrough-Xtract... · How to create a report in SSRS 2008 based on an SAP

Right-click on the Data Source we createdand select „Add Dataset…“ (1)

Click „Query Designer“ at the Dataset Properties dialog (2)

www.theobald-software.com 9

Page 10: How to create a report in SSRS 2008 based on an SAP BAPItheobald-software.com/files/Product/Xtract-RS/ClickThrough-Xtract... · How to create a report in SSRS 2008 based on an SAP

Click to change the DataSource Type to SAP BAPI (1)Open the look up dialog (2)

www.theobald-software.com 10

Page 11: How to create a report in SSRS 2008 based on an SAP BAPItheobald-software.com/files/Product/Xtract-RS/ClickThrough-Xtract... · How to create a report in SSRS 2008 based on an SAP

The Look Up dialog opens Fill in BAPI/RFC name (1) Click to search (2)

www.theobald-software.com 11

Page 12: How to create a report in SSRS 2008 based on an SAP BAPItheobald-software.com/files/Product/Xtract-RS/ClickThrough-Xtract... · How to create a report in SSRS 2008 based on an SAP

Select your BAPI (1)Click OK to confirm selection (2)

www.theobald-software.com 12

Page 13: How to create a report in SSRS 2008 based on an SAP BAPItheobald-software.com/files/Product/Xtract-RS/ClickThrough-Xtract... · How to create a report in SSRS 2008 based on an SAP

The Import, Export and Table parameters are retrieved from SAP and displayed in the dialog.

www.theobald-software.com 13

Page 14: How to create a report in SSRS 2008 based on an SAP BAPItheobald-software.com/files/Product/Xtract-RS/ClickThrough-Xtract... · How to create a report in SSRS 2008 based on an SAP

Scalar import parameters can be entered with a static value (1) or with a variable (2) The usage of variables is generating appropriate

report parameters automatically (of course you can edit the parameters manually)

www.theobald-software.com 14

Page 15: How to create a report in SSRS 2008 based on an SAP BAPItheobald-software.com/files/Product/Xtract-RS/ClickThrough-Xtract... · How to create a report in SSRS 2008 based on an SAP

Tables can be send to and can be extracted from the function module / BAPI. But only one table can be used in the report as a Dataset. We want to use the “ADRESSDATA” table, so we have to

set the Output Type of the table to “Dataset” (1)

www.theobald-software.com 15

Page 16: How to create a report in SSRS 2008 based on an SAP BAPItheobald-software.com/files/Product/Xtract-RS/ClickThrough-Xtract... · How to create a report in SSRS 2008 based on an SAP

We have to specify a range of customer numbers Set the Input Type of the table “IDRANGE” to Static (1)

and click “Edit” to open Edit dialog (2)

www.theobald-software.com 16

Page 17: How to create a report in SSRS 2008 based on an SAP BAPItheobald-software.com/files/Product/Xtract-RS/ClickThrough-Xtract... · How to create a report in SSRS 2008 based on an SAP

Fill in the static range values (1)SIGN = I (Include) Option = BT (Between)

LOW = Lower range and HIGH = Higher Range of customer numbersFor more options refer to your SAP manual.

www.theobald-software.com 17

Page 18: How to create a report in SSRS 2008 based on an SAP BAPItheobald-software.com/files/Product/Xtract-RS/ClickThrough-Xtract... · How to create a report in SSRS 2008 based on an SAP

Click to exit the Query Designer (1)

www.theobald-software.com 18

Page 19: How to create a report in SSRS 2008 based on an SAP BAPItheobald-software.com/files/Product/Xtract-RS/ClickThrough-Xtract... · How to create a report in SSRS 2008 based on an SAP

Click to see the variables created automatically (1)Click to confirm all settings and return to the report (2)

www.theobald-software.com 19

Page 20: How to create a report in SSRS 2008 based on an SAP BAPItheobald-software.com/files/Product/Xtract-RS/ClickThrough-Xtract... · How to create a report in SSRS 2008 based on an SAP

Layout the report as you like in the Design tab.All columns of the output table of our BAPI are now available in

the dataset (1)

www.theobald-software.com 20

Page 21: How to create a report in SSRS 2008 based on an SAP BAPItheobald-software.com/files/Product/Xtract-RS/ClickThrough-Xtract... · How to create a report in SSRS 2008 based on an SAP

Now you can preview the report (1)

www.theobald-software.com 21

Page 22: How to create a report in SSRS 2008 based on an SAP BAPItheobald-software.com/files/Product/Xtract-RS/ClickThrough-Xtract... · How to create a report in SSRS 2008 based on an SAP

Insert values for the parameters (1)Click to preview report (2)

www.theobald-software.com 22

Page 23: How to create a report in SSRS 2008 based on an SAP BAPItheobald-software.com/files/Product/Xtract-RS/ClickThrough-Xtract... · How to create a report in SSRS 2008 based on an SAP

Report is being generated…

www.theobald-software.com 23

Page 24: How to create a report in SSRS 2008 based on an SAP BAPItheobald-software.com/files/Product/Xtract-RS/ClickThrough-Xtract... · How to create a report in SSRS 2008 based on an SAP

Enjoy the result.....

www.theobald-software.com 24

Page 25: How to create a report in SSRS 2008 based on an SAP BAPItheobald-software.com/files/Product/Xtract-RS/ClickThrough-Xtract... · How to create a report in SSRS 2008 based on an SAP

If you have any questions or comments, please write at: [email protected]

www.theobald-software.com 25