cancel
Showing results for 
Search instead for 
Did you mean: 

JCO Server - function template definition

Former Member
0 Kudos

Hi all,

I'm writing a JCO Server application where I define a function template with three tables each with a number of character fields.

It seems that I need to set the length of each field to the double of the corresponding field of the SAP function.

For example, the field COD_ZONE should be a char(2) (valid value: B1) and then I need to set the char length to 4 otherwise a truncated value is received.

It looks like a double-byte character set is set in SAP environment, but it should not be the case.

Do you have any idea ?

Thanks for helping

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Answer was ok

Former Member
0 Kudos

is your SAP system unicode? if so, you have other function definitons than in an non-unicode enviroment

regards franz

Former Member
0 Kudos

Yes,

we have unicode environment.

That means that I can't use following definition ?

fmeta = new JCO.MetaData("FUNC");

fmeta.addInfo("TABLE", JCO.TYPE_TABLE, 2, 0, 0, 0, "HEADER");

repository.addFunctionInterfaceToCache(fmeta);

JCO.MetaData tableMeta = new JCO.MetaData("HEADER");

tableMeta.addInfo("OBJECT_ID", JCO.TYPE_CHAR, 2, -1, 0);

Former Member
0 Kudos

Hello,

maybe you could use a client connection to build the metadata which is easier than building the metadata from scratch

regards

franz