popeye
26th September 2002, 21:08
Hi,
I am currently working on a BOI.
I have changed the standard BOI format.
I am not using structures etc - I don't need it for this BOI.
Reasons for not using Structures:
1. I am using it to insert just 2 fields and there is always only one record.
So it's not worth the overhead of using structures.
2. I am using 2 ref fields for the Errors instead on the Error Structure.
Baan BOI DLL
function extern long ccitmprodtsync.InsertItemSiebelID(domain tcitem hold.item,
domain tcmcs.str15 hold.siebel.id,
long hold.comp,
ref long error.code,
ref string hold.error.message)
Java Client (test)
String Item = new String();
String SiebelId = new String();
int ForCompany = Integer.parseInt(args[0]);
RefInteger ErrorCode = new RefInteger();
RefString ErrorMessage = new RefString();
int ret = pr.InsertItemSiebelID(Item,
SiebelId,
ForCompany,
ErrorCode,
ErrorMessage);
if (ret == 0)
{
System.out.println("ErrorCode : " + ErrorCode + " ErrorMessage = " + ErrorMessage);
}
The System.out.println does not give me a compilation issue.
But it does not print the Error Code / Error Message either.
Instead I get this ...
ErrorCode : com.baan.tech.baanconnection.RefInteger@89 ErrorMessage = com.baan.tech.baanconnection.RefString@82
How do I print these two values?
My Java skills are very limited.
Please advice.
Cheers,
Popeye!
I am currently working on a BOI.
I have changed the standard BOI format.
I am not using structures etc - I don't need it for this BOI.
Reasons for not using Structures:
1. I am using it to insert just 2 fields and there is always only one record.
So it's not worth the overhead of using structures.
2. I am using 2 ref fields for the Errors instead on the Error Structure.
Baan BOI DLL
function extern long ccitmprodtsync.InsertItemSiebelID(domain tcitem hold.item,
domain tcmcs.str15 hold.siebel.id,
long hold.comp,
ref long error.code,
ref string hold.error.message)
Java Client (test)
String Item = new String();
String SiebelId = new String();
int ForCompany = Integer.parseInt(args[0]);
RefInteger ErrorCode = new RefInteger();
RefString ErrorMessage = new RefString();
int ret = pr.InsertItemSiebelID(Item,
SiebelId,
ForCompany,
ErrorCode,
ErrorMessage);
if (ret == 0)
{
System.out.println("ErrorCode : " + ErrorCode + " ErrorMessage = " + ErrorMessage);
}
The System.out.println does not give me a compilation issue.
But it does not print the Error Code / Error Message either.
Instead I get this ...
ErrorCode : com.baan.tech.baanconnection.RefInteger@89 ErrorMessage = com.baan.tech.baanconnection.RefString@82
How do I print these two values?
My Java skills are very limited.
Please advice.
Cheers,
Popeye!