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 probelm

Former Member
0 Likes
985

i cpoy this select from SQVI

and i get err : "the list (EKKO-BUKRS is not in the list

SELECT EKKOBUKRS EKKOEBELN EKKOLPONR EKKOZBD1T EKPO~EBELN

EKPOEBELP MSEGBNBTR MSEGDMBTR MSEGEBELN MSEG~EBELP

MSEGLIFNR MSEGMAT_PSPNR MSEGMBLNR MSEGMJAHR MSEG~PPRCTR

MSEGPRCTR MSEGSAKTO MSEGWAERS MSEGZUSTD MKPF~BUDAT

MKPFMBLNR MKPFMJAHR

INTO (EKKO-BUKRS , EKKO-EBELN , EKKO-LPONR , EKKO-ZBD1T , EKPO-EBELN

, EKPO-EBELP , MSEG-BNBTR , MSEG-DMBTR , MSEG-EBELN , MSEG-EBELP

, MSEG-LIFNR , MSEG-MAT_PSPNR , MSEG-MBLNR , MSEG-MJAHR

, MSEG-PPRCTR , MSEG-PRCTR , MSEG-SAKTO , MSEG-WAERS , MSEG-ZUSTD

, MKPF-BUDAT , MKPF-MBLNR , MKPF-MJAHR )

FROM ( EKKO

INNER JOIN EKPO

ON EKPOEBELN = EKKOEBELN

AND EKPOEBELP = EKKOLPONR

INNER JOIN MSEG

ON MSEGEBELN = EKPOEBELN

AND MSEGEBELP = EKPOEBELP

INNER JOIN MKPF

ON MKPFMBLNR = MSEGMBLNR

AND MKPFMJAHR = MSEGMJAHR )

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
960

This Should be a SELECT..ENDSELECT statement and hence your are getting this error

USe SELECT...into table itab.

8 REPLIES 8
Read only

Former Member
0 Likes
961

This Should be a SELECT..ENDSELECT statement and hence your are getting this error

USe SELECT...into table itab.

Read only

0 Likes
960

INTO <b>(</b> EKKO-BUKRS , EKKO-EBELN

bold --- give the space b/w '(' & ekko-bukrs.

Read only

0 Likes
960

hi,

Give Space here

<b>( EKKO</b>-BUKRS

and also end the select statement with endselect statement...

Regards,

Santosh

Read only

0 Likes
960

i have endselct thanks

Read only

0 Likes
960

santosh i give space i get err select???

Read only

Former Member
0 Likes
960

Hi rani,

Give a space after ( in (EKKO-BUKRS i.e, ( EKKO-BUKRS

Read only

0 Likes
960

firend i tried to give space before i asked u it not work

this select copied from SQVI 4 times and steel have err

Read only

0 Likes
960

i think... i replied 1st ...anyway it's ok..