Query needs display only the recent record that was updated into BW.

Hi Gurus,
I have a question related to query creation.
I hve one Infoset which was built on top of Opportunities data and Activities data cubes.  Tthey are linked using Opportunity GUID.  And in the query I am displaying the Opportunity ID(from Opportunity cube),  Sales order Number from the Activities data and a keyfigure No of Doc headers from the opportunities cube.  Everything is fine.  I want to display One Opportunity ID and One Activity associated with it.  I mean I want to display only the activity ID which is very recent.  But the query displays all the activity IDs which are associated with the opportunity ID.   We are not using any time characteristics too as the query has to display all the data that is there in the cubeI just want to see the recent activity that has got updated into the cube.  Kindly advice on how to achieve this..
THanks in Advance
Mohan Kumar

Hi mohan,
try to do some restriction by using  request ID (0requid) and variable 0S_RQMRC (Most current data on 0requid).
for example a restriction on activiy id by most current request ID.
hope it helps.

Similar Messages

  • I have a new windows PC and when I registered my account with I Tunes only the recent music that I purchased off I Tunes was in my Library all the music that added to the library is missingÉ

    I have a new PC running windows 8 and when I registered my new account with I Tunes only the recent music that I purchased off I Tunes populated in my music library. The other material that I imported into my library from CD is missing. I am missing several hundred recordings and want to know if it is possible to get them back without having to go back to my old PC and manually make out a missing catalogue of music and re-importing back into my new PCÉ

    Your media is only where you put it.
    Installing iTunes and signing into your iTunes account does not cause media to magically appear.
    Copy the ENTIRE iTunes folder from the old computer or the backup of the old computer to the new computer.
    FYI, there is nothing to import and if you are smart and want to avoid duplicates you will NOT import anything.

  • Hi, I got a big problem. I restored my mac and after I erased everything and started to restall the system, it showed I need to give the apple ID that was purchased the lion. The problem is that I lost my CD, and I don't have an ID with lion purchased

    Hi, I got a big problem. I restored my macbook pro and after I erased everything and started to restall the system, it showed I need to give the apple ID that was purchased the lion. The problem is that I lost my installing CD, and I don't have an ID with lion purchased, so what should I do? Do you sell the system software?

    This is a user forum; we're not  Apple. 
    Please contact the Apple Support folks directly for issues related to hardware and software purchases.
    The particular model of MacBook Pro is a key detail here, as the Mac model will determine the oldest version it can boot, as well as whether it'll boot more current software.
    AFAIK there is and was no Lion installer DVD available.  It was a download.  AFAIK, the last DVDs commonly available were for Snow Leopard 10.6.  Snow Leopard DVDs are still available in the Apple online store in various countries, if your MacBook Pro is old enough to be able to boot that version.
    If your MacBook Pro purchase with Lion wasn't registered with Apple, then you'll have to discuss this directly with the Apple Support folks, or repurchase Lion from the Mac App Store (which will usually involve a call to Apple for a redemption code as it's old software), or you'll "purchase" (it's free) Mavericks OS X 10.9 and wipe and install that assuming your MacBook Pro supports Mavericks.  If you didn't purchase the MacBook Pro from Apple (and it was shipped with an older release), then you'll end up acquiring a redemption code from Apple for Lion, or installing Mavericks.
    For completeness and given you're probably already aware of this, the usual approach for restoration with recent OS X versions is via the recovery boot (more details).  If the disk is wiped and you can't get Lion, then you'll probably end up reinstalling with Target Disk Mode using another Mac with a compatible FireWire or Thunderbolt port and a cable.  Or visit the local Apple Store.
    sputniki: Once OS X 10.7 or 10.9 has been reinstalled, yes, getting Time Machine configured and going is undoubtedly on the agenda.  But had there been a viable backup here, I expect jianghua would have used it.

  • I need to change the email address that was installed in my phone the day I purchased it. How do I do this?

    Please help!!!!  I need to change the email address that was installed in my phone the day I purchased it. How do I do this?

    You'll have to do a hard reset, wiping all data in the process.
    Go to settings, tap on about then tap on reset your phone,

  • Display only the last record per material in SAP query

    Hi,
    I have created a SAP Query using the quickviewer that is a join between 2 tables (MSEG and MKPF) that consist of material document information and date of posting.
    The results are fine however I would like only the last record per material to be displayed.
    Can anyone tell what do I need to add so for only the last record per material be displayed in the output.
    Thanks,
    Mark

    Hi Mark,
    May be if you use Control Level processing .........I think you will be able to get the result you want. Try displaying as Below,
    LOOP AT XXXXX.
    AT FIRST material.
    ENDAT.
    AT LAST material.
    *...Display what ever you want here. It will display at end of every material.
    ENDAT.
    ENDLOOP.
    Before using sort the table with key material in ascending.
    Hope what I had to say is helpful to you.
    Cheers,
    Raga Suman.

  • How to display only the duplicate records

    Hi friends,
    I have a query that provides me with a set of data,which has some duplicate rows. I require to display only the duplicates.
    This is the result I have:
    card_no cust_no address paymnt_mode
    1234 A123 XYZ CQ
    1234 A234 nmb CC
    9876 B123 mnnjn cc
    5678 A123 XYZ CQ
    5678 A123 XYZ CQ
    7876 Mk89 mku CC
    From the above ,
    I require to display something like this:(Duplicates based on card number alone)
    card_no cust_no address paymnt_mode
    1234 A123 XYZ CQ
    1234 A234 nmb CC
    5678 A123 XYZ CQ
    5678 A123 XYZ CQ
    Please share some ideas,
    Thanks a lot

    with data as
      select 1234 as card_no, 'A123' as cust_no, 'XYZ' as address, 'CQ' as paymnt_mode from dual union all
      select 1234, 'A234', 'nmb', 'CC' from dual union all
      select 9876, 'B123', 'mnnjn', 'cc' from dual union all
      select 5678, 'A123', 'XYZ', 'CQ' from dual union all
      select 5678, 'A123', 'XYZ', 'CQ' from dual union all
      select 7876, 'Mk89', 'mku', 'CC' from dual
    select card_no, cust_no, address, paymnt_mode
    from
        select card_no, cust_no, address, paymnt_mode, count(*) over (partition by card_no) as cardinality
        from data
    where cardinality > 1;
    CARD_NO                CUST_NO ADDRESS PAYMNT_MODE
    1234                   A123    XYZ     CQ         
    1234                   A234    nmb     CC         
    5678                   A123    XYZ     CQ         
    5678                   A123    XYZ     CQ          Change the column list in the partition by clause if you want to check over other columns as well.

  • Display only the first record

    I have report in BEx where we want to find the first time a customer ordered Quantity of more than 500 in a data range (For Ex: From April 10 to April 30). In a particluar date range the customer may order more than once (Qty > 500). The catch is we want display only one first time he ordered qty > 500.
    Customer    Date         Qty > 500.
    ABC         4/21/2005        2,035 CA
              4/22/2005        12,290 CA
              4/23/2005        4,826 CA
              4/26/2005        6,397 CA
              4/27/2005        1,538 CA
              4/28/2005        4,849 CA
    XYZ         4/25/2005        2,000 CA
              4/26/2005        12,000 CA
              4/27/2005        4,500 CA
              4/28/2005        6,300 CA
    In the output report we want to display the first record for each customer as:
    Customer    Date         Qty > 500.
    ABC         4/21/2005        2,035 CA
    XYZ         4/25/2005        2,000 CA
    Your help is really appreciated. Thanks.

    jayant,
    i think, you could use your date as a condition to filter by in your report... try looking that the properties of your KF and, under Calculations, set the 'Calculate Result as...' to the first value only.
    hope this helps - don't forget to give out points. =)
    ryan.
    ps. i've tried this, and it sort of works - just need a bit more of tweaking around. =)
    Message was edited by: Ryan Kristoffer Tan

  • Displaying only the newest results below. To view all results, narrow your query by adding a filter.

    Hi,
    In one of my list there are 33,000 records.
    It gives message "Displaying only the newest results below. To view all results, narrow your query by adding a filter."
    I don't want to change my threshold limit. Can anybody please tell me steps to resolve this issue?
    Regards,
    Amit Khatri

    I have a list of 11,000 items. Even though I have setup filters on it and it shows all 10 records based on that filter, it still shows that warning on top. For some items, even with those filters, I don't see the list items at all. How do I deal with
    this situation. I don't want to change my threshold limits from CA either. Please help.
    MAK

  • Getting a "Displaying only the newest results below. To view all results, narrow your query by adding a filter" message in error

    I have a list with almost 10000 items. I have a view that should be returning 8 items. For me, the Farm Admin, I see the full set of expected values. The message "Displaying only the newest results below. To view all results, narrow your query by
    adding a filter" shows for other users. This makes no sense -
    there ARE filters on this view. I'd rather not increase the throttle limit.
    Anthony Kelly

    Hi Ajk,
    Check that the list is not scoped by an audience; but, I'm afraid that either way admin, (e.g. non Farm admin or site collection admin)
    I'd recommend exporting to excel, create two new spreadsheets and then import as custom lists.
    Best of luck and cheers,
    Stacy Anothersharepointblog.blogspot.com

  • TS1292 Dear support Apple! A week ago I moved to Spain and bought 2 Gift Card in the amount of 15euro. When I entered the code App Store displays a message that you need to change the country but I was left with 10 cents in the account that you can not po

    Dear support Apple! A week ago I moved to Spain and bought 2 Gift Card for 15euro. When I entered the code App Store displays a message that you need to change the country but I was left with 10 cents in the account that not possible to spendt. Please delete this 10 cents from my account

    Please be aware that you are not communicating with Apple when you post in these forums. The only people who will reply to your posts are your fellow users. You need to go here:
    iTunes Support
    and follow the instructions to report the issue to the iTunes Store.
    Regards.

  • I need help with a second hand iphone i purchased recently,i am having issues setting it up as it has is requesting for the icloud account that was used by the previous user

    i need help with a second hand iphone i purchased recently,i am having issues setting it up as it has is requesting for the icloud account that was used by the previous user

    Sorry.
    The iPhone is of no use until/unless the previous owner removes it from their account.
    You will need to find the prior owner or return the iPhone.

  • My start up disk Macintosh HD is full on my McAir OSX 10.9.4 memory 4GB. I need to clear the disk so that I can update it with the new software IOS 10.9.5 requiring 2.05GB. Need guidance on how to clear space.

    My start up disk Macintosh HD is full on my McAir OSX 10.9.4 memory 4GB. I need to clear the disk so that I can update it with the new software IOS 10.9.5 requiring 2.05GB. Need guidance on how to clear space.

    For information about the Other category in the Storage display, see this support article. If the Storage display seems to be inaccurate, try rebuilding the Spotlight index.
    Empty the Trash if you haven't already done so. If you use iPhoto, empty its internal Trash first:
              iPhoto ▹ Empty Trash
    Do the same in other applications, such as Aperture, that have an internal Trash feature. Then restart the computer. That will temporarily free up some space.
    According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation—not the mythical 10%, 15%, or any other percentage. You also need enough space left over to allow for growth of the data. There is little or no performance advantage to having more available space than the minimum Apple recommends. Available storage space that you'll never use is wasted space.
    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as  Backups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Ask for instructions in that case.
    See this support article for some simple ways to free up storage space.
    You can more effectively use a tool such as OmniDiskSweeper (ODS) or GrandPerspective (GP) to explore the volume and find out what's taking up the space. You can also delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one. Note that ODS only works with OS X 10.8 or later. If you're running an older OS version, use GP.
    Deleting files inside an iPhoto or Aperture library will corrupt the library. Any changes to a photo library must be made from within the application that created it. The same goes for Mail files.
    Proceed further only if the problem isn't solved by the above steps.
    ODS or GP can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    If you have more than one user account, make sure you're logged in as an administrator. The administrator account is the one that was created automatically when you first set up the computer.
    Install the app you downloaded in the Applications folder as usual. Quit it if it's running.
    Triple-click anywhere in the corresponding line of text below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:
    sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    sudo /Applications/GrandPerspective.app/Contents/MacOS/GrandPerspective
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window by pressing command-V. You'll be prompted for your login password, which won't be displayed when you type it. Type carefully and then press return. You may get a one-time warning to be careful. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator. Ignore any other messages that appear in the Terminal window.
    The application window will open, eventually showing all files in all folders, sorted by size. It may take a few minutes for the app to finish scanning.
    I don't recommend that you make a habit of doing this. Don't delete anything as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means. When in doubt, leave it alone or ask for guidance.
    When you're done with the app, quit it and also quit Terminal.

  • Pickup only the newest record in an Internal Table.

    Hi all:
    I have and internal table that i am accesing in a transformation.
    Which is the best approach to read from the internal table only the
    record with the newest date. Data look like this:
    Date_________MAT___ Qty
    12.08.2009___4050___70
    10.05.2009___4050___30
    18.11.2009___4050___42
    20.07.2009___4050___28
    In this case, for Material 4050 i need only the third record (18.11.2009),
    any code example or guideline..?
    Regards,

    Hi,
    You can sort the internal table by date and material in descending order and then perform read on the internal table with key as material. this would bring the latest date for that material.
    Regards,
    Rk.

  • Updating only the last record.

    Hi,
    I have a scenario where we get more than 1 record based on style. Everytime the new record comes in, I need to update the last record inserted. It requires a procedure to do it, but need some help on how to just update the last record only and not all the previous received records.
    Here is the scenario.
    create table test_1 as
    with data_Set as
    ( select 'ABCD' style, 20080101 date_received, 2 duration,20080301 expire_Date from dual union all
    select 'PQRS' style, 20080201 date_received, 2, 20080401 expire_Date from dual
    ) select * from data_set
    so now on next run when i get another record
    insert into test_1
    select 'ABCD' style, 20080401 date_received, 3 duration,20080701 expire_Date from dual.
    now the procedure should insert the incoming record and also update the expire_date for the previous record to a day before date_received for the new record. I am ok doing it when its only 2 records , but when i get another record of same style, i dont want to update all the previous received records. I only want to update the last record on file.
    can anyone suggest?

    STYLE     DATE_RECEIVED     DURATION     EXPIRE_DATE     SEQ_INSERTED
    110427     7/31/2006     0     7/31/2006     2
    110427     9/1/2007     12     9/1/2008     2
    110427     8/2/2008     24     8/2/2010     3
    468130     3/13/1997     0          2
    468130     3/13/1997     12     3/13/1998     2
    468130     1/12/2008     12     1/12/2009     3
    Here is my data set
    and here is the query i use to update, does it look correct?
    update test b
    set ( expire_Date) =
    (select start_date - 1
    from test a
    where (style_no, date_received) in
    (select style_no, max(date_received)
    from test c
    group by style_no
    and a.style_no = b.style_no
    and style_no in ('468130','110427')

  • HT201401 My previously made calls are not displaying in the recent call section?  How can I restore  them+

    My previous calls are not displaying in the recent call section.  How can I fix this?

    There are some recovery programs out there if you google them - many with free trials. I haven't tried them so I have no opinion.Read any professional tech and user reviews you can find before you try one. I have read here in the past that some have worked for people who have posted here. 
    To help in the future, have you considered using Jump Desktop - Remote Desktop? I know it won't solve the problem you're dealing with now (unless notes were taken on your computer.) It's in the app store. It's the #1 paid app in the business category and the reviews are great. It allows you to see anything that's on your computer on your ipad. If you take your notes on your ipad then you might want to email them to yourself, put them on Word in your computer, for example, and then if you need them in class, you remotely connect your ipad to your computer and you will see your notes. This way you won't have to rely so much on the cloud. The explanation would be too long here, but you might want to take a look at it. You can use the free trial on jumpdesk.com and then if it works for you, buy it in the app store. 
    Meanwhile, it's hours since you sent this post. Hopefully others who can help solve your problem who are on this forum now can help you. I hope you get your notes back. Don't give up too quickly.
    Hope this helps. 

Maybe you are looking for

  • NFS causes whole system hang

    I have a home server that I just set up recently that runs Arch linux.  It exports a couple of external hard drives via NFS.  I have been mouting them with autofs on my laptop.  However, after several hours the entire system completely hangs up.  I o

  • Can no longer open previous project files in the latest version of FCPX (10.1.1)

    In the latest version of FCPX (10.1.1), you can no longer access/open projects from the button in the lower left corner. Clicking on that button now merely brings up an index of clips in the current project's timeline. Why is that? And how do I now a

  • Differentiate idocs in R3

    Hello Folks I have to send MATMAS idoc from 2 third party systems to R/3 through XI. In XI, I will do separate message mappings to MATMAS Idoc for each of these. But in R/3, how can I differentiate the Idocs for each third party system. Thanks

  • Compliance Remediation Script parameter

    Hello, I am working on some remediation scripting in SCCM 2012 and am running into what I believe to be a bug. According to the SCCM window below, SCCM should be sending the 'Non-Compliant' Value to the script (which should be the value that you echo

  • Can't install Lion on MacBook 2,4GHz HDD

    A friend of me has a problem with his MacBook: When he want's to install lion it says the volume he selected can't be used for installation of Lion. Has somebody an idea what he can do to fix this problem out? That would be very helpful (I'm sory for