Skip to Content
0
Former Member
Oct 15, 2009 at 01:05 PM

BI report directly on the HOME page

41 Views

Hi everyone,

I was trying to add a BI report directly onto the HOME page in the CRM WebUI. Using CRM 7.0.

I found a guide on how to do it and followed all steps but it doesn't work. Here are the steps:

1. Basic Customizing

Added a new BI report like this (transaction CRMC_UI_BI):

BI Report Id: ZBIREPORT

Object Type: BTMP Template 7.x

BI Object Key: ZBIREPORT_DEMO

BI System: <our system>

2. Create component usage for the BI report

Went to component workbench (CRM_WD_CMPWB) and displayed WCC_SLS_HOME.

Went to runtime repository in edit mode. Added new component usage like that:

Id: ZBIREPORT

Used Component: GSBIRP

Interface View: MainWindow

3. Add Inbound plug

To the new componante useage i added Inbound Plug DISPLAY

4. Add View to ViewSets

Still in runtime repository, went to ViewSets->ViewSet WCC_SLS_HOME/SalesHome-> ViewArea OverviewPage-> add View.

Choose ZBIREPORT.MainWindow

5. Set Id of the report to the component usage

I redefined the method WD_USAGE_INITIALIZE of Component Controller of WCC_SLS_HOME, called super method and then added following lines:

  case iv_usage->usage_name.
    when 'ZBIREPORT'.
      try.
          lr_bi_context = iv_usage->get_context_node( 'ZBIREPORT' ).
          lr_bi_context->set_s_struct( attribute_path = ''
                                       component      = 'REPID'
                                       value          = 'ZBIREPORT' ).
        catch cx_root.
      endtry.
  endcase.

That's what I've done so far but it doesn't work. In the debugger in the above coding it fails when I try to iv_usage->get_context_node( 'ZBIREPORT' ). Makes kinda sense to me as I never created a context node but it didn't say so in the guide I was following.

Can anyone tell me what is missing, what I'm doing wrong or what needs to be done?

Thanks in advance!

Best regards,

Melanie