cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_DOCUMENT_CHECKOUTVIEW2 vs VB.NET

Former Member
0 Kudos

Hi, 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)

Edited by: Raul Cicuendez on Nov 28, 2008 8:54 AM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Myself solve the problem.

Thanks !