FI/CO - Reading from COSP to COEP but cannot get PO and Matnr

Hi guys, first question on this forum so forgive me if i post incorrectly.
I have created a report that reads budgeted,planned,commitment and actual values for CO/FI (PS).
This reads from prps to cosp and onto coep where the latter i need to retrieve the purchase  order number, the materials and finally the profit segment number for where i select from ce40max_acct to determine product hierarchy etc.
The problem i am having is that when reading coep from cosp (and using an outer join as not all planned etc records will have an actual record) i cannot distinguish between different  Purchase orders (where they have the same material,cost centre,controlling area). This is resulting in my figures getting messed up.
Hope this is somewhat clear but i will attach the code that i am using so that someone here may see what i am doing wrong.
  SELECT BPOSID BPOST1 AKSTAR BPKOKR BPBUKR EPAOBJNR
         EEBELN EMATNR
         AOBJNR AVRGNG ATWAER AVERSN
         AWOG001 AWOG002 AWOG003 AWOG004
         AWOG005 AWOG006 AWOG007 AWOG008
         AWOG009 AWOG010 AWOG011 AWOG012
         APPENDING CORRESPONDING FIELDS OF TABLE GT_OUTPUT
         FROM COSP AS A LEFT OUTER JOIN COEP AS E
         ON EOBJNR = AOBJNR
         AND EKSTAR = AKSTAR
         AND EVRGNG = AVRGNG
         AND EGJAHR = AGJAHR
         AND EWRTTP = AWRTTP
         AND ELEDNR = ALEDNR
         AND EHRKFT = AHRKFT
         AND EBEKNZ = ABEKNZ
         AND ETWAER = ATWAER
         INNER JOIN PRPS AS B
         ON  AOBJNR = BOBJNR
         WHERE B~PSPNR IN S_PSPNR
         AND   B~PBUKR EQ P_BUKRS
         AND   B~PKOKR EQ P_PKOKR
         AND   A~GJAHR EQ P_GJAHR
         AND   A~KSTAR IN S_KSTAR.
Thanks for any ideas
I guess what i am asking is........from a record in COSP how can i find the correspoding unique record in COEP !
Message was edited by:
        ED MORRISSEY

Hi,
I have already developed the report which gives the project / WBS data like:
- Planned values
- Budget
- Commitments
- Actaual cost ( billed / Unbilled )
These are the table i get these info from.
1. Planned values - COSP with OBJNR / VERSN / GJAHR and COSP-VRGNG = 'RKP1'
2. Budget         -  BPEG with OBJNR = wbs obj no / WRTTP = '41' / VORGA = 'KBUD'
3. Commitment     -  COOI with LEDNR = '00' and  OBJNR = wbs object no.
4. Actual cost    - COVP ( this is join of COEP and COBK) with LEDNR = '00' and OBJNR = wbs object number
Let me know if you need any information.
Regards,
RS

Similar Messages

  • I have a WiFi connection from an international hotel, but cannot get on line even though my laptop wireless is working fine.  I have the Cell off.  Also tried Airplane Mode ON and WiFi On.  Any suggestions?

    I am using WiFi for my laptop from the hotel room in an international location.
    I have tried everything but cannot get my iPhone5 to connect to the internet from the room (where room # and name need to be entered first) OR the lobby (open WiFi).
    Cell is off, Roaming is off.
    I tried turning phone off, turning on with Home button pressed to reset, Forget Network and re-connect. No luck.
    A friend has an iPhone 5 and it works just fine. 
    Any suggestions?

    Catch 22
    I need Safari to get to that first page so I can do that!
    I am already logged on via the laptop, and can add the iPhone if Safari could only get to the first page!!
    The lobby wifi is open, and doesn't need the sign in page, but I can't get to the Internet even though it seems to have connected to the hotel's wifi.

  • Can see the shared folders from my vista machine, but cannot get into them

    I was looking through these forums last night, and thanks to someone elses post, I was able to make it so that my Vista machine can SEE my Mac over the network. So I can see the computer, I can see what folders I had set on the mac as "shared", but if I try to open them, Winblows throws up an error that the network path is inaccessible...I may not have permission...blah blah blah. The Mac is connected to the network wirelessly, whereas my PC is hooked up through an ethernet cable (don't know if this matters or not). What settings do I need to check/adjust in Leopard so that my Winblows machine will talk to it? All I want to do is some simple file transfers, nothing complicated.

    Thank you for your reply. Unless I overlooked something, Windows Sharing does not seem to exist in Leopard. I remember it being there with Tiger, but I did not see that particular option with Leopard. My firewall settings seem to be okay, as I was able to communicate with the Tiger machine and the other Windows machines currently with no issues.

  • Skype is downloaded but cannot get speaker and camera to work

    skype is downloaded to new iPad but speaker and camera not working

    It works for me using normal Swing so the bug is in the ACM classes.
    GraphicsProgram -> JPanel and add main method
    GLabel -> JLabel and setString to setText
    run -> as constructor and use the default flow layout instead of the 50, 50 size
    Cleanup (not needed to fix):
    Derive font instead of new.
    Removed unused MouseListener.
    Moved MouseMotionListener to anonymous adapter.
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class TestMouseMotion extends JPanel {
        public static void main(String[] args) {
            EventQueue.invokeLater(new Runnable() {
                public void run() {
                    JFrame frame = new JFrame("Test");
                    frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
                    frame.getContentPane().add(new TestMouseMotion());
                    frame.pack();
                    frame.setLocationRelativeTo(null);
                    frame.setVisible(true);
        public TestMouseMotion() {
            final JLabel label = new JLabel("This gets overwritten once mouse moves");
            label.setFont(label.getFont().deriveFont(Font.BOLD, 36));
            add(label);
            addMouseMotionListener(new MouseInputAdapter() {
                @Override
                public void mouseMoved(MouseEvent e) {
                    label.setText("Mouse: (" + e.getX() + ", " + e.getY() + ")");
    }

  • HT1296 I already have an itunes account on my laptop but have been setup on a mac and have songs that have not been purchased from the itunes store, I cannot get the songs from my iPhone onto my itunes account on the mac. how can I do this?

    I already have an itunes account on my laptop but have been setup on a mac and have songs that have not been purchased from the itunes store, I cannot get the songs from my iPhone onto my itunes account on the mac. how can I do this?

    You copy them from your old computer or your backup copy of your old computer.
    The iphone is not a backup/storage device.

  • My hard drive fried and had to be replaced. I'm trying to install CS4 from my original discs but keep getting this error message - "One or more of the required components of Adobe Creative Suite 4 Design Standard failed to install correctly". A customer s

    My hard drive fried and had to be replaced. I'm trying to install CS4 from my original discs but keep getting this error message - "One or more of the required components of Adobe Creative Suite 4 Design Standard failed to install correctly". A customer service rep gave me a link to download off the Adobe site, but when I try to open the file to run it, I get this error message - "A problem occurred extracting the archive".
    Can anyone help?

    Yep.  Nothing happens at all. Windows tries to execute the uninstaller, but I don't get any other screen and all activity stops for the MSI.  I monitored it in Process Monitor and the MSI executable appears, but is quickly ended, like it couldn't find anything or something.
    It's as if windows has a blank entry in Programs and Features, because it used to show the size of the Adobe application in the "Size" column.  Now it's just blank.  Link to screenshot below:
    http://img829.imageshack.us/img829/5006/screenshotcaf.jpg
    Note the install date.  That's when I was able to successfully reinstall it.  Now I can't even do that.  I should also mention I tried Revo Uninstaller.  It deleted one small registry key, but nothing changed.
    By the way, is the CS cleaner supposed to ask for a disc in the drive when you run it?  It refused to run unless I had one in it, so I used my install dvd.

  • I am trying to burn a CD from an iTunes playlist but I get the error message "medium write error". What's wrong?

    I am trying to burn a CD from an iTunes playlist but I get the error message "medium write error". What's wrong?

    Could you post your diagnostics for us please?
    In iTunes, go "Help > Run Diagnostics". Uncheck the boxes other than DVD/CD tests, as per the following screenshot:
    ... and click "Next".
    When you get through to the final screen:
    ... click the "Copy to Clipboard" button and paste the diagnostics into a reply here.

  • Created a movie in IMOVIE and transferred it to dvd but cannot get it to play on my dvd player.  i downloaded the free Burn program since i don't have idvd on my new mac  the dvd comes up disk error or cannot read

    created a movie in IMOVIE and transferred it to dvd but cannot get it to play on my dvd player.  i downloaded the free Burn program since i don't have idvd on my new mac  the dvd comes up disk error or cannot read.  I am using a dvd-r dvd and my dvd player says that it uses this type of dvd.  Any suggestions.  I spoke to an Apple Support person who helped me burn the dvd but it still didn't work...help???

    There's a difference between a data DVD, and a DVD-Video.  I believe you made a data DVD, which can't be played in a video player.  The Burn feature of the Finder can't author a DVD-V, just data discs.   
    I assume you made a Project, and put clips from your Event Library into the Project.  But then, how did you output your Project, using the SHARE menu? 
    When I pull down iMovie '11s SHARE menu, "iDVD..." is one of the options.  It's the job of iDVD to make the menu that appears when you insert a DVD into your player (that says the title, and chapters, and extras, etc.).  You need software that will made a DVD-V disc.  Lacking that, you might be able to go to Share/Export Movie... or Share/Export using QuickTime... to get your video into a format that software like Roxio's Toast could burn. 

  • TS2570 I have a corrupt jpeg on my desktop. It has duplicated itself 450,000 times freezing my finder. I have reinstalled 10.6.8 but not freed up desktop. I have managed to delete the corrupt jpeg from a shared imac but cannot delete the duplicates. Any i

    I have a corrupt jpeg on my desktop. It has duplicated itself 450,000 times freezing my finder. I have reinstalled 10.6.8 but not freed up the desktop. I have managed to delete the corrupt jpeg from a shared imac but cannot delete the duplicates. Any ideas

    This can be done from Single User Mode. You're going to need a little nerve though since everything is command line based.
    1) Enter Single User Mode by restarting and holding down Command+S on the keyboard. A whole bunch of UNIX stuff will go by on the screen in white text on a black background. When it's done, the command prompt will be sitting at:
    :/root#
    2) Above that, you'll see that it tells you to enter two commands. Run this one first by typing it in and pressing enter:
    /sbin/fsck/ -fy
    This does a system file check. A good thing to do in your case as it may be damaged. It could take a while. When it's done, you'll be back at the :/root# prompt.
    3) Enter the second command and press enter:
    /sbin/mount -uw /
    4) Type the following at the prompt:
    cd /Users/name/Desktop
    Where it says "name" above, the short name of your user account goes there. If you're not sure what it is, first type:
    cd /Users
    Then type:
    ls
    That's a lower case L, not a one. It stands for "list". You'll get a listing of all files and folders in the Users folder. So if your short account name is diane, then the command will be:
    cd /Users/diane/Desktop
    After entering that command, the prompt should read:
    :Desktop root#
    Type:
    rm *.jpg
    Be very careful to type is exactly as shown. rm followed by a space, then *.jpg. Press enter and all files ending in .jpg will be deleted from the Desktop folder. With 450,000 of them, you could be waiting a while for the prompt to come back.
    Type:
    exit
    and press enter to boot back into OS X.

  • A friend of mine was recently in an accident and we need to delete some photos from her iPhone's "Photo Stream From my Computer" album, but cannot figure out a way to do it (there's no delete button). Help?

    A friend of mine was recently in an accident and we need to delete some photos from her iPhone's "Photo Stream From my Computer" album, but cannot figure out a way to do it (there's no delete button). Help?

    Sounds like it was synced from her computer using iTunes.  Connect the phone to her computer, open iTunes, click on the name of her phone in iTunes, go to the Photos tab and see if this folder is checked.  If so, unchecking it and syncing will remove them all, or deleting/moving the photos from the folder on her computer and syncing will remove the deleted/moved photos.

  • HT201269 hi, i have just upgraded to the i phone 5 from the 4s, i have done a back up and transfrerred all content to my i phone 5 but cannot get apps to trasfer how do you do this please?

    hi, i have just upgraded to the i phone 5 from the 4s, i have done a back up and transfrerred all content to my i phone 5 but cannot get apps to transfer how do you do this please?

    Apps are not part of the backup. You need to sync them to the iPhone from iTunes on your computer or re-download them from the iTunes Store. For the latter option, see:
    http://support.apple.com/kb/ht2519
    Regards.

  • I rented a movie from itunes on my ipad and now want to play it on my appletv, but cannot get it to show up.  What do I need to do?

    I rented a movie from itunes on my ipad and now want to play it on my appletv, but cannot get it to show up.  What do I need to do?

    If you download a rented movie on your iPhone 4 or later, iPad, iPod touch (4th generation or later), or Apple TV: It is not transferable to any other device or computer."
    http://support.apple.com/kb/ht1657

  • Hi chaps. FaceTime question. I can FaceTime by phoning my iPhone 4 from my iPad 2 but cannot phone my iPad from the iPhone. When facetimeing from phone to iPad the phone says it's busy. The iPad rings once and then stops. Any ideas. Regards Jon

    Hi chaps. FaceTime question. I can FaceTime by phoning my iPhone 4 from my iPad 2 but cannot phone my iPad from the iPhone. When facetimeing from phone to iPad the phone says it's busy. The iPad rings once and then stops. Any ideas. Regards Jon

    Perhaps this discussion will help with your issue,
    https://discussions.apple.com/message/16502324#16502324

  • I'm trying to import photos from my iphoto library, but keep getting a message saying I cant import from 7.1.5, that I need to upgrade to 7.1.5 or later.  But I have version 8.1.2.  I don't know what to do. I've been able to import in the past.

    I'm trying to import photos from my iphoto library, but keep getting a message saying I cant import from 7.1.5, that I need to upgrade to 7.1.5 or later.  But I have version 8.1.2.  I don't know what to do. I've been able to import in the past.

    Sounds like an issue with the iPhoto Library
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • I am trying to install Adobe Reader my wife's laptop but "installer" hangs up and fails with a blank black screen. The machine is capable and has a Vista OS. My wife blames the machine and wants to "throw it out." She's an idiot but I need to get this fix

    I am trying to install Adobe Reader my wife's laptop but "installer" hangs up and fails with a blank black screen. The machine is capable and has a Vista OS. My wife blames the machine and wants to "throw it out." She's an idiot but I need to get this fixed.

    run the cleaner (Download Adobe Reader and Acrobat Cleaner Tool - Adobe Labs) and then retry installing.

Maybe you are looking for