Hey all,
i´m facing "little" problems with checking out documents via BAPI_DOCUMENT_CHECKOUTVIEW2 and JCo 3.0.2 (JCo 3.0.4 is not working, but thats another topic!)
We´re running a standalone Java server - one task is to check out documents. On our server, we don´t have any SAP-GUI installed, so i put the two files sapftp.exe and saphttp.exe to windows path variable.
What´s running fine with JCo 2.1.8 is failing now - without any error message!!! When i call the BAPI via se37 from another system, the checkout works fine, so the document is valid.
My coding is:
JCoFunction function = dest.getRepository().getFunction("BAPI_DOCUMENT_CHECKOUTVIEW2");
if(function!=null){
JCoParameterList importParameterList = function.getImportParameterList();
JCoStructure documentfile = importParameterList.getStructure("DOCUMENTFILE");
documentfile.setValue("APPLICATION_ID","4B0D068FFF20D611859800902761A739");
documentfile.setValue("FILE_ID","4E0D068FFF20D611859800902761A739");
documentfile.setValue("ORIGINALTYPE","2");
importParameterList.setValue("DOCUMENTTYPE","DES");
importParameterList.setValue("DOCUMENTNUMBER","TESTME");
importParameterList.setValue("DOCUMENTPART","000");
importParameterList.setValue("DOCUMENTVERSION","00");
importParameterList.setValue("GETSTRUCTURE","1");
importParameterList.setValue("GETCOMPONENTS","X");
importParameterList.setValue("GETHEADER","X");
importParameterList.setValue("ORIGINALPATH","D:
TEMP
SAP
");
importParameterList.setValue("HOSTNAME","abcdefg");
importParameterList.setValue("PF_FTP_DEST","SAPFTPA");
importParameterList.setValue("PF_HTTP_DEST","SAPHTTPA");
function.execute(dest);
........
Unfortunately, i don´t get any results! Is checking out generally possible with JCo3?
I would be very grateful for any help you would offer to me on this subject.
regards ... Ralf