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: 

The IN operator with "v_vkbur" is followed neither by an internal table nor by a value list

0 Kudos

vkbur eq v_vkbur is working (for specific sale office) 

Basically I need to select all entries of  Sale office(vkbur) in one company code p_bukrs1.


can any one help?


1 ACCEPTED SOLUTION

0 Kudos

i have used

select option

select-options : v_vkbur for  vbak-vkbur modif id sc1.

instead of :

parameters: v_vkbur type  vbak-vkbur modif id sc1.

then i have used IN operator instead of Equal Operator

vkbur in v_vkbur

its working now.

regard

khurram Nagi

6 REPLIES 6

former_member288351
Participant
0 Kudos

Hi khurram nagi,

I think you have to create range table of vkbur for using IN operator in select query.

For example:

data: t_vkbur type range of vbak-vkbur,

       w_vkbur like line of t_vkbur.

***Fill t_vkbur for one company code.

and then use vkbur IN t_vkbur in select query


regards


vikas pandey

Ashg1402
Contributor
0 Kudos

Hi,

What is the declaration type for v_vkbur.?

Declare that as a range .

0 Kudos

parameters: v_vkbur type  vbak-vkbur modif id sc1.

0 Kudos

That is the reason In is not working.

parameters: v_vkbur type  vbak-vkbur modif id sc1.



you have to write like.


select-options: v_vkbur type vbak-vkbur.


former_member196331
Active Contributor
0 Kudos

May i know v_vkbur  is parameter or Select:options:

Elese

At data declaration;

RANGES: v_vkbur  FOR vbak-VKBUR..




After all declarations.


*** Initialization

INITIALIZATION.

   REFRESH R_RANGE.

   R_RANGE-OPTION = 'EQ'.

   R_RANGE-SIGN   = 'I'.

   R_RANGE-LOW    = '1000'. "Which value you want to pick

   APPEND R_RANGE.

   CLEAR R_RANGE.

   R_RANGE-OPTION = 'EQ'.

   R_RANGE-SIGN   = 'I'.

   R_RANGE-LOW    = '2000'. "Which value you want to pick

   APPEND R_RANGE.

   CLEAR R_RANGE.

Now write the coding part.

from vbak into correnspoinding fields of table tbloard

where  bukrs_vf eq p_bukrs1

kunnr in s_kunnr1 and vkbur in v_vkbur.

Hope you understood.

0 Kudos

i have used

select option

select-options : v_vkbur for  vbak-vkbur modif id sc1.

instead of :

parameters: v_vkbur type  vbak-vkbur modif id sc1.

then i have used IN operator instead of Equal Operator

vkbur in v_vkbur

its working now.

regard

khurram Nagi