Skip to Content
0
Former Member
Jun 09, 2009 at 08:21 PM

Navigation data issue

40 Views

Hi,

I enhanced the standard component BT116IT_SVRO and in genericitem view we need to create one more action button for those items which are associated with action profile and when we click on that action button, we need to open the view 'ActionOV' of GSACTIONS component as a popup.

I created the action button in the desired view of BT116IT_SVRO and also I have created the component usage for GSACTIONS and navigation links in runtime repository of BT116T_SVRO component.

But when we click on our action button, I am able to navigate to the view but it is showing empty and no data is coming.

Could anyone please advice me how to pass the data when calling the view of GSACTIONS.

This is how I am calling the view as a popup

  • DATA: lr_wdw TYPE REF TO cl_bsp_wd_window,

data: lr_transaction_mgr TYPE REF TO cl_mktprj_transaction_mgr,

lr_data_collection TYPE REF TO cl_bsp_wd_collection_wrapper,

lr_value_node TYPE REF TO cl_bsp_wd_value_node,

lv_struct_ref TYPE REF TO crmt_uiu_obj_type,

lt_result type ref to IF_BOL_BO_PROPERTY_ACCESS.

lt_result = me->typed_context->BTADMINI->collection_wrapper->get_current( ).

CREATE OBJECT lr_data_collection.

lr_data_collection->add( iv_entity = lr_value_node

iv_set_focus = abap_true ).

CALL METHOD COMP_CONTROLLER->IF_BSP_WD_WINDOW_MANAGER~CREATE_POPUP

EXPORTING

IV_INTERFACE_VIEW_NAME = 'NewActionsEdit'"ScheduledActions'

IV_USAGE_NAME = 'CUGSActions'

IV_TITLE = 'Hello'

RECEIVING

RV_RESULT = confirm_popup.

confirm_popup->set_on_close_event( iv_event_name = 'POPUP_CLOSED' iv_view = me ).

confirm_popup->open( IV_COLLECTION = lr_data_collection ).

am i doint it in correct way as i am not getting any data in popup.

Regards,

Kamesh