on 07-17-2007 9:03 AM
Hi,
I wrote a VB program that creates documents in SAP via the RFC function module CVAPI_DOC_CREATE.
I already wrote a PHP version of the same program and it works.
Before calling function CVAPI_DOC_CREATE, there is an instruction that allows the sap server to start program sapftp on the client. SAPFTP program is then used to transfer files from client to R/3 server.
PHP version : $rc = saprfc_allow_start_program ("sapftp");
Java version: JCO.setMiddlewareProperty("jco.middleware.allow_start_of_programs", "sapftp")
Does any one knows the VB version of this instruction ?
Thanks for any help you can provide
Abdel SIDHOM
Hi Abdel,
the following code can be used to start notepad from a C# programm.
System.Diagnostics.Process myProcess = new System.Diagnostics.Process();
myProcess.StartInfo.FileName = "Notepad";
myProcess.StartInfo.WindowStyle = ProcessWindowStyle.Maximized;
myProcess.Start();
Best regards,
André
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
I finally fixed the problem with VB6 by adding :
Private Declare Function RfcAllowStartProgram Lib "librfc32.dll" (ByVal s As String) As Long
Result = RfcAllowStartProgram("sapftp")
The RfcAllowStartProgram function must be called before calling CVAPI_DOC_CREATE function module.
Regards,
Abdel
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.