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

Error in join query

Former Member
0 Likes
555

I get error in following querY sAying "Unable to interpret XKTSCH".

report ZTF1.

tables: AFKO, AFVC.

DATA: XSTEUS LIKE AFVC-STEUS,

XKTSCH LIKE AFVC-KTSCH,

XLTXA1 LIKE AFVC-LTXA1.

SELECT SINGLE AFVCSTEUS AFVCKTSCH AFVC~LTXA1 FROM

AFVC INNER JOIN AFKO

ON AFVCAUFPL = AFKOAUFPL

INTO XSTEUS XKTSCH XLTXA1

where AFKOAUFNR = '007200000059' and AFVCVORNR = '0010'.

WRITE:/ XSTEUS.

WRITE:/ XKTSCH.

WRITE:/ XLTXA1.

1 ACCEPTED SOLUTION
Read only

former_member182371
Active Contributor
0 Likes
526

Hi,

try with

INTO (XSTEUS, XKTSCH, XLTXA1)

Best regards.

4 REPLIES 4
Read only

Former Member
0 Likes
526

Hi tushar

Just write your varaible in bracket as:

.. INTO ( XSTEUS XKTSCH XLTXA1 ) where ...

Regards

Ashish Jain

Read only

former_member182371
Active Contributor
0 Likes
527

Hi,

try with

INTO (XSTEUS, XKTSCH, XLTXA1)

Best regards.

Read only

Former Member
0 Likes
526

Sorry, you need to put space after '{' and '}'

..... INTO ( XSTEUS XKTSCH XLTXA1 ) where....

Regards

Ashish Jain

Read only

0 Likes
526

Actually the previous answer is the correct one syntactically. If you add spaces after the brackets you will get a syntax error.

correct:

INTO (XSTEUS, XKTSCH, XLTXA1)