on 05-22-2006 4:35 PM
Hi there
I have been tasked with determining how to join 2 queries into a single result, probably using the Table Interface Class to achieve this.
Apparantley this is possible, but I have yet to find any documentation on this and would appreciate any feedback.
It appears as though the requirement is to have 2 queries displayed in a single table (through the WAD). The first query would display normally in the table web item, and the table interface would hopefully be able to take the 2nd query and join it onto the table.
This is not just adding rows onto the table, but rather adding columns. 1 column from the first query would be used as a key to lookup the corresponding result in the second query, and populate the data accordingly.
Anybody seen something like this.
Any reference material?
Cheers,
Andrew
Hi,
Use following coding in the table interface to read the Data of your second query:
select single * from rsrrepdir into wa_repdir
where compid = 'YOUR_SECOND_QUERY' and
objvers = 'A'.
create object r_request
exporting I_GENUNIID = wa_repdir-genuniid.
r_dataset = cl_rsr_data_set=>get( i_r_request = r_request ).
r_dataset->refresh( i_version = 1 ).
debug it and browse through the attributes of r_dataset.
You'll find the output of the query there.
Kind Regards,
Alican Polat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.