Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

How to find real foreign key relations?

$
0
0

I am looking for a way to find out how tables are associated in business logic. The Dicionary and SE11 was my first start. And I read the article How to find Relations between tables in SAP and a few similar documents. But something seems to be wrong either in the dictionary or in my brain. ;-)

 

One example of what I mean is the relation between LIPS and VBAP.

- When you try the SQVI trick explained in the article linked above, you see links from LIPS-VBELN to VBAP-VBELN and LIPS-POSNR to VBAP-POSNR. But if you would create a query based on this links, it would fail (see below).

- If you explore LIPS in SE11, you find VBUK and VBUP as Checktables for VBELN and POSNR. But this leads to nowhere.

 

Obviously, the business logic is a bit different. The real link from LIKP to VBAP is

- LIPS-VGBEL must match VBAP-VBELN, and

- LIPS-VGPOS must match VBAP-POSNR.

 

So, what I am trying to find is a way to explore this business logic. How are tables linked? Is this information present at any place in the Dictionary?

 

Thank you very much in advance,

best regards

Friedlieb


Viewing all articles
Browse latest Browse all 8332

Trending Articles