Searching for certain string with wildcards
Hi all,
I am trying to find the characters 'GW' in material description with these examples:
A) (GW51) Metal spec round --normally written this way
B) GW51) Metal spec round -- typing error omit the left brackett
C) (GW51 Metal Spec round -- typing error omit the right brackett
The codes works for A and C.
FIND FIRST OCCURENCE OF '(GW' in material_desc.
I am unable to use wildcards to find for GW*) for B using FIND statement.
Can anyone share with me using FIND for B ?
Thank you.
Joyce
use CP.
if material_desc CP '*GW*'.
write material_desc. " or do what ever you want.
endif.
Similar Messages
-
Trying to find out how to use my default browser better.
You can use a keyword search and add a keyword to a specific search engine in "Options/Preferences > Search" (click in the Keyword column of the search engine line).
*https://support.mozilla.org/kb/Search+bar -
Searching for a string in an excel file and return true if found.
How can I search for a string in an excel file and return true if found, its location and also a value.
The problem with searching an excel file is that it contains a header. It would be easiest if you just read the file into a LabVIEW array and search the array. This way you can also get the index and the value of the location.
-
Is Safari Find function flexible? (Search for inner strings of characters?)
I'm running 10.6.8 with Safari Version 5.1.7 (6534.57.2). I see that when you search a web page using the Safari Find function, you can only search for the beginnings of words, not for character strings within the words. Is it possible to expand the Find function's capability to search for inner strings of characters?
use command F or the edit menus to make the page search box visible - click the magnify/arrow icon at the left side of it - choose "contains" or "starts with".
-
Problem with searching for 'empty' emails with BAPI_BUPA_SEARCH
Dear ABAP'ers.
I have got a small problem with BAPI_BUPA_SEARCH.
I Use this BAPI to search for Business Partners with the Email condition.
I put rhe Email to lv_email variable, it works ok.
lv_email = ' '
CALL FUNCTION 'BAPI_BUPA_SEARCH'
EXPORTING
email = lv_email
TABLES
searchresult = lt_searchresult <= returns no BuPas
return = ls_bapiret2 .
But I need to have a possibility to search for such Business Partners who have got no email address. Unfortunatellu when I pass an empty lv_email to BAPI, it returns no Business Partners whilst such BuPas exist in database.
Is there some possibility to search for those BuPas who have got no email address assigned?
I will be thankful for help.
Regards,
P.Can you query ADR6 table where SMTP_ADDR = space.
and pick the PERSNUMBER or ADDRNUMBER and pick the Patners related to that .. -
How can I search for a string like a partial IP address in the global search
When searching for a string like "10.255." the global search finds messages containing "255" or "10" and both.
This happens no matter whether quotation is used or not.
When quotation is used it probably will match on the given order as well, but beeing in the timezone '+0100' the string "10" is always found first (in the email headers...).
Is there a way to tell the global search not to use '.' or any other character as whitespace?When searching for a string like "10.255." the global search finds messages containing "255" or "10" and both.
This happens no matter whether quotation is used or not.
When quotation is used it probably will match on the given order as well, but beeing in the timezone '+0100' the string "10" is always found first (in the email headers...).
Is there a way to tell the global search not to use '.' or any other character as whitespace? -
How do i search for a string in a txt file using java??
How do i search for a string in a txt file using java??
could you please help thanks
JRegular expressinos work just fine, especially when
searching for patterns. But they seem to be impying
it's a specific group of characters they're looking
for, and indexOf() is much faster than a regex.If he's reading from a file, the I/O time will likely swamp any performance hit that regex introduces. I think contains() (or indexOf() if he's not on 5.0 yet) is preferable to regex just because it's simpler. (And in the case of contains(), the name makes for a very clear, direct mapping between your intent and the code that realizes it.) -
Is it possible to search for multiple folders with the same name and...
Is it possible to search for multiple folders with the same name and then select them all and change the permissions on just those folders .i.e. Search for the budget folders in all client folders and lock them down to just the project managers. Without having to go to each folder and apply the permissions.
user11919409 wrote:
Is it possible to create a Clone database with the same name of source db using RMAN ...
yes
>
DB version is 11.2.0.2
Is it possible to clone a 11.2.0.2 database to 11.2.0.3 home location directly on a new server . If it starts in a upgrade mode , it is ok ....yes
Handle: user11919409
Status Level: Newbie (10)
Registered: Dec 7, 2009
Total Posts: 102
Total Questions: 28 (22 unresolved)
why do you waste time here when you rarely get any answers to your questions? -
Problem in app search for us store with ios 6 .
Hi ,
I developed an application which is available on all countries , But while searching for the app with app name in us store . It does not list the application on the first page , it show the application on second page Instead it shows a similar name recomendations and ask user to search that app instead on first page.
It seems to users that there is no such application exist with this name so they ommit the application.
But on all other store it show application without any issue 0
Please help me with this issue , I dont added my application name in the keyword list .Whether an older compatible version of the app is available in the store depends upon whether the developer of the app has made it available. As far as I know the app needs to be in your purchase history for it to work i.e. it is only via the Purchased tab in the App Store app on the device that you will get the prompt as to whether to download an older compatible version (if one is available), not from the main part of the store.
-
How to search for a string in ALL Function Modules source code
Hello,
I want to search for the string "HELLO" in all FUNCTION MODULES source code(FM, no reports/programs).
Is this possible? How?
Cheers,
Andyhi,
Execute RPR_ABAP_SOURCE_SCAN to search for a string in the code ... Press where-used-list button on the program which takes to the function group or the function module where it is used ..
Regards,
Santosh -
Search for a file with part of a filename in a given folder.
How can I search for a file with part of a filename in a given folder?
Or can I change the columns in Advanced Search so that the heading is filename?thanks, Michel. it had occurred to me to put a scratch tag on the folder, but I was hoping for an easier way. in future I'll do as you suggest though, because it's easier than what I have been doing.
daryl -
Logic for correcting strings with different barckets
can any one tell me the simple logic for correcting strings with different barckets
suppose say for eg.
(<{abc}>defgh) should evaluate to TRUE
(<{abc>} should evaluate to FALSE
Things to check is
1. number of opening brace and closing brace
2. Their position are correct or not
If the above two conditions are met than it is TRUE else FALSE
i guess string function with decode and lenght function or case should do but bit difficult to develop this logic in with sql
Thanks,
AAKHi,
Here is non REGEXP_REPLACE version ( Unfotunately dont have 10G to feel the power of REGEXP_REPLACE.
SQL> ed
Wrote file afiedt.buf
1 SELECT DECODE(SUM(CASE
2 WHEN Left = '(' AND Right =')' THEN 0+Count_Bracket
3 WHEN Left = '<' AND Right ='>' THEN 0+Count_Bracket
4 WHEN Left = '{' AND Right ='}' THEN 0+Count_Bracket
5 WHEN Left = '[' AND Right =']' THEN 0+Count_Bracket
6 ELSE
7 1
8 END
9 )
10 ,0,'Valid','Invalid')
11 FROM
12 (
13 SELECT SUBSTR(str,(len+1 - level),1) Left, SUBSTR(str,(len + level),1) Right, MOD(LENGTH(str),2)
14 FROM
15 (
16 SELECT
17 REPLACE(translate('&exp','abcdefgh',' '),' ') str,
18 LENGTH(REPLACE(translate('&exp','abcdefgh',' '),' '))/2 len
19 FROM DUAL
20 )
21 CONNECT BY LEVEL <= LEN
22* )
SQL> /
Enter value for exp: (<{abc>} )
old 17: REPLACE(translate('&exp','abcdefgh',' '),' ') str,
new 17: REPLACE(translate('(<{abc>} )','abcdefgh',' '),' ') str,
Enter value for exp: (<{abc>} )
old 18: LENGTH(REPLACE(translate('&exp','abcdefgh',' '),' '))/2 len
new 18: LENGTH(REPLACE(translate('(<{abc>} )','abcdefgh',' '),' '))/2 len
DECODE(
Invalid
SQL>
SQL> /
Enter value for exp: <{[()]}>
old 17: REPLACE(translate('&exp','abcdefgh',' '),' ') str,
new 17: REPLACE(translate('<{[()]}>','abcdefgh',' '),' ') str,
Enter value for exp: <{[()]}>
old 18: LENGTH(REPLACE(translate('&exp','abcdefgh',' '),' '))/2 len
new 18: LENGTH(REPLACE(translate('<{[()]}>','abcdefgh',' '),' '))/2 len
DECODE(
Valid
SQL>
SQL> /
Enter value for exp: ([{<>}])
old 17: REPLACE(translate('&exp','abcdefgh',' '),' ') str,
new 17: REPLACE(translate('([{<>}])','abcdefgh',' '),' ') str,
Enter value for exp: ([{<>}])
old 18: LENGTH(REPLACE(translate('&exp','abcdefgh',' '),' '))/2 len
new 18: LENGTH(REPLACE(translate('([{<>}])','abcdefgh',' '),' '))/2 len
DECODE(
Valid
SQL>
SQL> /
Enter value for exp: (<{abc}>defgh)
old 17: REPLACE(translate('&exp','abcdefgh',' '),' ') str,
new 17: REPLACE(translate('(<{abc}>defgh)','abcdefgh',' '),' ') str,
Enter value for exp: (<{abc}>defgh)
old 18: LENGTH(REPLACE(translate('&exp','abcdefgh',' '),' '))/2 len
new 18: LENGTH(REPLACE(translate('(<{abc}>defgh)','abcdefgh',' '),' '))/2 len
DECODE(
Valid
SQL> Note: Only thing needs to care is " translate('<{[()]}>','abcdefgh',' ') " if string has some additional characters please include here.
Regards -
Search for a String in a list of files
Could anyone please send me a java sample code which searches for a string from a list of files and returns me the filename and the line in which the Search String was found ?
Thanks in advance
RRSimple solution would be -
1. Traverse a directory for each file.
2. Read each file using Buffered Reader.
3. Use readLine() method to read a line.
4. Use String.indexOf to see if the data which you are looking for is there in the line or not.
5. If its there then store the line number and file name.
6. When the loop will end you will have list of file name and line number where the data which you are looking for is present. -
Search for a String within a document (Word, txt, doc) using JSP, JAVA
Hi
I have created a little application that uses combination of JSP and HTML. Users of this application can upload documents which are then stored on the server. I need to develop functionality where I can allows users to search for a string within a document. More precisely, user would type in some string in a text box and application will search all uploaded documents for that string and return the downloadable links to those documents that contains that string. I have never done this before. I was wondering if someone could get me started on this or point me to some thread where this idea is already discussed. Any Jave code exists for searching through documents??
Thanks for your help
Rizhttp://www.ibm.com/developerworks/java/library/j-text-searching.html
http://en.wikipedia.org/wiki/Full_text_search
Type these parameter in yahoo:+efficient text search
you will need something like openoffice library to read microsoft word document. -
Search for a string in SAP Script
Hello Experts,
Is there a way to search for a string in all Z SAP scripts, like ABAP source scan?
Regards,
Hari.Try using function module "READ_FORM" (you will have to write a simple z-program to find all SAPscripts in your system then use this function module to search the SAPScript Forms for a particular string).
All you have to do is supply the "FORM" name and it will return all of the Pages, Paragraphs, and Texts etc....
More specifically, try looping at the "FORM_LINES" internal table result and you will see the SAPScript text there....
Have fun !
Edited by: Christopher Twirbutt on Sep 16, 2009 12:43 AM
Maybe you are looking for
-
Free Goods sub item split in two line items
Sir, I give free good along with sale item ,but i want free goods quantity split in two lines ,so how I do that? Please help .
-
How to create package name what is the transaction code for creation
Hi, I want to create the package and also put that package in my program, how to put the package already saved program.
-
Time capsule -connecting, backup, file transfer
hello, i am very new to time capsule, and have the following issue i would like to get solved/understand: 1. when i want to access my time capsule disk through the normal finder window, clicking on the time capsule icon to the left, it appears that f
-
Bought a Skype phone but it doesn't work. How do I...
I bought a Skype telephone through internet from the 'Skype shop'. I tried to install it but it doesn't work. Someone else tried to install it too - someone used to those things - but it does not work. I need to send it back to Skype but how do I go
-
Food for thought: integrating SOAP in WLS6
Looking at the multitude of questions regarding SOAP and WLS 6, I think the time has come to make some kind of HOWTO on integrating SOAP (especially apache's rpcrouter) in WLS 6. Like many others, I also have a strong need to make my EJB's available