cancel
Showing results for 
Search instead for 
Did you mean: 

Exit on Confirm BP data

Former Member
0 Kudos
77

Hi.

I have a CIC profile on CRM 5.0.

I need to generate a pop-up with some partner data, after confirm BP data on CIC0 transaction.

Anyone knows how to implement this? Is there any BADI activated with this confirm button?

Thanks.

Susana Messias

Accepted Solutions (1)

Accepted Solutions (1)

walt_b
Participant
0 Kudos

Are you using the interaction center in SAPGUI, or in a web interface ?

I can help in both cases, but need to make sure what scenario you are actually using.

Former Member
0 Kudos

Hi Walter,

I am on SAP GUI interface, transaction CIC0.

Is there any option to do this?

thanks a lot!

Former Member
0 Kudos

Hi Walter,

can you give me any further hint?

Thanks,

Susana Messias

Former Member
0 Kudos

BAdI CRM_ORDER_AUTH_CHECK triggers many times during CONFIRM or END contact. I have used it for END contact with out any issues. You can Implement the method IF_EX_CRM_ORDER_AUTH_CHECK~CRM_ORDER_ADD_AUTH_CHECK.

check SY-UCOMM = CSEARCH_CONTINUE or you can also check for CSEARCH_REQ_CONF event occured.

walt_b
Participant
0 Kudos

You need to create in CIC customizing a hidden component that is linked with a custom class that inherits from CL_CCM_ABSTR_CMPWSP.

Then you redefine 2 methods:

- IF_CCM_WORKSPACE~CREATE: here you tell to which CIC events your class subscribes

- IF_CCM_CMPWSP_CIC_EV_HANDLER~HANDLE_EVENT: here you tell what happens when event is raised

Please check also SAP Note 516843 - How to create a customer-specific workspace?

Example:

method IF_CCM_WORKSPACE~CREATE .

data: pclass type ewbprocl.

data: wsp type ref to if_ccm_workspace.

call function 'EWB_PROCLID_CNVT_FROM_CM'

exporting

x_procclidx = proc_cl_id

importing

y_procclid = pclass.

*check whether instance of this workspace type already exists

call method cl_crm_cic_workspace_util=>find_by_name

exporting

im_name = pclass-cmpwsp

im_conf = space

receiving

re_workspace = wsp.

if not wsp is initial.

raise no_multiple_instances.

endif.

call method super->if_ccm_workspace~create

exporting

proc_cl_id = proc_cl_id

proc_instance = proc_instance

abox_admin = abox_admin

workspace_display = workspace_display

workspace_manager = workspace_manager.

if pclass-cmpconf is initial.

  • pclass-CMPCONF = co_std_profile.

endif.

call method cic_event_gate->add_listener

exporting

event = 'SEARCH_RESULT_PROPOSED'

listener = me.

endmethod.

method IF_CCM_CMPWSP_CIC_EV_HANDLER~HANDLE_EVENT .

data : lv_t1 type table of ts_role_details,

lt_return type table of bapiret2,

param1 type crmt_cic_bpident,

ls_partner_wrk type crmt_partner_external_wrk,

ls_data type crmt_bus_frg0040,

ls_datax type crmt_bus_frg0040x,

l_bpguid type bu_partner_guid,

lv_process_type type crmt_process_type.

  • SEARCH_RESULT_PROPOSED is a new master-event defined here...

if event = 'SEARCH_RESULT_PROPOSED'.

  • Business Partner has been identified

param1 = p1.

  • raise your popup here !

endif.

endmethod. "IF_CCM_CMPWSP_CIC_EV_HANDLER~HANDLE_EVENT

Former Member
0 Kudos

Hi Walter!

Thanks for your reply.

I tried to implement the class as you told, but I get the following dump:

An exception occurred that is explained in detail below.

The exception, which is assigned to class 'CX_SY_MOVE_CAST_ERROR', was not

caught in

procedure "PROCESS_META_MODEL" "(METHOD)", nor was it propagated by a RAISING

clause.

Since the caller of the procedure could not have anticipated that the

exception would occur, the current program is terminated.

The reason for the exception is:

It was tried to assign a reference to a rereference variable using the

'CAST' operation ('?=' or 'MOVE ?TO').

However, the current content of the source variable does not fit into

the target variable.

source type: "\CLASS=ZCL_ALERT_HANDLER_II"

target type: "\CLASS=CL_CRM_CIC_CRB_COMPONENT"

Can you help me on this?

thanks

Former Member
0 Kudos

Hi Walter.

I found the problem... I was still with alert modeler profile in my CIC profile and using this solution of yours we don't need it.

Great solution!!!

Thanks a lot!

Regards,

Susana Messias

Answers (0)