
Logic similar to function rrw3_get_query_view_data is utilized to parse the URL parameters into a suitable ITAB of variable values and details. This variable ITAB is required to be passed for launching the workbook.
Logic similar to RSAH_LAUNCH_EXCEL function is used to launch Bex-Excel workbook with variable values already filled with values from drill-through selection.
For drill-through to Bex Query, the workaround steps in this application are to
Save variables values as a user-specific personal variant to the query using standard ABAP classes for variant.
Open query in excel. This shows up selection screen where user needs to select the variant which has just been saved with the drill-through parameter values for variables.
URL: http://<host>:<port>/sap/bc/bsp/sap/rsr_bex_launch/bexanalyzer.bex
URL above can be used to open a bex query or workbook; for example
http://<host>:<port>/sap/bc/bsp/sap/rsr_bex_launch/bexanalyzer.bex?QUERY=ZTEST_QUERY will open query ZTEST_QUERY in excel (after login popup).
http://<host>:<port>/sap/bc/bsp/sap/rsr_bex_launch/bexanalyzer.bex?WBID=ABCEDFG)$(@ will open workbook whose id is specified in the URL (again first a popup will ask for login).
This URL can replace the query URL used in BPC drill-through configuration but for the fact that it doesn’t have any mechanism to pass variable values.
A BPC drill-through URL in comparison looks like below (with an example variable value)
What needs to be done is enhance the BSP application so we get a URL similar to the first one above that opens Bex in Excel with specified query or workbook, and, passes the variable parameters. Once we build such an application, we can use its URL instead in BPC drill-through config and get the drill-through report opened in Bex Excel.
Example scenario 1 -
URL with Bex query – Calmonth variable set to 03/2014
Login popup in browser – for BW server
Application parses variables in the URL and saves values of variables as a personal variant to the query for the executing user (so multiple users can drill-through to same query without overwriting other’s variants). After login, the application tries to open Bex excel with specified query and has a login popup for Bex Excel.
Selection screen of query appears. User can select the variant and execute the query here. Notice the value for the variable (CALMONTH = 03/2014) was saved in this variant.
Example scenario 2 -
URL with Bex workbook – Calmonth variable set to 04/2014
Opening this URL
Bex login, followed by workbook results.
Caveats: (1) coding was bit involved and unfortunately I don't have access to share it. (2) Though sign-on ticket option was there, I didn't tested it. (3) It was tested only with 7x version.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.