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

joins

Former Member
0 Likes
716

hi experts...

my question is ...

i have only one seletion criteria called PROJECT_ID, table for that- proj and field- pspid

and i have to obtain from that a report .

for that there is two tables-ekpo and mseg

and there are many fields ....

but no common field

i checked the threetable and find a common field named werks which is common in all ...

so my problem is that how to fetch the data using werks ...

my structure is like that

project_id

|

-


pr po po header

please guide me or give some link of that type mof problem...

thanks

Use meaningful subject line for your future questions

Edited by: Vijay Babu Dudla on Apr 25, 2009 3:00 AM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
690

I dont understand the requirement, but, technically you can try this to connect the three tables based on PROJECT_ID. Go to the table PROJ and give the user input project ID and fetch the corresponding documents. You would get WERKS from the records fetched. Now, go to the table EKPO and based on WERKS as the selection criteria, fetch all the corresponding purchasing docs. But, there would be a lot of documents corresponding to the plants you selected from PROJ, as it is a broader selection criteria.

hi experts...

my question is ...

i have only one seletion criteria called PROJECT_ID, table for that- proj and field- pspid

and i have to obtain from that a report .

for that there is two tables-ekpo and mseg

and there are many fields ....

but no common field

i checked the threetable and find a common field named werks which is common in all ...

so my problem is that how to fetch the data using werks ...

my structure is like that

project_id

|

-


pr po po header

please guide me or give some link of that type mof problem...

thanks

Use meaningful subject line for your future questions

Edited by: Vijay Babu Dudla on Apr 25, 2009 3:00 AM

3 REPLIES 3
Read only

Former Member
0 Likes
690

hi ,

BSEG,MSEG are cluster tables you can not use joins inbetween them..

so fetch data using for all entries or from selction criteria and use read under loop.

Regards,

Prabhudas

Read only

Former Member
0 Likes
691

I dont understand the requirement, but, technically you can try this to connect the three tables based on PROJECT_ID. Go to the table PROJ and give the user input project ID and fetch the corresponding documents. You would get WERKS from the records fetched. Now, go to the table EKPO and based on WERKS as the selection criteria, fetch all the corresponding purchasing docs. But, there would be a lot of documents corresponding to the plants you selected from PROJ, as it is a broader selection criteria.

Read only

Former Member
0 Likes
690

This message was moderated.