Joining two output tables in ONE table

Hi All,
I have 1 read query and 1 bapi... I need to show the output of these two into a table.
EXAMPLE:
Query returns 2 columns FIRST NAME and ID NUMBER.
Bapi returns   2 columns LAST NAME  and ID NUMBER.
now table should show 3 columns like FIRST NAME.....LAST NAME...... ID NUMBER.
FIRST NAME is from Query....LAST NAME is from bapi.... where ID NUMBER is same.
Fname 1(from Query)           Lname 1 (from Bapi)               id 1(matching in both Query and Bapi)
Fname 2(from Query)           Lname 2 (from Bapi)               id 2(matching in both Query and Bapi)
In other words.... when ID NUMBER is same in query and bapi those record should come in single line.
Thanks,
PradeeP
Note: Right now I am using UNION operator which is showing both the results line by line....
USING UNION OPERATOR, RESULT IS.....
Fname1                                           id 1
Fname 2                                          id 2
                       Lname1                    id 1
                       Lanem2                     id 2
DESIRED RESULT...
Fname 1           Lname 1                id 1
Fname2            Lname 2               id 2
same question raised in forum union info from two datasources but no correct answers. its not possible in VC 7.1?????
I am thinking it is not possible after reading below threads.... please share your thoughts.....
Merging Two Tables from BAPI into single VC Table
union info from two datasources

Hi,
VC doesn't have a join operator, so it can't be done just with VC.
Instead, you should create a service that receives the 2 tables and performs the join, and consume the service in VC.
Best regards,
Tal.

Similar Messages

  • Two output tasks on one device

    I would like to learn the best way to configure two output tasks on one device. Both tasks employ the same channels. Task 1 outputs a 2D array (raster pattern on some channels and DC on others) for which the array values and array timing may change during the rastering. Task 2 outputs only DC values in a 1D array: one value for each channel. There is a Boolean that turns the rastering on and off.
        Should I have two separate tasks or one task where the DAQmx Timing and DAQmx Write change according to the raster on/off switch? Do the tasks need to Start each time an array value is changed? I've come close to making it work both ways and the major problem seems to be a "resources are unavailable" error when I want to stop everything and send 0 to all the outputs.
    Thanks, Peg

    Dear Paul,
        Thanks for your response. I have managed to produce a vi that seems to work with just one task. When changing back and forth from rastering to non-rastering, the task is stopped and started, but never cleared until the vi ends. What I don't understand is why new values are output even though I don't call Start Task each time a value is changed. I'm happy it works but I'm nervous that I don't know why. I have attached it in case you (or anyone) has the patience to take a look.
    Thanks,
    Peg
    Attachments:
    DAQmxAO Write DC& Raster switch.vi ‏280 KB

  • Loading data from two flat files into one table

    Hi All,
    I want to load few fields from one file and few fields from another file and load the data into one table in the database.
    For Ex: I have two flat files file1.csv and file2.csv and file1.csv containes 25 columns and file2.csv containes 12 columns, i want to load 20 columns from file1.csv and 7 columns from file2.csv into the table
    how to combine the columns from both the files and load them into one table at a time?
    Any help is appriciated
    Thanks
    R.G

    Use external tables.
    If using Oracle9 or higher connect both your csv with database as separate external tables and load the requited fields in new/requited table.

  • Two Primary keys on one table

    We are at the end of completing a project and we ran into a last minute bug. We are using two primary keys on a table to form a unique key. The problem we have is the program hangs up and gives us the following error,
    ORA-20001: Error in DML: p_rowid=CUA, p_alt_rowid=SIT_ID, p_rowid2=, p_alt_rowid2=. ORA-01422: exact fetch returns more than requested number of rows,
    probably meaning we only have one key setup in the DML
    processing when our table has two.
    we created a process with the Primary key set up in the DML but how does the secondary key column value work and is that what it's used for,because we tryed with no success. Is there a way around this problem without having to change our table by inserting only one primary key.
    Thanks in advance.
    Garry

    I am facing a similar problem , I used the two primary keys for navigating to the form page (forms with reports) so that the form page may display distinct records.
    Its not posing any error but its not showing the value of other columns associated with that record.
    Only the columns contained in the page item in the form page , that's are used as primary keys or that have been specified in the navigation part of the report page, are being shown ,
    Like for example I have got 5 columns
    a,b,c,d,e out of which a and b are my primary keys .
    I am using these to fetch values in the form page of forms with reports.
    We can specify three keys at the most , in my case I am having two , if in place of the third key I specify some column then in the form page it displays the correct record details of the three columns specified( 2 keys and one simple column), and it doesn't displays the value of other columns.
    Please help me out of this .

  • Collapsing two tables into one table or one queue

    When you have data that exists in 2 tables A and B and B is essentially a child of A if you want to process these records such that you see all A's before their assoociated B how can you use either Streams or AQ to collapse these two tables into one? The data exists at it's source in database tables it will be replicated to another location and at that location I want to keep the data as it exists at the source but also process it in the ordered fashion I described above. My thinking is to publish the data to one queue but the challenge is to ensure that all A's are put on the queue before their B is. I don't just want a priority queue whereby all A's are processed before B's because if that happens B's will never be processed. but I simply want to avoid reading a B off the queue before I've read it's A.

    No version number and no clarity of what you are trying to accomplish.
    Without knowing that the problem is a nail ... I'd hardly be recommending using a hammer.

  • Search a text in a multiple tables and one table has BLOB column

    Hi,
    I couldn't find a solution/examples for below scenario in oracle text documentation or related forums.
    I need to search a text in a multiple tables,in that one table has blob column which is used to store the documnents(pdf,doc,jpg..etc) and other tables have varchar2 columns,These tables have realation each other.
    Please provide a sample examples for above scenario.
    Thanks in advance..

    Have a look at my blog entry here:
    https://blogs.oracle.com/searchtech/entry/indexing_data_from_multiple_tables
    That describes two methods of achieving what you are looking for.

  • How to sum from multiple tables on one table?

    I have 12 tables covering 4 separate pages in Numbers, with each of the 12 tables summing each row at the bottom of each table. I'd like to take the sums of each of the 12 tables, and sum each of those sums together into one table. For instance, each table is for a different location, but they each have an "attendance" box. I've summed the attendance for that location for the year, but now I'd like to set a formula so that I can sum ALL ATTENDANCE for ALL LOCATIONS.
    Is there anyway to do that?

    You can easily combine the two functions. You bracket the ROUND "around" the AVERAGE.
    Take your two formulas in their basic forms.
    =AVERAGE(D1:D4) will average cells D1 to D4
    =ROUND(A,2) will round up number A to 2 decimal places.
    Now, we want to round up the result of the Average formula so, replace the A in the ROUND with the entire AVERAGE formula above (cut and paste is good here):
    =ROUND(AVERAGE(D1:D4),2)
    This will first calculate your average and then round it up to 2 decimals.
    If you want to round to the nearest whole number use 0
    Hope this is what you need.
    M.

  • Concatenate multiple tables into one table

    Dear all,
    I am doing migration between two database structures, that's why I need also to know if we want to concatenate the data in tables A,B and C into one table in the destination schema, what is the strategy to do this knowing that I have a lot of data and I need the fastest solution.
    regards

    Since the details of your requirements are unclear, will this approach not work ?
    SQL> INSERT into target_table
    SQL> (SELECT * from tableA UNION
    SQL>  SELECT * from tableB UNION
    SQL>  SELECT * from tableC);HTH
    Srini

  • How to display multiple data from different table in one table? please help

    Hi
    I got sun java studio creator 2(the separate installation not the one in the net beans)....
    My question is about displaying data that have been taken from the database.... I know how to display data in a table(just click on the table "bind data" )... but my question is that:
    when i want to use a sql statement that taken the data from different table...
    how can i display that data in the table(that will be shown in the web) ??? when i click bind data on the table i can only select one table i can't select more than one....
    Note:
    1) i'm using the rowset for displaying the data in the table, since the sql statement is depending on a condition(i.e. select a from b where c= ? )...
    2) i mean by different table is that( i.e. select a from table1,table2 )..
    thanks in advance...

    Hi,
    937440 wrote:
    Hi every one, this is my first post in this portal. Welcome to the forum!
    Be sure to read the forum FAQ {message:id=9360002}
    I want display the details of emp table.. for that I am using this SQL statement.
    select * from emp where mgr=nvl(:mgr,mgr);
    when I give the input as 7698 it is displaying the corresponding records... and also when I won't give any input then it is displaying all the records except the mgr with null values.
    1)I want to display all the records when I won't give any input including nulls
    2)I want to display all the records who's mgr is null
    Is there any way to incorporate to include all these in a single query..It's a little unclear what you're asking.
    The following query always includes rows where mgr is NULL, and when the bind variable :mgr is NULL, it displays all rows:
    SELECT  *
    FROM     emp
    WHERE     LNNVL (mgr != :mgr)
    ;That is, when :mgr = 7698, it displays 6 rows, and when :mgr is NULL it displays 14 rows (assuming you're using the Oracle-supplied scott.emp table).
    The following query includes rows where mgr is NULL only when the bind variable :mgr is NULL, in which case it displays all rows:
    SELECT     *
    FROM     emp
    WHERE     :mgr     = mgr
    OR       :mgr       IS NULL
    ;When :mgr = 7698, this displays 5 rows, and when :mgr is NULL it displays 14 rows.
    The following query includes rows where mgr is NULL only when the bind variab;e :mgr is NULL, in which case it displays only the rows where mgr is NULL. That is, it treats NULL as a value:
    SELECT     *
    FROM     emp
    WHERE     DECODE ( mgr
                , :mgr, 'OK'
                )     = 'OK'
    ;When :mgr = 7698, this displays 5 rows, and when :mgr is NULL, it displays 1 row.

  • Where did the possibility to join two smooth endpoints into one go?

    I used get a dialog box when joining two overlapping endpoint, that is if they truly were on top of each other. I would get a dialog box when selecting two endpoints and pressing cmd+j where I could choose either smooth or corner.
    Now in Illustrator CS6 I do not get any dialog box no matter what I do and it always joins the two endpoints as corner even thoug they both started out as smooth - that is had both their arms. Is there another way to do this now?

    Well ... since I use "Average and join" all the time and very seldom only "Join" I just switched the shortcuts, so now Join has the 4-keys shortcut.
    Actually I can't think of a time I needed the corner join. Most of the time I use Pen Tool, and join paths with that, and with corner joins I just remove any excess points, but with more difficult smooth path constructions I find I often need the smooth join.
    I never figured why one can't select more than one arm like you can select more than one point ... it would make altering symetric paths symetrically so much easier.

  • Hi, I am trying to join two clips after splitting one clip to edit 'ums' and 'ahs' in a sentence.

    Hi,
    I am having trouble joining clips in iMovie. Every time I try the 'join clip' choice under 'edit' is grayed out. I would like to join two clips from time to time -- not necessarily two clips that were once one and then split. Just two clips. Maybe I did not want the material in between.
    This time, I did select a section of a clip during an interview to take out 'ah, ah, ah... um' and deleted that section. And in doing so I created two clips. Now I'd like to rejoin them for a seamless sentence with out the jumping from one clip to the next. But 'join clip' is grayed out.
    Thanks.

    Thank you.
    But I wish I could join them before I share so I can make sure the transition is smooth. Right now it's obvious there's a 'jump' to the next clip, not smooth. I'd like to be able to splice and edit have it be seamless. Say, I want to add something a speaker says 5 minutes down the road to a sentence he says now, cutting and pasteing, and having it appear that he said it all at once. Right now it's obvious there was some cutting and pasteing. I was thinking joining the clips would smooth this out.

  • To make three tables from one table

    Hi,
    I have created a random table from a big table and now i want to make three tables of same numbers, means each table should contain 1000 records, as the table has random idx column, so i cant divide directly on basis of idx. in addition, i cant create three seperate tbles from main table, as i dont want any duplicate data in those three tables, whcih may occur if i will create each table individually.
    Best regards,

    Table 1.
    create table emp1 as
    select empno,ename,sal--,................
    from(select e.*,row_number() over(order by rowid) rn,count(*) over(order by null) cnt
         from emp e)
    where rn < cnt/3
    Table 2.
    create table emp1 as
    select empno,ename,sal--,................
    from(select e.*,row_number() over(order by rowid) rn,count(*) over(order by null) cnt
         from emp e)
    where rn between cnt/3 and cnt*2/3
    Table 3.
    create table emp1 as
    select empno,ename,sal--,................
    from(select e.*,row_number() over(order by rowid) rn,count(*) over(order by null) cnt
         from emp e)
    where rn > cnt*2/3                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Multiple tables feeding one table

    Hi All,
    What is the best method to feed data one central table with data from multiple other tables?
    Here is the scenerio/requirement:
    >BI Query 1 --> VC Table 1 --|
    >.........................................|
    >BI Query 2 --> VC Table 2 --|
    >.........................................>----> Master Table to display on VC dashboard
    >BI Query 3 --> VC Table 3 --|
    >.........................................|
    >BI Query 4 --> VC Table 4 --|
    Viewing data in the individual tables is straight forward enough, but what are the recommended methods of showing data from Tables 1, 2, 3 and 4 (which contain the same fields/structure) in a final 'master' table?
    Possible approaches:
    1] Referencing cells in Tables1-4 from within the master table;
    2] Feeding/sending values to the master table from Tables1-4;
    The reason for not simply grouping 4 initial tables together (i.e. one below another) in the first place is due to each table displaying column headers, which not only takes up unnecessary space, but also surplus to requirements, considering the structure of Tables1-4 are the same (e.g. Table 1 = sales figures for company ABC, Table 2 = sales figs for Company XYZ).
    Alternative suggestions are welcomed, as are methods on achieving the two possible approaches above.
    Many Thanks,
    Chet.

    Hi Mustafa, Basheer,
    Thanks for replies, very helpful indeed - I'll give it a go...         (EDIT: just tried, so far , so good)
    In the meantime...the reason I mentioned the potential option of "Referencing cells in Tables1-4 from within the master table;" is because I will also need to perform calculations based on the values found in Tables1-4. For a simple example, take a value from a specific cell in Table 2 (say, Cell1), multiply/subtract/divide by a value in a specific cell in Table 3 (say, Cell2), and display it in the 'master' display table.
    My intial thoughts suggest creating a new field in the 'master' display table (of type expression box) and creating a formula, which references the two cells (Cell1 and Cell2, both of which will have to appear hidden) to perform the calculation. (I am assuming I can use the General>Data Source Field>Field Name to action this).
    If you can kindly confirm this is the best approach (keeping in mind that many cells displayed in the 'master' table will calculated based on Tables1-4 - any performance issues??) , that would be greatly appreciated.
    Thanks,
    Chet.

  • ABAP routine to join two ODS objects into one

    Hi there,
    i have two ODS objects related to each other. and i want to load them into another ODS object and join them so to say.
    as far as i got now, it seems that the only way to do this is an ABAP routine in the update rules. ca nanyone give me a hint on how to do this? no clue how ABAP works yet.
    i suppose there must be some template or something because i think others must have had the same issue before. anyone who already solved this?
    i'd appreciate your help,
    regards,
    stefan

    HI Stefan,
    First add VTS_KUN (customer code)
    VTS_BEDA (order date)
    in ODS2 VTSNWBP2 and don't map to any field intransfer rule.
    write this code in start routine of udpate rule between VTSNWBP2 and VTSNWBDN.
    PROGRAM UPDATE_ROUTINE.
    $$ begin of global - insert your declaration only below this line  -
    <u>TABLES: /BIC/AVTS_NWBE00.</u>
    DATA:   ...
    $$ end of global - insert your declaration only before this line   -
    The follow definition is new in the BW3.x
    TYPES:
      BEGIN OF DATA_PACKAGE_STRUCTURE.
         INCLUDE STRUCTURE <i>/BIC/CS8ZODS2</i>.
    TYPES:
         RECNO   LIKE sy-tabix,
      END OF DATA_PACKAGE_STRUCTURE.
    DATA:
      DATA_PACKAGE TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    FORM startup
      TABLES   MONITOR STRUCTURE RSMONITOR "user defined monitoring
               MONITOR_RECNO STRUCTURE RSMONITORS " monitoring with record n
               DATA_PACKAGE STRUCTURE DATA_PACKAGE
      USING    RECORD_ALL LIKE SY-TABIX
               SOURCE_SYSTEM LIKE RSUPDSIMULH-LOGSYS
      CHANGING ABORT LIKE SY-SUBRC. "set ABORT <> 0 to cancel update
    $$ begin of routine - insert your code only below this line        -
    fill the internal tables "MONITOR" and/or "MONITOR_RECNO",
    to make monitor entries
    <b>DATA:  S_DATA TYPE STANDARD TABLE OF DATA_PACKAGE_STRUCTURE
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    DATA:  ITEM_TABLE TYPE STANDARD TABLE OF /BIC/AVTS_NWBE00
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    *start of modification
    *Populating the order number data from ODS1 table
    SELECT * FROM  /BIC/AVTS_NWBE00 INTO TABLE ITEM_TABLE.
    SORT DATA_PACKAGE BY VTS_BES  ASCENDING.
    SORT <u><i>ITEM_TABLE</i></u> BY VTS_BES  ASCENDING.
    LOOP AT DATA_PACKAGE INTO S_DATA.
       LOOP AT ITEM_TABLE WHERE VTS_BES = S_DATA-VTS_BES.
         MOVE-CORRESPONDING item_table to s_data.
         APPEND S_DATA.
       ENDLOOP.
    ENDLOOP.
    DATA_PACKAGE[] = S_DATA[].</b>
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    $$ end of routine - insert your code only before this line         -
    ENDFORM.
    *TABLES: /BIC/AVTS_NWBE00.--ODS1 table
    Lemme know this is working.
    Regards,
    San!
    Message was edited by: San!

  • To Join two SAP fields into one info object

    Hi All,
    Can you please suggest the best method to concatenate values from two R/3 fields into one info object master data table?
    The requirement is to create a Sales report where I need to report on sales against  sales type.
    Sales type is a list of joint values of item category ( 0ITEM_CATEG) and bill type (0BILL_TYPE).
    So, I need a list of all item categories and billing types in a single object and report sales value against it.
    Please suggest.
    Thanks,
    Sharmishtha

    Hi Venkat,
    In DSO any case you will not be having more than 16 Keys. I am surprised seeing requirement of more than 16 keys, but anyways you need to go with some workaround.
    You can concatenate multiple Fields and map to one Dummy InfoObject which will be Key in DSO so in actual you have more than 16 Keys but have 16 Keys in system.
    But analyze requirement in detail because this will increase data redundancy and time for load will get increased.
    Also for new issues start new discussion otherwise people will not able to help you in this forum.
    Regards,
    Ganesh

Maybe you are looking for

  • How can I open a PDF file and enter a word in the Find field from the command line?

    Hi, I want to use a PDF file as the help file of another program. I have found somewhere an incomplete description of the command line parameters of Acrobat Reader. It described how to open a file and jump to its given page. I have written the follow

  • Hard drive failed after update. Advise needed.

    First the system hangs. Then it took a long time to boot up. Finally, after a few rounds, the question mark folder appeared on boot up. I command r boot it. Sometimes it says disk has a hardware problem and smart status failing. Sometimes it is ok, b

  • Tooltip need to be displayed in multilines one below the other as listbox

    Hi , Let me explain my scenario. In my database i have multivalues say eg(  file1.doc, file2.doc, file3.doc). So in my front end i was fetching this concatinated filenames in the similar pattern as a tooltip. So now i am able to get this file names d

  • Initscripts 2011.10.2-1 / rc.sysinit Issues on Bootup

    Since upgrading initscripts from version 2011.07.3-1 to 2011.10.2-1, the following messages appear during the bootup process: /etc/rc.sysinit: line 35: minilogd: command not found /usr is not mounted. This is not supported. Attached is the following

  • Problem with usb boot on Satellite A-50

    Hi, I've had a problem with usb boot. When I'm inserting a usb, I can't boot my computer from usb. I've selected the option boot from a disk, but doesn't runs. I have a "Satellite A-50-522". Do I need to update bios? Greetings,