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: 

Filter join table .

Former Member
0 Kudos
475

Hello experts ,

In my query , i have 6 tables , i display this parameter on selection screen : p_bukrs .

In the program that was generate , i don't have filter in join with this parameter .

How can i to filter my join tables with this parameter , after this statment : "WHERE EKKO-BUKRS IN P_BUKRS ?

Thanks for your help.

Avi.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
313

It should be

where ekko-bukrs eq p_bukrs.

4 REPLIES 4

Former Member
0 Kudos
314

It should be

where ekko-bukrs eq p_bukrs.

0 Kudos
313

>

> It should be

where ekko-bukrs eq p_bukrs.

Sorry, Riki

I think that AVI using EKKO-BUKRS as a select option and for select option can't use

where ekko-bukrs eq p_bukrs." Mean you can't write EQ P_BUKRS

if you are thinking that there was no Extension Button and user can only give one Value and Interval is also not enable then you must use like following.

where ekko-bukrs eq p_bukrs-low.

and if you want to get the high Value mean Interval is on than.

where ekko-bukrs eq p_bukrs-high.

Hope Will Help,

Thanks and Kind Regards,

Faisal

faisalatsap
Active Contributor
0 Kudos
313

Hi,

Please have a look at the following Sample code.

SELECT afko~aufnr afpo~psmng afpo~wemng INTO CORRESPONDING FIELDS OF TABLE itab_orders
    FROM afko
    INNER JOIN afpo ON ( afko~aufnr = afpo~aufnr )
    INNER JOIN mvke ON ( afpo~matnr = mvke~matnr AND mvke~vkorg = '1000' AND mvke~vtweg = '20' )
    WHERE afko~aufnr IN aufnrs. " You Can Write like this

Kind Regards,

Faisal

Former Member
0 Kudos
313

>

> Hello experts ,

>

> In my query , i have 6 tables , i display this parameter on selection screen : p_bukrs .

>

> In the program that was generate , i don't have filter in join with this parameter .

>

> How can i to filter my join tables with this parameter , after this statment : "WHERE EKKO-BUKRS IN P_BUKRS ?

>

> Thanks for your help.

>

> Avi.

thanks faisal, i guess he said he is using a parameter in his first line.