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

Filter join table .

Former Member
0 Likes
930

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
Read only

Former Member
0 Likes
768

It should be

where ekko-bukrs eq p_bukrs.

4 REPLIES 4
Read only

Former Member
0 Likes
769

It should be

where ekko-bukrs eq p_bukrs.

Read only

0 Likes
768

>

> 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

Read only

faisalatsap
Active Contributor
0 Likes
768

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

Read only

Former Member
0 Likes
768

>

> 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.