Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Execute a function to SAP/R3 in it from VFP
Message
From
27/05/2004 11:26:51
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Execute a function to SAP/R3 in it from VFP
Miscellaneous
Thread ID:
00907775
Message ID:
00907775
Views:
114
I need to know how can I connect to SAP/R3, an then how excecute a function in it from Visual FoxPro.


* Code

1.- Connection with Sap ( Achieved )

&& FUNCTION OF THE OBJECT

FuncControl=CREATEOBJECT("SAP.FUNCTIONS")
FuncControl.LogFileName="c:\tmp\Table+viewlog.txt"
FuncControl.LogLevel=8

&& CREATION OF THE CONNECTION OBJECT
conexion=FuncControl.Connection

&& PARAMETER OF CONNECTION
conexion.Client="025"
conexion.Language="E"
conexion.TraceLevel=6
conexion.System="CUB"
conexion.ApplicationServer="" && IP APLICATION SERVER
conexion.SystemNumber="00"
conexion.User="" && USER
conexion.Password="" && PASSWORD
IF conexion.Logon()=.T.

&& You Connects SAP

resultado=FuncControl.Z_NOMINA_ETECSA(Exeption,fec_doc:="30122003",;
fec_con:="30122003",soc:="ETCS",peri:="12",moneda:="CUP",;
Group:="LUIS",nom_file:="LUIS.TXT",path:="C:\")

ENDIF

&& THE CALL TO THE FUNCTION Z_NOMINA_ETECSA, ( WORKS WELL STA ) IN VB
&& BUT IN VFP NOT

? AS MAKING THIS CALL IN VISUAL FOXPRO ?
Reply
Map
View

Click here to load this message in the networking platform