Inner Join between MARA, MARC and MVKE

hi experts,
please give me a sample code to join these 3 tables.
thanks.
sasi.

hi,
     instead of inner joins go for all entries,
  select matnr ersa ernam from mara into table it_mara
  where matnr in s_matnr.
  if it_mara[] is not initial.
   select matnr werks pstat from marc into table it_marc
  for all entries in it_mara where matnr = it_mara-matnr.
endif.
if it_marc[] is not initial.
  select matnr vkorg vtweg from mvke into table it_mvke
for all entries in it_marc where matnr = it_marc-matnr.
endif.
if helpful get some points.
regards

Similar Messages

  • Inner Join between two big tables

    Hi There,
    I have a situation where in which I have to write an inner join between two table of the order of (30k to 60 rows).
    My query is as simple as,
    select A.a,B.b from A ,B where A.a = B.b;
    N.B: a and b are of type varchar
    But the problem is it takes nearly 15 mins to run. Is there any better way of doing an inner join between such bigger tables?
    Thanks,
    Jose John.

    Thank you all for your help.....Indexing works....:)
    --JJ                                                                                                                                                                                                   

  • How to provide joins between oracle tables and sql server tables

    Hi,
    I have a requirement that i need to generate a report form two different data base. i.e Oracle and Sql Server.
    how to provide joins between oracle tables and sql server tables ? Any help on this
    Regards,
    Malli

    user10675696 wrote:
    I have a requirement that i need to generate a report form two different data base. i.e Oracle and Sql Server. Bad idea most times. Heterogeneous joins do not exactly scale and performance can be severely degraded by network speed and b/w availability. And there is nothing you can do in the application and database layers to address performance issue at the network level in this case - your code's performance is simply at the mercy of network performance. With a single glaring fact - network performance is continually degrading. All the time. Always. Until it is upgraded. When the performance degradation starts all over again.
    If the tables are not small (few 1000 rows each) and row volumes static, I would not consider doing a heterogeneous join. Instead I would rather go for a materialised view on the Oracle side, use a proper table and index structure, and do a local database join.

  • Find the key for join between table "crhd" and "equi" for use field "answt"

    I make program for read data from table "crhd" for print  about machine report
    but I can not find the key for link join to table "equi" for print field "answt" (acquistion value)
    please help me  find the key field for join between table "crhd" and "equi" for use field "answt"
    thank you very much...

    This is how the Work Center is linked to a particular Equipment -
    Functional - In IE03 ( view Equipments) You see the Work Center of a particular Equipment.
    Technical - Go to view V_EQUI ( view of EQUI and EQUZ). Pass the Equipment number alongwith V_EQUI-PM_OBJTY = 'A' ( i,.e searching for the Object Type Work Center).  In this way u ll get the V_EQUI-GEWRK - this is the Work Center ID.
    You can pass this Work Center ID to CRHD. And you will get the Work Center text.
    CRHD-OBJTY = 'A'
    CRHD-OBJID = V_EQUI-GEWRK.
    and u ll get the CRHD-ARBPL - this is the Work Center.
    So u need to come backwards, alongwith ur CRHD-OBJTY and CRHD-OBJID , you pass the same to V_EQUI and u get the list of equipment numbers alongwith ur ANSWT(Acquisition value).
    I guess it solves ur problem.

  • What is the Join Between structures (sdpartnerlist) and (vbak or komv )

    Hi Dear ,
    can anyone tell me that  " what is the  Join Between structures (sdpartnerlist) and (vbak or komv ) "
    or how can i join these structures .

    Please do your own research before asking others.
    Thread locked.
    Thomas

  • Inner join on Buffred table and not buffered table.

    Hi guys,
       Can you suggest me how can i write select query using inner join on buffered table and not buffered table. i written like this. is it right?
    SELECT a~vbeln                         
             a~vkorg   
             a~kunnr                         
             a~kunag                         
             a~wadat_ist 
             a~xblnr                         
             b~bukrs
       FROM likp AS a INNER JOIN tvko AS b
        ON avkorg = bvkorg BYPASSING BUFFER
      INTO TABLE itab_likp
      WHERE vbeln = s_vbeln.              
    Thanks.
    RAJ

    Hi Raj ,
    Please find below my Commentes :
    1. When you use "Bypassing buffer" clause in Select statement , the data what is there in the buffer of application sever is always ignored and Read is performed from the Physical database always. This Clause is advisable where you require realtime data (Not recommended generally in reporting)
    2. It is advisable that you should not use small table in the innerjoin with big table. In the query you have written there are 2 tables:- LIKP and TVKO outof which TVKO is a master table containing very few records than LIKP (Contains huge data for Delivery header).
    So my recommendation will be : -
    1. Eliminate the "Bypassing Buffer" clause from your Query
    2. Break the select query into 2 select queries breaking the join and with some ABAP logic populate the Internal table "itab_likp".
    This will be optimum way inwhich you can write the select query for your senarion. Also Ensure that indexes are being used for better selectivity.
    Hope this will help to you.
    Regards,
    Nikhil

  • Difference between MARS LMS and IPS

    I am trying to understand the difference between MARS, LMS and IPS and why you would use one over the other.
    Thank you all.

    MARS is an appliance that aggregates/deduplicates syslog and netflow data from routers,switches,firewalls, and IPS sensors. In addition to Cisco devices it also supports things like Checkpoint Firewalls, Snort IPS, etc.
    LMS (Ciscoworks LMS) is primarily a device configuration and IOS management platform that runs on your own Windows server (not sure if Unix is still supported.) We use it to maintain the configs of hundreds of Cisco routers and switches, easily push out config changes to said devices, and mass-deploy IOS upgrades.
    IPS is sort of like anti-virus "on the wire" - it runs on dedicated IPS sensors, plug-in modules on firewalls or 6500's, and on routers via IOS IPS. Events can be forwarded to MARS for correlation, etc.
    You didn't ask, but CSM (Cisco Security Manager) is the more appropriate tool for mass-configuration and 'group policy' for firewalls and IPS sensors.
    Each product solves a particular problem; you wouldn't choose one over the other since they all work together to provide a cohesive solution. The specifics of your environment (particularly the number and type of devices) would dictate your choices here.

  • Inner join between OBOE and OBOT

    Hi all,
    I am trying to query these tables, but for all the system displays data from these tables in only one windows, MSQL does not inner join this tables.
    So, we are looking for the relation in these two tables, or between OBOE and JDT1/OJDT would be enought.
    Thanks and regards,
    Javier Zapata

    Hi,
    i'm not sure but you can try to use the table BOT1 (Bill of Exchange Transactions details).
    Here you can find the field AbsEntry (related to the table OBOT) and the field BOENumber (related to OBOE table).
    Hope this helps
    Regards,
    Fabio Salucci

  • Multiple inner joins combined with outer and right.

    Hello
    Can someone give me an example of multiple inner joins?
    Meaning inner join on more than 3 tables. Can someone provide me sql statement that would be great?
    Also can you combine inner outer and right in one query if so how? Again, can someone provide me sql statement that would be great?
    Thank you so much

    You can look at my sample Re: Need Assistance to write a procedure for the below requirements!!!
    John

  • Join between AP suppliers and GL Accounts--R12

    Hi
    i have a join connects suppliers,invoices and gl code combinations tables.This gives me liablity accounts
    [apps.ap_suppliers v,
               apps.ap_supplier_sites_all ps,
                apps.ap_invoices_all inv,
                apps.ap_invoice_distributions_all invd,
                apps.gl_code_combinations_kfv cc]
    But I want to know how to calculate the Expense Accounts of a supplier
    What could be the joins?
    Appreciate your reply
    thanks
    kp
    Edited by: 854508 on Jun 15, 2011 12:53 PM

    I think you are using CCID from suppliers table to get liability accounts.
    Not sure whether you are taking care of Automatic Offsets. Depending on that the final account in journal entries may change.
    For expense accounts also depending on the ADRs the account may change in journal entry.
    Depending on line_type_lookup_code the CCID in ap_invoice_distributions_all may be an expense account.
    By
    Vamsi

  • Firefox is continually "not responding"; between Mar 7 and Mar 8 the ".json" bookmarks file has doubled in size

    For some time prior to Mar 7 FireFox (27.0.1) had started "not responding" when I clicked on any link on any page. In desperation I uninstalled and re-installed FireFox on Mar 7. The problem came back. The only other thing that I noticed when I looked at my profile folder is that the bookmarsbackup...json file doubled in size the next day (Mar 8)

    Hi BillFreund,
    I do not know. Do you notice duplicates? This should not happen.
    This is a good reference to start troubleshooting if it starts to not respond any longer.
    [[Firefox hangs or is not responding - How to fix]]
    You can try to launch the browser in safe mode by clicking control + shift to see if the file doubles in size again.
    Something else that you have installed isn't causing or contributing to that fault.
    [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes][
    I hope this helps.

  • Join between fact table and master data table

    Is it posible to join a Cube with a Characteristic? This is exactly what i need:
    - In my cube i have date (0CALDAY) and (among others) a characteristic (ZCHAR) and a key figure (ZKEYF).
    - I added a key figure (ZKFAT) as an attribute to ZCHAR. So the tables look something like this:
    Fact table:
    <b>0CALDAY | ZCHAR | ZKEYF</b>
    12.10.2006 | CHAR1 | 10
    12.10.2006 | CHAR2 | 20
    12.10.2006 | CHAR3 | 30
    Master data table for ZCHAR:
    <b>ZCHAR | ZKFAT</b>
    CHAR1 | 1000
    CHAR2 | 2000
    CHAR3 | 1500
    I need to make a query with a table that looks like this:
    <b>0CALDAY | ZCHAR | ZKEYF | ZKFAT</b>
    12.10.2006 | CHAR1 | 10 | 1000
    12.10.2006 | CHAR2 | 20 | 2000
    12.10.2006 | CHAR3 | 30 | 1500
    Finally, the query should result in something like this:
    <b>0CALDAY | ZKEYF | ZKFAT</b>
    12.10.2006 | 10 | 1000
    12.10.2006 | 20 | 2000
    12.10.2006 | 30 | 1500
    Adding KFAT to the fact table is not an option, i need to read this information directly from ZCHAR.
    I've tried using MultiProviders but didn't get the result i need.
    Is there any way to achieve this? Please advice.
    Thank you,

    Thank you Ram C. i've tried your solution and it may be it, but i'm having one problem:
    Since i'm reporting in web, i used the second solution you offered and almost got the desiered result. The problem is that some entries are correct but others ar duplicated! Using same example, my result table looks something like this:
    <b>0CALDAY | ZKEYF | Calculated KF (from ZKFAT)</b>
    12.10.2006 | 10 | 1000
    12.10.2006 | 20 | 4000
    12.10.2006 | 30 | 1500
    Second row should be 2000, but instead it shows 4000. I added ZCHAR's attribute ZKFAT as a display attribute in order to compare the results. I found that the display attribute is correct (2000) but the Calculated KF still showed duplicated data (4000).
    By the way, when i execute the query, i get this warning message:
    "Calculated key figure ZRT_C02_2_CKF004 is not defined correctly"
    Any ideas why this could be happening?
    Thank you for your help.
    Message was edited by: Gerardo Gaona

  • Relation between Mara, CAWN and CABN table.

    Can anyone tell how to find Character value and Characteristic Name from Material master record.
    I need to generate a report, in the input I will give Material Name and output should be Character_Name and Character value.  
    How material master(MARA) is linked to CAWN and CABN table?
    Thanks,

    The first field in AUSP is Object.  In this case, the Object is the material number from mara.  You have to have the leading zeroes.  So if your material number is 12345678, then you have to use 000000000012345678 as the Object in AUSP.  From their you should be able to figure out the links to the other tables.
    CABN is just the characteristics available in your system.  CAWN is just the values for each characteristic in CABN.  You can't link to these tables from the material master.
    Hope it helps,
    Brian

  • Domain Join between Client Network and RODC Netzwork

    Hi there
    i have the following Network Setup (all Servers are 2008 R2 with SP)
    If i try to Join the DB Server to our Domain via offline Join(DJOIN) everything is working fine.
    But if i try to join the Clients to our Domain, the login fails with the message "no authentification servers available"
    I also checked the network logs via wireshark and i found this
    CLIENT ->RODC DNS 97 Standard
    query 0xea67  SRV _kerberos._tcp.dc._msdcs.Domäne
    RODC -> CLIENT DNS 200 Standard
    query response 0xea67  SRV 0 100 88 DC2.DOMÄNE SRV 0 100 88 DC.DOMÄNE
    After that the client seems to try to reach our DC via CLDAP(which is not allowed on the firewall)
    CLIENT ->
    DC CLDAP 207 searchRequest(6987)
    "<ROOT>" baseObject 
    Is that normal? i thought the clients only need a connection to the RODC Server, and the RODC Server is going to make the LDAP Connection to the DCs.

    Hi,
    Firstly check if the Subnet of client is associated to correct Site. After that you can create a entry in Registry of client so that it can go to that particular site of RODC.
    Navigate to: HKLM\System\CurrentControlSet\Services\Netlogon\Parameters
    String VAlue: SiteName and mention the site name of the RODC server.

  • Joins between DATA COLLECTIONS and TABLES

    I would like to know if is there any way to create one data collection with a query result, but I must join this data collection with an exist table, I cant use the GLOBAL TEMPORARY TABLE because I cant create a table in the module. I would like to do just what the SQL Server do with the @.

    sql>create type tnumbercollection as table of number;
      2  /
    Type created.
    sql>declare
      2    c  tNumberCollection;
      3  begin 
      4    select employee_no bulk collect
      5      into c
      6      from mrt_user_master
      7     where rownum <= 5;  -- build collection of 5 employee numbers
      8 
      9    for r in (select um.last_name
    10                from user_master um, table(cast(c as tNumberCollection)) t
    11               where um.employee_no = t.column_value) loop  -- join the collection to the table
    12 
    13      dbms_output.put_line( r.last_name);          
    14 
    15    end loop; 
    16  end;
    17  /
    PL/SQL procedure successfully completed.

Maybe you are looking for

  • TS1398 unalbe to get ipad to connect to the internet after ios upgrade

    helppppppppppp i had my it guy from work upgrade me to ios 7 i believe but since then ive not been able to get my ipad to conect to the itunes store or even connect to the internet now my it guy says tht it is beyond his skill level and i should take

  • Make free unlimited points, gold, and unlock all heroes

    Sonic Runners Hack Tool works to give you all features unlocked, unlimited Red Stars Rings, Rings and it is totally safe with Guard Protection script and regular updates to keep it working all the time and it was tested hundred of times on our testin

  • FCP 6 problems after installing Leopard

    Final Cut Studio 2 has worked fantastic for me on Tiger. Export to Compressor, Open with Soundtrack, and DVD authoring was awesome in DVD Studio Pro. Then I installed Leopard and started running into some problems. I really like Leopard in all that i

  • Buying new HDD camcorder this week.  Suggestions please.

    Buying new HDD and want one that works flawlessly with IMovie09. I'm no expert and don't want to have to jump through hoops in order to utilize it so I appreciate recommendations from anyone who has one and hasn't had any issues. Thanks in advance.

  • Avaliabiliy of nokia c6-01

    Can anyone plz tell me when nokia c6-01 will be available in india(KASHMIR) and are there any problems with this phone as i am going to buy it. ANY SUGGESTIONS?