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...
How to create a report in SSRS 2008
based on an SAP BAPI
www.theobald-software.com 1
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
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
Click to open Solution Explorer pane (1)Right click „Reports“ – Select „Add“ – „New Item…“ (2)
www.theobald-software.com 4
Select „Report“ Template (1)Fill in report name (2)
www.theobald-software.com 5
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
Click to open connection properties (1)Next step is to fill in the host parameters (2)
www.theobald-software.com 7
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
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
Click to change the DataSource Type to SAP BAPI (1)Open the look up dialog (2)
www.theobald-software.com 10
The Look Up dialog opens Fill in BAPI/RFC name (1) Click to search (2)
www.theobald-software.com 11
Select your BAPI (1)Click OK to confirm selection (2)
www.theobald-software.com 12
The Import, Export and Table parameters are retrieved from SAP and displayed in the dialog.
www.theobald-software.com 13
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
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
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
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
Click to exit the Query Designer (1)
www.theobald-software.com 18
Click to see the variables created automatically (1)Click to confirm all settings and return to the report (2)
www.theobald-software.com 19
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
Now you can preview the report (1)
www.theobald-software.com 21
Insert values for the parameters (1)Click to preview report (2)
www.theobald-software.com 22
Report is being generated…
www.theobald-software.com 23
Enjoy the result.....
www.theobald-software.com 24
If you have any questions or comments, please write at: [email protected]
www.theobald-software.com 25