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

No Data comming

Former Member
0 Likes
489

Hi,

I have this select stmt in my program and the table has data with s_konob, if I give same input in SE16 the data is comming but the select stmt in the program is not giving any data. Please help me with what I am doing wrong here.

SELECT-OPTIONS: s_konob FOR s940-konob OBLIGATORY.

konob LIKE s940-konob, Char 18

SELECT spmon konob vkorg kunnr vtweg kcqty

FROM s940 INTO TABLE is940

WHERE konob = s_konob.

Thanks,

Veni.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
458

Hi,

How did you declared is940?

do like this

SELECT spmon konob vkorg kunnr vtweg kcqty

FROM s940 INTO TABLE is940

WHERE konob <b>in</b> s_konob.

<b>Reward if it is useful.</b>

Satish

3 REPLIES 3
Read only

Former Member
0 Likes
459

Hi,

How did you declared is940?

do like this

SELECT spmon konob vkorg kunnr vtweg kcqty

FROM s940 INTO TABLE is940

WHERE konob <b>in</b> s_konob.

<b>Reward if it is useful.</b>

Satish

Read only

naimesh_patel
Active Contributor
0 Likes
458

SELECT spmon konob vkorg kunnr vtweg kcqty

FROM s940 INTO TABLE is940

WHERE konob <b>IN</b> s_konob. " << IN requried instead of "="

Regards,

Naimesh Patel

Read only

0 Likes
458

Thank you Satish and Naimesh.

Regards,

Veni.