2013 Dec 20 2:34 AM
Hi,
I have an Open SQL statement to select a secondary database. When using SELECT *, an error states that SQL error 207 when accessing table. If I specify the column names, the select statement works well. I want to know the underlining logic.
SELECT *
INTO CORRESPONDING FIELDS OF TABLE LT_MARA
FROM MARA
CLIENT SPECIFIED
CONNECTION T01
WHERE MANDT = '100'
Best regards,
ts.
2013 Dec 20 2:48 AM
hi Ts
when you use CONNECTION to a secondary database, see the last statement.
... CONNECTION {con|(con_syntax)}
This addition is for internal use only.
It cannot be used in application programs
The Open SQL command is not executed on the standard database but on the specified secondary database connection. The database connection can be specified statically with con or dynamically as the content of con_syntax, where the field con_syntax must belong to the type c or string. The database connection must be specified with a name that is in column CON_NAME in table DBCON.
regards,
Archer
2013 Dec 20 2:53 AM
Hello T S.
Can you paste the error screen shot here?
Regards.
2013 Dec 20 3:08 AM
2013 Dec 20 5:19 AM
SQL Server: Refer to Note 1630727 to prevent SQL error 207: "Invalid column name 'area'"
2013 Dec 20 5:34 AM
Do you have some ANIMAL_ORIGIN column in select as mentioned in dump first screen shot.?
2013 Dec 20 6:17 AM
2013 Dec 20 7:32 AM
Hi TS
Did you check DBCON entries for this secondary database are maitnained. Secondly please make sure both table have same field in both databased. Please verify
Nabheet
2013 Dec 20 9:51 AM
Yes, connection has been confirmed by remote log-in. The no difference on structures.
Best regards,
ts
2013 Dec 20 9:55 AM
Can you please paste your code here...? DBCON entries are maintained? Please check SM21 after the dump to see if it provides you some more details. Please paste it here.
2013 Dec 20 10:01 AM