cancel
Showing results for 
Search instead for 
Did you mean: 

Auto filling context area

Former Member
0 Kudos

Hello.

The question about , how we can filling context area from email .

In ICCMP_DOC_LINK component I need to fill context area with customer detail.

I have a customer BP entity of parent interaction record

In DO_PREPARE_OUTPUT method of imlementation class

I use BP_CONFIRM of CL_CRMCMP_B_CUCOBUPA_IMPL class ,

but context area is empty.

Thank you.

Igor Spector

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello .

The problem is solved.

The BP_CONFIRM processing must be not in ICCMP_DOC_LINK component.

The right place is  ICCMP_INBOX/InboxItems component ,method EH_ONITEMPREVIEW of implementation class.

In standard configuration context area filling in class CL_BSPWD_BASICS_WA_HOST_VS , method SET_WORKAREA_CONTENT, before DO_PREPARE_OUTPUT of ICCMP_DOC_LINK  implementation.

Thank to all.

Igor

Answers (2)

Answers (2)

former_member210661
Active Contributor
0 Kudos

Hi lgor Spector,

Could You please elaborate your requirement once.


actually in that component do_prepare_output there is a lo_source variable.

lo_source is holding current work item. based on that get the linked_coll i.e you will get linked data in that.


ICCMP_DOC_LINK/LinkHeader impl class there is method. get_refdoc_entries( ). check that method that might be help full to you.

Thanks & Regards,

Srinivask

Former Member
0 Kudos

Hi Srinivask,


I have BP customer entity of parent interaction record.

My problem is to fill context area with customer info before to show email .


Thank you .

Igor

Former Member
0 Kudos

Hi Igor,

Check the polling customizing because you are using right approach to confirm the BP.

SPRO->CRM->Interaction Center Webclient->Basic Functions->Define Context Area Profile.

As per above screenshots Context Area profile should have polling profile.

In Polling profile as shown in last screenshot, Polling should be active and frequency should have some value. Default is 1000.

Then as per below screenshot, you should have context area profile assigned to your IC business role.

Regards,

Naresh

Former Member
0 Kudos

Hi Naresh,

I checked our customization.

All declared and attached correct.

Thank you.

Best regards,

Igor

former_member193634
Active Participant
0 Kudos

Hi Igor,

Can you elaborate more on your need ?

How do you process the email ? From the inbox ?

At what exact moment do you wish to update the context area ?

Best regards,

Sylvain AGUETTAZ

Former Member
0 Kudos

Hi Sylvain,

We process the email from Agent Inbox (without interaction record approve).

I need update context area before email body show.

It's a reason for using DO_PREPARE_OUTPUT method.

The emails attached to interaction records (ERMS)

I looking for an option  to confirm interaction BP of attached mail from this mail and show current interaction customer into context area .

Thank you

Igor

former_member210661
Active Contributor
0 Kudos

Hi lgor Spector,

if you want to conform the interaction bp in this case there is class  CL_CRM_IC_BOL_TX_HANDLER and in that go to this so many methods CONFIRM_BP, AFTER_EDIT_BT. check the code..

you may get to know.

*     Link one order to current interaction record and current context

       cl_crm_ic_bt_bol_helper=>link_object( ir_entity ).

this might be help full to you..


Thanks & Regards,

Srinivask

former_member193634
Active Participant
0 Kudos

Just to be sure I understood correctly.

Emails are integrated via ERMS into agent inbox, and an interaction record (IR) is also created at the time of integration of the email.

Then an agent selects the email in the inbox to process it right ?

I guess he does not use the "Contact" button, for it would create another IR. How do you process the email from the inbox ? You just use the hyperlink to display the email details ?

That would help to understand the requirement.

Best regards,

Sylvain AGUETTAZ

Former Member
0 Kudos

Yes,you understand correctly.

We just  use the hyperlink to display the email details and at this moment we need to display customer info into context area .

Thank you & best regards.

Igor

former_member193634
Active Participant
0 Kudos

Ok, now I understand.

Context are is filled in standard via method FILL_CALLER_DISPLAY of class CL_CRMCMP_B_CUCOBUPA_IMPL (which then call some class depending on customizing).

In this method, you will see that the two lines of the context area are filled through custom controller 'GLOBAL.CRMCMP_IC_FRAME/CuCoHiddenView', by calling the following method set_caller_display_bpname.

You could try, in your DO_PREPARE_OUTPUT, to do the following :


DATA : lv_cuco            TYPE REF TO cl_crmcmp_i_cucohiddenvie_impl.

lv_cuco ?= get_custom_controller( if_iccmp_global_controller_con=>cucohiddenview ).


CALL METHOD lv_cuco->set_caller_display_bpname
     EXPORTING
       iv_caller_display_company = 'Information to be displayed on the second line'
       iv_caller_display_name    = 'Information to be displayed on the first line'

See if it works.


Best regards,

Sylvain AGUETTAZ

Former Member
0 Kudos

Thank you for your help.

But it's not works.

Context area is empty.

I checked with debug . It's look like right solution.

May be some thing for context area refresh or not in DO_PREPARE_OUTPUT method.

Best Regards,

Igor Spector

former_member193634
Active Participant
0 Kudos

Yes, there is a refresh issue.

I managed to reproduce the same in one of our demo system.

I'm gonna check it out.

Best regards,

Sylvain AGUETTAZ