Application Development 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: 

SELECT contains a direct assignment

Former Member
0 Kudos
84

Hi,

In code checker i m getting the following warning :- <b>SELECT contains a direct assignment.</b>

for the below select query.

<b>select single kalsm into W_procedure from t005 where land1 = ttx_txjcd-country</b>.

can anyone help me in it.

Regards,

Nithya

3 REPLIES 3

KjetilKilhavn
Active Contributor
0 Kudos
51

You have not given the data definition of w_procedure. You have not given the data definition of ttx_txjcd. How do you expect us to know what your problem is?

Besides, I can't recall ever seeing a warning or error in the code inspector (I assume this is where you get the warning) without a link to further infomation explaining why the message is issued.

--
Kjetil Kilhavn (Vettug AS) - ABAP developer since Feb 2000, but will probably never be a Rockstar developer

0 Kudos
51

Hi,

What is the type of W_procedure.

If its the same type as kalsm there should not be any problem, but if W_procedure is of type t005 or any other strucutre you need to use CORRESPONDING FIELDS OF addition.

Regards

Sesh

Former Member
0 Kudos
51

hi

good

this error can be avoided using "#EC with the line.

thanks

mrutyun^