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.