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

Similar Messages

  • How to use Hashtable in Rules Engine. And objects within objects in rules

    This is something to do with the JBoss Rules Engine.
    I have an object called 'Employee' containing variables name(string), age(int), sex(string), an object Skill and other fields not relevant.
    Now the Skill object contains name and desc as variables.
    And now i have another seperate object called Test containing two hashtable: inputHT and outputHT.
    i have appropriate data in each of the objects and the hashtable:
    Employee e = new Employee();
    e.setName("Name");
    e.setAge(18);
    e.setSex("f");
    e.getSkill().setSkill("Trainer");
    Hashtable ht = new Hashtable();
    ht.put("age", new Integer(e.getAge());
    ht.put("sex", e.getSex());
    Test t = new Test();
    t.setInputHT(ht);
    Since this is something to do with drools rules: I have the appropriate code even for that.
    Like obtaining the rules defined(.drl files) in a stream, constructing the package builder, rulebase and the working memory.
    I will now explain u my .drl files(ie the rules that i have defined) and the error that i am encountering
    when I have the rule as the following there is no error:
    rule "testRule1"
    when
    e:Employee(age >= 18, sex == "f")
    then
    System.out.println("The lady can marry");
    end
    In the above rule we can see that only two simple variables contained in the employee object is being accessed and there is no error encountered.
    But when I try to access the object "skill" in the employee object, the rule throws me an error when i am constructing the packageBuilder:
    rule "testRule2"
    when
    e:Employee(skill.name == "Trainer")
    then
    System.out.println("The skill is trainer");
    end
    The error thrown is : unexpected token 'skill' and many other dump errors and also error: expected token ')'
    I tried changing the when clause as the following:
    when
    e:Employee(skill.getName() == "Trainer")
    and also
    when
    e:Employee(skill.getName().equals("Trainer"))
    All of them throws the same above error.
    But at the same time if i access only object without its variables, it is working fine. Like:
    rule "testRule2"
    when
    e:Employee(skill == "Trainer")
    then
    System.out.println("The skill is trainer");
    end
    The above rule works properly and does not throw any error. But it is not a valid rule. But syntactically it is correct. and does not throw any error during packageBuilder.
    Similarly, the problem is with the Hashtable
    The below code works fine, but rulewise it is not valid, but syntactically correct. and does not throw any error
    rule "testHT1"
    when
    t:Test(inputHT == "f")
    then
    System.out.println("Print this");
    end
    But the following code throws error, telling unexpected token 'inputHT' :
    rule "testHT1"
    when
    t:Test(inputHT.get("sex") == "f")
    then
    System.out.println("Lady");
    end
    I even changed the when clause, but did not get the appropriate result and it threw me error.
    when
    t:Test(((String)input.get("sex")) == "f")
    and also many other variants but of no use.
    It would be of great help if u or anyone else could reply to this with some solution
    Thank you in advance

    http://forum.java.sun.com/thread.jspa?threadID=774018

  • ITunes 11 for Mac "Update All Apps" grayed out, requiring relaunch to update again

    On iTunes 11.2.1 (1) "Update All Apps" grays out after I update once. I need to relaunch iTunes to get it to be clickable again. I am definitely logged in, etc., so it seems like a bug with iTunes, yes?

    The last several versions of iTunes have had this bug. The "Update All Apps" works once, and then it's greyed out after that until you quit and relaunch.
    As a workaround, you can click the first app, hold down the shift key, and click the last app to select them all. Then right click on one of the apps and select "Update X Apps."

  • 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

  • Rule Modeler, Order Routing -  Partner function to update ?

    Hi,
    I have configured order routing in rule modeler based on categories to determine the org unit to which the order should get routed too.
    On execution, the partner function 'SLFN0003 - Support Team' gets changed to the BP for the org unit.
    My question is - I cannot find any link between Order routing and Partner function SLFN0003 - How does the system know that it needs to update this partner fucntion only ?
    If I create my own Z Parnter function, how can I get the order routing to change this partner function type ?
    Any help will be appriciated.
    Thanks,
    Raj

    Solution: Problem solved. Error was the name of the attribute. It has to be POST_CODE1_IB
    and not ZPOST_CODE1_IB.

  • How do I have to define a regular expression to filter out data from file?

    Hi all,
    I need to extract parts of lines of a ASCII file and didn't get it done with my low knowledge of regular expressions
    The file contains hundreds of lines and I am just interested in a few lines, within that lines I just need a part of the data.
    One original line looks like that:
    TP3| |TP_SMD|Nicht in Stueckliste|~TP TP_SMD TESTPUNKT|-|0|87.770|157.950|0|top|c| |other|TP_SMD|TP_SMD_60RF-TP
    Only the bold and underlined information is of interest, I don't need the rest.
    I can open that file, read in each line but then I am struggling to pick out only the lines of interest (starting with TP), taking that TP with its number and the coordinates following later on and then writing these shortened lines to a new text file. So the new line should look like that:
    TP3; 87.770;157.950;0 (It doesn't matter if the separator will be ; or |)
    I thought of using regular expressions - is that the right way or is there a better approach?
    Thanks & regards,
    gedi, using LabVIEW 8.5
    Regards,
    gedi

    Hi max,
    for finding a specific part of a string you can use the "Match Pattern" VI, it is located in the Strings Palette.
    Maybe the Extract Numbers.vi example in the examples browser library can help you.
    What I did to filter out my data of interest is first to sort out only the columns which I want to have -
    then there are still a lot of lines remaining I don't need (this is the thing described above).
    The rest I am going to filter out with a (then easy) regular expression with the "Match Pattern" VI.
    Regards,
    gedi
    Regards,
    gedi

  • How to find out what the latest update is for something from apple's site?

    i've never been able to do this, and has been a recurring problem for many years:
    how can you, using apple's web site -- presumably the support or downloads section -- find out what the latest update for/of a certain product is?
    without going into the details, the software update app is of no use to me.
    for example, i have a airport extreme base station 54 mbps. how do i go about finding out what it's latest software is? do such products not have a web page which has the latest update linked to from it?
    why is it so hard, impossible i find, to find out what the latest software is?
    any pointers much appreciated. (i'm not particularly looking for the answer to "what't the latest update for a airport extreme base station 54 mbps?" but a general method for finding out the latest update for anything using apple's web site)
    thanks very much.

    If you use the Advance Search function:
    http://search.info.apple.com/
    you can filter results to give downloads for the search words airport extreme base station. The return will be in date order from newest to oldest. Yo ucan also designate word pairs of groups to narrow the search.

  • When I republish my site the updates save to a different folder within public_html so it cant be viewed..... How do I change this?

    When I republish my site the updates save to a different folder within public_html so it cant be viewed..... How do I change this?
    My site is up and running but if i make changes on iWeb they get put in a new folder within the public_html folder. I then click on this and they are all showing in there but i have to manually move them to the correct folder for them to be shown on my website. The folder that is made is always named whatever I enter into the SITE NAME section on the screen where the ftp information is entered.
    How can I get the updates to go directly into the public folder without it make a new folder? I have checked the settings but there isn't much I can see.
    ALSO......
    The names of the folders come up in the domain bar... how do i change this?
    thanks
    Charlotte

    Try using the settings shown in the first example on this page...
    http://www.iwebformusicians.com/iWeb/Publish-Website.html
    Note that the Directory/Path field is empty.
    How to take the folder name out of the URL...
    http://www.iwebformusicians.com/iWeb/URLs-Favicons.html
    "I may receive some form of compensation, financial or otherwise, from my recommendation or link."

  • How do you filter out moving objects in a movie?

    Hello!
    I'v searched the internet for solutions to this but I cann't find any.
    Im prittie new and I need to make a house on fire while two guys (one is me)
    will be walking away from it, towards the camera.
    I want to filter out these two guys and only apply fire and flames to the house itself!
    To do this I used Time Diffrence and tried to isolate the guy using Fast Blur and Luma Key
    but Im prittie lost.. Nothing works and I really need guidence
    Do you know a trick to use?
    I cant do greenscreening as the green background would cost a fortune..
    But isn't there anyway to filter out moving objects?

    I'm not sure that you totally get the process. This kind of shot requires at least 3 elements or plates. These three plates become three layers in After Effects. The bottom layer would be the Background Plate which is a shot of the house without any actors in the shot. The next plate would be the Effect Plate or Fire Plate which could be any shot you can get or generate through plug-ins of flames. The top layer would be your Foreground Plate or your two actors.
    Now that you know what you need you can plan your shoot. The background plate is easy. Just set the camera on a tripod and lock it off. NO zooming. No panning, No change of focus. The foreground plate is also easy. You don't have to green screen the entire set, all you need to do is to put a green screen behind your actors. I do this kind of thing all the time using a 6' X 6' (sometimes smaller) green screen (or blue or red or purple) made of fabric and stretched over a frame that I made from 1/2" EMT electrical conduit and 4 90º elbow connectors for less than $20 at Home Depot or Lowes. You get a couple of assistants to walk behind your actors holding the green screen behind them. If you need to include their feet they can be easily rotoscoped out later and you can garbage matte everything else. If it's impossible to green screen the shot then you are stuck with roto, but that's much easier in CS5 using the roto brush. If you use your show with the actors as the background plate roto is even easier because you can hide a multitude of sins by simply feathering the roto and letting the fire light wrap around the actors a bit.
    The fire plate can be purchased footage, or you could shoot a real fire against a black background, or you could create the flames using AE or even a 3D app like Blender (free) or a bunch of other apps.
    Making the shot look real requires a few tricks once you have your clean plates. Fire creates light so you've got to add lighting effects to the background plate to sell the fire. You've also got to wrap light around your actors. Look for tutorials on light wrap for this. You can really help sell the effect if you place some flickering light sources behind and to the side of your actors when you shoot the foreground (actors) plate.
    Once you get a handle on these techniques it's fairly easy to make the transition to pulling of this kind of a shot with a hand held camera (now you have to learn motion tracking). On a project I recently completed we had to put a fire in a prop fireplace while actors moved around bringing milk and cookies for Santa. It was all roto and the fire was shot at night with nothing more than a black cloth (Duvetyne) behind the fireplace grate. The final composite was 10 layers and was so totally believable that no one questions the shot.
    The layers were from top to bottom, reflection in grandmas glasses, light wrap, actors (roto of original background plate), fire flicker layer, color mask layer (more orange around fire, fire glow layer, fire layer in Add mode, second fire layer in screen mode, third fire layer Luma keyed, and finally the original plate which contained all the actors, carefully lit with flickering firelight simulated by dangling a stick with fabric cut into 1/2 inch wide strips about one foot long in front of a orange gelled light behind and to the right of  the actors.
    If I get a chance I'll post a screenshot.
    Here you go:
    Light Wrap:
    The Movie
    Part of the original render before color grading.
    Enjoy

  • How to filter out inbound Read receipts but prevent prevent notification to sender

    Greetings,
    For Exchange 2007, we would like to prevent external users from sending Read Receipt requests to our users.  In the Outlook client, we can easily disable this.  But for EAS users, their smartphones send a reply as soon as the email is opened.  I've
    applied a Hub Transport rule to strip out the "Disposition-Notification-To" from inbound emails but this causes a different message to be sent to the sender, "Delivery to these recipients or distribution lists is complete, but delivery
    notification was not sent by the destination:".   As a test, I've now also unchecked "Allow Delivery Reports" for Remote domains, but will this work?  Should both settings be applied to avoid generating the response to senders as noted
    previously?
    Thanks

    Hi,
    From your description, you want to prevent the external users from receiving the read receipts of internal users.
    You can create the following transport rule to achieve it. (Note: Because we use the "Read" as subject key word, it will delete the messages whose subject contain "read", please pay attention to use it.)
    What's more, I have a test in my lab. If I choose "Read:" as subject key word, the transport doesn't work. When I choose "Read" as subject key word, it works.
    Besides, to force an immediate update of transport rule, you can stop and start the Microsoft Exchange Transport service.
    Hope it helps.
    If you need further assistance, please feel free to let me know.
    Best regards,
    Amy
    Amy Wang
    TechNet Community Support

  • How to get Mail to filter out foreign alphabet messages???

    a lot of the spam I receive is in Russian or an Asian language. Nobody I want to hear from sends me mail in another alphabet.
    Is there a way to set a rule for this? I saw another posting about someone who had blocked Cyrillic/Russian, but darned if I can find out how to do that.

    It's very easy. There are two ways to approach this; one may work better than the other for you.
    The first method is to search the headers of your email for the character sets you want to eliminate, then enter those in a rule. For example:
    To filter on "Content-Type", you need to expose the headers of the spam messages you're receiving and look for that specific header, which is near the bottom (use ShiftCommandH). This header isn't one you can choose to use as a Rule, but you can add it as a Rule criteria (when defining the rule, pop up the criterion menu, and the last item is "Edit header list..."); choose it.
    You want to exclude (Trash or place in a Spam folder for review) messages where Content-Type contains "iso-2022-jp" and any other foreign language types you find in the headers of your spam messages, while allowing everything else to pass through.
    But this isn't foolproof, as it will not work for spam that has been identified (intentionally or not) with the wrong content type. It also eliminates the possibility of seeing mail that was written in English from someone whose mail client is configured to send mail as a different encoding type.
    You can also take the opposite approach: Set up a Rule with these criteria and actions--
    If all of the following conditions are met:
    • Sender IS NOT in my Address Book
    • Sender IS NOT in my Previous Recipients
    • Message IS NOT addressed to my Full Name
    • Message IS Junk Mail
    Perform the following actions:
    • Move Message to Trash.
    Mulder

  • Junk mail filter in yosemite doesn't work. i can't find the 'mark as junk' selection or 'remove from previous recipients' which would help to filter out spam.

    junk mail filter in yosemite doesn't work. from the flags, i can't find the 'mark as junk' selection. Formerly clicking on the email address in question would allow one to 'remove from previous recipients' which would help to filter out spam. I've adjusted all the settings under mail preferences, but that is not helping.

    Hello Diane162,
    Welcome to the Apple Support Communities!
    I understand that you would like to be able to filter some of the junk mail that you are receiving in Mail. The attached article has a lot of great information on junk mail filtering, including how to mark as junk and adjust the junk filter.
    Mail (Yosemite): Reduce junk mail in your inbox
    Cheers,
    Joe

  • Udev rules question

    I have a pl2303 converter which appears as /dev/ttyUSB0, owned by root,uucp. I do not want to run minicom as root nor do I want to add myself to the uucp group, as either of these approaches lend themselves to potential issues to the system. Correct me if I'm wrong, but I would need this udev rule:
    KERNEL=="ttyUSB[0-9]", MODE="0666"
    I have not written any custom rules before, and therefore my /etc/udev/rules.d dir only contains two 75-*.rules.optional files. Obviously I should create a new *.rules file with this rule, but I'm concerned that a custom rules file will inhibit the implicit default rules in /lib/udev/rules.d and I'm unsure which integer to precede the custom rules file (greater than the default?).

    You generally want your rules file to be first, so most people tend to do it at 10-....
    If you build your rule correctly, it should not affect the other rules - you should uniquely identify the device and make sure it doesn't accidentally pick up other devices. You should be able to find an attribute (eg vendor and/or model) that helps.
    This is useful, though a little out of date (the command to get the device information is wrong now, and some fields have changed).
    http://www.reactivated.net/writing_udev_rules.html
    See also man udev and man udevadm  to update the information in there.

  • Exception handling-filter out a specific JBO code number

    Hi
    First i would like to explain that what i'm trying to achieve is 'filtering out' a specific error code using
    JboException getErrorCode() these exceptions are thrown by
    using JCLoginDialog and entering invalid user/password.
    I am using bc4j/jclient application developed using JDeveloper 9.0.3. and JDK1.4.2
    With that I'm also using the JAAS login feature,using the JCLoginDialog class.
    Everything works except when I enter a invalid user/password in the jclientlogindialog.this class has a method called getInfo(info,connEnvironment) and within this method are 'if statements' that should set the error message in the case where a invalid user/password is entered, or if the 'Cancel' button is pressed it sets a error message to "Login Cancelled".
    With my application this isn't working.
    So Im trying to filter out JBO error codes but when these
    errors occur, for example a invalid user/password is supplied,there are numerous errors and JBO code numbers in the detail stack output.
    If i try to get a JBO code number using the JboException classes' getErrorCode() it returns the first JBO-Code number it finds,but not the one i need which would be the error caused by invalid user/password.
    Thanx in advance, any help is really appreciated!
    Carl

    Carl:
    Try looking into detail exceptions and their err code. The following example method does recursive look into all details:
       boolean foundMatch(String errCode, JboException ex)
          if (errCode.equals(ex.getErrorCode()))
             return true;
          Object[] dtls = ex.getDetails();
          for (int j = 0; dtls != null && j < dtls.length; j++)
             if (dtls[j] instanceof JboException)
                if (foundMatch(errCode, (JboException) dtls[j]) == true)
                   return true;
          return false;
       }Thanks.
    Sung

  • V1, V2, V3 Update: 2 questions: Getting clarification on Roberto's Blog

    Hi,
    In a blog by Roberto, /people/sap.user72/blog/2004/12/16/logistic-cockpit-delta-mechanism--episode-one-v3-update-the-145serializer146, I have 2 questions on two QUOTES from this article:
    1. On quote A:
    Now, from point #3, it states that if successfully processed by V2; So if it has successfully been processed by V2, why would you then want to process it again with V3?
    Or, is it suggesting that V2 updates the tables in R3 automatically, but stays in those tables utill V3 is scheduled in LBWE?
    2. On quote B:
    Also, in LBWE, I found the options Direct Delta, Queued Delta, Unserialized V3 update. From the article, there was no mention of Direct Delta, Queued Delta. When are they used instead of the V3?
    Can you help me understand what Quote B was all about? I got lost.
    Can you help me follow how the delivery status example in this quote is implemented regarding the ODS?
    (LBWE talks about Unserialized but Roberto spoke about Serialized was that  a mistake?)
    QUOTE A
    "Normally in R/3 there are three types of update available:
    1.Synchronous update (V1 update)
    Statistics update is carried out at the same time (synchronous) as the document update (in the application tables).
    2. Asynchronous update (V2 update)
    Document update and the statistics update take place in different tasks.
    So, V1 and V2 updates donu2019t require any scheduling activity.
    3. Collective update (V3 update)
    As for the previous point (V2), document update is managed in a separate moment from the statistics update one, but, unlike the V2 update, the V3 collective update must be scheduled as a job (via LBWE).
    Remember that the V3 update only processes the update data that is successfully processed with the V2 update. "
    Quote B
    "..But since updating in ODS objects is permitted in the logistics extraction for almost all DataSources, we have to consider any effects that can derive from the u2018overwriteu2019 update mode (specific of the ODS object).
    For example, the consistent storage of a status field (e.g. delivery status) in ODS objects can only be ensured only with a right (serialized) delta sequence: if the record with u2018open deliveryu2019 status (created as first record in R/3) arrives later than the record with u2018closed deliveryu2019 one (created as second one in R/3), we would have a false representation of the reality.
    Since the normal existing update methods actually does not recognize the serialized processing of update data, the Serialized V3 Update function was created (also thanks to subsequent several corrections in SAP Basis) in order to be able to serialize step A..."

    Hi Amanda,
    Would appreciate if you could update the article link in the thread as this will help others.
    Regards,
    Nitin S.

Maybe you are looking for

  • Resource central problem

    hello I have problem with resource central in Encore, I want to download templates (I dont have them because I have CS4 downloaded, not on DVDs). My first problem was I couldn't even join resource central, but I fixed it by removing config file from

  • Why Does Illustrator CS2 print Page Information Backwards & Garbled?

    We just upgraded my comptuer & had to reinstall my CS2 suite. Im using Windows XP and my problem is occuring in Illustrator CS2. When I check off the "Page Information" box in the Marks & Bleeds printing preference it previews onscreen as it should p

  • How do I get to the screen on my Audigy 2ZS where I can enable 'SPDIF Pass-through'

    I see the screen on your support page but I cannot get to this screen with my software. Do I need to download a driver or application to get this option. I have a set of Logitech Z-5500 digital speakers on my Dell XPS 600 computer. I am using the dig

  • Receivables - Query of Customers, sorted by Payment Terms?

    I'm looking for an easy way to run a query (through the Applications layer) of all customers, sorted by their Payment Terms (Net 30, Net 45, etc.) Any ideas?

  • Program ZRFFOD__S: No records selected

    Hi I run F110 then the documents has been cleared but when i checked spool request I cant see any. I checked it in payment log and find this error "Program ZRFFOD__S: No records selected". Is there anyone know why this error has been encountered? tha