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 statement

Former Member
0 Likes
1,129

hi to all,

can anyone tell me in select satement where conditon

bukrs in p_bukrs

bukrs eq p_bukrs

what is the differnce betwen both

thanks in advance

kiran kumar

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,091

bukrs in p_bukrs --> Used when p_bukrs is declared as Select-Options

Eg:

select-options: p_bukrs for t001-bukrs.

bukrs eq p_bukrs --> Used when p_bukrs is declared as Parameter

Eg:

parameters: p_bukrs like t001-bukrs.

Hope this helps.

Kind Regards

Eswar

8 REPLIES 8
Read only

Former Member
0 Likes
1,092

bukrs in p_bukrs --> Used when p_bukrs is declared as Select-Options

Eg:

select-options: p_bukrs for t001-bukrs.

bukrs eq p_bukrs --> Used when p_bukrs is declared as Parameter

Eg:

parameters: p_bukrs like t001-bukrs.

Hope this helps.

Kind Regards

Eswar

Read only

Former Member
0 Likes
1,091

Hi Kiran,

When you use IN P_bukrs that means you are passing a SELECT OPTION with value range for selection.

When you use EQ P_bukrs that means you are passing a PARAMETER with Single value for selection.

Reward points if this Helps.

Manish

Read only

Former Member
0 Likes
1,091

HI,

if p_bukrs is a parameter then we use

where condition bukrs eq p_bukrs

if p_bukrs is select-option then we use

where condition bukrs in p_bukrs.

I hope u got it..

Regards,

Kumar

Read only

Former Member
0 Likes
1,091

Hi Kiran ,

<b>bukrs in p_bukrs</b> : This is used when you have range of values for bukrs , so if you have multiple values you use IN. It is basically used for SELECT-OPTIONS

<b>bukrs eq p_bukrs</b> : This is used when you have only one value.

There is also one more major difference if you use <b>in</b> and the value is blank then it is equavelent to not having that condition in the select statement , but if you use <b>eq</b>and the value is blank then it will search for records which have the value of the field as blank.

Regards

Arun

Read only

Former Member
0 Likes
1,091

Hi,

using bukrs in p_bukrs will allow u to accept multiple bukrs basically it used to use in selection option.

bukrs eq p_bukrs it will allow u only one bukrs and it used to declare as a parameter.

Cheers.

Read only

Former Member
0 Likes
1,091

bukrs in p_bukrs : This One is Used When You Will Use Select-Options stmt

bukrs eq p_bukrs : This One is Used When You Will Use Parameters stmt

Read only

Former Member
0 Likes
1,091

bukrs in p_bukrs: PICKS A RANGE OF VALUES WHICH ARE DECLARED IN SELECT-OPTIONS.(CONDITION CHECKS FOR RANGE OF VALUES).

bukrs eq p_bukrs: PICKS THE VALUE FROM PARAMETERS FIELD.

(IT TAKES SINGLE VALUE AND CHECKS THE CONDITION)

THANX.

Read only

Clemenss
Active Contributor
0 Likes
1,091

Hi Kiran,

please study syntax of logical expressions as explained in

<a href="http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb3509358411d1829f0000e829fbfe/content.htm">Comparisons Between Different Data Types</a>

and

<a href="http://help.sap.com/saphelp_47x200/helpdata/en/9f/dba88b35c111d1829f0000e829fbfe/content.htm">Selection Tables in Logical Expressions</a>

Regards,

Clemens