Error fetching data from a foxpro db using Oracle Gateway for ODBC

Hi.
I have an 10.2.0.1 database an a 11.2.0 Oracle Gateway for ODBC installed and configured.
The dblink test works fine, I can connect with the foxpro database because if I execute desc centros I can see the
columns of table centros.
The problem comes when I try to execute Select * from centros@fox1;
A syntax error is returned ([Microsoft][ODBC Visual FoxPro Driver]Syntax error. {42000,NativeErr = 200})
I paste down the output of the trace file with HS_FDS_TRACE_LEVEL=255
If I run select codcen from centros@fox1; another error is shown. Tell me if you want the other trace file.
select codcen from centros@fox1
ERROR en lÝnea 1:
ORA-00904: "CODCEN": identificador no vßlido
Oracle Corporation --- JUEVES MAY 31 2012 13:11:24.765
Heterogeneous Agent Release
11.2.0.1.0
Oracle Corporation --- JUEVES MAY 31 2012 13:11:24.750
Version 11.2.0.1.0
Entered hgogprd
HOSGIP for "HS_FDS_TRACE_LEVEL" returned "255"
Entered hgosdip
setting HS_OPEN_CURSORS to default of 50
setting HS_FDS_RECOVERY_ACCOUNT to default of "RECOVER"
setting HS_FDS_RECOVERY_PWD to default value
setting HS_FDS_TRANSACTION_LOG to default of HS_TRANSACTION_LOG
setting HS_IDLE_TIMEOUT to default of 0
setting HS_FDS_TRANSACTION_ISOLATION to default of "READ_COMMITTED"
setting HS_NLS_NCHAR to default of "UCS2"
setting HS_FDS_TIMESTAMP_MAPPING to default of "DATE"
setting HS_FDS_DATE_MAPPING to default of "DATE"
setting HS_RPC_FETCH_REBLOCKING to default of "ON"
setting HS_FDS_FETCH_ROWS to default of "100"
setting HS_FDS_RESULTSET_SUPPORT to default of "FALSE"
setting HS_FDS_RSET_RETURN_ROWCOUNT to default of "FALSE"
setting HS_FDS_PROC_IS_FUNC to default of "FALSE"
setting HS_FDS_CHARACTER_SEMANTICS to default of "FALSE"
setting HS_FDS_MAP_NCHAR to default of "TRUE"
setting HS_NLS_DATE_FORMAT to default of "YYYY-MM-DD HH24:MI:SS"
setting HS_FDS_REPORT_REAL_AS_DOUBLE to default of "FALSE"
setting HS_LONG_PIECE_TRANSFER_SIZE to default of "65536"
setting HS_SQL_HANDLE_STMT_REUSE to default of "FALSE"
setting HS_FDS_QUERY_DRIVER to default of "TRUE"
setting HS_FDS_SUPPORT_STATISTICS to default of "FALSE"
Parameter HS_FDS_QUOTE_IDENTIFIER is not set
setting HS_KEEP_REMOTE_COLUMN_SIZE to default of "OFF"
setting HS_FDS_GRAPHIC_TO_MBCS to default of "FALSE"
setting HS_FDS_MBCS_TO_GRAPHIC to default of "FALSE"
Default value of 32 assumed for HS_FDS_SQLLEN_INTERPRETATION
setting HS_CALL_NAME_ISP to "gtw$:SQLTables;gtw$:SQLColumns;gtw$:SQLPrimaryKeys;gtw$:SQLForeignKeys;gtw$:SQLProcedures;gtw$:SQLStatistics;gtw$:SQLGetInfo"
setting HS_FDS_DELAYED_OPEN to default of "TRUE"
setting HS_FDS_WORKAROUNDS to default of "0"
Exiting hgosdip, rc=0
ORACLE_SID is "DAVID"
Product-Info:
Port Rls/Upd:1/0 PrdStat:0
Agent:Oracle Database Gateway for ODBC
Facility:hsa
Class:ODBC, ClassVsn:11.2.0.1.0_0008, Instance:DAVID
Exiting hgogprd, rc=0
hostmstr: 2057416704:      HOA After hoagprd
hostmstr: 2057416704:      HOA Before hoainit
Entered hgoinit
HOCXU_COMP_CSET=1
HOCXU_DRV_CSET=178
HOCXU_DRV_NCHAR=1000
HOCXU_DB_CSET=178
HOCXU_SEM_VER=102000
Entered hgolofn at 2012/05/31-13:11:25
Exiting hgolofn, rc=0 at 2012/05/31-13:11:25
HOSGIP for "HS_OPEN_CURSORS" returned "50"
HOSGIP for "HS_FDS_FETCH_ROWS" returned "100"
HOSGIP for "HS_LONG_PIECE_TRANSFER_SIZE" returned "65536"
HOSGIP for "HS_NLS_NUMERIC_CHARACTER" returned ".,"
HOSGIP for "HS_KEEP_REMOTE_COLUMN_SIZE" returned "OFF"
HOSGIP for "HS_FDS_DELAYED_OPEN" returned "TRUE"
HOSGIP for "HS_FDS_WORKAROUNDS" returned "0"
HOSGIP for "HS_FDS_MBCS_TO_GRAPHIC" returned "FALSE"
HOSGIP for "HS_FDS_GRAPHIC_TO_MBCS" returned "FALSE"
Invalid value of 32 given for HS_FDS_SQLLEN_INTERPRETATION
treat_SQLLEN_as_compiled = 1
Exiting hgoinit, rc=0 at 2012/05/31-13:11:25
hostmstr: 2057416704:      HOA After hoainit
hostmstr: 2057416704:      HOA Before hoalgon
Entered hgolgon at 2012/05/31-13:11:25
reco:0, name:SYSTEM, tflag:0
Entered hgosuec at 2012/05/31-13:11:25
Exiting hgosuec, rc=0 at 2012/05/31-13:11:25
HOSGIP for "HS_FDS_RECOVERY_ACCOUNT" returned "RECOVER"
HOSGIP for "HS_FDS_TRANSACTION_LOG" returned "HS_TRANSACTION_LOG"
HOSGIP for "HS_FDS_TIMESTAMP_MAPPING" returned "DATE"
HOSGIP for "HS_FDS_DATE_MAPPING" returned "DATE"
HOSGIP for "HS_FDS_CHARACTER_SEMANTICS" returned "FALSE"
HOSGIP for "HS_FDS_MAP_NCHAR" returned "TRUE"
HOSGIP for "HS_FDS_RESULTSET_SUPPORT" returned "FALSE"
HOSGIP for "HS_FDS_RSET_RETURN_ROWCOUNT" returned "FALSE"
HOSGIP for "HS_FDS_PROC_IS_FUNC" returned "FALSE"
HOSGIP for "HS_FDS_REPORT_REAL_AS_DOUBLE" returned "FALSE"
using SYSTEM as default value for "HS_FDS_DEFAULT_OWNER"
HOSGIP for "HS_SQL_HANDLE_STMT_REUSE" returned "FALSE"
Entered hgocont at 2012/05/31-13:11:25
HS_FDS_CONNECT_INFO = "Prueba_Foxpro"
RC=-1 from HOSGIP for "HS_FDS_CONNECT_STRING"
Entered hgogenconstr at 2012/05/31-13:11:25
dsn:Prueba_Foxpro, name:SYSTEM
optn:
Entered hgocip at 2012/05/31-13:11:25
dsn:Prueba_Foxpro
Exiting hgocip, rc=0 at 2012/05/31-13:11:25
##>Connect Parameters (len=39)<##
## DSN=Prueba_Foxpro;
#! UID=SYSTEM;
#! PWD=*
Exiting hgogenconstr, rc=0 at 2012/05/31-13:11:25
Entered hgopoer at 2012/05/31-13:11:26
hgopoer, line 233: got native error 0 and sqlstate 01000; message follows...
[*Microsoft][Administrador de controladores ODBC] El controlador no admite una versión de ODBC distinta de la que la necesita la aplicación (vea SQLSetEnvAttr)*. {01000}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:26
hgocont, line 2686: calling SqlDriverConnect got sqlstate 01000
Entered hgolosf at 2012/05/31-13:11:26
ODBC Function-Available-Array 0xFFFE 0x00FF 0xFF00 0xAA7F 0x03B3 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0x0000 0x0000 0x0000 0x0000
0x0000 0x0000 0xEE00 0x395C
Exiting hgolosf, rc=0 at 2012/05/31-13:11:26
DriverName:VFPODBC.DLL, DriverVer:06.86.0001
DBMS Name:Visual FoxPro, DBMS Version:03.00.0000
Exiting hgocont, rc=0 at 2012/05/31-13:11:26 with error ptr FILE:hgocont.c LINE:2686 ID:SQLDriverConnect
Entered hgopoer at 2012/05/31-13:11:26
hgopoer, line 233: got native error 0 and sqlstate HYC00; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Driver not capable {HYC00}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:26
hgolgon, line 795: calling SQLGetInfo got sqlstate HYC00
SQLGetInfo returns N for SQL_CATALOG_NAME
Exiting hgolgon, rc=0 at 2012/05/31-13:11:26 with error ptr FILE:hgolgon.c LINE:795 ID:GetInfo: Support catalogs
hostmstr: 2036506624:      HOA After hoalgon
RPC Calling nscontrol(0), rc=0
hostmstr: 2036506624: RPC Before Upload Caps
hostmstr: 2036506624:      HOA Before hoaulcp
Entered hgoulcp at 2012/05/31-13:11:26
Entered hgowlst at 2012/05/31-13:11:26
Exiting hgowlst, rc=0 at 2012/05/31-13:11:26
SQLGetInfo returns 0x0 for SQL_OWNER_USAGE
TXN Capable:1, Isolation Option:0x2
SQLGetInfo returns 0 for SQL_MAX_SCHEMA_NAME_LEN
SQLGetInfo returns 128 for SQL_MAX_TABLE_NAME_LEN
SQLGetInfo returns 0 for SQL_MAX_PROCEDURE_NAME_LEN
SQLGetInfo returns ` (0x60) for SQL_IDENTIFIER_QUOTE_CHAR
SQLGetInfo returns Y for SQL_COLUMN_ALIAS
16 instance capabilities will be uploaded
capno:1964, context:0x00000000, add-info: 0
capno:1989, context:0x00000000, add-info: 0
capno:1991, context:0x0001ffff, add-info: 0
capno:1992, context:0x0001ffff, add-info: 1, translation:"`"
capno:3042, context:0x00000000, add-info: 0, translation:"42"
capno:3047, context:0x00000000, add-info: 0, translation:"57"
capno:3049, context:0x00000000, add-info: 0, translation:"59"
capno:3050, context:0x00000000, add-info: 0, translation:"60"
capno:3066, context:0x00000000, add-info: 0
capno:3067, context:0x00000000, add-info: 0
capno:3068, context:0x00000000, add-info: 0
capno:3069, context:0x00000000, add-info: 0
capno:3500, context:0x00000001, add-info: 91, translation:"42"
capno:3501, context:0x00000001, add-info: 93, translation:"57"
capno:3502, context:0x00000001, add-info: 107, translation:"59"
capno:3503, context:0x00000001, add-info: 110, translation:"60"
Exiting hgoulcp, rc=0 at 2012/05/31-13:11:26
hostmstr: 2036506624:      HOA After hoaulcp
hostmstr: 2036506624: RPC After Upload Caps
hostmstr: 2036506624: RPC Before Upload DDTR
hostmstr: 2036506624:      HOA Before hoauldt
Entered hgouldt at 2012/05/31-13:11:27
NO instance DD translations were uploaded
Exiting hgouldt, rc=0 at 2012/05/31-13:11:27
hostmstr: 2036506624:      HOA After hoauldt
hostmstr: 2036506624: RPC After Upload DDTR
hostmstr: 2036506624: RPC Before Begin Trans
hostmstr: 2036506624:      HOA Before hoabegn
Entered hgobegn at 2012/05/31-13:11:27
tflag:0 , initial:1
hoi:0x12f094, ttid (len 54) is ...
00: 54455354 2E524547 52455353 2E524442 [TEST.REGRESS.RDB]
10: 4D532E44 45562E55 532E4F52 41434C45 [MS.DEV.US.ORACLE]
20: 2E434F4D 2E663033 63383037 372E392E [.COM.f03c8077.9.]
30: 34342E37 3735 [44.775]
tbid (len 10) is ...
0: 09002C00 07030000 0104 [..,.......]
Exiting hgobegn, rc=0 at 2012/05/31-13:11:27
hostmstr: 2036506624:      HOA After hoabegn
hostmstr: 2036506624: RPC After Begin Trans
hostmstr: 2036506624: RPC Before Describe Table
hostmstr: 2036506624:      HOA Before hoadtab
Entered hgodtab at 2012/05/31-13:11:27
count:1
table: CENTROS
Entered hgopdsc at 2012/05/31-13:11:27
Describing procedure CENTROS
Output hoada
hgopdsc, line 1426: NO hoada to print
Exiting hgopdsc, rc=942 at 2012/05/31-13:11:27
The hoada for table CENTROS follows...
hgodtab, line 904: NO hoada to print
Exiting hgodtab, rc=0 at 2012/05/31-13:11:27
hostmstr: 2036506624:      HOA After hoadtab
hostmstr: 2036506624: RPC After Describe Table
hostmstr: 2036506624: RPC Before SQL Bundling
hostmstr: 2036506624:      HOA Before hoxpars
Entered hgopars, cursor id 1 at 2012/05/31-13:11:27
type:0
SQL text from hgopars, id=1, len=23 ...
00: 53454C45 4354202A 2046524F 4D202243 [SELECT * FROM "C]
10: 454E5452 4F5322 [ENTROS"]
Exiting hgopars, rc=0 at 2012/05/31-13:11:28
hostmstr: 2036506624:      HOA After hoxpars
hostmstr: 2036506624: RPC After SQL Bundling
hostmstr: 2036506624: RPC Before SQL Bundling
hostmstr: 2036506624:      HOA Before hoxopen
Entered hgoopen, cursor id 1 at 2012/05/31-13:11:28
hgoopen, line 87: NO hoada to print
Deferred open until first fetch.
Exiting hgoopen, rc=0 at 2012/05/31-13:11:28
hostmstr: 2036506624:      HOA After hoxopen
hostmstr: 2036506624:      HOA Before hoxdscr
Entered hgodscr, cursor id 1 at 2012/05/31-13:11:28
Allocate hoada @ 023E983C
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]*Descriptor type out of range* {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:1(codcen): dtype:1 (CHAR), prc/scl:8/0, nullbl:0, octet:8, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:2(litcen): dtype:1 (CHAR), prc/scl:45/0, nullbl:0, octet:45, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:3(codpos): dtype:1 (CHAR), prc/scl:5/0, nullbl:0, octet:5, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:4(codprov): dtype:1 (CHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:5(codmun): dtype:1 (CHAR), prc/scl:3/0, nullbl:0, octet:3, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:6(codecol): dtype:1 (CHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:7(codesin): dtype:1 (CHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:8(cb): dtype:1 (CHAR), prc/scl:4/0, nullbl:0, octet:4, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:9(cs): dtype:1 (CHAR), prc/scl:4/0, nullbl:0, octet:4, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:10(digitocon): dtype:1 (CHAR), prc/scl:2/0, nullbl:0, octet:2, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:11(cuenta): dtype:1 (CHAR), prc/scl:10/0, nullbl:0, octet:10, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopcda at 2012/05/31-13:11:28
Column:12(solar): dtype:2 (NUMERIC), prc/scl:5/0, nullbl:0, octet:10, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopcda at 2012/05/31-13:11:28
Column:13(construido): dtype:2 (NUMERIC), prc/scl:5/0, nullbl:0, octet:10, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:14(domicen): dtype:1 (CHAR), prc/scl:40/0, nullbl:0, octet:40, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:15(telef): dtype:1 (CHAR), prc/scl:11/0, nullbl:0, octet:11, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:16(fax): dtype:1 (CHAR), prc/scl:11/0, nullbl:0, octet:11, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:17(cif): dtype:1 (CHAR), prc/scl:11/0, nullbl:0, octet:11, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Descriptor type out of range {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
Entered hgopcda at 2012/05/31-13:11:28
Column:18(litloc): dtype:1 (CHAR), prc/scl:30/0, nullbl:0, octet:30, sign:1, radix:0
Exiting hgopcda, rc=0 at 2012/05/31-13:11:28
hgodscr, line 910: Printing hoada @ 023E983C
MAX:18, ACTUAL:18, BRC:100, WHT=5 (SELECT_LIST)
hoadaMOD bit-values found (0x200:TREAT_AS_CHAR)
DTY NULL-OK LEN MAXBUFLEN PR/SC CST IND MOD NAME
1 CHAR N 8 8 0/ 0 0 0 200 codcen
1 CHAR N 45 45 0/ 0 0 0 200 litcen
1 CHAR N 5 5 0/ 0 0 0 200 codpos
1 CHAR N 2 2 0/ 0 0 0 200 codprov
1 CHAR N 3 3 0/ 0 0 0 200 codmun
1 CHAR N 2 2 0/ 0 0 0 200 codecol
1 CHAR N 2 2 0/ 0 0 0 200 codesin
1 CHAR N 4 4 0/ 0 0 0 200 cb
1 CHAR N 4 4 0/ 0 0 0 200 cs
1 CHAR N 2 2 0/ 0 0 0 200 digitocon
1 CHAR N 10 10 0/ 0 0 0 200 cuenta
3 DECIMAL N 7 7 5/ 0 0 0 0 solar
3 DECIMAL N 7 7 5/ 0 0 0 0 construido
1 CHAR N 40 40 0/ 0 0 0 200 domicen
1 CHAR N 11 11 0/ 0 0 0 200 telef
1 CHAR N 11 11 0/ 0 0 0 200 fax
1 CHAR N 11 11 0/ 0 0 0 200 cif
1 CHAR N 30 30 0/ 0 0 0 200 litloc
Exiting hgodscr, rc=0 at 2012/05/31-13:11:28 with error ptr FILE:hgodscr.c LINE:615 ID:Transfer Octet Length
hostmstr: 2036506624:      HOA After hoxdscr
hostmstr: 2036506624: RPC After SQL Bundling
hostmstr: 2036506624: RPC Before SQL Bundling
hostmstr: 2036506624:      HOA Before hoxclse
Entered hgoclse, cursor id 1 at 2012/05/31-13:11:28
Exiting hgoclse, rc=0 at 2012/05/31-13:11:28
hostmstr: 2036506624:      HOA After hoxclse
hostmstr: 2036506624:      HOA Before hoadafr
Entered hgodafr, cursor id 1 at 2012/05/31-13:11:28
Free hoada @ 023E983C
Exiting hgodafr, rc=0 at 2012/05/31-13:11:28
hostmstr: 2036506624:      HOA After hoadafr
hostmstr: 2036506624:      HOA Before hoxpars
Entered hgopars, cursor id 1 at 2012/05/31-13:11:28
type:0
SQL text from hgopars, id=1, len=235 ...
00: 53454C45 43542041 312E2263 6F646365 [SELECT A1."codce]
10: 6E222C41 312E226C 69746365 6E222C41 [n",A1."litcen",A]
20: 312E2263 6F64706F 73222C41 312E2263 [1."codpos",A1."c]
30: 6F647072 6F76222C 41312E22 636F646D [odprov",A1."codm]
40: 756E222C 41312E22 636F6465 636F6C22 [un",A1."codecol"]
50: 2C41312E 22636F64 6573696E 222C4131 [,A1."codesin",A1]
60: 2E226362 222C4131 2E226373 222C4131 [."cb",A1."cs",A1]
70: 2E226469 6769746F 636F6E22 2C41312E [."digitocon",A1.]
80: 22637565 6E746122 2C41312E 22736F6C ["cuenta",A1."sol]
90: 6172222C 41312E22 636F6E73 74727569 [ar",A1."construi]
A0: 646F222C 41312E22 646F6D69 63656E22 [do",A1."domicen"]
B0: 2C41312E 2274656C 6566222C 41312E22 [,A1."telef",A1."]
C0: 66617822 2C41312E 22636966 222C4131 [fax",A1."cif",A1]
D0: 2E226C69 746C6F63 22204652 4F4D2022 [."litloc" FROM "]
E0: 43454E54 524F5322 204131 [CENTROS" A1]
Entered hgopoer at 2012/05/31-13:11:28
hgopoer, line 233: got native error 200 and sqlstate 42000; message follows...
[Microsoft][ODBC Visual FoxPro Driver]Syntax error. {42000,NativeErr = 200}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgopars, line 457: calling SQLPrepare got sqlstate 42000
Exiting hgopars, rc=28500 at 2012/05/31-13:11:28 with error ptr FILE:hgopars.c LINE:487 ID:Prepare stmt
hostmstr: 2036506624:      HOA After hoxpars
hostmstr: 2036506624: RPC After SQL Bundling

The first issue I see is that Oracle 10.2.0.1 was never certified with DG4ODBC 11. Only 10.2.0.4 or 10.2.0.5 can be used as the Oracle database HS kernel requires a gateway compatibility patch and this patch is included in 10.2.0.4 or 10.2.0.5 Oracle database patch set.
Then another error in the trace is that for each column description you have an error:
hgopoer, line 233: got native error 0 and sqlstate HY091; message follows...
[Microsoft][ODBC Visual FoxPro Driver]*Descriptor type out of range* {HY091}
Exiting hgopoer, rc=0 at 2012/05/31-13:11:28
hgodscr, line 615: calling SQLColAttribute got sqlstate HY091
It seems it is not critical as DG4ODBC continues, but a more detailed analysis would require an ODBC trace.
When looking at the table description it seems the column names are all in lower letters, for example: solar. So commonly Dg4ODBC needs to quote the names
00: 53454C45 43542041 312E2263 6F646365 [SELECT A1."codce]
10: 6E222C41 312E226C 69746365 6E222C41 [n",A1."litcen",A]
20: 312E2263 6F64706F 73222C41 312E2263 [1."codpos",A1."c]
30: 6F647072 6F76222C 41312E22 636F646D [odprov",A1."codm]
40: 756E222C 41312E22 636F6465 636F6C22 [un",A1."codecol"]
50: 2C41312E 22636F64 6573696E 222C4131 [,A1."codesin",A1]
60: 2E226362 222C4131 2E226373 222C4131 [."cb",A1."cs",A1]
70: 2E226469 6769746F 636F6E22 2C41312E [."digitocon",A1.]
80: 22637565 6E746122 2C41312E 22736F6C ["cuenta",A1."sol]
90: 6172222C 41312E22 636F6E73 74727569 [ar",A1."construi]
A0: 646F222C 41312E22 646F6D69 63656E22 [do",A1."domicen"]
B0: 2C41312E 2274656C 6566222C 41312E22 [,A1."telef",A1."]
C0: 66617822 2C41312E 22636966 222C4131 [fax",A1."cif",A1]
D0: 2E226C69 746C6F63 22204652 4F4D2022 [."litloc" FROM "]
E0: 43454E54 524F5322 204131 [CENTROS" A1]
and according to the trace the FoxPro ODBC driver doesn't like these quotes and reports a syntax error.
So this explains at least why select codcen from centros@fox1 will fail. In general the Oracle database is case insensitive and translates all object names to upper case and the select it will pass to the foreign database would be similar to:
select CODCEN from CENTROS => which will fail as FoxPro is case sensitive. So the error message ORA-00904 (missing column name) is correct and the statement you need to use is:
select "codcen" from centros@fox1;
But this might lead again to the Syntax error you got earlier => You need to check which sign (single quote, back tick, double quote) Foxpro uses to quote object names and then set the gateway parameter HS_FDS_QUOTE_IDENTIFIER accordingly.
To check which character can be used to quote column/table names you might use the Microsoft ODBc test utility which was distributed in the old MDAC 2.8:
http://www.microsoft.com/downloads/details.aspx?familyid=5067faf8-0db4-429a-b502-de4329c8c850&displaylang=en
Edited by: kgronau on Jun 1, 2012 7:27 AM
If you know where I can download the MS FoxPro ODBC driver, please let me know and I'll check.

Similar Messages

  • How to fetch data from single database table using 2 internal tables.

    Hi friends,
    i am a new user of ABAP and also SDN.
    i need a help. 
    i want to fetch data from one database table based on primary keys of 2 internal tables.  how to put in where clause.
    Thanks in advance.

    hii
    refer to following code ..i hope it will help you
    SELECT matnr                         " Material Number
        FROM mara
        INTO TABLE i_mara
       WHERE matnr IN s_matnr.
      IF i_mara[] IS NOT INITIAL.
        SELECT matnr                       " Material Number
               werks                       " Plants
               prctr                       " Profit Center
          FROM marc
          INTO TABLE i_marc
           FOR ALL ENTRIES IN i_mara
         WHERE matnr = i_mara-matnr
           AND werks IN s_werks.
      ENDIF.                               " IF i_mara[] IS NOT INITIAL
      i_output = i_marc.
      IF i_marc[] IS NOT INITIAL.
        SELECT matnr                       " Material Number
               werks                       " Plants
               lgort                       " Storage Location
          FROM mard
          INTO TABLE i_mard
           FOR ALL ENTRIES IN i_marc
         WHERE matnr EQ i_marc-matnr
           AND werks EQ i_marc-werks
           AND lgort IN s_lgort.
      ENDIF.                               " IF i_mara[] IS NOT INITIAL
    regards
    twinkal

  • Error loading data from an XML file using HTTPService

    Hello All,
    I have a runtime error that has got me beat at the moment   I am building an App in Flash Builder 4 to run on AIR.
    The error is as follows: TypeError: Error #1009: Cannot access a property or method of a null object reference.
    What i'm Trying to Do:
    I have 2 DropDownList controls, the first is populated with country names and the other with language options.  All the 1st DropDownList control does
    is set an image control to display the country flag and enable the 2nd DropDownList.
    The 2nd DropDownList sets the langCode variable equal to the chosen language code.  I then call the language function and pass it langCode.  Using this variable, I build up the string
    so that langFilePath will be equal to the XML file (which is "Lang_GBR.xml") location on my desktop and then call the HTTPService.
    As soon as the language function is called, the runtime error occurs and highlights the line with btn_LS_mainMenu.label = loadLangService.lastResult.Lang.GlobalTags.btnMenu;
    where I try to assign the button label with a new value from the XML file.
    I suspect this may be a trivial error but I just can't see it at the moment. 
    Any help or guidance would be appreciated.  Thanks
    Code:
    <fx:Script>
            <![CDATA[
                   [Bindable]
                   public var langFilePath:String;
                   public var langDir:File = File.desktopDirectory;
                   public var langCode:String;
                   public function countrySelect_changeHandler(event:IndexChangeEvent):void
                        switch (countrySelect.selectedItem)
                             case ('United Kingdom'): 
                                  trace("Item Selected was: "+ countrySelect.selectedItem);
                                  img_countryFlag.source = AngolaFlag;
                             break;
                             case ('France'): 
                                   trace("Item Selected was: "+ countrySelect.selectedItem);
                                   img_countryFlag.source = AustraliaFlag;
                             break;
                             default: 
                             break;
                        langSelect.enabled = true;
                        trace("1st dropdownbox");
                   public function langSelect_changeHandler(event:IndexChangeEvent):void
                        switch (langSelect.selectedItem)
                             case ('English'): 
                                 trace("Language Selected was: "+ langSelect.selectedItem);
                                 langCode = "Lang_GBR"; 
                             break;
                             case ('French'): 
                                 trace("Language Selected was: "+ langSelect.selectedItem);
                                 langCode = "Lang_FRA"; 
                             break;
                        language(langCode);
                   public function language(aParam:String):void
                        trace("Code Was: " + aParam);
                        trace("Lang dir: " + langDir.nativePath);
                        langFilePath = langDir.nativePath + "/" + aParam + ".xml";
                        trace("File to load: " + langFilePath);
                        trace("loadLangFile.url: " + loadLangService.url);
                        loadLangService.send();
                        btn_LS_mainMenu.label = loadLangService.lastResult.Lang.GlobalTags.btnMenu;
              ]]>
    </fx:Script>
    <fx:Declarations>
         <s:HTTPService id="loadLangService" url="{langFilePath}"/>
    </fx:Declarations>
    <s:DropDownList x="10" y="201" id="countrySelect" prompt="Please Select Your Country" width="274" enabled="true" change="countrySelect_changeHandler(event)">
    <s:DropDownList x="10" y="348" id="langSelect" prompt="Please Select Your Language" width="274" enabled="false" change="langSelect_changeHandler(event)">

    Don't sure about your XML structure, but for now i see the problem here between this 2 lines of code:
    loadLangService.send();
    btn_LS_mainMenu.label = loadLangService.lastResult.Lang.GlobalTags.btnMenu;
    Think data that your httpService should receive just can't go so fast to populate the lastResult before you call it in the next line
    Try adding a result listener to your service before you send it:
    loadLangService.addEventListener(ResultEvent.RESULT, handler);
    loadLangService.send();
    function handler(event:ResultEvent):void {
         btn_LS_mainMenu.label = loadLangService.lastResult.Lang.GlobalTags.btnMenu;

  • Error while fetching data from OWB Client using External Table.

    Dear All,
    I am using Oracle Warehouse Builder 11g & Oracle 10gR2 as repository database on Windows 2000 Server.
    I facing some issue in fetching data from a Flat File using external table from OWB Client.
    I have perform all the steps without any error but when I try to view the data, I got the following error.
    ======================================
    RA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04040: file expense_categories.csv in SOURCE_LOCATION not found
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
    java.sql.SQLException: ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04040: file expense_categories.csv in SOURCE_LOCATION not found
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:110)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:171)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1030)
         at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:183)
         at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:774)
         at oracle.jdbc.driver.T4CStatement.executeMaybeDescribe(T4CStatement.java:849)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1186)
         at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1377)
         at oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:386)
         at oracle.wh.ui.owbcommon.QueryResult.<init>(QueryResult.java:18)
         at oracle.wh.ui.owbcommon.dataviewer.relational.OracleQueryResult.<init>(OracleDVTableModel.java:48)
         at oracle.wh.ui.owbcommon.dataviewer.relational.OracleDVTableModel.doFetch(OracleDVTableModel.java:20)
         at oracle.wh.ui.owbcommon.dataviewer.RDVTableModel.fetch(RDVTableModel.java:46)
         at oracle.wh.ui.owbcommon.dataviewer.BaseDataViewerPanel$1.actionPerformed(BaseDataViewerPanel.java:218)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:282)
         at oracle.wh.ui.owbcommon.dataviewer.BaseDataViewerPanel.executeQuery(BaseDataViewerPanel.java:493)
         at oracle.wh.ui.owbcommon.dataviewer.BaseDataViewerEditor.init(BaseDataViewerEditor.java:116)
         at oracle.wh.ui.owbcommon.dataviewer.BaseDataViewerEditor.<init>(BaseDataViewerEditor.java:58)
         at oracle.wh.ui.owbcommon.dataviewer.relational.DataViewerEditor.<init>(DataViewerEditor.java:16)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at oracle.wh.ui.owbcommon.IdeUtils._tryLaunchEditorByClass(IdeUtils.java:1412)
         at oracle.wh.ui.owbcommon.IdeUtils._doLaunchEditor(IdeUtils.java:1349)
         at oracle.wh.ui.owbcommon.IdeUtils._doLaunchEditor(IdeUtils.java:1367)
         at oracle.wh.ui.owbcommon.IdeUtils.showDataViewer(IdeUtils.java:869)
         at oracle.wh.ui.owbcommon.IdeUtils.showDataViewer(IdeUtils.java:856)
         at oracle.wh.ui.console.commands.DataViewerCmd.performAction(DataViewerCmd.java:19)
         at oracle.wh.ui.console.commands.TreeMenuHandler$1.run(TreeMenuHandler.java:188)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    ===========================
    In the error it is showing that file expense_categories.csv in SOURCE_LOCATION not found but I am 100% sure that file is very much there.
    Is anybody face the same issue?
    Do we need to configure something before loading data from a flat file from OWB Client?
    Any help would higly appreciable.
    Regards,
    Manmohan Sharma

    Hi Detlef / Gowtham,
    Now I am able to fetch data from flat files from OWB Server as well as OWB Client.
    One way I have achieved as suggested by you
    1) Creating location on the OWB Client
    2) Samples the files at client
    3) Created & Configured external table
    4) Copy all flat files on OWB Server
    5) Updated the location which I created at the client.
    Other way
    1) Creating location on the OWB Client
    2) Samples the files at client
    3) Created & Configured external table
    4) Copied flat files on the sever in same drive & directory . like if my all flat files are on C:\data at OWB Client then I copied flat file C:\data on the OWB Server. But this is feasible for Non-Windows.
    Hence my problem solved.
    Thanks a lot.
    Regards,
    Manmohan

  • Transformation Rule: Error while loading from PSA to ODS using DTP

    Hi Experts,
    I am trying to load data from PSA to ODS using DTP. For about 101 records I get the following error:
    "Runtime error while executing rule -> see long text     RSTRAN     301"
    On further looking at the long text:
    Diagnosis
        An error occurred while executing a transformation rule:
        The exact error message is:
        Overflow converting from ''
        The error was triggered at the following point in the program:
        GP4808B5A4QZRB6KTPVU57SZ98Z 3542
    System Response
        Processing the data record has been terminated.
    Procedure
          The following additional information is included in the higher-level
         node of the monitor:
         o   Transformation ID
         o   Data record number of the source record
         o   Number and name of the rule which produced the error
    Procedure for System Administration
    When looking at the detail:
    Error Location: Object Type    TRFN
    Error Location: Object Name    06BOK6W69BGQJR41BXXPE8EMPP00G6HF
    Error Location: Operation Type DIRECT
    Error Location: Operation Name
    Error Location: Operation ID   00177 0000
    Error Severity                 100
    Original Record: Segment       0001
    Original Record: Number        2
    Pls can anyone help in deducing and pointing this error to the exact spot in the transformation rule
    Thanks & Regards,
    Raj

    Jerome,
    The same issue.
    Here are some fields which are different in terms of length when mapped in transformation rules
    ODS                    |Data Source
    PROD_CATEG     CHAR32           |Category_GUID      RAW 16
    CRM_QTYEXP     INT4          |EXPONENT      INT2
    CRM_EXCRAT     FLTP16          |EXCHG_RATE     Dec 9
    CRM_GWEIGH     QUAN 17, 3     |Gross_Weight     QUAN 15
    NWEIGH          QUAN 17, 3     |Net_Weight     QUAN 15
    CRMLREQDAT     DATS 8          |REQ_DLV_DATE     Dec 15
    The difference is either some dats field are mapped to decimal, or the char 32 field is mapped to raw 16 OR Calweek, Calmonth is mapped to Calday
    Both mostly all the ods field size is greater than the input source field.
    Thanks
    Raj

  • Issue with fetching data from AFRU

    Hi All,
    We are trying to immitate the standard transaction COOIS but with some extra features to get a report.
    We have a particular select in the custom code which is timing out and taking an unusually long time(infact never finished the select) if run in background.
    Custom Code
        SELECT RUECK
               RMZHL
               LMNGA
               IEDD
               MANUR
               AUFNR
               APLFL FROM AFRU
                     INTO TABLE GT_AFRU
                     FOR ALL ENTRIES IN GT_AFVC
                     WHERE RUECK = GT_AFVC-RUECK
                      AND RMZHL = GT_AFVC-RMZHL
                       AND MANUR = '1'
                       AND APLFL NE ' '.
    Standard Code
      SELECT * FROM afru INTO TABLE afru_tmp
                         FOR ALL ENTRIES IN rueck_tmp
                         WHERE rueck     =  rueck_tmp-rueck
                         AND ( canum     =  canum_0
                         OR    canum     IS NULL ).
    The standard code returns the entries in blink of the eye whereas the custom code runs on for ever. Both the for all entries tables have the same entries and use the same primary key.
    I also tried to fetch data from the table directly using SE16 and I input only 10 confirmations(RUECK-primary key) into the table and I try to execute this in background and it also seems to run for ever. Does anyone have any idea what is going wrong here? Pointers will be appreciated.
    Regards,
    Karthik

    YOu should make a check if the table GT_AFVC has any entries in it or not.
    if not GT_AFVC[] is initial.
    SELECT RUECK
    RMZHL
    LMNGA
    IEDD
    MANUR
    AUFNR
    APLFL FROM AFRU
    INTO TABLE GT_AFRU
    FOR ALL ENTRIES IN GT_AFVC
    WHERE RUECK = GT_AFVC-RUECK
    AND RMZHL = GT_AFVC-RMZHL
    AND MANUR = '1'
    endif.

  • To fetch data from Primavera files

    Hi all,
    I would like to fetch data
    available in Primavera P3 Planner and save it to SQL
    database table.
    We can fetch data
    from MS Project files using VB.NET.So,in a similar way how
    can i fetch data from Primavera P3 Planner.<br
    />
    Looking forward to an early reply.<br
    />
    Thanks in advance

    Hi all,
    I would like to fetch data
    available in Primavera P3 Planner and save it to SQL
    database table.
    We can fetch data
    from MS Project files using VB.NET.So,in a similar way how
    can i fetch data from Primavera P3 Planner.<br
    />
    Looking forward to an early reply.<br
    />
    Thanks in advance

  • Fetch data from multple tables

    Hi all
    I am doing jdbc to RFC scenario.
    In legacy database Order details are stored in 3 different data base ables,one for header,one for item and other for delivery details,is it possible to fetch data from 3 diffrent tables using sender JDBC (at a time for a PO i need to get one header record and multiple item details and delivery details)? and how should i create my source structure?
    Regards
    Satish

    Please check this:
    ** Is it possible to give select command from multiple tables in JDBC
    Regards,
    Manjusha.

  • How to use for all entires clause while fetching data from archived tables

    How to use for all entires clause while fetching data from archived tables using the FM
    /PBS/SELECT_INTO_TABLE' .
    I need to fetch data from an Archived table for all the entries in an internal table.
    Kindly provide some inputs for the same.
    thanks n Regards
    Ramesh

    Hi Ramesh,
    I have a query regarding accessing archived data through PBS.
    I have archived SAP FI data ( Object FI_DOCUMNT) using SAP standard process through TCODE : SARA.
    Now please tell me can I acees this archived data through the PBS add on FM : '/PBS/SELECT_INTO_TABLE'.
    Do I need to do something else to access data archived through SAP standard process ot not ? If yes, then please tell me as I am not able to get the data using the above FM.
    The call to the above FM is as follows :
    CALL FUNCTION '/PBS/SELECT_INTO_TABLE'
      EXPORTING
        archiv           = 'CFI'
        OPTION           = ''
        tabname          = 'BKPF'
        SCHL1_NAME       = 'BELNR'
        SCHL1_VON        =  belnr-low
        SCHL1_BIS        =  belnr-low
        SCHL2_NAME       = 'GJAHR'
        SCHL2_VON        =  GJAHR-LOW
        SCHL2_BIS        =  GJAHR-LOW
        SCHL3_NAME       =  'BUKRS'
        SCHL3_VON        =  bukrs-low
        SCHL3_BIS        =  bukrs-low
      SCHL4_NAME       =
      SCHL4_VON        =
      SCHL4_BIS        =
        CLR_ITAB         = 'X'
      MAX_ZAHL         =
      tables
        i_tabelle        =  t_bkpf
      SCHL1_IN         =
      SCHL2_IN         =
      SCHL3_IN         =
      SCHL4_IN         =
    EXCEPTIONS
       EOF              = 1
       OTHERS           = 2
       OTHERS           = 3
    It gives me the following error :
    Index for table not supported ! BKPF BELNR.
    Please help ASAP.
    Thnaks and Regards
    Gurpreet Singh

  • Fatal error while fetching data from bi

    hi,
    i am getting following error while fetching data from bi using select statement
    i have written code in this way
    SELECT  [Measures].[D2GFTNHIOMI7KWV99SD7GPLTU] ON COLUMNS, NON EMPTY { [DEM_STATE].MEMBERS} ON ROWS FROM DEM_CUBE/TEST_F_8
    error description when i click on test
    Fatal Error
    com.lighthammer.webservice.SoapException: The XML for Analysis provider encountered an error

    thanks for answering .but when i tried writing the statement in transaction 'MDXTEST' and clicked on check i am getting following error
    Error occurred when starting the parser: timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'
    Message no. BRAINOLAPAPI011
    Diagnosis
    Failed to start the MDX parser.
    System Response
    timeout during allocate / CPIC-CALL: 'ThSAPCMRCV'
    Procedure
    Check the Sys Log in Transaction SM21 and test the TCP-IP connection MDX_PARSER in Transaction SM59.
    SO I WENT IN SM 59 TO CHECK THE CONNECTION.
    CAN U TELL ME WHAT CONFIGERATION I NEED TO DO FOR MAKING SELECT STATEMENTS WORK?

  • How to fetch data from DataBase using Servlet ?

    Hi all,
    Till now, i was just sending values from web page and receive the data in excel format using servlets.
    But, now, i want to fetch data from data base. I will be giving inputs in the web page(for the query)....ON click of submit button,
    Servlet should be called.
    Depending on the input, query has to be executed, and response should be sent to the user.
    How to do it?
    Code
    import java.text.*;
    import java.sql.*;
    import java.util.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.OutputStream;
    /** Simple servlet that reads three parameters from the html
    form
    public class Fetchdata extends HttpServlet
              String query=new String();
              String uid="ashvini";
              String pwd="******";
              try
                   Connection con=null;
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");     
                   String url = "jdbc:odbc:Testing";     
                   con = DriverManager.getConnection(url, uid, pwd);
                   Statement s = con.createStatement();
                   query = "select * from gowri.msllst1";
                   ResultSet rs = s.executeQuery(query);
              public void doGet(HttpServletRequest request,HttpServletResponse response)
              throws ServletException, IOException
                        response.setContentType("application/vnd.ms-excel");
                        ServletOutputStream out=response.getOutputStream();
                        out.println("<HTML>" +"<BODY BGCOLOR=\"#FDF5E6\">\n" +
                        "<H1 ALIGN=CENTER>" + title + "</H1>\n" +
                        "<table>" +" <th>ITEM Code</th>");
                        while(rs.next())
                        out.println("<tr><td>" rs.getString(1).trim()"</tr></td>");
                        }//end of while
                        out.println("</table></BODY></HTML>");
                   }//end of doGet method
         }catch(Exception e)
                        System.out.println(e);
    It is giving error message as:
    C:\Program Files\Apache Tomcat 4.0\webapps\general\srvlt>javac Fetchdata.java
    Fetchdata.java:17: illegal start of type
    try
    ^
    Fetchdata.java:48: <identifier> expected
    ^
    2 errors
    Is this format is correct? am i placing this doGet method at the right place? is my program's logic is correct?
    Please help me?
    Regards
    AShvini

    There is some mistakes in ur code.....how can try catch exists outside a function???
    make use of try catch isde ur doGet method and put
    Connection con=null;
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String url = "jdbc:odbc:Testing";
    con = DriverManager.getConnection(url, uid, pwd);
    Statement s = con.createStatement();
    query = "select * from gowri.msllst1";
    ResultSet rs = s.executeQuery(query);
    isdie doGet method, for the time being,
    i think u get me..
    regards
    shanu

  • FETCH DATA FROM ORACLE DATABASE USING Web Dynpro

    I want to fetch data from ORACLE database using Web Dynpro.How can I do this?

    1) Are you sure that you get no results? It sounds like you are having name resolution issues, which would imply that you should be getting an ORA-00942 error indicating that the table doesn't exist (or that you don't have access to the table). If you are not seeing this error, I would tend to suspect an overzealous exception handler.
    2) What database account owns the table? What database account is your ASP.Net application using to connect? Assuming these two accounts are different, your application would either have to
    - Explicitly prefix the table name with the schema name
    - Have a public or private synonym that maps the table name to the fully qualified identifier schema_name.table_name
    - Issue the command ALTER SESSION SET CURRENT_SCHEMA = <<schema name>> in each session, in which case all queries in the session would use the specified schema name as the default if no schema name is prefixed.
    Justin

  • Multiple select queries used in Excel BI report ,fetching data from Sharepoint DB(SP2010_Prod_ProjectServer) causing blockage on DB ,when more than one workbook(same copy of Excel BI Report) refreshed using Refresh All option.

    I am using mutiple select queries to fetch data from Project Server 2010 DB(its sharepoint DB) and these queries fetch data in Excel BI report by establishing connection with DB using instance name and all. I have enhance all these select queries and data
    is being fetched in secs. but when more than one copy of same Excel BI report is refreshed using 'Refresh All' option, then these select queries cause blockage on DB.
    Please let me know mitigation for this blockage issue.
    Should I use begin transaction and commit transaction statements/ shared lock statements.
    please reply

    Hi,
    run same query at the same time?

  • FETCHING DATA FROM A TABLE USING ARRAYLIST

    how can we fetch data from database using arraylist????

    Hi ,
    This is the way to fetch data into 2d array , you can customize to fetch in array list .
    we will assume that we have stm as Statement and rs as ResultSet
    rs = stm.executeQuery("select * from emp");
    int noOfColumns = rs.getMetaData.getColumnCount();
    rs.last();
    int noOfRows = rs.getRow;
    rs.befpreFirst();
    String [][] result = new String[noOfRows][noOfColumns];
    for(int i = 0 ; i<noOfColumns;i++){
    rs.next();
    for(int y = 0;y<noOfColumns;y++){
    result[i][y]=rs.getString(y+1);
    rs.close;

  • Error while loading data from PSA to DSO using DTP

    Hi,
    I have a Unique aplha numeric identifier of  type "Char" length "32" . When I am loading the data from PSA to DSO using DTP I get the following error message:
    "An error occurred while executing a transformation rule:
    The exact error message is
    Overflow converting from ' '
    The error was triggered at the following point in the program:
    GP4JJHUI6HD7NYAK6MVCDY4A01V 425
    System response
    Processing the data record has been terminated"
    Any idea how I can resolve this....
    Thanks

    Hi,
    fist check weather any special characteristics if not
    check in data source under this we have fields tab check the format of a particular field format internal/external/check u choose internal format, if any check routine once
    use Semantic Groups in the DTP.
    Try  it
    Thanku
    lokeeshM
    Edited by: lmedaSAP_BI on Oct 20, 2010 6:44 AM

Maybe you are looking for

  • Collaborators in SAP Sourcing 10.0 must not view RFx responses unless assigned as scoreres

    Dear SAP Sourcing Specialists, We are implementing SAP Sourcing 10.0 We assign collaborators on an RFx as with the collaborator approver role before it is published, and these collaborators review, edit and  approve the RFx and then it is published t

  • Query regarding dates

    Hi, Can anybody help me in formualated the single sql query for the follwing : find out the no of days between two dates except saturday/sunday. Please help,

  • Multiple Receivers for Alert Messages

    Hi All, I have to send alert message to multiple users (SAP and Non-SAP Users) through ALRTCATDEF. I know there is option of creating Distribution List and assign this Distribution list. Would like to is there any other possible way to acheive this?

  • Cisco VSS1440 unique configuration.

    I have a unique predicament, I have been tasked to become the subject matter expert on the VSS1440. Our network is very A-typical. I need to implement VSS with our two existing 6500s with connections to major network nodes but also individual work st

  • PO to multiple vendors

    Hello all, I have a business scenario where when we get a orders, the PO is passed on 2 different vendors. We then need to confirm the vendor who promises to deliver the earliest. How should we do this on the system? Thanks