Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Select statement queries

Former Member
0 Likes
562

Hi all

What could be the cause of this error. occuring at select statement.

"the table name is too long"

Regrd

Mona

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
540

Select a~kaganplntcode

b~labst

c~matnr

INTO CORRESPONDING FIELDS OF TABLE t_input

FROM (zmmkaganplant AS a

INNER JOIN mard AS b ON awerks = bwerks )

INNER JOIN mara AS c ON bmatnr = cmatnr )

WHERE a~werks = v_werks AND

b~matnr = v_matnr AND

b~werks = v_werks AND

b~lgort = v_lgort AND

b~labst = v_labst AND

c~matnr = v_matnr AND

a~kaganplntcode = v_matnr.

4 REPLIES 4
Read only

Former Member
0 Likes
540

Hi,

Please write that select querry also.

Read only

Former Member
0 Likes
541

Select a~kaganplntcode

b~labst

c~matnr

INTO CORRESPONDING FIELDS OF TABLE t_input

FROM (zmmkaganplant AS a

INNER JOIN mard AS b ON awerks = bwerks )

INNER JOIN mara AS c ON bmatnr = cmatnr )

WHERE a~werks = v_werks AND

b~matnr = v_matnr AND

b~werks = v_werks AND

b~lgort = v_lgort AND

b~labst = v_labst AND

c~matnr = v_matnr AND

a~kaganplntcode = v_matnr.

Read only

0 Likes
540

Make sure that there is a space in between,

FROM ( zmmkaganplant

Read only

0 Likes
540

you can omit all "(" and ")", not necessary here. At the moment, you have one opening and two closing brackets, this probably causes the error.