Customer SAP system contain some special characters(special characters come when the user upload the data from XL/Word etc). Those characters, should not send to Java application and
replace those special characters with #(or with any other symbol) and send to java application.
Above issue is resolved using the following way
if we set it as non-unicode, those character will be automatically replaced by SAP with #(or with any configured Error Indicator).
SAP destination level: Selected non-unicode/Codepage from client-side logon language (at runtime)
Java application level: did not set anything explicitly. leave it to sapjco lib default values(JCO_PCS=1, JCO_CODEPAGE= 1100)
We have tested above settings in Pre production environment, we got positive result and things are working as expected. When we moved to Production environment, same settings are not working.
Please suggest some to solution for this issue.
Platform details:
Java application : unicode system
SAP System: unicode system
SAP enhancement version: EHP8
Sap jco jar version: 3.1.7
OS: Linux redhat 7.9
JDK: 11
kind of Java program: standalone Java application using sapjco3.jar to communicate with SAP systems to send/receive IDoc files via SAP ALE.
Application flows:
1. we will send IDoc files to SAP ALE system by using sapjco3.jar JCoCustomDestination class
2. we will receive IDoc files from SAP ALE using sapjco3.jar JCoServer class