Join EKPO-EBELN with RESB-EBELN i need matnr from ekpo and matnr from resb.

Hi abapers experts !!!
Good noon.
In my report i need
                              MATNR FROM EKPO as PARTNO. AND
                              MATNR FROM RESB as CHILDITEM (SUB MATERIAL CODE)
I HAVE DECLARED
TYPES : BEGIN OF TY_FIRST,                    "EKPO
EBELN TYPE EBELN,                   "PO
EBELP TYPE EBELP,                    "PO ITEM
PARTNO TYPE EKPO-MATNR,    "MATL CODE
MENGE TYPE EKPO-MENGE,       "PO QUANTITY
MEINS TYPE EKPO-MEINS,          " UOM
BDMNG TYPE RESB-BDMNG,     "REQMT QTY
CHILDCODE TYPE RESB-MATNR,      "CHILD CODE
MEINS1 TYPE RESB-MEINS,        "REQMT QTY'S UOM
END OF TY_FIRST.
MY JOIN SELECTION QUERY AS EKPO-EBELN = RESB-EBELN.
SELECT EKPO~EBELN                "IT_FIRST
             EKPO~EBELP
             EKPO~MATNR
             EKPO~MENGE
             EKPO~MEINS
                        RESB~MATNR  "CHILDCODE
                        RESB~BDMNG
                        RESB~MEINS
INTO CORRESPONDING FIELDS OF TABLE IT_FIRST
FROM EKPO INNER JOIN RESB
ON EKPOEBELN EQ RESBEBELN AND
       EKPOEBELP EQ RESBEBELP.
AM GETTING EITHER PART NO. OR CHILDCODE. BUT MY REQUIREMENT IS I WANT EKPO'S MATNR AS PART NO. AND RESB'S MATNR AS CHILDCODE. HOW I DO THIS.
IN ADVANCE AM THANKING YOU. KINDLY HELP ME OUT.
ARVIND.

Hi,
Try like this without using the into corresponding fields of additions and using the same order as that of the types declaration
TYPES : BEGIN OF TY_FIRST, "EKPO
EBELN TYPE EBELN, "PO
EBELP TYPE EBELP, "PO ITEM
PARTNO TYPE EKPO-MATNR, "MATL CODE
MENGE TYPE EKPO-MENGE, "PO QUANTITY
MEINS TYPE EKPO-MEINS, " UOM
BDMNG TYPE RESB-BDMNG, "REQMT QTY
CHILDCODE TYPE RESB-MATNR, "CHILD CODE
MEINS1 TYPE RESB-MEINS, "REQMT QTY'S UOM
END OF TY_FIRST.
DATA: IT_FIRST TYPE TABLE OF TY_FIRST.
SELECT EKPO~EBELN "IT_FIRST
EKPO~EBELP
EKPO~MATNR
EKPO~MENGE
EKPO~MEINS
RESB~BDMNG
RESB~MATNR "CHILDCODE
RESB~MEINS
INTO TABLE IT_FIRST
FROM EKPO INNER JOIN RESB
ON EKPO~EBELN EQ RESB~EBELN AND
EKPO~EBELP EQ RESB~EBELP
WHERE (Conditions if any)
Try this you must be getting the correct entries now.
Regards,
Vikranth

Similar Messages

  • I just started using fire fox and I cant figure out how to add a new folder to my bookmarks. Can anybody explain how in detail (I'm bad with computers so I need real detail) Please and thank you. :)

    I just started using fire fox and I can't figure out how to add a new folder to my bookmarks.
    Can anybody explain how in detail (I'm bad with computers so I need real detail)
    Please and thank you. :)

    If you use extensions (Tools > Add-ons > Extensions) like <i>Adblock Plus</i> or <i>NoScript</i> or <i>Flash Block</i> that can block content then make sure that such extensions aren't blocking content.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    You can use one of these to start Firefox in <u>Safe mode</u>:
    *On Windows, hold down the Shift key while starting Firefox with a double-click on the Firefox desktop shortcut
    *On Mac, hold down the Options key while starting Firefox
    *Help > Restart with Add-ons Disabled
    If it works in Firefox Safe-mode then disable all extensions (Tools > Add-ons > Extensions) and then try to find which is causing it by enabling one extension at a time until the problem reappears.
    Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    See also:
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • I need to obtain an older version of firefox.. 4.0 is not compatable with my roboform. i need to uninstall it and reinstall the latest 3. something to get it to work right.

    Question
    I need to obtain an older version of firefox.. 4.0 is not compatable with my roboform. i need to uninstall it and reinstall the latest 3. something to get it to work right. where can i get the older version?

    Get an update from Roboform.

  • Please Help with JtextArea!! Need advice from Java expert!

    Hi, I need something VERY simple, and it is unbelievable I'm looking for a solution for so long! I really hope some of you java-gurus can help me out. Here's the thing:
    1. Make a Jframe
    2. Add a JTextArea and use a transparent color (e.g. 0.1f,0.1f,0.1f,0.1f)
    3. loop a setText method to display a constantly varying text, e.g. the time in milliseconds
    I simply can't do it in any way if I use transparency. Without transparency it works with no problems.
    I am on Mac, and I have checked out this site:
    http://www.curious-creature.org/2007/04/10/translucent-swing-windows-on-mac-os-x/
    but I can't figure out how the guy who wrote the code made it work on mac (he didn't add the full code and the imports). I already tried to contact him, but no answer...
    so PLEEEEASE take 5 minutes to write a very small example of how to manage a varying text on a transparent window.
    Thanks a lot in advance
    Lele

    -> did you maybe check out the link I posted?
    Yes, I did which is why I asked the question are you trying to create a transparent JFrame so that the desktop image is displayed in the frame? To my knowledge this feature (if it works) is a Mac only feature and does not work on windows. If this is what you are trying to do then I have no idea how to do it and will not respond any more.
    -> the GPS coordinates are displayed on top of the moving map, with no visible background
    I guess I have trouble understanding what this is - "a map with no background"?
    Is the map just not an image (ie. a JLabel with an ImageIcon) placed in a scrollpane? Then as the map moves you change the viewport position so it looks like the map is moving? Then you can simply add a label containing the GPS coordinates on top of the label representing the map.
    -> have you considered using a JLabel in an OverlayLayout?
    Right which is what I was thinking. Something simple like:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class LabelMap extends JFrame
         public LabelMap()
              JLabel map = new JLabel(new ImageIcon("yourMap.jpg"));
              getContentPane().add(new JScrollPane(map));
              JLabel point = new JLabel();
              point.setLocation(50, 50);
              point.setText(point.getLocation().toString());
              Dimension d = point.getPreferredSize();
              point.setSize(d.width, d.height);
              point.setFocusable(true);
              map.add(point);
              KeyListener kl = new KeyAdapter()
                   public void keyPressed(KeyEvent e)
                        JLabel point = (JLabel)e.getSource();
                        Point p = point.getLocation();
                        if (e.getKeyCode() == KeyEvent.VK_UP)
                             p.y -= 5;
                        else if (e.getKeyCode() == KeyEvent.VK_DOWN)
                             p.y += 5;
                        else if (e.getKeyCode() == KeyEvent.VK_LEFT)
                             p.x -= 5;
                        else if (e.getKeyCode() == KeyEvent.VK_RIGHT)
                             p.x += 5;
                        point.setLocation(p);
                        point.setText(p.getLocation().toString());
                        Dimension d = point.getPreferredSize();
                        point.setSize(d.width, d.height);
              point.addKeyListener(kl);
         public static void main(String[] args)
              LabelMap frame = new LabelMap();
              frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
              frame.setSize(300, 300);
              frame.setLocationRelativeTo( null );
              frame.setVisible(true);
    }In the above example you can scroll the image and dynamically move the text using the arrow keys.

  • Please help with medical files I need to open immediately and cannot.

    I have some medical files sent to me that I desperately need to open. The instructions were to copy the file to the desktop, a zip file by the way, left click using the mac button and "I" at the same time. A menu would open saying "open with" and I was to choose stuffit. Then enter the password when prompted. I was able to get to the stuffit part and the password prompt and entered the password, but nothing happened. I keep getting the error message: Unable to unarchive "LoganRobertPEME.zip" into "Desktop". (Error 1-Operation not permitted.)
    Can anyone help me open this file?
    Thanks

    Contact whoever sent you the file. Perhaps it's a bad archive. Or be sure you entered the password correctly. They are case sensitive.

  • Apple Portugal refused to replace my iPad air anymore with fabrication problems. Need help from Apple Ireland

    Hi, My english its not perfect but i'll try to explain my situation. I bought an iPad air with a problem in the monitor, yellow stains in the border with black screen and i went to an official apple repair in Portugal and they sent me for the third time an iPad with the same problem and with more problems like white graphics lines in the animation horizontal/vertical switch sides of the iPad view. At the fourth iPad that was sent with the same problem, Apple refused to replace for another iPad and said to me that was not their problem anymore and now I'm going to sue the company because nobody in Portugal can solve this situation in the costumer line. Im very sad with that, but i'm going till the end. I BOUGHT an iPad with FABRICATION PROBLEM and you guys don't care about to fix it. Thanks.
    What should i do more??

    crusherPT wrote:
    Ok, but i can't find the email of apple ireland. Someone have it?? i can't make a phone call to their line because it's not free from Portugal.
    Apple doesn't do support by email. All the contact information that is available can be found by using the Contact Us link at the bottom right of every page.
    If the call is not free, you may need to pay to call them.

  • HT1752 I have an old iMac (the rounded type with monitor).  I need a new keyboard and mouse.  Will any work?  thanks for any help!

    I have an old iMac for 2002....it's the rounded type that has an attached monitor.  The software is way outdated (OS X 10) and I only really use now to access 3,000 plus songs and old video of the family.  Both the keyboard and mouse no longer work.  Am I able to use any keyboard/mouse and plug in using USB?  Thanks for any help!

    Most any USB mouse or keyboard should work. Borrow one if you can and just plug it in.
    If the USB circuits are at fault then you can access via Firewire Target Mode with another Mac in order to get at the files.
    http://support.apple.com/kb/HT1661
    Another alternative would be to remove the hard drive and use a USB adapter to access it as an external  drive.
    http://eshop.macsales.com/item/NewerTech/U3NVSPATA/

  • Every time when I shutdown my 24"iMac, it will start up with a corrupted HD need to be formatted and restored. Anyone has the same problem?

    Every time after shutting down my 24" iMac, it will end up with a corrupted HD which cannot be fixed by disk utility and require to reformat the HD and restore.
    I noticed the Mac OS journal format will turn into no journal. Does anybody have he same problem?

    I have to ask; Are you using the Shut Down... menu item in the "apple" menu to shut down?  Does it shut down normally when you do?

  • How to join navegational attributes with infoset

    Hi Experts,
    How to join navegational attributes with infoset? the infoset based on ODS and both having navigational attributes,
    my requirment is to join Vendor account group navigational attributes with infoset,
    or else plz
    povid stps to crete...
    In the infoset how to  join Info Object CHAR1 to the CHAR1 in the ODS object which makes all the attributes of CHAR1 accessible in the Infoset..
    plz suggest with steps,
    regards,
    Edited by: Sap-10564461 on Apr 20, 2010 11:34 AM

    Hi,
      Consider that you have a cube/ODS which has 0MATERIAL. Say you have switched on the nav attribute Material group in the cube.
    Now since an infoset acts on a table level, it cannot read nav. attributes directly. Hence you will not be able to find 0MATERIAL__MATGROUP in the infoset.
    Now if you want to get able to obtain MATGROUP, you need to add 0MATERIAL to your infoset. One you have added 0MATERIAL, you will be see the attributes of this infoobject as fields.
    Map 0MATERIAL from the cube to 0MATERIAL from the info object. Join type is inner join. Now check the MATGROUP field under the infoobject table indicating that this field needs to be fetched by the infoset.
    Now when you run a query on the infoset, you will be able to use MATGROUP from 0MATERIAL.
    Hope this helps.
    Regards.

  • Need to move pages and sections from one doc to another

    I have a long document loaded with graphics. I need to repurpose pages and sections from that document and use them in another document.
    How do I move a section or page from one to another. A simple copy and paste doesn't seem to be the answer since it copies only the text, not the illustrations and format.
    Also, it would help if I could unlock sections - is that possible and how do I do it?

    You will have to do it manually, but you can do it whole sections at a time. Open your files & show thumbnails. Sections have a yellow border around all of the pages in that section. Now click on the page in the thumbnail pane & copy. If the file is more than one page & you only want one, you'll need to insert a section break to separate the pages. Then go to your other file & paste. The whole copied page will be pasted in. I found that pasting in the body of the target document only pasted the text but, if I clicked in the thumbnail area of the target document & pasted, I got both text & graphics. Repeat with another section. Styles will copy over with the sections but headers & footers will not.

  • Report - Time out Error when Joining EKPO & MSEG

    Hi All,
    This is my code:
    SELECT    EKKO~EBELN
                EKKO~LIFNR
                EKKO~BUKRS
                EKKO~EKORG
                EKPO~EBELP
                EKPO~TXZ01
                EKPO~MATNR
                EKPO~MENGE
                EKPO~MEINS
                EKPO~UNTTO
                EKPO~PSTYP
             FROM EKKO
            INNER JOIN EKPO ON
            EKKOEBELN = EKPOEBELN
            INTO TABLE T_EKPO
            UP TO P_MAX ROWS
            WHERE  EKKO~EBELN IN S_EBELN
            AND EKKO~BSART IN S_BSART
            AND EKKO~LIFNR IN S_LIFNR
            AND EKKO~EKORG IN S_EKORG
            AND EKKO~EKGRP IN S_EKGRP
            AND EKKO~BEDAT IN S_BEDAT
            AND EKPO~MATNR IN S_MATNR
            AND EKPO~WERKS IN S_WERKS
            AND EKPO~MATKL IN S_MATKL
            AND EKPO~PSTYP IN R_PSTYP
            AND EKPO~KNTTP IN S_KNTTP.
       SELECT MBLNR
               ZEILE
               ERFMG
               EBELN
               EBELP
               FROM MSEG
               INTO TABLE T_MSEG
               FOR ALL ENTRIES IN T_EKPO
               WHERE EBELN = T_EKPO-EBELN
               AND EBELP = T_EKPO-EBELP.
    Now i am getting time out error. Can Any one suggest how can i solve this issue.

    Identical problem by different (?) user:
    Joining tables EKPO & MSEG

  • Left outer join 3 tables with where-statement

    Hi folks,
    I hope you can understand (and maybe solve) my problem.
    Generally I try to left outer join three tables. The third table is used for a WHERE-statement.
    The three table structures are the following:
    table 1 (user)   
    user1 | key
    table 2 (detail)  
    key | ID
    table 3 (header)
    ID | user2                 
    ...and I want to achieve the following structure (as example filled with data):
    user | key | ID
    |-----|----
    xy    | a    | 001
    xy    | b    | #
    z     | b     | #
    The clue ist the usage of the third table. I need the table to set user1 and user2 equal (WHERE) but there are two problems:
    1) Obviously I can't left outer join two tables with each other. In this case I already used the 'key' of table 1 to join it with the 'key' of table 2. So I can't left outer join the 'ID' of table 2 with the 'ID' of table 3. Error message that I can only left outer join a table once. Any proposals?
    2) I have to include a WHERE to equal user1 with user2. But I am not allowed to use the user2 from table 3 because of the left outer join.
    I tried this coding:
    SELECT auser1 akey b~id INTO TABLE itab FROM ( table1 AS a
      LEFT OUTER JOIN table2 AS b ON akey = bkey )
      LEFT OUTER JOIN table3 AS c ON bID = cID )
      WHERE auser1 = cuser2.
    I would really appreciate your help.
    Regards
    MrclSpdl

    IF you want to join a DB table with an internal table, you need to use the 'FOR ALL ENTRIES' statement.
    select dbfields
    into table itab2
    from dbtab
    for all entries in itab
    where dbfield1 = itab-field1.
    This will get you a second internal table with all the corresponding data for the first selection.  You can then join them with a loop through the first table and a read table on the second table (for 1 - 1 relation) or a nested loop statement on both tables (for 1 - N relation).  Make itab a hashed table when using read table with key, use a sorted table if you need to loop without key access.
    Regards,
    Freek

  • Joining a table with all_tab_columns

    How is it possible to join a table with the tab_columns?
    The query im trying to establish is that in my table they are 12 columns with months names. So under an input variable im trying to return the required values with the selected months. The only way i could think of to get the months to connect with the tab_columns table.
    Any suggestion is really appreciated
    SELECT bust,
    Sum(jan) JAN,
    Sum(feb) FEB,
    Sum(mar) MAR,
    Sum(apr) APR,
    Sum(may) MAY,
    Sum(jun) JUN,
    Sum(jul) JUL,
    Sum(aug) AUG,
    Sum(sep) SEP,
    Sum(oct) OCT,
    Sum(nov) NOV,
    Sum(DEC) DECC
    FROM budget a,all_tab_columns b
    WHERE vsl_code = 4602
    AND code = 1
    AND year=2013
    AND account_code='30'
    AND b.table_name='BUDGET'
    AND b.column_name IN
                         (SELECT column_name
                          FROM (SELECT Column_name, ROWNUM r
                                        FROM all_tab_columns b
                                        WHERE table_name = 'BUDGET'
                                        AND Column_id BETWEEN 3 AND 14
                                        ORDER BY column_id)
                          WHERE r BETWEEN 2 AND 3 ) --Returns February,March
    group by bust;

    Sorry, I don't understand what you're trying to do or why you think you need to join to all_tab_columns. Perhaps you could post the definition of the budget table, some sample data, and the results you're hoping to see.
    Without that, I don't see why you can't just do this:
    SELECT bust,   
    Sum(jan) JAN,   
    Sum(feb) FEB,   
    Sum(mar) MAR,   
    Sum(apr) APR,  
    Sum(may) MAY,  
    Sum(jun) JUN,   
    Sum(jul) JUL,   
    Sum(aug) AUG,   
    Sum(sep) SEP,   
    Sum(oct) OCT,  
    Sum(nov) NOV,   
    Sum(DEC) DECC  
    FROM budget a
    WHERE vsl_code = 4602  
    AND code = 1  
    AND year=2013  
    AND account_code='30' 
    group by bust;

  • Join EQUI table with other table so as get address detail.

    Hi All,
    Can any one help me in the following case :
    I have to pass Equipment No. EQUNR on the selection screen and get Address detail (city, region, state, country, zipcode )
    now I am getting all this address related field in KNA1 table. Also I am able to join this two table with
    KNA1-KUNNR join EQUI-KUNDE as common field.
    Turning point
    when I am passing test data of Equipment No. EQUNR 60099204 I am not getting the address detail,
    because after passing EQUNR I am not getting KUNNR.
    So can any one please help me in joining EQUI table to some other table with field name so that I can get the address detail.
    Thanks

    Hi,
    The join between the table EQUI-kunde  join  KNA1-kunnr is ok but it not working for every value.
    Example :-
    In EQUI table when we pass  Equnr - 60099204 we need to get some value in KUNDE field, then only it will join to KNA1 table. But this is not happening, I am not getting value for KUNDE, hence join is not performing.
    So I need some other solution so that when we pass EQunr we can get the address details
    one thing more equnr  60099204 is having address detail, if we'll check IE03 (transaction by clicking address envelop)
    Thx.

  • Join 2 tables with 2 criteria

    hello
    i'm trying to join 2 tables with 2 criteria
    one criteria is  "numero de matricule" and the other is "date" 
    in one table i have many times the same "matricule"  it depends of "date de validité" validity date
    ex table 1
    n°mat - periode - montant
    1 -31-12-2013 -  100
    table2
    n°mat -periode - nom - adresse
    1 -
    31-12-2013 - gerard  - 12 RUE X
    1- 31/12/2012-GERARD - 2AVENUE Z
    how can i join those tow table
    thak you for your help, i'm a french beginner

    select *
    from table1 as a
    join table2 as b
    on a.n°mat = b.n°mat
    and a.periode = b.periode
    sqldevelop.wordpress.com
    Saeid, check this out and reply there if you're interested:
    http://social.technet.microsoft.com/Forums/en-US/a2e22d61-7c32-43f2-900e-d9d6325fa26d/needed-more-power-pivot-answerers?forum=sqlkjpowerpivotforexcel
    Thank you for all your contributions!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!

Maybe you are looking for