cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_DOCUMENT_CHECKOUTVIEW2 does not download document

lu_huynh
Participant
0 Kudos

Hi Everybody,

My case is that I created a Webmodule with Java-Class to call the FM BAPI_DOCUMENT_CHECKOUTVIEW2 to download a PDF to the Server. I deployed the Webmodule to java application server with Netweaver Developer Studio, but when I run the application no file has been downloaded to the filesystem ("ORIGINALPATH", for example: "c:/temp/").

What also might be helpful is, when I start the application deployed to the JAVA AS the returncode is "000" and no Message is given back.

When I deploy the application to tomcat-server on the same machine with the same code the FM works fine!

Maybe there is a hint with the jcorfc32.dll, sapjcorfc.dll, saphttp.exe, sapftp.exe? I have copied these files to the system32 folder on the machine the application is running. Do I have to move these files somewhere else on the application server? Or is there a special way to register these files in the NWDS?

Hope Somebody can help...

Kind regards,

Lu

Edited by: Lu Huynh on Oct 16, 2008 7:49 AM

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

This issue is resolved? I is to use C # calling this BAPI function is also encountered the same problem, please tell me your solution

Thanks and Regards,

Collin

Former Member
0 Kudos

This issue is resolved? I is to use C # calling this BAPI function is also encountered the same problem, please tell me your solution

Thanks and Regards,

Collin

lu_huynh
Participant
0 Kudos

Hi,

Isn't there anybody who can help or made similar expiriences?

Thanks in advance.

Kind regards,

Lu

Former Member
0 Kudos

Hi, i'm in the similiar case.. but in my case i'm using VB.NET.

i'm trying to chekout a Logical Document in the CMS with a VB.NET program, this is the piece of code:

When i try this call with the SAPGUI it works perfect! but when i run the VB.NET program the call

returns the following

ddReturn0 -->

_Id = "26"

LogMsg_No = "000000"

Message = "No se puede crear el fichero C:\MIFILE.pdf"

MessageV1 = "C:\_MIFILE.pdf"

_Number "172"

_Row 0

_system "DESCLNT020"

_Type "E"

ToEnglish:

Message = "The file C:\MIFILE.pdf cannot be created"

Rest of values contains ""

SAPFTP.EXE is in the bin folder.

Thanks and Regards!!

VB.NET CODE:

ddDocumentnumber = "0000000010000000000000004"

ddDocumentpart = "000"

ddDocumentversion = "00"

ddDocumenttype = "ZMA"

ddOriginalpath = PATH

ddPf_Ftp_Dest = "SAPFTP"

'ddPf_Http_Dest = "SAPHTTP"

proxy.BapiDocument_Checkoutview2(ddDocbomchangenumber, _

ddDocbomrevisionlevel, _

ddDocbomvalidfrom, _

ddDocumentfile, _

ddDocumentnumber, _

ddDocumentpart, _

ddDocumenttype, _

ddDocumentversion, _

ddGetcomponents, _

ddGetheader, _

ddGetstructure, _

ddHostname, _

ddOriginalpath, _

ddPf_Ftp_Dest, _

ddPf_Http_Dest, _

ddReturn0, _

ddComponents, _

ddDocumentfiles, _

ddDocumentstructure)