Find the value using regular expresiion

Hi All,
I have a requiremnt in FInd statment using REGEX.
i have values like this
B1;;2009/11 Claim: 007324;SA;20081006;20091101;I004;;1032000MAR;;750;31;500481;Michael 30/07/2008;999999;EUR;247.79;007324;;;;;;K;;;FIE01240;FB01;S178740019800000011;J;200911;;
I want to find 'I004' in this record using Find Regular expressions
with out using classes.
Can anybody please help me.
Thanks

DATA: itab4    TYPE TABLE OF string,
      results TYPE match_result_tab.
data: v_var2 type string.
data: mcnt type i.    
v_var2 = 'B1;;2009/11 Claim: 007324;SA;20081006;20091101;I004;;1032000MAR;;750;31;500481;'.
append v_var2 to itab4.
FIND ALL OCCURRENCES OF  'I004'
  IN TABLE itab4
MATCH COUNT  mcnt
RESULTS results.
Edited by: abap on Feb 4, 2009 10:35 AM

Similar Messages

  • How to find the value of a variable in other program

    How to find the value of a variable in other program say I am in a FM and this FM is being called in from other program and I want to know some of the variable details of the program from the FM itself. Imagine if this is a txn. and I need to know the details from some of the programs while executing the same transaction
    Regards
    Vin

    Hi Vinayak,
         you will be having your first program values in internal table or some variables,
        when you are calling the second program you wii use like this,
        SUBMIT <Second Program Name> USING SELECTION-SCREEN '1000'
                           WITH s_emp(second program select-options)   IN t_emp(first program variables)
                           WITH p_chk   EQ t_chk
                           WITH p_r1    EQ t_r1
                           WITH p_month EQ t_month
                           WITH s_cust1 IN t_cust1
                           WITH p_r2    EQ t_r2
                           WITH s_cust2 IN t_cust2
                           WITH s_week  IN t_week
                           AND RETURN.
    you have pas like this to get your first program details.

  • How to find report values using report writer

    hi,
    Please help me.
    How to find report values using report writer
    Regards,
    RRK.
    Edited by: Alvaro Tejada Galindo on Feb 6, 2008 12:01 PM

    Thanks all for the reply.
    I am trying to solve a problem where report parameter value that is set at Management Console is wiped out after calling replaceConnection.
    databaseController.replaceConnection(oldConnectionInfo, newConnectionInfo,
    null,DBOptions._doNotVerifyDB);
    We have to support changing database connection from a java utility
    class. But once replaceConnection is called all existing static parameter values are lost. To fix this issue we thought of getting parameters and values before calling replaceConnection and setting it after replaceConnection.
    Version is CS2008 SP3 - version 12.3.0.601
    If there is any other option of fixing the original wipe out issue?
    ParameterValues.getValues() didn't return value. I will try ParameterValues.getCurrentCalues() but the document says ParameterValues.getValues() is  equivalent to the IParameterField.getCurrentValues() method  unless it is empty, in which case it is equivalent  to the IParameterField.getDefaultValues() method.
    So getCurrentValues() may not work.

  • How can i find the value category code in CJVC

    Hi Gurus
    how can i find the value category code in CJVC and which tables its stored.can any one tell me.please please

    Read TPIK3 in an internal table, then search COEP-KSTAR in this table, with KSTAR between TPIK3-KSTRF and TPIK3-KSTRT, and other keys like Controlling Area and application/component (eg "PS" in project-system as in CJVC or "PM" in Maintenance as in IW33, multiple application use this table). You can also use a FM like PS_FIND_ACPOS_FOR_KSTAR.
    Regards,
    Raymond

  • HT202359 Is there a way to find the value of an unused itunes card without scratching the PIN security strip?

    I have an itunes gift card that I want to check the value so I know which card I am giving to whom. Is there a I can find the value without removing the security strip?

    Hi,
    sorry, i got no idea how to get the datatype of a variant, but there are properties "ActualSize" and "Type" of the ADO Field-Object. In case of an empty field the ActualSize is zero. Maybe you can use that. See VI below.
    best regards
    chris
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"
    Attachments:
    DB_Test.vi ‏67 KB

  • How to get year value using regular expression

    Hi,
    I have a different format of date such as 2004-01-03, 2003/01, 05/06/2005, 06-05-2007
    How can I get only the year value using regular expression? The year value is always in 4 digits
    Thanks in advance

    sabre150 wrote:
    JosAH wrote:
    \d{4}Is this the Jos I knew who poured scorn on anything to do with regex? Is this the Jos I knew who said that the 'pimping lemon' stopped regex being of any real use?It wasn't me; honest, I'm innocent: one of my parrots walked over my keyboard; I wouldn't be able to type such nonsense; naughty parrot! No cookie!
    kind regards,
    Jos
    ps. regexes can only survive the baby-pumping-lemma; they all die a horrible death with the real-men-pumping lemma! So there.

  • How do you find the value of an iMac

    Just curious how and where to find the value of my iMac 20 inch

    Welcome!
    Find your exact model from this list:
    http://www.everymac.com/systems/apple/imac/index-imac.html
    Then click its link. The full specifications have an estimated used price value near the bottom:
    There are a lot of 20-inch iMac variants, so you need to at minimum do "About this Mac" to see what it shows for processor speed and type to find your model on the index.
    The last update of estimated prices was done last August. Prices on that site tend to be at the top of the range.

  • How to find the value of STO

    hi SAP gurus,
    pls help me out.
    is there any T-code to find the values of STO made.

    Hi Gaurav
    PLease use the Tcode ME81
    Regards
    Aasif

  • When I create a New Folder (on the desktop or in Finder), the system uses the Generic Document Icon instead of the Generic Folder Icon. How can I change this back?

    When I create a New Folder (on the desktop or in Finder), the system uses the Generic Document Icon instead of the Generic Folder Icon. How can I change this back?
    All of a sudden I noticed that most of the folders on my computer were no longer using the folder icon, but the generic document icon. I had to manually change back the icon being used by opening Get Info for each folder and copying and pasting the generic folder icon from some folders that remained unchanged. Now whenever I create a New Folder (right click -> "New Folder"), the icon that shows up is the generic document icon (white page with top right corner turned down). And I have to manually change it so it shows up as a folder in Finder or on my desktop. I don't know why or how this switch happened. All of the folders now on my computer look ok, but I need to change the default so when I create a New Folder it uses the correct icon.
    I have also Forced Relaunch of my Finder and rebooted the system. I downloaded Candybar but am not sure what will fix anything, so I haven't proceeded.
    Anyone know how I can do this? Thanks.

    Anyone?

  • How can I find the schemas used in a database?  Any system table contains?

    How can I find the schemas used in a database? 
    Any system table contains?
    I would like to know sql statement (dictionary object name) which tells the all schema s in a database like dba_users.

    Hello,
    this SQL should help:
    db2 "select schemaname from syscat.schemata"

  • How to find the configuration use the Z message class.

    Usually when I do some configuration, it may need to create some message. such as the Validation.
    It raise a message when I run some standard t-code. So when I check some Z message class to find what program use this message, i can not find anything. So I assume there might two situation:
    1、we can not trace it dome when the program didn't write like this way:    MESSAGE E003(ZFI).
    2、this message might be used in some configuration,not in program.
    so how do we find the configuration use this message? or Is there any way can trace all message ?
    Thank you so much for your sincere answer.

    Hi,
    Case 1:  Message is defined correctly with message number & message class.
         Example - Message E003(ZFI).
      Easy to locate the message using whereused list.
    Case 2 :
    There are some FM's like BALW_BAPIRETURN_GET where we pass the message details.
    For example : 
    call function 'BALW_BAPIRETURN_GET'
            exporting
                 type       = p_message-msgty
                 cl         = p_message-msgid
                 number     = p_message-msgno
                 par1       = p_message-msgv1
                 par2       = p_message-msgv2
                 par3       = p_message-msgv3
                 par4       = p_message-msgv4
    *          LOG_NO     = ' '
    *          LOG_MSG_NO = ' '
            importing
                 bapireturn = p_return
            exceptions
                 others     = 1.
    In these case, we won't be able to track the message number from where used list.  So, what we do is before calling these FM we use the below statement,
      IF 1 = 2. message e003(zfi). ENDIF. 
        so that message can be tracked using where used list.
    Case 3: Some messages can be configured in message control.( Table T100S ) . For those
      messages we search for table T100S in the program.
    Regards,
    DPM

  • Where i can find the value categry code and element in cjvc

    hi gurus
    where i can find the value categry code and element in cjvc .in which table these fields are stored.could anyone tell me relation.
    Thanks & Regards
    Sandya

    not answer

  • How can I change the value used in a Criteria Rule in a Subscription agent

    Dear mobile heroes.... How can I change the value used in a Criteria Rule in a Subscription agent in a quality environment? (CRM 70 SP04).
    I have built a subscription agent in dev, which uses a static where clause to filter activity_object on VKORG. I need to filter on a different VKORG value in the quality environment, but when I change the value of the sales org, the change is not saved. I have tried this even non 'activated'  subscription agents, but it still does not appear possible to change and save the changes.
    This poses a big problem because the VKORG value I want to use does not even exist in the dev environment, so I could not even rebuild in dev and transport the new agent to quality. Can anyone help me?

    Too old to care now.

  • Where does one find the Very Useful tool, Magic Wand,  in the latest version of Photoshop, anyone?  Its been well hidden.  Why change for change's sake?

    Where does one find the Very Useful tool, Magic Wand,  in the latest version of Photoshop, anyone?  Its been well hidden.  Why change for change's sake?

    csuebele wrote:
    I guess I'm too slow, Trevor.
    That's no bad thing Chuck.  It indicates that you have better things to do than constantly refresh the forum LOL.
    I'm having a wee posting spree today after lacking the inclination to respond to the same old threads for the last few days.    But I do love it when people get all in a tizzy complaining about stuff that is right under their nose (so to speak).   So I guess my criteria for responding is often based as much on how big a smile it puts on my face, as to how much I am helping the OP.   Unfortunately that irreverent approach gets me into trouble at times, and one of the moderators deleted one of my illustrated replies just a few days ago.  It took me a few minutes to work out why it had been deleted.  The subtext was 'risking one eye', and I eventually realized that the implied 'risk' could definitely be seen as offensive to some people. 

  • Retrieving the value using formatted search

    Hi everyone. I have a question regarding on how I can get the value of the user-defined field in the title of a marketing document. I would like to get the value using formatted search and sql query.
    Here's the format I am currently using.
    $[$ <Item>.<Pane>.<Variable>]
    Is my format correct? Thanks.
    Regards,
    Omann

    Hi Omann,
    You can refer to fields in an entry screen using the syntax
    $[Table name.Field name]
    The table name is the name of the table belonging to the entry screen, for example, OINV for the A/R invoice entry screen.
    You can also use the fieldu2019s item number and fieldu2019s column number to refer to a field on the entry screen. By doing this, the query applies to all document entry screens. The syntax is then
    $[$Fieldu2019s item number.Fieldu2019s column number.NUMBER/CURRENCY/DATE/0]
    The system is able to uniquely identify each field of a document using the fieldu2019s index number and fieldu2019s column number. If you have activated the debug information under View  Debug Information, the system displays the fieldu2019s item number and the fieldu2019s column number in the status bar.
    You use the NUMBER parameter if the field concerned contains an amount and a currency key, and you want to extract the amount only. 
    You use the CURRENCY parameter if the field concerned contains an amount and a currency key, and you want to extract only the currency key.
    You use the DATE parameter if the field concerned is a date field and you want to use it for calculations.
    Regards, Yatsea

Maybe you are looking for

  • Dynamic starmap

    Hi, I am working on the core structure of a MMO space strategy game. The first development iteration's goal is only basic functionality, but the second will include many playability improvements, one of which will be a dynamic starmap for easy naviga

  • How to fix the invalid signature when installing WebZap Extension for Photoshop CC?

    The versions I am using are: Adobe Extension Manager CC 7.1.1.32 Mac OS X 10.9.1 Here are screenshots for error message and preference setting: Anyone have solution or workaround to this issue? Thanks

  • Minimum datafile size

    Hi, In my personal test database I have db_block_size set to 8192 bytes. A tablespace within this db has an initial extent set to 65536 and min extent is 1. How would I calculate the minimum size required for a datafile within this tablespace? Thanks

  • Tx2517ca From Windows Vista Home Premium 32-bit to Windows 7 Professional 32-bit

    Hi Everyone, I have a very specific question. I currently am running Windows Vista Home Premium 32-bit, but I want to use Windows 7. However, I want to use Windows 7 Professional 32-bit (rather than Windows 7 Home Premium) and understand that this wi

  • Passing Parameters from Scheduler to a Business Logic tranaction

    Does anyone have any tips or tricks regarding passing a value from the xMII Scheduler to a Business Logic Transaction Property. I can see the property in the Parameters section of the Scheduler, and I can enter a value against it.  But it doesn't eve