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

Table COST relationship

0 Likes
2,379

Hi Gurus,

I'm new in queries world I'm building InfoSet for finance team where everything was going smooth to this point.

It is actually very simple one, just MAPL, PLPO, CRHD and CRCO.

But now I have to add also one information from COST table (field TKG008)  and I'm not able to find relation between COST and any of tables mentioned above.

Can you please suggest

Regards

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,754

You could try to add table CSSL between CRCO and COST


SELECT *

  FROM crco

  JOIN cssl

    ON crco~kokrs EQ cssl~kokrs

    ON crco~kostl EQ cssl~kostl

   AND crco~lstar EQ cssl~lstar

  JOIN cost

    ON csll~objnr EQ cost~objr.

Regards,

Raymond

Hi Gurus,

I'm new in queries world I'm building InfoSet for finance team where everything was going smooth to this point.

It is actually very simple one, just MAPL, PLPO, CRHD and CRCO.

But now I have to add also one information from COST table (field TKG008)  and I'm not able to find relation between COST and any of tables mentioned above.

Can you please suggest

Regards

3 REPLIES 3
Read only

Former Member
0 Likes
1,754

You can go to the finance team and ask them to show you a report that has COST and one or more of the other tables. Then use ST05 to examine the tables that were used.

Rob

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,755

You could try to add table CSSL between CRCO and COST


SELECT *

  FROM crco

  JOIN cssl

    ON crco~kokrs EQ cssl~kokrs

    ON crco~kostl EQ cssl~kostl

   AND crco~lstar EQ cssl~lstar

  JOIN cost

    ON csll~objnr EQ cost~objr.

Regards,

Raymond

Read only

0 Likes
1,754

Thank you Raymond

This link is correct. I had to redefine join conditions for other tables, but it is working

Regards

Krzysztof