cancel
Showing results for 
Search instead for 
Did you mean: 

Requirement to open FACTSHEET in pop-up window

Former Member
0 Kudos

Hi there,

I have a requirement to open a Customer Factsheet (component BSP_DLC_FS) in a pop-up window, when the user clicks on an icon (in a seperate component - Daily Appointments(CRMCMP_GS_WC) ).

I am using the following code:

call method COMP_CONTROLLER->WINDOW_MANAGER->CREATE_POPUP

EXPORTING

IV_INTERFACE_VIEW_NAME = 'ZAGRI_CRMCMP_GS/factsheet'

IV_USAGE_NAME = IF_BSP_WD_WINDOW_MANAGER=>CO_OWN_WINDOW

IV_TITLE = 'factsheet'

RECEIVING

RV_RESULT = LR_POPUP.

This code opens the popup correctly, but with nothing displayed.

How can I display the component BSP_DLC_FS in this window?

I think the key is with the IV_USAGE_NAME field, but despite many attempts to

set this up in the Runtime Repository Editor, I can't get it to work.

I created a window called 'ZAGRI_CRMCMP_GS/factsheet', but don't know how to

link this (via the Component Usage) to the required component.

Any help would be greatly appreciated.

Thanks,

David.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

just to update:

I followed this very helpful guide,

http://wiki.sdn.sap.com/wiki/display/CRM/CallingCustomcomponentaspopupfromastandardcomponentinCRMWEBUI-Part+2

and changed the code to open the pop-up to this:

lr_popup = comp_controller->window_manager->create_popup(

iv_interface_view_name = 'BSP_DLC_FS/MainWindow'

iv_usage_name = 'factsheet'

iv_title = 'Factsheet' ).

Having created the ComponentUsage to point at 'BSP_DLC_FS/MainWindow'.

Still only opening the pop-up, just need to figure how to pass in the data and get it to display

the factsheet as though opened via WebUI

Former Member
0 Kudos

Hi,

I think you are able to display view but not the data. Please check method WD_USAGE_INITIALIZE of component controller to make sure your context nodes are bound. Also make sure that context nodes you are trying to bind are exposed to interface.

You can check if your data is being bound in create context methods of pop up view.

Please let me know if this helps.

Regards,

Bhushan