cancel
Showing results for 
Search instead for 
Did you mean: 

DMS via JCO - BAPI_DOCUMENT_CHECKOUTVIEW2

Former Member
0 Kudos

Hi All,

I'm trying to download a file from DMS in Web Dynpro.

I wrote a simple Java app that works when run from the command line.

I set:

JCO.setMiddlewareProperty("jco.middleware.allow_start_of_programs", "sapftp;saphttp");

and

input.setValue("SAHTTP", "PF_HTTP_DEST");
	input.setValue("SAFTP", "PF_FTP_DEST");

This allows me to download the file with out using SAPGUI.

When I added this code to my Web Dynpro application it executes without error but the file is not there. (input.setValue(".
", "ORIGINALPATH"); to create the file in the current directory)

I am thinking this is either due to:

-Different version of JCO between the sapjco.jar I am using in the Java command line app and the version used in Web Dynpro

-Web Dynpro application doesn't have rights to write file on the server.

Any thoughts or similar experiences?

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Try to set this command previous execute the function.

client.setSapGui(2);

client.setTrace(true);

Former Member
0 Kudos

Hello!!

Did this work ? Which version of JCo are you using ? I beleive this doesn;t work on JCo 3.

Thanks.