SAP Knowledge Base Article - Public

3062802 - Company code phone number format on billing document printout - SAP S/4HANA Cloud

Symptom

  • The company code phone number is maintained in the configuration step 'Company Code Master Data' (configuration step ID 100135) as xxxx xxxx.
  • The company code phone number on the billing document printout is displayed as +xx (xxxx) xxxx.
  • The form data XML contains the company phone number as <PhoneNumber>+xx (xxxx) xxxx</PhoneNumber>.

Environment

SAP S/4HANA Cloud

Reproducing the Issue

  1. Open 'Manage Your Solution'
  2. Set Local Version
  3. Open 'Configure Your Solution'
  4. Open configuration step 'Company Code Master Data' (configuration step ID 100135) in the application area 'Organization', sub application area 'Organization'
  5. Click 'Edit'
  6. Open 'Contact Information'
  7. Maintain the company code telephone number in the 'Telephone' field.

Cause

The formatting of telephone number is done in function module TELNUMBER_FORMAT. According to the logic in this function module, as soon as the first space is encountered, the numbers before the space become the area code and the area code is then concatenated with brackets ( ).
For example: maintaining 06227 747474 in the 'Telephone' field for a German company code will be displayed on the standard billing document printout as +49 (6227) 747474.

If you do not provide an area code in the phone number then the whole number will be concatenated with brackets:
For example: maintaining 06227747474 in the 'Telephone' field for a German company code will be displayed on the standard billing document printout as +49 (6227747474).

Resolution

Changing function module TELNUMBER_FORMAT is not possible , this is a standard SAP function module and cannot be changed because it would affect all the customers.

In case you would like to have other format, you can do scripting in Adobe LiveCycle Designer.
For example to get rid of the brackets “(” and “)”:
this.rawValue = Replace(this.rawValue, "(", "")
this.rawValue = Replace(this.rawValue, ")", "")

See Also

2825919 - How to get the form data XML for a business document
2678898 - How to get the form data XML for a billing document
3011127 - Phone number and email address of contact person is not printed on the billing document output form - SAP S/4HANA Cloud
Telephone and Fax Checks

Keywords

SSCUI 100135, Organization, Company, Company code, Address, ADRC, ADRNR, T001, T005K, METHOD COMPANY_GET_ENTITY, CL_FDP_V3_BD_FORM_UTILITY, GET_COMMUNICATION_DATA, FUNCTION TELNUMBER_FORMAT, LT_TEL, LS_TEL, TELNUMBER, HELP4, AREA_CODE, HELP2, HELP3,  TELNUMBER(POS), extension_in, ls_tel-tel_extens, telnumber, ls_tel-tel_number, NUMBER_CANONICAL, EV_TELEPHONE_NUMBER, FDP_V3_BD_PROF_SERV_SRV, CL_FDP_V3_BD_PROF_SERV_DPC_EXT, SDBIL_CI_STANDARD*, FDP_V3_BD_STANDARD_SRV, CL_FDP_V3_BD_STANDARD_DPC_EXT , KBA , SD-BIL-GF-OC , Output Control Billing , BC-SRV-ADR , Address Management / Business Address Services , Problem

Product

SAP S/4HANA Cloud all versions