SAP Agent receiving language error messages

book

Article ID: 102681

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

There are different ways this issue can reveal itself:

1. SAP agents are failing with the following error message:
U2004172 Error while calling function module 'BAPI_XMI_LOGON'. 
Initialization of repository destination QR1_E011UC4CPIC failed: Parameter logon language ('lang') code 'EN|ENGLISH' is invalid 
com.sap.conn.jco.JCoException: Initialization of repository destination QR1_E011UC4CPIC failed: Parameter logon language ('lang') code 'EN|ENGLISH' is invalid 

U2004172 Error while calling function module 'BAPI_XBP_JOB_OPEN'. 
Initialization of repository destination QR1_E011UC4CPIC failed: Parameter logon language ('lang') code 'EN|ENGLISH' is invalid 

U2004081 Fehler bei Funktion 'BAPI_CONVERSION_EXT2INT1': 'Sprache EN', Type: 'ENGLISH ist dem System unbekannt.', ID:'E', Nummer: 'TL|080'

2. SAP jobs can't be updated in AWI after an upgrade from v11.2
The following error appears:
com.vaadin.server.ServerRpcManager$RpcInvocationException: Unable to invoke method click in com.vaadin.shared.ui.button.ButtonServerRpc
 at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:162)
 at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:119)
 at com.vaadin.server.communication.ServerRpcHandler.handleInvocation(ServerRpcHandler.java:437)
 at com.vaadin.server.communication.ServerRpcHandler.handleInvocations(ServerRpcHandler.java:402)
 at com.vaadin.server.communication.ServerRpcHandler.handleRpc(ServerRpcHandler.java:273)
 at com.vaadin.server.communication.PushHandler$2.run(PushHandler.java:148

Cause

When importing SAP JOB objects, the Java API is not validating the input language.
If an SAP JOB object is exported, the language is saved in the format - two character language code, pipe symbol and language name.
eg. EN|ENGLISH or DE|GERMAN

When importing the exported object, the Java API just takes the entire string and places it in the language field on SAP JOB Objects.

Environment

Java API version 12
AWI version 12

Resolution

Workaround:
1. Run the following SQL statement to find out, which SAP JOB objects have the incorrect language stored:
SELECT OH_client,JBA_OH_Idnr, OH_Name, JBA_Rest, OH_ModDate 
FROM JBA, OH 
where JBA_OH_Idnr=OH_Idnr 
and JBA_Rest like '%|%'; 


2. For each of the objects from the SQL statement's result, do the following: 
1. Open the object  in the AWI and go to the SAP tab. 
2. Make a note of the original language on the job. 
3. Change the language to something another value. 
4. Save the changes. 
5. Repeat the steps above(1 through 4) to return the job back to the original language value. 



3. Stop and restart the effected SAP agent.
___________________________________________________________________________________________
Solution:
Please install one of the versions listed below or a higher version to obtain the correction. 
The correction for this issue has been made and will be available in the following versions: 
Automation.Engine 12.0.6 - Available
Automation.Engine 12.1.2 - Available
Automation.Engine 12.1.3 - Available
Automation.Engine 12.2.0 - Available
Automation.Engine 12.2.1 - Available
Automation.Engine 12.3.0 - Available