SAP Knowledge Base Article - Public

3587420 - About Error "In Unicode programs, the '&' character cannot appear"

Symptom

  • "In Unicode programs, the '&' character cannot appear" error occurs while creating Parameters for Product Costing.
  • "ABAP Runtime error" occurs when saving in "Create Production Order" APP, which could be also caused by the above error.

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

For Symptom 1: error occurs while creating Parameters for Product Costing

  1. Go to IMG
  2. Navigate to Manufacturing
  3. Select General Manufacturing Settings
  4. Attempt to Define Parameters

For Symptom 2: "ABAP Runtime error" occurs when saving in "Create Production Order" APP caused by this error.

  1. Create production order. 
  2. Work center is set with customizing value key which contains special characteristic.

Cause

The special character '&' used in one of the Formula Parameters as the root cause of the problem. This parameter in system has to be substituted by a new one without special characters. 

Resolution

  1. Check the parameters for special characters like "&". If found, seek assistance to delete the parameter with the special character.
  2. If TR with initial configuration of the parameters with the special character "&" lies in the system and the records with parameter names including ‘&’ are transported, then all functionalities related to work center formulas would not work.  It's able to use the app "Export Customizing Transports" to delete the TR. 

Keywords

Special Character, Parameters, Product Costing, Error, "In Unicode programs, the "&" character cannot appear", RCR05GEN, work center, ABAP Runtime error ,value key , KBA , PP-BD-WKC-2CL , Work Center (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions