2008 Feb 19 5:10 PM
Dear experts,
I am trying to create a query with SQVI with different tables, but it does not seem to work correctly.
I have linked VBAK with 3 tables
Links:
Left: VBAK-VBELN
Right: VBAK-VBELN(2)
Jointype: Left Outer
Left: VBAK-VBELN
Right: VBAP-VBELN(3)
Jointype: Left Outer
Left: VBAK-VBELN
Right: LIPS-VGBEL
Jointype: Left Outer
Then I linked the LIPS table to the LIKP table:
Link:
Left: LIPS-VBELN
Right: LIKP-VBELN(2)
Jointyp: Inner
The query is working, but only displays sales orders which have already a delivery linked to it. What we need is that all the sales orders are displayed (also when a delivery has not been created).
Can anyone help me with this problem? <REMOVED BY MODERATOR>
Kind regards,
Tim
Edited by: Alvaro Tejada Galindo on Feb 19, 2008 12:15 PM
Dear experts,
I am trying to create a query with SQVI with different tables, but it does not seem to work correctly.
I have linked VBAK with 3 tables
Links:
Left: VBAK-VBELN
Right: VBAK-VBELN(2)
Jointype: Left Outer
Left: VBAK-VBELN
Right: VBAP-VBELN(3)
Jointype: Left Outer
Left: VBAK-VBELN
Right: LIPS-VGBEL
Jointype: Left Outer
Then I linked the LIPS table to the LIKP table:
Link:
Left: LIPS-VBELN
Right: LIKP-VBELN(2)
Jointyp: Inner
The query is working, but only displays sales orders which have already a delivery linked to it. What we need is that all the sales orders are displayed (also when a delivery has not been created).
Can anyone help me with this problem? <REMOVED BY MODERATOR>
Kind regards,
Tim
Edited by: Alvaro Tejada Galindo on Feb 19, 2008 12:15 PM
2008 Feb 19 6:20 PM
Hi,
When u use SQVi to build a query using table join, it will only display those sales order which has a delivery document.
you need to create 2 single table queries, one for VBAK/VBAP and the other for LIKP/LIPS.
Once u query the first VBAK/VBAP then u can use the output sales order numbers to query LIKP/LIPS.
Hope this helps.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |