Remove first selected  character

Hi all,
I have one requirement , in my one table A _POSTN  there is Column NAME I this column values like
DEFAULT_NZ_FUELS_WHOLESALE_1,
Z_FALAGUB,
DEFAULT_UK_ILS_LUBES_1
etc
I want output for only those record Z_FALAGUB, Z_REHMEN, output should remove “Z_” and FALAGUB, REHMEN like that
I am trying “SUBSTR(E.NAME,INSTR(E.NAME,'Z_')+2) from dual “ this statements
But it is removing “DEFAULT_NZ_FUELS_WHOLESALE” Z_ also . can anyone help me for that

You want to test if the first two characters contain 'Z_', while INSTR will check the whole string.
If found at the start, it will return 1 and you will want to to start the first SUBSTR from position 3 and otherwise start from 0 (that's what the DECODE is for).
I did this without really testing, but give it a try.
SUBSTR(E.NAME, DECODE(INSTR(E.NAME, 'Z_'), 1, 3, 0)) from dual

Similar Messages

  • MSS iView Error To display data, first select an employee

    I have configured a MSS portal role with an employee page.  The employee search (team viewer) iView is on the page with general data, salary data, and salary development.  For some reason, the salary data iView gives the message "To display data, first select an employee".  The other iViews on the page work ok.  Any idea what's causing that?

    Hello,
    The reason why the table is not being displayed is because of the currency you're using. The currency which
    you might be  populated from the backend is 2 character. I'm not sure if there is any currency code with two characters in the backend System. The standard should be having  3  character.
    Best Regards,
    Deepak

  • Why does pressing the L key twice (to cycle through dimming modes) remove a selected photo from a collection?

    That's my question, Why does pressing the L key twice (to cycle through dimming modes) remove a selected photo from a collection? Is my system the only computer that does this when I follow Adobe's directions to cycle through dimming modes by repeatedly hitting L? If not, how dumb is this?

    Hi,
    Check below things
    ---ManagerRendered attribute is transientAttr and type:Boolean
    ---${oa.viewInsatnce.ManagerRendered} ...paste in Readonly property of the item.
    OARow detailsRow = (OARow)detailsVO.*first()*;
    String position=(String)detailsRow.getAttribute("PositionCode");
    String firstname=(String)detailsRow.getAttribute("FirstName");
    System.out.println(firstname); The firstname is got from detailsRow correctly if I entered it on page.
    if ((position == null) && ("PRESIDENT".equals(position)))
    detailsRow.setAttribute("ManagerRendered", Boolean.FALSE);
    else
    detailsRow.setAttribute("ManagerRendered", Boolean.TRUE);
    Regards
    Meher Irk

  • How to remove new line character from query output?

    Hi,
    How to remove new line character from query output?
    have tried select replace(column_name, CHR(10), ' ') from table_name.
    Edited by: GreenHorn on Sep 11, 2008 12:53 AM

    Please consider, that windows uses a sequence of chr13||chr(10) Unix uses only one character chr(10).
    The new line character(s) may be OS-dependent.
    You could consider both with:
    replace(replace(column_name, CHR(13)||CHR(10), ' '),CHR(10),' ')
    Hartmut
    Edited by: hartmutm on 11.09.2008 01:32

  • Check whether the selected character is an xml open/close tag character...

    Hi Everyone,
    I am using InDesign CS4 and i need some help from you.
    Is there any better way to check the selected character is an XML open/close tag character in the text instead of using the unicode.
    Thanks in advance
    Thiyagu

    I'm having trouble understanding your requirements. I think you're trying to remove the zero-width non-breaking spaces that don't hold tags. Is that right?
    If that's the case, you don't really have to worry about the tags. You can do a normal find and replace:
    app.findTextPreferences.findWhat = "<feff>";
    app.changeTextPreferences.changeTo = "";
    app.activeDocument.changeText();
    It will match the characters that hold the tags, but won't remove them. Actually, it will say it removed them, but won't actually do it—or will replace them immediately? I don't know.
    (As far as I know, there is no way to match the 0xfeffs with a grep find, which is what it looks like you were trying. It would be super awesome if there weren't as many different  notations for unicode characters as there are means of finding them.)
    If you're trying to remove the characters that hold the tags, I think your only option is to untag the elements. You can't remove the 0xfeffs but keep the tags.

  • Replace all up to the first word character

    I have a String with a value of *1. Artist - Title*. What I am trying to do is remove everything up to the first word character so the new String will be Artist - Title. This is all I have been able to come up with:track.replaceAll ("\\d ^\w","").split (" - ");{code} Also, I used {code:java}track.replaceFirst ("\\d","").replaceFirst ("\\W","").replaceFirst ("\\s",""){code}but that isn't practical at all (even though it works).
    I tried to find examples on a few regular expression sites, but maybe I'm not searching with the right keywords. My code won't even compile. Anyone have a hint?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    public class RegexExample3 {
        public static void main(String[] args) {
            String input = "1. Artist - Title";
            String output = input.replaceFirst("^[^A-Za-z]*", "");
            System.out.format("'%s' ==> '%s'%n", input, output);
    }For your requirements, you need to be cleared about "word character", since \w means [A-Za-z0-9]

  • Drop down menus on iPad, the first selection in the drop down will not load as a selection when using safari, what can I do?

    Drop down menus on iPad, the first selection in the drop down will not load as a selection when using safari, what can I do?  I use this for my mobile, on-site auto repair business and not being able to call up repair and diagnostic info and reference for some cars is troublesome for sure. It works fine on the computer and I have installed a remote desktop app as a workaround but it is unreliable because the desktop is not business dedicated and may be off or in use at the time. So is there a known fix for this?
    Let me paint a more descriptive picture, visualize 4 drop down selection menus, first one is for year, next one is for make, 3rd one is model and the last one is for engine size/type. If I wanted to choose a 2012 vehicle it wont work because it is the top selection on the list. This can be forced by selecting any other year and then coming back to 2012. Ok fine, but then let's say I wanted to choose Acura as the make, well it won't take it because again it's the top selection. Again you work around it be selecting any other make and coming back to Acura. Ok now select the model, same trend follows. But now since most Acura vehicles come with dedicated engines and no optional engines I have only 1 selection in that final drop down menu and it will not take my selection and therefore never let me proceed to the info I need.
    This is also true when ordering parts from my wholesaler's website, they use drop downs and I can only get to that last drop down and then I'm stuck. This is blindingly frustrating, what options do I have. I'm not opposed to any avenue at this point.

    Did you ever figure this out? I bought my iPad last week to use in my business as well. I assume you are trying to use alldata? That is where I noticed this same issue. I had problems with identifix working with safari but downloaded a different browser and that works fine. Alldata does not work with either browser. The main difference is that on identifix if there is only one engine selection, it automatically selects the only option and continues to the home page. With alldata you have to make the selection manually even if there is only one option. Honestly if I can't get this to work I am going to return the iPad as it looses a significant amount of usefulness to men

  • How to remove first line of outgoing messages: ?xml version="1.0"........

    On outgoing messages, when I look in MONI, I see properly formatted XML message.
    The first line of all my outgoing files has this line:
    <?xml version="1.0" encoding="UTF-8" ?>
    Is there a way to suppress this?
    If so, is there a way to suppress for only certain partners within one interface?
    Thanks,
    Jeff

    Hi Jeff,
    As others pointed without this line the document will not be a valid document. Can you tell your complete requirment. One of these kind of requirement is discussed in this thread, you can see whether its the same in your case or not. If not then tell your complete req. so that somebody can help you out here.
    Remove first line in the XML Document
    Regards,
    ---Satish

  • Remove ":" from select option label(description)

    Hello All
    I have a requirement to remove the select option description (which SAP displays by default from the field label maintained in the data element),
    I thought the best way to achieve that requirement is by passing "space" to the parameter  'I_DESCRIPTION' to the method IF_WD_SELECT_OPTIONS->ADD_SELECTION_FIELD, however, it turned out that SAP still displays the label from the data element inspite of passing space(blank) to the parameter 'I_DESCRIPTION', to overcome this limitation I have created a data element without maintaining any labels this approach worked expect that SAP still displays ":"(colon) as the label, is there any way to get rid of this ":" too?
    As shown above, ":" is still displayed as the label of the date select option. I'm also looking for a way to reduce the distance between the last radio button and the select option, any pointers would be appreciated.
    Thanks for looking into this.
    -Vikram.

    You could use the below methods to recursively scan all elements of the view and set the design of all labels to light.
    method adjust_view .
    * IO_VIEW Importing RefTo IF_WD_VIEW
      data lo_container type ref to cl_wd_uielement_container.
      check io_view is bound.
      lo_container ?= io_view->get_root_element( ).
      process_elements( io_container = lo_container ).
    endmethod.
    method PROCESS_ELEMENTS .
    * IO_CONTAINER Importing RefTo CL_WD_UIELEMENT_CONTAINER
      data lo_container type ref to cl_wd_uielement_container.
      data lt_elements  type        cl_wd_uielement=>tt_uielement.
      data ls_elements  type ref to cl_wd_uielement.
      data lo_lbl       type ref to cl_wd_label.
      lt_elements = io_container->get_children( ).
      loop at lt_elements into ls_elements.
        try.
            lo_container ?= ls_elements.
            process_elements( io_container = lo_container ).
          catch cx_sy_move_cast_error .
            if ls_elements->_definition_name eq 'LABEL'.
              lo_lbl ?= ls_elements.
              lo_lbl->set_design( value = '01' ).
            endif.
        endtry.
      endloop.
    endmethod.

  • Bug?: TV shows in iOS 7 return to the first selected show

    I manage my video on iTunes withouth synching with iTunes. In particular, "Sync TV shows" checkbox is off. Instead, I drag and drop the cartoons for my kid from my collection (which automatically places them in Home Video category), then adjust info on the videos that are uploaded to categorize them as TV Shows, and group cartoons by series. It worked fine in iOS 6, but after I upgraded to 7, it does not. I did full factory reset before upgrade and then reuploaded the videos, so it's not "new way" vs "old way".
    What happens now after I go to Video app and choose TV shows section is that I can select any TV show first time I click on it. However, if I want to switch to another show, I cannot - tapping on any other show still brings me to the first selected one. To be visual, you can see this behavior on the small video clip I've made: http://www.youtube.com/watch?v=tAYqbb-bFvw.
    Anybody saw this behavior?

    Upgrade to iOS 7.1, the issue seems to be fixed.

  • If I select multiple images to apply a change to all Aperture it does so only with the first selected. Why?

    If I select multiple images to apply a change to all openings it does so only with the first selected. Why?

    You probably have Primary Selection only on.
    Aperture identifies the images you’ve selected by displaying them with a white border. When you select a group of images, the actively selected image, called the primary selection, appears with a thick white border and the rest of the selected images appear with thin white borders.
    Primary Only button: Click this button to make changes to the primary image selection only.

  • Executing First Select in Union before second

    I have a dynamic select followed by a union, then another select.
    The first select does something like this
    Select NVL((Equivilized_pa_value * ConvFactor) ,1) as display_value
    The I have a Union and the second Select does a sum on the field from the first select like this:
    Select Sum(myQuery2.display_value) as Total
    How would I write the statement so that the first select is calculated, and that value is used to calculate the sum in the second select?
    Right now this is what's happening. The first select produces two values.
    Equivilized_pa_value * ConvFactor is not null for the first record so it produces 3905. For the second record it is null so it produces 1.
    So then I want my sum to add those together and produce a total of 3906, but instead, it's producing 2 totals - one of 3905 and one of 1. I'm not sure how to fix this.
    Thanks

    Hi,
    It looks like you could get the reuslts you want using GROUP BY ROLLUP instead of a UNION.
    For example:
    SELECT       ename
    ,       SUM (NVL (comm, 1))     AS c
    FROM       scott.emp
    GROUP BY  ROLLUP (ename)
    ENAME               C
    ADAMS               1
    ALLEN             300
    BLAKE               1
    CLARK               1
    FORD                1
    JAMES               1
    JONES               1
    KING                1
    MARTIN           1400
    MILLER              1
    SCOTT               1
    SMITH               1
    TURNER              0
    WARD              500
                     2210This will probably be more efficient that a UNION.

  • Remove unicode control character

    hey, so i've asked this around a few places and recieved no answers, but the arch community seems like a bunch of smart people and i've recently switched over from ubuntu.
    is there a way to remove input methods and unicode control characters from the context (right-click) menu? i've searched and searched, but i've had no luck with this.
    there's a way to remove it in gnome with gconf, but i've tried that, and no luck.
    i'm using openbox, and i think i found something about my gtkrc file along these lines
    gtk-show-input-method-menu =
    gtk-show-unicode-menu =
    both are "gboolean" which i don't know what it is, or if this is even what i want.
    any help would be appreciated, as i never use these menus.

    U+2415, SYMBOL FOR NEGATIVE ACKNOWLEDGE is not a control character. It is a normal symbol character, which is a substitute display character used when the control character U+0015 NEGATIVE ACKNOWLEDGE is to be displayed instead of being interpreted.
    You need to refine your question.
    In general, you can remove any particular character or characters from a string using the SQL functions TRANSLATE or REPLACE. You can use CHR or UNISTR to encode characters that you cannot enter from a keyboard. You can use REGEXP_REPLACE with POSIX character classes to remove broader ranges of characters.
    -- Sergiusz

  • Remove last newline character

    How can I remove the newline character only from the very end
    of a string? (Note there are several newline characters within the
    string). Thanks!

    How long is the string and roughly how many newline
    characters are there? One way, although kinda funky, would be to
    convert the newline-delimited list to an array, and then convert it
    back. See below.

  • Removing first few characters from an infoobjects

    Hi,
    I have an Infoobject where we load 9 character long records like - Ab1234567.
    I have to transfer everything to a new Infoobject but not the first 6 character. Could you please let me know the best code with all the details...I have limited ABAP knowledge
    Thanks for you help.

    Please search before you post -
    transformation routine: delete 4 first characters..
    First N characters

Maybe you are looking for

  • Home screen:feature not supported gallery broken

    Hi there, this is my first post here so i'll try to be quick i foolishly tried installing the ms apps using a third party app since i saw it worked on other people's phones and i thought i would give it a shot i was wrong for about 3-4 days i've been

  • E-Sourcing NDA's

    Our company is using E-Sourcing and our buyers are asking me if there is a way to manage Non-Disclosure Agreements in E-Sourcing  The NDA is a form that we ask our suppliers to sign before we do any business with them.  Does anyone know if there is a

  • Oracle Text Issue

    Hi , Any Idea Of this Below Error SQL> CREATE INDEX "TOTALPLANT"."IP_TAG_LONGTAGNAME_SEARCH" ON "IP_TAG"   2  ("LONG_TAGNAME" ) INDEXTYPE IS "CTXSYS"."CONTEXT" PARAMETERS ('SYNC (ON   3  COMMIT)') ; CREATE INDEX "TOTALPLANT"."IP_TAG_LONGTAGNAME_SEARC

  • Api to interact with a Thumbprint Reader

    Hi, I have become interested in developing an application that uses a thumbprint reader and I was wondering if there is an Api or set of java classes that I can use to develop this application in java. Any directions would help.

  • Send to ios

    Where is the "send to iOS " function? My iCloud is on on both, the mac and iphone 5. But on the share button, there is no send to ios