General information
Title:
Ejecutar una funcion de Sap desde Fox
Por favor necesito ayuda!!!!. Necesito ejecutar una funcion de Sap/R3 estando conectado
desde visual Foxpro.
* Codigo
1.- Conectarme a Sap ( Logrado )
&& CREANDO LA FUNTION DEL OBJETO
FuncControl=CREATEOBJECT("SAP.FUNCTIONS")
FuncControl.LogFileName="c:\tmp\Table+viewlog.txt"
FuncControl.LogLevel=8
&& CREANDO EL OBJETO DE CONEXION
conexion=FuncControl.Connection
&& PARAMETROS DE LA CONEXION
conexion.Client="025"
conexion.Language="E"
conexion.TraceLevel=6
conexion.System="CUB"
conexion.ApplicationServer="" && IP SERVIDOR DE APLICACION
conexion.SystemNumber="00"
conexion.User="" && USUARIO
conexion.Password="" && PASSWORD
IF conexion.Logon()=.T.
&& Conecion Satisfactoria
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
EL PROBLEMA RADICA AQUI.
&& EL LLAMADO A LA FUNCION Z_NOMINA_ETECSA, FUNCIONA BIEN ( ASI COMO ESTA ) EN VB
&& PERO EN VFP NO
? COMO HACER ESTA LLAMADA EN VFP ?
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only