cancel
Showing results for 
Search instead for 
Did you mean: 

Incoming Telephone number field in sales order

Former Member
0 Kudos

Dear All,

I'm replicating Interaction Center Sales orders to an external system through IDOCs. A customer may have more than one telephone number.

Is their a field in the sales order IDOC that contains the customer incoming call telephone number? It is a must for the external system to know this call number incase of further contact with the customer

I gota field in the partner information "Tel1" but it always get the default telephone of the customer not the telephone in the incoming call

Regards,

Ahmed Elders

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

I need to cancel this application and dont have a clue on how to succeed with this. Please inform me of what to do and how to do it.

Former Member
0 Kudos

What is a phone number to SAP

VishnAndr
Active Contributor
0 Kudos

Hello, Ahmed.

Recently we've had quite similar requirement. I haven't got any standard solution for that.

But what we've done. We store this number in the partner's address in the document (I think, in the field you've mentioned). We access this number in the following way in some view controller (actually, in IR view):

 
DATA: lr_cucobupa TYPE REF TO cl_crmcmp_b_cucobupa_impl,
           lv_value TYPE string,
           lv_channel TYPE crmt_ic_channel.
     TRY.
         lr_cucobupa ?= me->get_custom_controller( if_iccmp_global_controller_con=>cucobp  ).
       CATCH cx_sy_move_cast_error.
     ENDTRY.

     IF lr_cucobupa IS BOUND.
       lv_value = lr_cucobupa->get_request_value( ) .
       IF NOT lv_value IS INITIAL.
         lv_channel = lr_cucobupa->get_channel( ). //this is actual number, id, email, whatever...
         CASE lv_channel .
           WHEN 'ANI'.
// store the phone number in appropriate field of partner's address
           WHEN 'CHAT'.
// store the id in appropriate field of partner's address
           WHEN 'EMAIL'.
// store the email in appropriate field of partner's address
         ENDCASE.

Hope this will help you.