cancel
Showing results for 
Search instead for 
Did you mean: 

Data from CRMCMP_IBSEARCH to BT112H_SC component

former_member611341
Participant
0 Kudos

I created a button in Ibase search CRMCMP_IBSEARCH/ComponentResultList view to nagivate to service contract screen from ibase/component search screen.

My question is ....

How can I access the ibase/component search results from BT112H_SC componenet.

Edited by: aday rao on Nov 5, 2008 11:04 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

If I understand your requirement correctly then you wana navigate from Ibase to Service contract on click of button and want to display ibase of result view in your service contract.

If that is the case then I see one problem. If there are more than one Ibase in your result view then which data you want to see in your service contract.

If pbm is correct then I will suggest you to create hyper link on any of the result which will trigger event. In event send data to cuco and also call out bound plug. In outbound plug call navigation of runtime repository to call bt112. From there access data from cuco and place it in the Install base field in your service contract. Do you need code to achieve the same?

Best regards

Pankaj Kumar

former_member611341
Participant
0 Kudos

Pankaj ..thanks for your prompt response !!

Regarding your doubt ...For each entry in the result view ...i have create a line item in the service contract.

What I did so far is .....

I have created a button in the result veiw CRMCMP_IBSEARCH/ComponentResultList in the DO_PREPARE_OUTPUT method ..create EventHandler,Outbound Plug in the same veiw

And also created Component usage,add view to window.Mainwindow ,add Navigation Link in the Rutntime Repository ....

In navigation link my Target is CUBT112H_SC.MainWindow Inbound Plug EDIT

Navigation is working fine..when I click the button it takes me to service contract.....so far it is good..

Now wht I dont know is ... how to create a CUCO ,from where I shud pass data(result entries) to CUCO and how to acces tht data in BT112H_SC compoent...

Code will be greatly helpful...

Thanks ...

Answers (3)

Answers (3)

former_member611341
Participant
0 Kudos

I wrote code in my outbound plug ...I'm getting error.

method OP_NEWSRVCNT.
* Added by wizard: Outbound plug 'NEWSRVCNT'

IV_DATA_COLLECTION = me->typed_context->RESULT2->collection_wrapper.


me->view_manager->navigate( source_rep_view   = me->rep_view
                              outbound_plug   = 'NewSrvCnt'
                              data_collection = iv_data_collection ).



endmethod.

I'm getting the following error:

Class ZL_CRMCMP_I_COMPONENTRESU_IMPL method OP_NEWSRVCNT.

Method IV_DATA_COLLECTION can not be changed.

former_member611341
Participant
0 Kudos

Yes Vinay ...I'm using the same code in my outbound plug.

i dont know how to fill the IV_DATA_COLLECTION ...can you guide me and also how to use in CUBT112H_SC component

Thanks...

Former Member
0 Kudos

You can fill IV_DATA_COLLECTION parameter like this



IV_DATA_COLLECTION = me->typed_context->[your context node name which you want to pass]->collection_wrapper.

In the Target window which is nothing but the CUBT112H_SC component, put a break point in the inbound plug what ever you are using. For this method, there would be a importing parameter called IV_DATA_COLLECTION. This contains the collection which you passed earlier.

Regards,

Vinay

erika_schlachter
Active Participant
0 Kudos

Hi Rao,

when you do navigation you can share the data using the Component Controller Class, method WD_USAGE_INITIALIZE(CL_BSP_WD_COMPONENT_CONTROLLE).

Code sample:

DATA: lv_usage TYPE REF TO if_bsp_wd_component_usage.

lv_usage = me->comp_controller->get_component_usage( iv_usage->usage_name ).

CASE iv_usage->usage_name.

WHEN 'CUGSActions'. "#EC NOTEXT

CALL METHOD lv_usage->bind_context_node

EXPORTING

iv_controller_type = cl_bsp_wd_controller=>co_type_custom

iv_target_node_name = 'ACIACTIONCONTEXT' "#EC NOTEXT

iv_name = 'BT311H_CSR/CUGSActionsCuCo'"#EC NOTEXT

iv_node_2_bind = 'ACTIONCONTEXT'. "#EC NOTEXT

former_member611341
Participant
0 Kudos

hello Erika ..I'm new to CRM WEB UI .....

I have my IBASE search results in CRMCMP_IBSEARCH/ComponentResultList ..

As you said ...Once I wrote code in Component Controller Class, method WD_USAGE_INITIALIZE ..wht are next steps?

How can i access the search results from CUBT112H_SC component .?

Thanks..

Former Member
0 Kudos

Hey Aday,

Can you tell how are you navigating to the target view?

I guess you must be using the code


VIEW_MANAGER->NAVIGATE( SOURCE_REP_VIEW = ME->OUTER_REP_VIEW
                                                OUTBOUND_PLUG   = LV_PLUG_NAME
                                                DATA_COLLECTION = IV_DATA_COLLECTION ).

Once way would be, Why dont you fill the IV_DATA_COLLECTION from where you are navigating??

Hope this help. Let me know your response.

Regards,

Vinay