‎2007 Apr 09 2:24 PM
Please tell me how i should correct this:
select atdid btdtext
into corresponding fields of table i_text
from scmgtextid as a
inner join ttxit as b
on atdid = btdid and
<b> a~NOT_EXT_VISIBLE = 'X' and</b>
b~tdobject = 'SCMG_CASE' and
b~tdspras = sy-langu.
The error is:
You cannot compare with "'X'". Each comparison in the ON condition must contain a field from the RH table.
Thanks.
‎2007 Apr 09 2:29 PM
Hi,
where condition is missing.
select atdid btdtext
into corresponding fields of table i_text
from scmgtextid as a
inner join ttxit as b
on atdid = btdid where
a~NOT_EXT_VISIBLE = 'X' and
b~tdobject = 'SCMG_CASE' and
b~tdspras = sy-langu.
reward if useful
regards,
ANJI
Message was edited by:
Anji Reddy Vangala
‎2007 Apr 09 2:30 PM
Hi,
instead of on use where
select atdid btdtext
into corresponding fields of table i_text
from scmgtextid as a
inner join ttxit as b
on atdid = btdid
*<b>and</b>
<b>where</b>
a~NOT_EXT_VISIBLE = 'X' and
b~tdobject = 'SCMG_CASE' and
b~tdspras = sy-langu.
Regards,
Sonika
‎2007 Apr 09 2:32 PM
Hi..,
compare it in WHERE clause..
<b>select atdid btdtext
into corresponding fields of table i_text
from scmgtextid as a
inner join ttxit as b
on atdid = btdid
where NOT_EXT_VISIBLE = 'X' and
b~tdobject = 'SCMG_CASE' and
b~tdspras = sy-langu.</b>
<u>** IN 'ON' clause u can compare onli the table fields which are included in JOIN..</u>
regards,
sai ramesh
‎2007 Apr 09 2:35 PM
hey kiret,
Please try
select atdid btdtext
into corresponding fields of table i_text
from scmgtextid as a
inner join ttxit as b
on ( atdid = btdid )
where a~NOT_EXT_VISIBLE = 'X' and
b~tdobject = 'SCMG_CASE' and
b~tdspras = sy-langu.
you should not use and after the join condition, instead use the where condition.
Please reward points if the answer provides any help.
Regards,
Neha
‎2007 Apr 09 2:35 PM
hi,
select atdid btdtext into corresponding fields of table i_text from scmgtextid as a
inner join ttxit as b on atdid = btdid <b>where</b> aNOT_EXT_VISIBLE = 'X' and btdobject = 'SCMG_CASE' and b~tdspras = sy-langu.
regards,
bharat.
‎2007 Apr 09 2:52 PM
Hi Kiret,
When you use ON clause on Joins the the left hand and right hand fields should be of tables used in Join condition but not with variables/constant values.
Use the rest of the part in WHERE condition.
Check this code.
select atdid btdtext
into corresponding fields of table i_text
from scmgtextid as a
inner join ttxit as b
on atdid = btdid
<b>WHERE</b>
a~NOT_EXT_VISIBLE = 'X' and
b~tdobject = 'SCMG_CASE' and
b~tdspras = sy-langu.
Thanks,
Vinay