How to create a report in SSRS 2008 based on an SAP...
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](https://reader034.fdocuments.us/reader034/viewer/2022052212/5ac22ac17f8b9a433f8db24b/html5/thumbnails/1.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052212/5ac22ac17f8b9a433f8db24b/html5/thumbnails/2.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052212/5ac22ac17f8b9a433f8db24b/html5/thumbnails/3.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052212/5ac22ac17f8b9a433f8db24b/html5/thumbnails/4.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052212/5ac22ac17f8b9a433f8db24b/html5/thumbnails/5.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052212/5ac22ac17f8b9a433f8db24b/html5/thumbnails/6.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052212/5ac22ac17f8b9a433f8db24b/html5/thumbnails/7.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052212/5ac22ac17f8b9a433f8db24b/html5/thumbnails/8.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052212/5ac22ac17f8b9a433f8db24b/html5/thumbnails/9.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052212/5ac22ac17f8b9a433f8db24b/html5/thumbnails/10.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052212/5ac22ac17f8b9a433f8db24b/html5/thumbnails/11.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052212/5ac22ac17f8b9a433f8db24b/html5/thumbnails/12.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052212/5ac22ac17f8b9a433f8db24b/html5/thumbnails/13.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052212/5ac22ac17f8b9a433f8db24b/html5/thumbnails/14.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052212/5ac22ac17f8b9a433f8db24b/html5/thumbnails/15.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052212/5ac22ac17f8b9a433f8db24b/html5/thumbnails/16.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052212/5ac22ac17f8b9a433f8db24b/html5/thumbnails/17.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052212/5ac22ac17f8b9a433f8db24b/html5/thumbnails/18.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052212/5ac22ac17f8b9a433f8db24b/html5/thumbnails/19.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052212/5ac22ac17f8b9a433f8db24b/html5/thumbnails/20.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052212/5ac22ac17f8b9a433f8db24b/html5/thumbnails/21.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052212/5ac22ac17f8b9a433f8db24b/html5/thumbnails/22.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052212/5ac22ac17f8b9a433f8db24b/html5/thumbnails/23.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052212/5ac22ac17f8b9a433f8db24b/html5/thumbnails/24.jpg)
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](https://reader034.fdocuments.us/reader034/viewer/2022052212/5ac22ac17f8b9a433f8db24b/html5/thumbnails/25.jpg)
If you have any questions or comments, please write at: [email protected]
www.theobald-software.com 25