on 08-02-2007 2:16 PM
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
Try to set this command previous execute the function.
client.setSapGui(2);
client.setTrace(true);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.