cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Circular Table Join between KNA1 & KNVP

AdityaKapoor
Discoverer
0 Kudos
629

Hello, I am trying to use SQVI to build a table join and am struggling with one part of it. 

I would like to be able to use the company code and partner function in KNVP as selection criteria to find a list of customers with their name and address (I can easily add ADRC to the table join to get detailed address details if required) and who is the sales person responsible for that customer (KUNN2 in KNVP). 

When I build the link of KNA1 to KNVP using KUNNR, it gives me the customer name and address details (even if I have to add ADRC it's easy). Problem is that now I end up with a "customer number" for my sales person responsible in KUNN2. 

I need now to run the circular reference to again look up KUNN2 = KUNNR in KNA1 to get his name vs just his SAP Customer Number. I dont know how to run this circular lookup. Does anyone else have any clue how to do this?

Accepted Solutions (1)

Accepted Solutions (1)

Suryaprakash13
Active Participant
0 Kudos

Hi @AdityaKapoor,

Add the KNA1 as an alias table(ZKAN1_1) and pass the KUNN2 = KUNNR in the new alias table ZKAN1_1 and take the required value.

Hope this helps!!!!

Thanks and Regards,
Surya.

AdityaKapoor
Discoverer
0 Kudos
Thank You! Had no clue I could do this. Also, quick question - if I am using SQVI for table join, its confusing in the final output to have Name 1 showing up twice... is there a way to change the heading of the column?

Answers (1)

Answers (1)

Suryaprakash13
Active Participant
0 Kudos

Hi @AdityaKapoor,

For changing the Heading, In SQVI, enter the query name and click change.
You will come to the Quick Viewer XXX list design page, Which shows the Data fields on the left and on the rights we can see all the columns which are shown in the output, just click on the required column heading and Change the name as required and Save it.

Hope this helps!!!

Thanks and Regards,
Surya.