Skip to Content

How can we fetch the primary and secondary language of SAP SERVER using java.


We had a query, We wanted to know how to read the profile parameters defined in SAP using java stand alone system. The parameters we are interested in are "ZCSA/SECOND_LANGUAGE" and "zcsa/system_language".

Are there any BAPIs or tables which can be used to fetch primary and secondary language used for particular SAP Server (ABAP System).

In our java stand alone system we use RFC to fetch information from SAP Server.
e.g. Address for an user is fetched using bapi "BAPI_USER_GET_DETAIL" using jco connection.
JCoDestination destination = null;
Properties jcoPropeties = new Properties();
jcoPropeties.setProperty("jco.client.client", "000");
jcoPropeties.setProperty("jco.client.user", "MY_USER");
jcoPropeties.setProperty("jco.client.passwd", "SAPSAP");
jcoPropeties.setProperty("jco.client.lang", "EN");
jcoPropeties.setProperty("jco.client.ashost", "myhost");
destination = JCoDestinationManager.getDestination(jcoPropeties);

JCoFunction getDetail = getFunction(destination, "BAPI_USER_GET_DETAIL");

getDetail.getImportParameterList().setValue(SAPConnector.ATTR_USERNAME, id);
JCoStructure address = getDetail.getExportParameterList().getStructure("ADDRESS");

Similarly can we read the profile parameter "second_language" through java code using either a BAPI or any table?

Please suggest a solution.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers