on 09-24-2008 6:14 AM
Hi All
I have created a query using SQVI and using the table join of KNA1, ADRC and ADR6. The connecting point between KNA! and ADRC is KUNNR and ADDR. And the connetion between ADRC and ADR6 is between ADDR and ADDR.
The idea is to pass the customer number in KAN1 and get the address number through which we pass in ADRC to get the postal address and with the same address number we pass in ADR6 to get the email of the customer.
Im not getting any output for this combination. Can you please help?
Hi Vinod,
TRY THIS, It may work.
Take table knvv, kna1& adrc
Make join between KNVV & KNA1 through KUNNR & create 2nd join between KNA! & ADRC through ADRNR from KNA1 & ADDRNUMBER from ADRC.
Regards
San
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Vinod
Try with the following:-
In table KNVK you will get Contact person no (PRSNR) assigned to customer. From KNA1 you will get the adress no (ADRNR).
Pass ADRNR into ADR6-ADDRNUMBER and fetch ADR6-SMTP_ADDR
thanks
G. Lakshmipathi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if you want join you take two tables you have taken one kna1 i didnt find the two. select the table join and select the fields which you want and execute
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Problem is with the join fields. Join as mentioned below and execute the query:
1) KNA1-ADRNR to ADRC-ADDRNUMBER
2) ADRC-ADDRNUMBER to ADR6-ADDRNUMBER
Regards,
GSL.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.