cancel
Showing results for 
Search instead for 
Did you mean: 

How to provide default values in dropdown in employee interaction center?how to add dropdown values in EIC role?where we write the code?

former_member198180
Active Participant
0 Kudos

Hi

Iam a new of SAP CRM EIC,can u please tell me how to provide drop downl list values in sap crm EIC.my requirement is ,

"From" field in all out going calls should be dafuletd to " AskHRfront office" maill box of the my hr team.

Next one how to remove drop down values in Email address tab//because here there is no geter methods and where we need to write the logic?and here there is no contet nodes and attributes in EIC screen..

please provide me the information!!!

Thanks@

Kalpana

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member198180
Active Participant
0 Kudos

hi

can u please share Employee interaction center roles inbox screens and EIC related screen

jorge_ocamposbenito
Contributor
0 Kudos

Hi Kalpana,

Please send me a screenshot of your requieremen, explain it better. Tell me the wiew, context node and attribute of each field.

Regards.

former_member198180
Active Participant
0 Kudos

My requirement is in Empooyee interaction center bussiness roles ..below

"From"    1) "FROM " field in all outgoing Emails should be defaulted to "Ask for customer" mailbox of the MyHR team

2.                 2) Personal email address "customer.manager" should be removed from dropdown

          3) From email can still be changed manually, so the current other available email addresses can stay in the dropdown.

These are my requirements..but iam unable to know the context node and attributes because iam facing the below problem..while iam opening in inbound emails it cant be opened some exception will be raised ..set_responsible_for_oneorder method in implementation class..so please provide me solution.

While iam logon to EIC Bussines role,iam selecting Inbox ,Search result view will be opened.

In search result view page iam searching in-  main category - inbound email or outbound email

                                                                 Time period - 1 year
I find some outbound emails ,after that iwill be open any one of result list ,After iam clicking on  create follow up button . then exception wil be raised. Like below screen shot..
former_member198180
Active Participant
0 Kudos

in set_responsible_for_oneorder method line number 57 exception will be raised..so what shall we do now.

                       if lv_partner_no is initial.

                            rv_success = abap_false.

                           lv_remark = 'Process Control: Unable to determine responsible'."#EC NOTEXT

                            assert id ic_webclient_process_control subkey lv_remark condition 1 = 0.

line number 57- -  raise exception type cx_crm_ic_internal_error exporting remark = lv_remark.

former_member198180
Active Participant
0 Kudos

Hi the problem is solved...Now the Problem is..Iam not seeing the context node,attribute in FROM field...Drop down values will be maintained in .HTML page only ..the code is as below..so where wee need to do changes 

My requirements : 3 requirements i have ..that is followed manner.


1) "FROM " field in all outgoing Emails should be defaulted to "Ask for customer" mailbox of the MyHR team.

2) Personal email address "customer.manager" should be removed from dropdown

3) From email can still be changed manually, so the current other available email addresses can stay in the dropdown.


component name - BT126H_MAIL

  view name - BT126H_MAIL/send_screen

  Context node is no

   attribute is not available


I ifnd the FROM field code in .HTML page. like as below.

<thtmlb:dropdownListBox id                = "fromSelect"

                          selection         = "<%= gs_from-name %>"

                          disabled          = "<%= lv_display_mode %>"

                          nameOfKeyColumn   = "NAME"

                          nameOfValueColumn = "ADDRESS"

                          onSelect          = "SENDER_SELECT"

                          table             = "<%= gt_from %>"

                          width             = "100%" />

</email:visibilityToggler>

    </div>

  </td>

</tr>

<tr>

    <td class="ch-grid-cell" colspan="3" align="right">

<%-- <thtmlb:label text="<%= page->otr_trim( 'CRM_EMAIL/TO' ) %>" for="toField" /> --%>

<%

  data: lv_toField_id type string.

  data: lv_x          type string value 'X'.

  data: lv_to_text    type string value 'To  ...'.

  lv_toField_id  = controller->get_id( 'toField' ).

%>

<thtmlb:button id            = "toAddressBtn"

               onClientClick = "addrSearchDialog('<%= lv_toField_id %>','',true)"

               enabled       = "<%= lv_no_display_mode %>"

               text          = "<%= lv_to_text %>" />

<%-- width = "80%" /> --%>

<%-- text = "<%= page->otr_trim( 'CRM_EMAIL/TO' ) %>"/> --%>

</td>

<td class="ch-grid-cell" colspan="13">

<email:visibilityToggler id="toToggler" >

  <email:addressInputField id              = "toField"

                           button          = "<%= lv_x %>"

                           addresses       = "<%= gt_to %>"

                           groupwareSource = "<%= gv_address_source %>"

                           editable        = "<%= lv_no_display_mode %>"

                           tooltip         = "<%= page->otr_trim( 'CRM_EMAIL/ADDSEARCHTO' ) %>" />

</email:visibilityToggler>

    </td>

</tr>

<%

  if gv_channel_type eq cmail_email.

%>

<%-- is 'cc' field visible or not? --%>

<%

  if not gt_copy_to is initial or gs_user_settings-cc = crmem_on.

  lv_visible = 'TRUE'.

  else.

  lv_visible = 'FALSE'.

  endif.

%>

<tr>

  <td class="ch-grid-cell" colspan="3" align="right">

<%-- <thtmlb:label text="<%= page->otr_trim( 'CRM_EMAIL/CC' ) %>" for="copyToField" /> --%>

<%

  data: lv_ccField_id type string.

  data: lv_cc_text    type string value 'Cc  ...'.

  lv_ccField_id  = controller->get_id( 'copyToField' ).

%>

<thtmlb:button id            = "ccAddressBtn"

               onClientClick = "addrSearchDialog('<%= lv_ccField_id %>','',true)"

               enabled       = "<%= lv_no_display_mode %>"

               text          = "<%= lv_cc_text %>" />

</td>

<td class="ch-grid-cell" colspan="13">

<email:visibilityToggler id         = "copyToToggler"

                         is_visible = "<%= lv_visible %>" >

  <email:addressInputField id              = "copyToField"

                           button          = "<%= lv_x %>"

                           addresses       = "<%= gt_copy_to %>"

                           groupwareSource = "<%= gv_address_source %>"

                           editable        = "<%= lv_no_display_mode %>"

                           tooltip         = "<%= page->otr_trim( 'CRM_EMAIL/ADDCOPYTO' ) %>" />

</email:visibilityToggler>

  </td>

</tr>

<%-- is 'bcc' field visible or not? --%>

<%

  if not gt_bcc_to is initial or gs_user_settings-bcc = crmem_on.

  lv_visible = 'TRUE'.

  else.

  lv_visible = 'FALSE'.

  endif.

%>

<tr>

  <td class="ch-grid-cell" colspan="3" align="right">

<%-- <thtmlb:label text="<%= page->otr_trim( 'CRM_EMAIL/BCC' ) %>" for="bccToField" /> --%>

<%

  data: lv_bccField_id type string.

  data: lv_bcc_text    type string value 'Bcc ...'.

  lv_bccField_id  = controller->get_id( 'bccToField' ).

%>

<thtmlb:button id            = "bccAddressBtn"

               onClientClick = "addrSearchDialog('<%= lv_bccField_id %>','',true)"

               enabled       = "<%= lv_no_display_mode %>"

               text          = "<%= lv_bcc_text %>" />

</td>

<td class="ch-grid-cell" colspan="13">

<email:visibilityToggler id         = "bccToToggler"

                         is_visible = "<%= lv_visible %>" >

  <email:addressInputField id              = "bccToField"

                           button          = "<%= lv_x %>"

                           addresses       = "<%= gt_bcc_to %>"

                           groupwareSource = "<%= gv_address_source %>"

                           editable        = "<%= lv_no_display_mode %>"

                           tooltip         = "<%= page->otr_trim( 'CRM_EMAIL/ADDBCCTO' ) %>" />

</email:visibilityToggler>

  </td>

</tr>

<%

  endif.

%>

<tr>

  <td class="ch-grid-cell" colspan="3" align="right">

<thtmlb:label text = "<%= page->otr_trim( 'CRM_EMAIL/SUBJECT' ) %>"

              for  = "subjectField" />

</td>

<td class="ch-grid-cell" colspan="13">

<bsp:findAndReplace find    = "&amp;#"

                    replace = "&#" >

  <thtmlb:inputField id        = "subjectField"

                     width     = "100%"

                     maxlength = "255"

                     disabled  = "<%= lv_display_mode %>"

                     value     = "<%= gv_subject %>" />

</bsp:findAndReplace>

  </td>

</tr>

<%

  if gv_channel_type eq cmail_email.

%>

<%

  if not gv_importance  is initial or not gv_sensitivity is initial or gs_user_settings-options = crmem_on.

  lv_visible = 'TRUE'.

  else.

  lv_visible = 'FALSE'.

  endif.

%>

<tr id = "options" >

  <td class="ch-grid-cell" colspan="3" align="right">

<thtmlb:label text = "<%= page->otr_trim( 'CRM_EMAIL/IMPORTANCE' ) %>"

              for  = "importanceSelect" />

</td>

<td class="ch-grid-cell" colspan="3">

<email:visibilityToggler id         = "optionsToggler"

                         is_visible = "<%= lv_visible %>" >

  <thtmlb:dropdownListBox id                = "importanceSelect"

                          selection         = "<%= gv_importance %>"

                          disabled          = "<%= lv_display_mode %>"

                          nameOfKeyColumn   = "LOW"

                          nameOfValueColumn = "DDTEXT"

                          table             = "<%= gt_importance_select %>"

                          width             = "100%" />

</email:visibilityToggler>

</td>

<td class="ch-grid-cell" colspan="5" align="right">

<thtmlb:label text = "<%= page->otr_trim( 'CRM_EMAIL/SENSITIVITY' ) %>"

              for  = "sensitivitySelect" />

</td>

<td class="ch-grid-cell" colspan="3">

<thtmlb:dropdownListBox id                = "sensitivitySelect"

                        selection         = "<%= gv_sensitivity %>"

                        disabled          = "TRUE"

                        nameOfKeyColumn   = "LOW"

                        nameOfValueColumn = "DDTEXT"

                        table             = "<%= gt_sensitivity_select %>"

                        width             = "100%" />

      </td>

      <td class="ch-grid-cell" colspan="2">

           

      </td>

</tr>

<!--  Email Forms -->

<%

  IF lv_display_mode eq 'TRUE'.

  lv_visible = 'FALSE'.

  ELSE.

  IF gs_user_settings-email_forms = crmem_on.

  lv_visible = 'TRUE'.

  ELSE.

  lv_visible = 'FALSE'.

  ENDIF.

  ENDIF.

%>

<%

  if gv_crmexpress_flag = 'X'.

%>

<tr>

  <td class="ch-grid-cell" colspan="3" align="right">

<thtmlb:label text = "<%= page->otr_trim( 'CRM_EMAIL_EXTENSION/MAILFORM_SELECT' ) %>"

              for  = "mailformselect" />

</td>

<email:visibilityToggler id         = "mailformToggler"

                         is_visible = "<%= lv_visible %>" >

  <td class="ch-grid-cell" colspan="5" valign="middle">

          <table width="100%" cellpadding="0" cellspacing="0">

          <tr>

            <td>

  <thtmlb:dropdownListBox id                = "mailformSelect"

                          selection         = "<%= '' %>"

                          disabled          = "<%= 'TRUE' %>"

                          nameOfKeyColumn   = "MAIL_ID"

                          nameOfValueColumn = "MAIL_ID"

                          onSelect          = "mailFormSelect"

                          width             = "100%" />

  </td>

  <td style="white-space:nowrap;">

     

  <thtmlb:button id      = "addMailforms"

                 onClick = "mailFormAdd"

                 text    = "<%= page->otr_trim( 'CRM_EMAIL_EXTENSION/MAILFORM_APPLY' ) %>"

                 tooltip = "<%= page->otr_trim( 'CRM_EMAIL_EXTENSION/MAILFORM_APPLY_TOOLTIP' ) %>" />

            </td>

          </tr>

          </table>

  </td>

</email:visibilityToggler>

  <td class="ch-grid-cell" colspan="8">

  </td>

</tr>

<%

  endif.

This is the "FROM" field screen.


After clicking F2 on "FROM" Button the screen is like this..below




can u please tell me the solutions?


 

ashik_k2
Contributor
0 Kudos

Hello Kalpana,

Check the example bsp component "CRM_THTMLB_COMP"

and go to the "Drop-down List Box" page for your reference.

Regards,

Ashik

former_member198180
Active Participant
0 Kudos

hiii jorge

My requirement is how to provide default values in drop down .and how to remove dropdown values.


in manually we need to change any value in the dropdown..so the current availbe dropdown value is also stay in drop down how..to do it

jorge_ocamposbenito
Contributor
0 Kudos