Using the Database Expert to select an MDX query

  1. On the File menu in Crystal Reports, click New and then click Blank Report.

    The Database Expert appears.

  2. Under Available Data Sources, expand Create New Connection and then expand SAP BW MDX Query.

    The SAP System Logon dialog box appears.

  3. Select the appropriate BW system and click Next.

    The next SAP logon dialog box prompts you for user credentials

  4. Type your usual SAP user credentials in the Client, Username, and Password fields, then click Next.
    The next SAP logon dialog box asks you whether you would like to generate RFC trace files.
  5. If you want the SAP Communication Library to create trace files for all client/server communication (for troubleshooting purposes), select the Generate RFC trace files check box.
  6. Click Finish.

    You are returned to the Database Expert. There are now two entries under your SAP BW MDX Query connection. One is labeled CU (Cubes) and the other is labeled (QC) Queries.

  7. Expand QC (Queries) to reveal the defined MDX BW Queries that are available as report data sources.
    1. Right-click QC (Queries) and click Options.

      This opens the Options dialog box with only the Database tab visible.

    2. In the Data Explorer area, ensure that Stored Procedures is selected and then click OK.

      You are returned to the Database Expert.

    3. Select SAP BW MDX Query and press the F5 key to refresh the Database Expert.
    4. Expand Current Connections and then expand QC (Queries).

      Now there are lists of available queries.

  8. Select the query that you want to report off and click the right-arrow button.
  9. Click OK.

    Crystal Reports generates a blank report that uses your query as its data source. You can now add objects to the report.