How to determine InfoCube name within the update rule start routine?

We are attempting to delete all the records where all key figure values are zeroes. We have about 15% of such records and we really don't need them.
We have yearly InfoCubes. We copy the InfoCube and update rules at the end of every year. So, we don't want to hard code any field names within the update rules.
If I could determine the target InfoCube name within the update rule start routine, I can find out all the key figures dynamically. But, I don't see a way of finding out the InfoCube name.
If you would share any ideas, I would really appreciate.
Thanks.
Sudhi Karkada.

Hi Sudhi,
I dont know if this is what you are looking for.
if you want to delete a record from being inserted when all the Key figure values are ZERO then you can use a Update Routine for some characteristic in the below way
If looking for the InfoCube:
if COMM_STRUCTURE-KF1 = 0 and COMM_STRUCTURE-KF2 AND....
  RETURNCODE = 4.
else
  RESULT = COMM_STRUCTURE-ChanracteristicObject.
endif.
If it is to an ODS / InfoCube in the start routine.
  DELETE DATAPACKAGE where KF1=0 and kf2=0 and .....
Hope it helps.
Regards,
Praveen.
ENDLOOP.
Message was edited by: Praveen

Similar Messages

  • Calculations in Update rules/Start routine/End Routine

    Hi Friends,
    I have loaded data to a DSO and i have three fields in to it. Lets say Filed1, Filed2 and Field3. Field1 and Field2 are being populated through an update rule in transformation. Aggregation type for these two fields are "Summation".
    Now, after the transformation executed, the Field1 and Field2 are filled with values. I want to calculate the value of Field3 as follows:
    Field3 = Field1 - Field2
    Can anyone tell me where can i do this calculation? I know we can do this in End routine and in Query  but i want to know if there is any other place i can do this calculation in transformation? In try to do this calculation in the update rule for Field3 in transformation, i dont see Field1 and Field2 as these are not source fields. I can not write formula also because we can write formula only on source fields not the data target fields.
    Your help will be appreciated in terms of points.
    Thanks,
    manmit

    Hi,
    in the start routine in the global section define the two fields:
    data: g_amount1 type /bic/oi<your keyfigure name>,
    g_amount2 type /bic/oi<your keyfigure name>.
    in the routines to your 2 keyfigures store the result in that fields too.
    routine for field1.
    g_amount1 = result.
    routine for field2.
    g_amount2 = result.
    and in the routine to field3
    result = g_amount1 - g_amount2." or whatever calculation/derivation has to be done.
    kind regards
    Siggi
    Message was edited by:
            Siegfried Szameitat

  • How to add a new char in Update rule

    Hi Gurus:
    I copied update rules from an old cube. This new cube is a copy of old cube - almost.
    One of the char is missing in the new cube when compared to old cube. There is a small update routine for that char which I need to introduce to new cube.
    My problem is, I'm not able to figure out how to add the new char in the update rule & start the mapping process..
    Thanks & Regards

    Dear Bhanu: This is what happened.
    When I copied - it defaulted this char with what present in comm structure. Basically the old cube has a routine for this char...
    And the position of this char in the update rule for chars..got realigned.
    I'm sorry - I should have check it properly.
    Thanks a LOT for your time & input...I will assign the points
    Best Regards

  • An update rule question - Filter out categories within an update rule

    Hi All,
    I am trying to filter out some categories within the update rule and I appreciate any help with points.
    Here is the scenario:
    My category field is Z_CAT and I want to delete all the categories except 'A' 'B' and 'C'.
    I tried couple routines but non of them worked fine so far.
    Regards,
    Mike

    HI Mike,
    One is that is suggested by my friends
    Instead of a Hardcore filter based on your requirement In the DTP you can filter the data .
    In the DTP ,Se;ect that object in the Filter and select the Criteria as Not Equal to A B and C and then Extract the data.
    The advantage is that even if u want to filter or add one category say "D" the it is posiible at the DTP level whereas at the Routnie level u have to make changes and collect them i a request and  then u have to transport it.
    So decide based on ur requirement.
    Rgds
    SVU123
    Edited by: svu123 on Mar 25, 2009 7:19 PM

  • Copy Update rules with routines

    Hi,
    How can i copy the update rules (with routine) for a cube from the  predefined update rules of some cube.
    Like its giving error when i am creating update rule, with using the Template functionality in that.
    Please give step by step explanantions....

    Hi,
    Try this.
    Copying/Transferring Update Rules from a Template
    http://help.sap.com/saphelp_nw04/helpdata/en/02/70f837329cb402e10000009b38f889/frameset.htm
    Hope this helps.
    Thanks,
    JituK

  • Pages 5.2 - When I try to reorder different pages it just takes all the pages within the document and turns them into a stack! Why is this happening and how can I oder pages as the update is meant to let me?

    When I try to reorder different pages it just takes all the pages within the document and turns them into a stack! Why is this happening and how can I oder pages as the update is meant to let me?
    Any Help?I know the update has only been out a while but if anyone has an idea why it is doing this, please let me know!

    But you are telling me something I already know.
    Be precise.
    It is not Pages '09 that is broken.
    I am back in Mavericks and testing Pages 5.2.
    There are improvements, we shall see how useful, but in less than a minute I have already discovered bugs.
    Peter

  • How to get the PSA name in a Start Routine in the Update Rules of a Cube.

    Hi all.
    I have an InfoSource that loads data directly in an Infocube.
    In the Start Routine of the Update Rules I need to retrieve the PSA table name for that InfoSource, to access it and check some data.
    I can't use the PSA name you seen in the DataFlow because it will change once the update rules are transported to another system.
    Please advice.
    Thanks!!!

    Hi,
    we do it as follows:
    first get the request ID:
    DATA: tp_request(30)   VALUE 'REQUEST'.
    FIELD-SYMBOLS: <wa> TYPE ANY, <tp_req> TYPE ANY, <tp_dtp> TYPE ANY.
    READ TABLE datapak ASSIGNING <wa> INDEX 1.
    IF sy-subrc <> 0. ABORT = 4. ENDIF.
    ASSIGN COMPONENT tp_request  OF STRUCTURE <wa> TO <tp_req>.
    IF sy-subrc <> 0. ABORT = 4. ENDIF.
    requnr = <tp_req>.
    then we get the table with
    SELECT odsname_tech FROM rstsodspart WHERE request = requnr.
    you may need to adjust this code, I've just pasted the relevant parts...
    another way is to get this info from RSTSODS where the different versions are maintained...
    let me know if you need further detail about this stuff...
    hope this helps...
    Olivier.
    Message was edited by:
            Olivier Cora

  • I have Lion software installed on my IMac (purchased IMac 2008). I need to know the names of the updates since Lion, and how to get them. Thanks,  Don

    I Need to know the names of the updates after Lion and how to get them.  Tanks,  Don

    Back up your data and download Mavericks from the Mac App Store. You don’t need to buy Mountain Lion to do this.
    (110438)

  • Rule incorrect error in the update rule of standard infocube

    hi,
    In the standard Appraisal infocube(BW 3.X)
    i have added a new keyfigure field  and written a rule in the update rule to populate datas. whn i checked for sytax errors, saved and return to the update rule screen it displays a red status for tht keyfigure. when i place the cursor on tht traffic light it show the tip as  'Rule Incorrect'
    wht may be the reason.
    do any one have ideas abt this.

    hi sathish,
    i couldnt get u.; i am not familiar with  BW since iam working in BI. could u pls tell the steps involved in adding a  new keyfigure field to a standard cube.
    Actually iam not mapping this field to any of the field from datasource. i am populating data thru rule based upon the characteristic fields of the datasource.
    r u suggesting to add the field in transfer structure level and write a transfer rule. how to add a new field in the transfer structure.

  • How to copy infocube with all the transformations?

    Hi,
    how to copy an infocube with all its transformations?
    or could i renamed / give other technical name to the cube?
    thanks.

    >
    einie zainal wrote:
    > Hi,
    > how to copy an infocube with all its transformations?
    > or could i renamed / give other technical name to the cube?
    >
    > thanks.
    After Create InfoCube, a screen will appear for you to key in information/name of the InfoCube. There's a box "Copy From", insert the original InfoCube name you intend to copy from.
    After successfully activation of the new Infocube. Return to your old InfoCube, right click on its transformation, click on Copy. A new screen will appear, here you will key in the new Infocube name in the Target of the Transformation field.

  • OSX 10.4.8 Will Apple repair within the update?

    After days of trying to repair the damage 10.4.8 caused to my MacBook's OS, following all the tips and tricks on this forum, I am left only with the Erase and Install option.
    Questions - Will Apple tech patch the many problems forum users are experiencing within 10.4.8 as these issues are fixed? Will I be able to install 10.4.8 say a month or so from now and get an updated version? If so, how do I know which updated version I am getting and which issues have been resolved within the update?
    Thanks for your responses. I am new to MAC after using the "other OS" for many years!
    MacBook 2.0Ghz Intel CoreDuo   Mac OS X (10.4.7)   "my first MAC"

    There will be no revised releases of 10.4.8. The next update would be 10.4.9 assuming that such an update would be released between now and when 10.5 is released.
    In most cases 10.4.8 has not caused any problems. I've upgraded three computers thus far without any incident as well as having beta tested 10.4.8 prior to its release on both a MacBook Pro and a Mac Pro.
    Perhaps the problems you were having could have been the result of upgrading an already corrupted system. After you do your Erase and Install and have a freshly functioning and clean system you should download the 10.4.8 Combo Updater (Intel version) and give it a try. I would, however, recommend you create a bootable backup of your system beforehand. That will alleviate restoring the old system in the event of problems.
    In the future there are certain precautions you can follow that will reduce the likelihood of update problems.
    1. Repair the hard drive and permissions.
    2. Make a bootable backup of the current system.
    3. Download and use only the Combo Updater.
    4. Boot into safe mode before installing the update.

  • How can I POST data within the same page if I have a A HREF -tag as input?

    How can I POST data within the same page if I have a <A HREF>-tag as input? I want the user to click on a line of text (from a database) and then some data should be posted.

    you can use like this or call javascript fuction and submit the form
    <form method=post action="/mypage">
    cnmsdesign.doc     
    </form>

  • HT2404 I just clicked on Software Updates; BUT nothing shows what's happening? How come I can't see the updates & time it will take?

    Help!  I just got this Lion, and SO many changes & not necessarily for the better !
    I went to the Apple icon, but  "Software Updates" did not show ... though I had deferred installing some updates ...
    Finally it showed up, I clicked on it, saw the updates to do - BUT when I clicked on install - the "box" that usually shows the updates & how long to install - just disappeared! I can't get to it to see what's next. (I have to leave soon & will turn off the mac)
    What's happening? How come I can't see the updates as they are installed, & how much time it will take?
    How do I know IF they have been installed?  Is this the "new Normal" for Lion? Or is there a glitch in my mac somewhere?
    How about updates you download from Apple (not bought) - they go to Downloads on the Sideboard, but are they installed automatically, & put where they belong too? Is there no more restart, etc.?
    - I just went to Systems Preference, to see the "Installed Software" - shows they were ... but don't I have to restart anymore? Are all updates now automatically placed where they belong?
    Thanks to any who can help
    PS One other question - just checked my "profile" & it has my email addy that's 4 years old... how do I change That?

    software update not working
    https://discussions.apple.com/thread/3967755?start=0&tstart=0

  • How do I re-download podcasts? My external hard drive failed and I can't figure out how to download them again in the updated iTunes.

    How do I re-download podcasts? My external hard drive failed and I can't figure out how to download them again in the updated iTunes.

    The Time Capsule drive is a network drive. You have to mount it on the desktop before you will be able to drag/drop files onto the disk. More tips are in this thread:
    https://discussions.apple.com/message/17312017#17312017
    .....and then delete them from the Mac to free up space?
    The Time Capsule was designed for your backups.
    If you move a file to the Time Capsule drive and delete the file from your Mac.....you have no backup. 
    Your only copy of the file will be on the Time Capsule drive. I would only do this with files that I could afford to lose.
    All drives fail. When.....not if....the Time Capsule drive has a problem, you will lose your data.

  • With acrobat 7, how do I make links (within the pdf) open in a new window-tab?

    With acrobat 7, how do I make links (within the pdf) open in a new window-tab?

    No love? From anyone?

Maybe you are looking for

  • Only getting context menus- can't select an item?

    I spilled some tea on my Macbook Pro key board- cleaned it up and dried it out. Now whenever I try to select an item (mac mail, numbers, finder) only get a context menu.  Can't select an item or type.  Mac mail can only look at one of my mail boxes c

  • Javax.mail.NoSuchProviderException: No provider for imap

    Dear All, Currently i am running weblogic 5.1 for my javamail Application/WebMail. I have copied mail.jar, activation.jar,pop3.jar,imap.jarmailapi.jar in weblogic\jre1_2\jre\lib\ext folder. I get "javax.mail.NoSuchProviderException: No provider " exc

  • Bridge CS6 keyword search isn't working.

    CS6 on an iMac. I can see that my files have their keywords, but searching produces no results. (Used to work fine, but it's been quite a while since I've needed to do a keyword search so I don't know when it stopped working.)

  • Ipad 2 error

    I have an icloud message that has poped up and I cannot get it to close and thus the ipad cannot function with that popup there.  what to do?

  • Problem with my audio configuration that keeps iTunes from starting.

    When I tried to run iTunes on my computer this morning, it said that iTunes was missing files or something like that. But that's not the problem, although that happens often, I know how to fix it. So I went and ran the repair for iTunes, but now when