ā2014 Mar 03 3:03 AM
Hi,
It is found that SELECT * does not work with CONNECTION. For example, I use the following statement to retrieve data from another system and an error states that SQL error 207 when accessing table 'MARA'. 'Invalid column name 'ANIMAL_ORIGIN''. If columns are specified, data can then be retrieved. The SAP BASIS version is 7.31.
SELECT SINGLE *
INTO CORRESPONDING FIELDS OF ls_mara
FROM MARA
CLIENT SPECIFIED
CONNECTION ('G01')
WHERE MANDT = '100'.
ā2014 Mar 03 3:41 AM
Hi TS,
You gave the answer already, but look at the HELP:
Cheers,
Custodio
ā2014 Mar 03 3:41 AM
Hi TS,
You gave the answer already, but look at the HELP:
Cheers,
Custodio
ā2014 Mar 03 4:29 AM
Hi Custodio,
Thanks for you prompt reply, but would you please elaborate more? If I use the same statement to retrieve data from table MAKT, it works.
Thanks,
TS
ā2014 Mar 03 4:52 AM
Hi TS,
What I mean is, check if the structure of MARA is the same in both systems. I believe it's not and that's why SELECT * fails.
Cheers,
Custodio
ā2014 Mar 03 6:24 AM
ā2014 Mar 03 7:41 AM
Hi TS,
Have you checked whether your database connection G01 exists in DBCON table to check whether there is a existing database connection with that name.
Regards,
Thanga