Quantcast
Channel: SCN: Message List - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 7775

Re: Change the display format of Phone Number in WEB UI

$
0
0

Hi Manoj,

 

I had a similar req, and we couldnot do it via config.

 

We created a method called format_phone.

phone1 = phonenumber+0(3).
phone2  = phonenumber+3(3).
phone3  = phonenumber+6.
clear phonenumber.


    CONCATENATE '(' phone1 ')'  INTO phonenumber.
    IF phone2 IS NOT INITIAL.
      CONCATENATE phonenumber phone2 INTO phonenumber.
    ENDIF.
    IF phone3 IS NOT  INITIAL.
      CONCATENATE phonenumber '-' phone3 INTO phonenumber.
    ENDIF.

 

In the GET_TEL_NO method:

current->get_property_as_value( EXPORTING iv_attr_name = 'TEL_NO' IMPORTING ev_result = telno ).

 

call method format_phone

exporting

    phone_number = telno

importing

   formatter_phone_number = telno.

value = telno.

 

Thanks,

Vidya.


Viewing all articles
Browse latest Browse all 7775

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>