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 Query Error

Former Member
0 Likes
781

Hi Experts,

In the following code I am getting some error like,

"the list (w_tabnachn,w_tabvorna) after "INTO" is not of the form (f1,...,fn) or contains an undefined field.

the form (f1,...,fn), or contains an undefined field. "

SELECT nachn vorna FROM PA0002 into (w_tabnachn, w_tabvorna)

WHERE PERNR = w_pldoc_key-pernr.

ENDSELECT.

I could able to execute this code within the local class, but not doing so in global class, any clue pls

Regards,

Haritha

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
729

Hi,

Check the declarations of the fields w_tabnachn & w_tabvorna. Declare these variables globally then it will work.

Thanks,

Rakesh

3 REPLIES 3
Read only

Former Member
0 Likes
730

Hi,

Check the declarations of the fields w_tabnachn & w_tabvorna. Declare these variables globally then it will work.

Thanks,

Rakesh

Read only

Former Member
0 Likes
729

Hi,

Where have you defined w_tabnachn and w_tabvorna ?

Read only

Former Member
0 Likes
729

where have you declared these two variables?

must be in the local class...

see if its present in global class or not..