on 06-03-2009 5:06 AM
Hi All,
I want to create a Query infoset using t-code SQ02,
I want to join table VBAK and KONV for showing all condition types in the Sales order.
However the program disapear error "Table KONV cannot be used in a join"....
Is there other method I can join them using the Query infoset ?
Thanks.
Terry
Hello Kin,
Searching for a solution, I found a Logical Database for sales orders, that have all the information that you need.
Using like reference the post of Bhagavatula, in the same transaction SQVI you can use, instead of the suggested join, you can select a logical database called VAV in Data source.
This logical database links the tables, VBAK, VBAP, VBUK and KONV that is the central point of the question.
You can list the information of logical database using the transaction SLDB.
In 'Logical Database' inform VAV.
Press F8 to list all the fields.
More information about logical database in:
Link: SAP Logical Database
See this thread that I wrote some days ago:
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Join the tables VBAK & KONV on KNUMV in your query. You can also write the code in Query itself.
Some inputs from any technical guy on ABAP code will help you.
Regards,
Vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Terry,
U cant retrieve records directly from the KONV. because its Cluster table. so u have to take help of abaper to write a small ABAP code for retrieving it.
Thanks,
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raja,
Thanks for your quick reply.
I want to write the ABAP code too, do you have any example for me?
I know there is optional in SQ02 when create the infoset, I can using a Data retrieval by program,
it allow data structure such as KONV,
but how can I join VBAK and KONV together ?
I want to list out all lines of Condition type in the query...
for e.g.
Sales Order Condition type Condition currency value
16000033 ZS00 USD 100
16000033 ZS01 USD 200
:
:
Terry
User | Count |
---|---|
98 | |
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.