How to identify token

Hi,
i am tokenizing a string... on the bases of pipe symbol( | )
if i get two consecutive pipe( | | )than how i ll identify this thing .

could you give a solid example?
do you mean if you have a string such as "a b c d | | e f g"
then you'd like to know if that string has two consecutive pipeline symbols?
here's how I would do it (assuming my previous assumption of the problem is correct :)
StringTokenizer st = new StringTokenizer(str, " ");
int match = 0;
while (st.hasMoreTokens()) {
  if (st.nextToken().equals("|")) {
    match++;
    if (match == 2) {
      return true;
  } else {
    match = 0;
return false;

Similar Messages

  • How to use tokens in workflows(ocm)

    i want to know how to use tokens in workflows .

    What do you want to know?
    Tokens are variables that eventually map to either individual user names or aliases (groups of users).
    The token is defined and then included in the workflow step in addition to or in place of a user or alias.
    A token is a piece of idoc script that ends like this <$wfAddUser("Name", "type")$>. Name, like i mentioned above, is a user name or an alias name. Type is a string identifier; either "user" or "alias".
    Because it's Idoc Script, the token can evaluate anything available in the databinder as well as execute other functions.
    A very easy way of using tokens is to map a metadata field that you know will contain a user name to the "Name" parameter. The dDocAuthor field will always contain a user name. So the token might look like this: <$wfAddUser(dDocAuthor, "user")$>. When set as a workflow user, this token will route the item to the person listed as the author.
    Because tokens are evaluated in workflow after the entry event (read the docco if you don't know what step events are), you can do some complex caluclations in the entry event and then pull the results into the token. For example, you might want to auto-escalate workflow content to my manger. If we presume that my manager's user name is part of my user profile, (say in a user metadata field called uManager), we can figure out who my manager is in the entry event, set my managers name into the companion file (read the docco if you don't know what this is), then pull it out in the token when the token is evaluated.
    this might look something like:
    --- ENTRY EVENT CODE ---
    <$me=dUser$> <!-- this sets the current user to the idoc variable "me"-->
    <$myManager=getValueForSpecifiedUser(me,'uManager')$> <!--this grabs the value of the uManager field for me-->
    <$wfSet("manager", myManager)$><!--this creates a variable in the companion file called "manager" and sets its value to the value of the myManager variable-->
    ----Token Code---
    <$wfAddUser(wfGet("manager"),"user")$> <!--this pulls the value of the "manager" variable out of the companion file and sets it as the token user.-->
    This is only the tip of the iceberg. One token can have multiple <$wfAddUser...$> declarations. They can be conditional: <$if ..some condition$><$wfAddUser...$><$else$><$wfAddUser...$><$endif$>
    Check out the workflow reference guide that is in the documentation library for more ideas.

  • How to identify missing records in a single-column table?

    How to identify missing records in a single-column table ?
    Column consists of numbers in a ordered manner but the some numbers are deleted from the table in random manner and need to identify those rows.

    Something like:
    WITH t AS (
               SELECT 1 ID FROM DUAL UNION ALL
               SELECT 2 ID FROM DUAL UNION ALL
               SELECT 3 ID FROM DUAL UNION ALL
               SELECT 5 ID FROM DUAL UNION ALL
               SELECT 8 ID FROM DUAL UNION ALL
               SELECT 10 ID FROM DUAL UNION ALL
               SELECT 11 ID FROM DUAL
    -- end of on-the-fly data sample
    SELECT  '[' || (id + 1) || ' - ' || (next_id - 1) || ']' gap
      FROM  (
             SELECT  id,
                     lead(id,1,id + 1) over(order by id) next_id
               FROM  t
      where id != next_id - 1
    GAP
    [4 - 4]
    [6 - 7]
    [9 - 9]
    SQL> SY.
    P.S. I assume sequence lower and upper limits are always present, otherwise query needs a little adjustment.

  • How to identify a type of consolidation in a system?

    Hi,
    I need to understand how to identify the type of consolidation we are doingion the system.
    Example like Step consolidation, Simultaneous consolidation or other method.
    This will be helpfull for me in doing my currest support issues.
    Thanks in advance,
    Richard..

    Not sure to understand your question.
    What is the precise context of your issue ? Is it a problem of SEM-BCS configuration or a general problem on how consolidation works ?

  • How to identify the user who created the variant

    Hi All,
    Can anyone tell me how to identify the user who created the variant ?

    Hi Dear,
    For the same go to SE11 and view the table "VARID". This table give the details of the program,user,variant etc.
    From this table u can know which user created the variant. Hope this solve your purpose.
    Regards

  • How can identify the default currency for a customer?

    How can identify the default currency for a customer?
    I know that this is being determined when you create a sales order for a particular customer, for example, so I could break this process open and find out what it uses. But I thought it worth asking in this forum first.
    Blue

    Hi Gary,
    As per my understanding of your question I am replying , If you are looking some thing else then I request you to please elaborate your query.
    If you see the BP sales area data in transaction BP, In billing tab you maintain the currency for a customer which is default currency when you create a sales order.
    <b>Reward points if it helps!!</b>
    Best regards,
    Vikash

  • How to identify german language in a program

    Hi All,
    i have one requirement. that is how to identify german language in a program.(suppose text elements, data elements are in german language our program should identify that german language). Anybody have solution for this, pls send me as soon as possible.
    Thanks for all in advance.
    Thanks & Regards,
    Nagarjuna.

    Hi Nagarjuna,
    2 possible approaches:
    1. Source language: Every program is initially created with source language = logon language. Sored in TRDIR-RLOAD.
    2. Try to read program texts in specific language (DE).
        READ TEXTPOOL pv_repid INTO lt_textpool LANGUAGE 'D'.
        IF sy-subrc                           = 0.
          MESSAGE s000(R1)
            WITH 'German texts present in' pv_repid '' ''.
        ELSE.
    Regards,
    Clemens

  • How to identify fact and dimension tables

    Hi ,
    We are having the list of parent child relation info for each database tables. Based upon the parent child tables ,needs to identify which table is fact ,which table is dimension .Could you please help me how to identify the fact table and dimensions tables ?
    Thanks in advance

    Hi,
    Refer this link........
    http://www.oraclebidwh.com/2007/12/fact-dimension-tables-in-obiee/
    Please mark if it helps you.......

  • How to Identify an item as a Raw material or not?

    Hello,
    I would like to know how to identify a particular item that is bought, if it is a raw material that will be used for further processing to build any other finished product or if it is a finished product that can be sold directly. I need to find out which table and which column we can find the information from?
    For example, we bought an item like motherboard, which is used as a raw material to build a laptop.
    I suppose it is clear, so, can any one let me know which table has this kind of information. Is it available in the Purchasing module tables like PO_Headers_all, etc..
    Thank you

    Check table MTL_SYSTEM_ITEMS_B, COLUMN BOM_ITEM_TYPE.
    BOM_ITEM_TYPE = 1 (Model)
    = 2 (Option Class)
    = 3 (Planning)
    = 4 (Standard )
    So if BOM_ITEM_TYPE 1 means it is configurable. & 4 means it can be used as raw material as well as individual product ex. keyboard.

  • How to identify fonts in pdf using vc++

    Hi All,
              how to identify fonts in pdf using vc++. could you please help me out in this scenario.
    Thanks,
    Parthasarathy.S

    I believe there is a sample plugin in the SDK for doing this.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Thu, 15 Dec 2011 02:27:21 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: how to identify fonts in pdf using vc++
    how to identify fonts in pdf using vc++
    created by partha56<http://forums.adobe.com/people/partha56> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4086333#4086333

  • How to identify the version of InDesign application used to produce an InDesign document

    Is there a way to identify the version of the InDesign application(CS/CS2/CS3) where the Document was originally created?
    Can we use InDesign CS3 server to open a CS2 document to do some relinking and save it again as a CS2 document without converting the document to CS3 version? If not, how to identify and not open the documents produced by previous versions of InDesign application?
    Thanks in advance.

    Hi,
    you can test the Creator. In addition however the document must be opened. If it is a CS2 document, closes document again without to save. I did not test it. Would have to function however.
    JavaScript Example:
    try {
    var creator = app.documents.item(0).metadataPreferences.creator;
    catch(e){}
    alert( "The creator = " + creator );
    Greeting Andreas

  • Using javascript in PDF how to identify insatnces of field on all pages

    Hi,
    I am creating a PDF document with report kind strcuture,so that if i have a field in 1 Page (Header section ) then the field will also be there on Page 2 (Header section ) and so on for all pages.
    I am basically creating from a tool.So if i have text field on Page 1 with name 'text1' then on Page 2 it has a name say 'text1_osi21' kind.
    What i need is how to identify or get all the occurences of my desired field on all pages.
    I also tried with getField('text1.0') kind but it wont work since for the second,thrid ... instances of the field its appending a value 'osi#'.
    Also tried using 'rect' properties but we cant gurantee about the position of the desired field to remain same on all pages.
    Please help with any clue
    Thanks & Regards
    nitin

    I can do it with the word  template builderbut not with the layout editor. Is there a way to achieve the same result with the bi layout editor?

  • How to identify a rehire candidate?

    Hi,
    Please let us know if you have worked on the following:
    1) How can we identify in e-recruiting that an external candidate was a previous employee of the company at some point in time? OR how to identify that the candidate had a record in SAP PA in the company?
    2) what exactly is the difference between the "deleting external candidate" and " delete external candidate registration" ? is it only that the "delete external cand registration" first closes all the open applications/assignments to requisition and then deletes the details? or some more differerences are there?
    Also can you provide more information on "Store Legal Periods"? Can we define these periods based on some other criteria apart from Country/city criteria? if so how?
    Thanks,

    1) How can we identify in e-recruiting that an external candidate was a previous employee of the company at some point in time? OR how to identify that the candidate had a record in SAP PA in the company?
    You can identify in R/3 in INFOTYPE 0001 go to over view you will find all information of employee history
    2) what exactly is the difference between the "deleting external candidate" and " delete external candidate registration" ? is it only that the "delete external cand registration" first closes all the open applications/assignments to requisition and then deletes the details? or some more differerences are there?
    I belive both are one and same please what expert will say
    Best Regards

  • How to Identify a Meth Lab!!!!!

    How to identify a Meth Lab.
    Knowing a  law enforcement officer for 30 years,
    I wanted to know how to identify a Meth Lab.
    Following, are four photos he showed me. 
    I think it's  pretty obvious which one is the Meth Lab. 
    Please Click On any Text in Blue as that automatically links to information.
    PC (NDEGR)

    Hmm,
    The yellow Lab looks like a dog from Hellraiser and the black Lab looks just like a normal family pet. The chocolate Lab looks like its about to go for somebody (probably the guy with the camera) and the meth Lab is... probably very excitable!
    Rank - Mostly Harmless.

  • How to identify a particular order type(PP01) is coming to APO?

    How to identify a particular order type(PP01) is coming to APO? Can it be checked at CIF exits on APO side?

    Hi Abhishek,
    I am looking for exits at APO side only.
    Thanks,
    Prenith PP

Maybe you are looking for

  • Can anybody explain briefly about CTS and SLS ?

    hi gurus all , could u pls. get me some idea about CTS and SLS ? where it will be useful? How do we generate reports in SD? and what is the process of report generation? How can we do the partial deliveries and give some steps to configure in sap? If

  • Form 6i Admin query

    Hi all, I have installed Oracle 6i recently, Could you please tell me what is the use of start menu >programe >Oracle Form 6i Admin- Ora6i 1. Build 2. Drop 3. Grant 4. Revoke. Options Thanks

  • MTL_SYSTEM_ITEMS_INTERFACE

    Dear All, I have some problem with the MTL interface table, can any one tell me why in ihe table process_flag is set to 4. and one record will be created in revisions interface. to import i am 1st clearning the revisions interface table and updating

  • Purge Cache in OBIEE 10g using IBOT

    Hi All, I follwed the below steps to purge cache. Created below java script. var nqCmd = "D:\\OracleBI\\server\\Bin\\nqcmd.exe"; var dsn = "AnalyticsWeb"; var user = "Administrator"; var pswd = "SADMIN"; var tempInFileName = "D:\\SQL.txt"; var tempOu

  • Stoping JMS application graceful

    Hi I have one flat java JMS application starts with command line. Application is consumer of one queue and split messages in to many and finally insert into DataBase. Application also have two other threads. Here I am struggling with problem how to g