Hi, I'm working on a linux box. The jre is 1.6 The sapjco is in a directory LD_LIBRARY_PATH=PATH_to_sapjco3.jar CLASSPATH = $LD_LIBRARY_PATH/sapjco3.jar $LD_LIBRARY_PATH added in /etc/ld.conf TOS-All-r19980-V3.0.1 When I start ./TalendOpenStudio-linux-gtk-x86, all is running BUT I HAVEN'T ANY SAP CONNECTION. Can you tell me what I have forget to do ? Thx
Well,
I've added the "external jar". I done an link from sapjco.jar to sapjco3.jar (ln -sf sapjco3.jar sapjco.jar).
But I cannot see the sap sonection in the "Repository" / "Metadata".
I think I forget something again. But what ?
Thx for your help
Just for Those who need to have the "Commit" for the BAPI'S the Following COde should be installed to the tSapComponent Via Eclipse to Create your Custom Component. The first line "IF" ststaement should be Modified to fit what your first line of the Output Reflects. Ini the example below This is Valid for SAP "BAPI_GOODSMVT_CREATE" and Returns The Transaction Id Number into "row3.MAT_DOC"
*************************************************************************************
if ((String)globalMap.get(row3.MAT_DOC)!= null)
{
com.sap.mw.jco.IFunctionTemplate functionTemplate_tSAPInput_11 = repository_tSAPInput_1
.getFunctionTemplate("BAPI_TRANSACTION_ROLLBACK");
com.sap.mw.jco.JCO.Function function_tSAPInput_11 = functionTemplate_tSAPInput_11
.getFunction();
client_tSAPInput_1.execute(function_tSAPInput_11);
}
else
{
com.sap.mw.jco.IFunctionTemplate functionTemplate_tSAPInput_11 = repository_tSAPInput_1
.getFunctionTemplate("BAPI_TRANSACTION_COMMIT");
com.sap.mw.jco.JCO.Function function_tSAPInput_11 = functionTemplate_tSAPInput_11
.getFunction();
client_tSAPInput_1.execute(function_tSAPInput_11);
}
*************************************************************************************
Good Luck.