Using startswith to exclude

Hi,
In my report I need to show instances where:
{Command.FormatCode} startswith "10003" but excludes {Command.FormatCode} startswith "100033"
I created a running total to evaluate.
{Command.FormatCode}  is a string field.
How I can defined it ?
Thanks

In the selection criteria, try:
{Command.FormatCode} startswith "10003"
and not({Command.FormatCode} startswith "100033")

Similar Messages

  • Any way to use filter to exclude tables in navagation pane?

    Is there any way to use filter to exclude a set of tables from the table list in the navagation pane? I have a number of tables (15+) starting with the same prefix eg. AB123 that I would like eliminate from the list. They sort right to the top and I always have to scroll down, and go through the show more dialog to see the entire list.
    I am sure I'm missing something, but not sure what. Help Center has nothing to offer.
    Thanks
    Glenn

    This has been mentioned on the forum before - basically the need for more elaborate ways to filter (multiple conditions as well as 'not like'). It is on our list for future consideration, meaning post-production.
    -- Sharon
    Message was edited by:
    sbkenned

  • Use of master exclude in e10?

    Hoping the community can help me resolve a question. We've received varying feedback on using the master exclude functionality in e10. We used it fine in e9.
    Anyone out there use the master exclude functionality on their account in e10? Can you please let me know how you use it in your instance?
    Thanks!

    In a past life I put in place a '3,3,0' rule as a way to ensure that we were not sending out too many emails to those who were showing 0 interest. 
    Essentially, If you were sent 3 emails in 3 weeks and had 0 activity (no opens, clicks, web visits, form submits) then you would not get a 4th email.  After a week, the rule was no longer valid so you could get the next message.
    I have also worked with organizations that put similar rules in place.  In some cases, program/campaign flow was merely delayed (wait step for a week, re-evaluate the rule, then Send or wait longer) or the email was simply suppressed and the contact.
    Program builder is more elegant with options for what to do with bounces, unsubscribes, and master exclude.  If email not sent because of master exclude list, then send to program step '300 - wait and re-evaluate'; If email not sent because of hard bounce, send to program step '900 - remove from program - bounce'; etc.
    Campaign Canvas allows you to route all non-sends, regardless of reason, to a step in the canvas, you would then need to use filters to sort the reason why the email was not sent. (send all to wait step, have multiple 'contact is in shared filter' steps.

  • Find strings in a list using startsWith?

    Hi I hope someone can help me with this problem. Before I start, my apologies as I am a student still trying to learn Java and have got to the murky ground of data structures.To help me better understand this I tried a sample program (which surprisingly was working fine til now ha). So I have a list of songs by various artists added to a tree which begins with the singers name. I want to be able to isolate songs by a particular artist but have tried loads of different ways of doing it to no avail. I tried creating a new list but couldn't add my songs to it. I then found the remove() method and thought why not just find what I want and remove the rest from the list I can always recreate my list again after. So I think I'm close with my code and that's it's maybe a casting issue??
    String song = songTree.getElement(currentNode);
    List<String> list = MyCollection.getSongs(song);
    // List newList = new ArrayList();
    String check = new String("Pearl Jam");
    Iterator myIter = list.iterator();
    while (myIter.hasNext()){
    if (myIter.next().!startsWith(check)){
    // newList.add();
    else{
    list.remove();
    Edited by: jojololo on Nov 9, 2009 11:35 AM

    jojololo wrote:
    Before I start, my apologies as I am a student still trying to learn Java and have got to the murky ground of data structures.No need to apologize, as long as you are clear in your communication. Why would we be here except to help? (Well okay, to amuse ourselves...)
    To help me better understand this I tried a sample program (which surprisingly was working fine til now ha). So I have a list of songs by various artists added to a tree which begins with the singers name. I want to be able to isolate songs by a particular artist but have tried loads of different ways of doing it to no avail. I tried creating a new list but couldn't add my songs to it. Why not? What happened when you tried? This is probably the right way and should definitely work, so let's isolate the problem there.
    I then found the remove() method and thought why not just find what I want and remove the rest from the list I can always recreate my list again after.Nah that doesn't seem like a reasonable idea. Let's go back to creating a new collection to hold your isolated subset.
    Post an SSCCE of your atte this stagempt at using a new list, and tell us where it goes wrong and what you expect it to do instead. Be sure to use the CODE button in the editor to format your code.
    Sorry didn't really answer your questions very well with my post;
    I've tried so much at this stage I don't even remember what went wrong. basically in the try I posted just now the startsWith method is not recognised. I'm aware that I'm trying to compare an object reference to a string but thought I had dealt with that with my casting? I think my subset would be saved here in the new collection but again I'm missing something in the comparisment. Oh sometimes I feel like packing in the java! We do far too much theory and nowhere near enough actual coding.
    import java.util.*;
    public class Test {
        public static void main(String[] args){
            List variousArtists = new ArrayList();
            // Some intentionally doubled to ensure only one gets put on the tree later           
            variousArtists.add("Pearl Jam - Even Flow");
            variousArtists.add("U2 - The End Of The World");
            variousArtists.add("The Smashing Pumpkins - Spaceboy");
            variousArtists.add("Pearl Jam - Alive");
            variousArtists.add("The Smashing Pumpkins - Quiet");
            variousArtists.add("Pearl Jam - Black");
            variousArtists.add("U2 - The End Of The World");
            variousArtists.add("Radiohead - Street Spirit");
            variousArtists.add("U2 - One");
            variousArtists.add("Radiohead - Street Spirit");
            variousArtists.add("Radiohead - Street Spirit");
            variousArtists.add("The Smashing Pumpkins - Mayonaise");
            variousArtists.add("U2 - Mysterious Ways");
            variousArtists.add("The Smashing Pumpkins - Hummer");
            variousArtists.add("Pearl Jam - Even Flow");
            variousArtists.add("The Smashing Pumpkins - Disarm");
            variousArtists.add("U2 - One");
            variousArtists.add("The Smashing Pumpkins - Quiet");
            variousArtists.add("The Smashing Pumpkins - Mayonaise");
            variousArtists.add("Pearl Jam - Black");
            variousArtists.add("The Smashing Pumpkins - Mayonaise");
            variousArtists.add("Pearl Jam - Even Flow");
            variousArtists.add("Radiohead - Street Spirit");
            variousArtists.add("U2 - The End Of The World");
            List newList = new ArrayList();
            String check = new String("Pearl Jam");
            String search;
            Iterator myIter = variousArtists.iterator();
                  while (myIter.hasNext()){
         search = (String) myIter.next();
               if (myIter.next().startsWith(check)){
                     newList.add(myIter);
    }   

  • Using StartsWith for String Comparision in Business rules

    hi,
    I need to compare whether a particular string starts with some pre-defined prefixes. These are bound to change from time to time and hence we wanted to use the business rule engine for this. We declared prefixes using "list of values" vocab and
    defined the set. Now, I hoped to use the String.StartsWith() method but couldn't understand if it can be used.
    As of now, we are creating a method and that will be called with 2 parameters. One the string and other is one of the list of values which we want the string to start with. Is there any better way to do this?
    Praveen Behara
    MCST : BizTalk Server 2006 R2, 2010

    Hi Murugesan,
    I need to match a particular series of numbers... say 12xxx,345xxx,567xxx. I am creating a
    Series as a list and the valid values would be 12, 345, 567. I intend to keep them as prefixes i.e. they are not regular expressions. So, they won't be 12.*, 345.*, 567.*. The idea is to keep the vocab close to requirement
    and away from implementation (typically, for a business user). Now, if I want this setup, how will the implementation with
    Match look like?
    Technically, your above solution would work.. but my way of implementation / thought process is for a different purpose.
    Praveen Behara
    MCST : BizTalk Server 2006 R2, 2010

  • Using Filters to Exclude Categories

    Hi, hopefully I have an easy question. I want to create a Category called "Completed" and when I complete what an email requires me to do I want to assign it with the "Completed" Category. I then want to filter my Inbox so that every
    email shows up except the ones with the "Completed" Category. That would be my regular view of my Inbox and when I need to see all messages including the "Completed" ones I would turn off the filter.
    Any help would be appreciated.

    Hi,
    To detail DJ Grijalva's reply, I will take Outlook 2013 for example.
    Go to VIEW tab -> Current View -> View Settings -> Filter -> Advanced tab.
    Under "Field", select Frequently-used fields -> Categories.
    Under "Conditior", select doesn't contain.
    Under Value, type "Completed", then click "Add to List" button, click OK.
    Once the filter is applied, all messages with the category "Completed" will be invisible.
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Impdp using EXCLUDE

    Hi
    I want to import a full database excluding a list of schemas. I know I can use the parameter EXCLUDE to do that but I need to exclude several schemas and I am having problem writing the appropiate list in the parameter EXCLUDE. Can you help me?
    Thanks

    I tried as you recommed but I got an error as well
    impdp system/???@????? exclude=SCHEMA:"='DBSNMP,MGMT_VIEW,SYSMAN,SYS,SYSTEM,FLOWS_FILES,MDSYS,SCOTT,WMSYS,APPQOSSYS,XS$NULL,APEX_030200,OWBSYS_AUDIT,MDDATA,OWBSYS,ORACLE_OCM,ORDDATA,ANONYMOUS,OUTLN,DIP,EXFSYS,APEX_PUBLIC_USER,XDB,ORDSYS,SPATIAL_CSW_ADMIN_USR,CTXSYS,SPATIAL_WFS_ADMIN_USR,ORDPLUGINS,OLAPSYS,SI_INFORMTN_SCHEMA'" DIRECTORY=dirorigen LOGFILE=DATA_PUMP_DIR:imp.log FULL=y DUMPFILE=fullbk.dmp
    $
    $ ./importarfullexclude.sh
    LRM-00116: syntax error at 'SCHEMA:' following '='
    $
    I tried on this way and I got an error again...
    Import: Release 11.2.0.2.0 - Production on Fri Feb 18 11:35:00 2011
    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORA-39071: Value for EXCLUDE is badly formed.
    ORA-00920: invalid relational operator
    $
    impdp system/???@????? exclude=SCHEMA:"'DBSNMP,MGMT_VIEW,SYSMAN,SYS,SYSTEM,FLOWS_FILES,MDSYS,SCOTT,WMSYS,APPQOSSYS,XS$NULL,APEX_030200,OWBSYS_AUDIT,MDDATA,OWBSYS,ORACLE_OCM,ORDDATA,ANONYMOUS,OUTLN,DIP,EXFSYS,APEX_PUBLIC_USER,XDB,ORDSYS,SPATIAL_CSW_ADMIN_USR,CTXSYS,SPATIAL_WFS_ADMIN_USR,ORDPLUGINS,OLAPSYS,SI_INFORMTN_SCHEMA'" DIRECTORY=dirorigen LOGFILE=DATA_PUMP_DIR:imp_2011.log FULL=y DUMPFILE=fullbk_2011.dmp
    $

  • [resolved] filter / delete files the way rsync uses its exclude list?

    edit: discovered the "--delete-excluded" - option for rsync just minutes after posting this question. rsyncing the backup to its parant directory with that option added seems to do the job.
    edit: No, it doesn't. It just pretends to do the job, but doesn't really seem to delete the files.
    edit: Oh god, I had --backup still activated. It did work - it just made another backup into another sub directory every time I tried. Now to clean up that mess....
    edit: AND also "-b" was still in there. Will I ever learn from my mistakes?
    Hi!
    After updating my list of rsync excludes to be more accurate over the last weeks, I have a lot of trash still stuck in the old backups / increments. I'd like to delete those, that whould have been excluded by rsync using the new exclude file / list. Can't really find a good method, though.
    To get the list of files, that...:
    for expression in $(cat /home/user/scripts/backup.exclude); do find /media/BACKUP/ -regex ".*$expression.*"; done;
    ... seems to differ from the way rsync handles the expressions when it comes to regex special characters (*./) ... not sure how rsync does it exactly, but it works.
    Is there anything that handles that better? Maybe use rsync in a way I didn't think of (sync folder with itsself in some way) or something?
    thx!
    Last edited by whoops (2011-03-11 12:51:57)

    I use the combination of "--exclude-from" and "--delete" switch to keep all the garbage folders from my backups.
    But it took a while to figure out the syntax to use in the file the "--exclude-from" switch references.  Funny how that important piece of information is never covered in any of the tutorials I could find on rsync out there.  Only this past week-end did I finally figure it out.
    I had been putting absolute paths into that file for folders I didn't want to back up, for example "/home/me/.thumbnails/normal/*", but that folder kept getting backed up anyway.  Finally I paid more attention to the output on the screen going by during the backup and saw that rsync considered that folder to be named ".thumbnails/normal/".  Once I put ".thumbnails/normal/*" into the excluded files list, and all the other folders on separate lines accordingly, I finally achieved what I was looking for -- none of my "garbage" folders were being backed up and any file not found in my source folders were deleted from the target folders.
    You didn't post the switches you were using for rsync but here's what mine looks like:
    rsync -avr --exclude-from=/home/me/bin/exclude_from_backup.txt --delete /home/me/ /media/backup/home/me/
    Hope this helps.

  • Sales Order ATP should exclude the stock of a particular st. loc

    Hi,
    At Sale order creation, ATP check should exclude a particular Sto Location,
    Suppose we have Sto Loc 001, 002, 003, 004 & 005, we want to reserve some stock for the next year, so we identify one storage location say 005 and move some stocks to this storage location. Now when the sales people are creating Sales order, the ATP check should exculde stocks from this Storage Location (the stocks in this sto loc should not be considered in ATP).
    But for all other purpose like MRP this should be visible. We want the stock to be in unrestricted area in this Sto Loc.
    Request you all to propose a feasible solution either through User exit or some configuration.
    Thanks in advace,
    Navin

    Hi All,
    Thanks a lot for all the replies, I found in the storage location table T001L, a field ``DISKZ`` settings called ``Storage location MRP indicator`` the details are as follows Storage location MRP indicator
    that you use to exclude storage locations from material requirements planning at plant level.
    If you do not set this indicator, stock, requirements, and receipts are included in MRP at plant level.
    Use
    You can exclude storage locations from MRP at plant level in one of two ways:
    By excluding storage location stock from MRP
    If storage location stock is excluded from MRP at plant level, no receipts for this storage location will be created in the planning run.
    By planning storage location stock separately
    If storage location stock is planned separately, the storage location is replenished with goods if the stock falls below the reorder point.
    Has any one tried this and does this meets the requirement.
    Thanks in advance,
    Navin Shinde

  • Crystal Reports 2008 - startswith problem

    Hi,
    I'm encountering a problem with the "startswith" function.
    We have an application that is capable to run custom made reports by our users.
    One of this reports has used the record selection formulas to filter out some data. And here is where the fun starts. When we open the report with our application (VB.Net 1.1) it works fine.
    Meaning that when we leave some parameters empty, he doesn't take those for the filter.
    Now when we open the same report under our newer application (VB.Net 2.0) without changing any code (to fill in the parameters etc.), it doesn't work anymore.
    Here is the formula that is used in the record selection:
    {Command.breedtecode} startswith {?breedte} and
    {Command.lokatie} startswith {?lokatie} and
    {Command.stocktype} startswith {?stocktype} and
    {Command.materiaalgroep} startswith {?materiaalgroep} and
    {Command.kwaliteitscode} startswith {?kwaliteit} and
    {Command.kleur} startswith {?kleur} and
    {Command.conformiteit} startswith {?conformiteit}
    The user told me he had used startswith, because the parameters are optional.
    The other thing is, that if i run the report in the designer, it works fine.
    Is it possible that there is a change in filling in parameters between 1.1 and 2.0?
    Any help would be most appreciated.
    Grtz Tsjelle

    Hi there,
    Here's the information:
    The working application in 1.1 is:
    VS2003 --> v 7.1.6030
    .NET Framework 1.1 --> v 1.1.4322 SP1
    The not working application in 2.0 is:
    VS2008 --> v 9.0.21022.8 RTM
    .Net Framework 3.5 (no extra version info found)
    It's a windows application.
    It's a development issue.
    We're now working with CR Developer 2008, v 12.0.0.549 and the product type is the Full Version.
    Grtz Tsjelle

  • Exclude in data pump

    Hi all,
    We are using oracle 10g with windows platform. During the export operation,
    we are using the command EXCLUDE=SCHEMA:"='HR'" for excluding the schema HR.
    Can anybody suggest me about the syntex, if need to exclude more than one schemas
    by using the EXCLUDE parameter?

    This is just an expression clause. You used the 'equal' sign. There is no reason you can't use the 'IN' clause.
    You used:
    EXCLUDE=SCHEMA:"='HR'"
    How about
    EXCLUDE=SCHEMA:"IN ('HR', 'SCOTT', 'BLAKE')"
    Dean

  • Exclude zero value sales items

    Hello,
    We want to exclude sales order items with zero net value. The issue that we have is that we have lots of sales order item with zero value but very few can have price during billing (We create billing off from sales order. No delivery document). We know we can make use of copy control requirement (transaction VTFA) similar to LV60A002 where we can check VBAP-NETWR and set sy-subrc to '4'.  But the way system behaves is that it then goes through the pricing routine. Since prices can change in between sale and billing we might not charge customer accurately if we use use requirement to exclude zero value sales item. The ideal would be system re-price the order and then if still net value is zero then exclude them, Primary reason we want this to improve billing performance as billing document will have significantly less items or have items that matters.  Thank you so much for suggestions!

    Hi Ajit Kumar,
    This sound like something I can make use of it. But can please clarify what goes between IF and ENDIF. Do you just simply say DELETE i_xvbrp? Is it how do you delete VBRP line item before posting? Is it going to re-sequence POSNR? I really appreciate your feedback as I am finally feel like going somewhere.
    Ok. Little later as I experiment with user-exit 'EXIT_SAPLV60B_010'. There I can not do any thing as I have to do delete corresponding posting entry too. Then I played with 'EXIT_SAPLV60B_008' where I have tables XACCIT , XACCCR, CVBRP & CKOMV. I deleted entry with CVBRP-NETWR = 0 and adjusted all POSNR but then I got UPADTE TERMINATE document. So basically it did not work.
    Thanks and Regards,
    H Shah

  • When using unaliased fonts GTK2 apps look messy

    I use antialiasing with exclude range of 8-13px, the small fonts are readable this way. But the same error occurs when using no antialiased fonts. (i use verdana or arial, but the result is the same)
    the GTK2 apps look like on the picture below:
    [URL=http://img141.imageshack.us/my.php?image=unaliasedgtk21hc.jpg][/URL]
    i've tried with xfce4, but its the same. i tried to uninstall gtk-qt-engine, and delete the configs, tried some gtk-engines, but didnt solve anything...

    append anitalisa false setting in your "/etc/font/local.conf" or "~/.fonts"
    this is my setting.
    <match>
    <test>
    <string>Batang</string>
    <string>BatangChe</string>
    <string>Gungsuh</string>
    <string>GungsuhChe</string>
    <string>Gulim</string>
    <string>GulimChe</string>
    <string>Dotum</string>
    <string>DotumChe</string>
    </test>
    <test>
    <double>11</double>
    </test>
    <test>
    <double>25</double>
    </test>
    <edit>
    <bool>false</bool>
    </edit>
    </match>

  • Impdp specific schema from dump which has been created using full=y

    Hi,
    I have received a dump (expdp) which has been created using the parameter FULL=Y. I just want to import (impdp) only one schema into my database. I have used remap_schema and exclude=grants. The schema i want to import is carried out successfully, but in my import log i keep getting the messages such as :
    ORA-31684: Object type TABLESPACE:"TS_BCST1" already exists
    ORA-31684: Object type USER:"OUTLN" already exists
    ORA-31684: Object type SEQUENCE:"SYSTEM"."MVIEW$_ADVSEQ_GENERIC" already exists
    How can i use impdp only to import objects under my specific schema and not have impdp attempt to create system/sys users and its objects, create tablespaces, etc etc.
    Kindly assist.
    Regards,
    Karan

    Use SCHEMAS parameter in the impdp command to import the scpecific schema.
    Eg.
    impdp system/password schemas=user1 remap_schema=user1:user2 directory=dir dumpfile=user1.dmp...........
    You can specify list of schemas you want to import with , (comma) saperated in the SCHEMAS parameter.

  • Restore with install DVD and Time machine backup that excludes system

    Hi, I need restore my PB G4.
    I backed up my data using TM but excluding all system files. Is there a possibillity to reinstall the system with the DVD and then rebuild the individual accounts using Time machine?

    Yes, you have several options: (In all cases Mac OS 10.5 Leopard is required as previous OS X versions can not work with Time Machine backups.)
    *Full Restore Via Migration Assistant & Time Machine*
    You can use the installation DVDs that came with your Mac and reinstall Leopard (Mac OS 10.5). During the installation process you will be asked if you would like to Migrate data over from your Time Machine backups. The advantage here is that you start with fresh system software. The disadvantage is that you may lose many of the personal preferences/settings that had been established with the previous system. But this may be only a minor inconvenience to reestablish these. Depending on whether you choose to migrate your applications over as well, you may be required to reinstall any 3rd-party software or standalone Apple programs. Don’t forget to run Software Update once the initial installation is complete to bring your system up to date. Using Disk Utility at this point to repair any permissions issues is advised as well.
    *Full Restore Via Time Machine Only*
    Alternatively, you can use the installation DVDs to do a full system restore. Insert the installation DVD. When the welcome window appears, go to the Utilities menu and select “Restore System From Backup…” and choose the drive that your Time Machine backups are on. Then select the date of the backup you would like to restore from. This will completely erase your internal drive and restore your system to a relatively same condition it was in on the date of the backup you choose. (See this article for a list of files that TM does not restore, http://shiftedbits.org/2007/10/31/time-machine-exclusions/) The advantage here is that you retain many of the personal preferences/settings that had been established with the previous system. Additionally, no further installation of 3rd-party software is required. The disadvantage is that BECAUSE you retain many of the personal preferences, settings, and system files that had been present with the previous system, you run the risk of reintroducing problems you experienced with the previous installation, including any issues that necessitated the OS reinstall in the first place. Using Disk Utility at this point to repair any permissions issues is advised as well.
    *Full Backup After Restore*
    Bear in mind that in all cases Time Machine will perform a full backup after a full restore. This is normal. Time Machine will resume incremental backups after the full backup has completed. To view previous backups, Control-click or right-click the Time Machine icon in your Dock or Option-click the Time Machine menu extra and Choose "Browse Other Time Machine Disks," then select your previous backup volume. You will enter Time Machine and be able to browse your previous back ups and restore files. (http://support.apple.com/kb/TS1338)
    Hope this helps.

Maybe you are looking for

  • How to send a mail as .txt attachment ?

    Hi all, I got a requirement to write code for sending mail in oops. i have written code for .xls which is working fine. But requirement is to send the mail in the format of txt. i just only chnge the .xls to .txt where i can see the output properly i

  • Support profile no longer working?

    Seems to me there used to be a list of my products associated with my support user account, but now when I go to supportprofile.apple.com I get this: We are sorry. We're sorry, but we are unable to complete your request at this time. Please try again

  • Profile picture automatically reverting back

    Did anyone notice that or is it something that has to be set up separetely? If profile picture for the contact is updated using social app after an hour or so it automatically reverts back to the old one. Spent good half an hour yesterday to updated

  • Vidoe in full screen freezes unless mouse is moved in version 27.0.1

    I'm running windows 7 64-bit. You tube videos freeze in full screen only when mouse is inactive. This is not a problem when instant streaming Netflix videos or in internet explorer. I did not have this problem when running windows xp on an old machin

  • WCS 7 map editor issue

    Hi Guys, I am currently setting up some maps on WCS version 7. The map displays correctly in the floor view but if I open in Map Editor it seem to crop about a 1/3 of the picture on the right hand side. I have tried using different building/floor siz