cancel
Showing results for 
Search instead for 
Did you mean: 

units language in bapi

Former Member
0 Kudos

Hi.

I'm using jco and bapi to get data from SAP system to Java servlet and I'm facing problems with units. For example in calling BAPI_MATERIAL_GET_DETAIL instead of getting correct localized material units in the output data like PAC, CRT, etc. I'm getting SAP codes PAK, KI.

What really makes me confused is that when I test babis inside SAP-gui (transaction BAPI and there F8), I'm getting the right localized ones.

I'm using JCO 2.1.6 and in JCO.createClient I define language as "EN".

So I'm a bit confused how this is supposed to be working? Is it ok, that bapis return those codes instead of localized values? And then is there a bapi or rfc which I can use to translate those or do I have to make a query to the db table t006a to get correct values?

Any help would be greatly appreciated!!!

-Petteri

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi, try and make the JCO connection language empty, so then the system will take the language used by the browser or the one configured in SU01 as the user language and the language in which to return data.

Regards,

Paulo Poinha