How to find out the exact string in a single line?
Hi,
I have some data in table like below.
CERTTEST
CERT TEST
CERT
My requirement is fetch only CERT as a output.
Please share your thoughts.
Thanks
Not sure what's the issue:
with t as (
select 'CERTTEST' str from dual union all
select 'CERT TEST' from dual union all
select 'CERT' from dual
-- end of data sample
select str
from t
where str = 'CERT'
STR
CERT
SQL> SY.
P.S. And if you need to seclect case insensitive CERT, use:
SQL> with t as (
2 select 'CERTTEST' str from dual union all
3 select 'CERT TEST' from dual union all
4 select 'CeRt' from dual union all
5 select 'CERT' from dual
6 )
7 -- end of data sample
8 select str
9 from t
10 where upper(str) = 'CERT'
11 /
STR
CeRt
CERT
SQL>
Similar Messages
-
How to find out the exact culpirit session
How to find out the exact culpirit client machine process to kill the session and release.
Thanks,We can not directly solve this mystery, only you can do so.
V$SESSION contains data for all connected sessions.
If no unique combination of fields exists that allows you to identify the culprit client session, then you are out of luck.
See you started this thread with the premise that 1 session connected to the DB is a problem.
OK, we will accept this as being true.
Now via SQL how/what can you SELECT so that only 1 row is returned & that row corresponds to "problem client" session?
Since this is YOUR system & not ours, only you can solve this mystery. -
How to find out the exact BAdI
hi all,
can any one tell me how to find out the exact badi for the given transactionHi,
Execute this report !
It gives you all the badis and user exits present for that particular transaction !
REPORT z_user_exits_n_badis.
TABLES:
tstc,
tadir,
modsapt,
modact,
trdir,
tfdir,
enlfdir,
sxs_attrt ,
tstct.
DATA: jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
DATA: field1(30).
DATA: v_devclass LIKE tadir-devclass.
PARAMETERS:
p_tcode LIKE tstc-tcode,
p_pgmna LIKE tstc-pgmna .
DATA:
wa_tadir TYPE tadir.
u2022 START-OF-SELECTION *
START-OF-SELECTION.
IF NOT p_tcode IS INITIAL.
SELECT SINGLE * FROM tstc WHERE tcode EQ p_tcode.
ELSEIF NOT p_pgmna IS INITIAL.
tstc-pgmna = p_pgmna.
ENDIF.
IF sy-subrc EQ 0.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'PROG'
AND obj_name = tstc-pgmna.
MOVE : tadir-devclass TO v_devclass.
IF sy-subrc NE 0.
SELECT SINGLE * FROM trdir
WHERE name = tstc-pgmna.
IF trdir-subc EQ 'F'.
SELECT SINGLE * FROM tfdir
WHERE pname = tstc-pgmna.
SELECT SINGLE * FROM enlfdir
WHERE funcname = tfdir-funcname.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'FUGR'
AND obj_name EQ enlfdir-area.
MOVE : tadir-devclass TO v_devclass.
ENDIF.
ENDIF.
SELECT * FROM tadir INTO TABLE jtab
WHERE pgmid = 'R3TR'
AND object IN ('SMOD', 'SXSD')
AND devclass = v_devclass.
SELECT SINGLE * FROM tstct
WHERE sprsl EQ sy-langu
AND tcode EQ p_tcode.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
SKIP.
IF NOT jtab[] IS INITIAL.
WRITE:/(105) sy-uline.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
u2022 Sorting the internal Table
SORT jtab BY object.
DATA : wf_txt(60) TYPE c,
wf_smod TYPE i ,
wf_badi TYPE i ,
wf_object2(30) TYPE c.
CLEAR : wf_smod, wf_badi , wf_object2.
u2022 Get the total SMOD.
LOOP AT jtab INTO wa_tadir.
AT FIRST.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 sy-vline,
2 'Enhancement/ Business Add-in',
41 sy-vline ,
42 'Description',
105 sy-vline.
WRITE:/(105) sy-uline.
ENDAT.
CLEAR wf_txt.
AT NEW object.
IF wa_tadir-object = 'SMOD'.
wf_object2 = 'Enhancement' .
ELSEIF wa_tadir-object = 'SXSD'.
wf_object2 = ' Business Add-in'.
ENDIF.
FORMAT COLOR COL_GROUP INTENSIFIED ON.
WRITE:/1 sy-vline,
2 wf_object2,
105 sy-vline.
ENDAT.
CASE wa_tadir-object.
WHEN 'SMOD'.
wf_smod = wf_smod + 1.
SELECT SINGLE modtext INTO wf_txt
FROM modsapt
WHERE sprsl = sy-langu
AND name = wa_tadir-obj_name.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WHEN 'SXSD'.
u2022 For BADis
wf_badi = wf_badi + 1 .
SELECT SINGLE text INTO wf_txt
FROM sxs_attrt
WHERE sprsl = sy-langu
AND exit_name = wa_tadir-obj_name.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
ENDCASE.
WRITE:/1 sy-vline,
2 wa_tadir-obj_name HOTSPOT ON,
41 sy-vline ,
42 wf_txt,
105 sy-vline.
AT END OF object.
WRITE : /(105) sy-uline.
ENDAT.
ENDLOOP.
WRITE:/(105) sy-uline.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No.of Exits:' , wf_smod.
WRITE:/ 'No.of BADis:' , wf_badi.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'No userexits or BADis exist'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'Transaction does not exist'.
ENDIF.
AT LINE-SELECTION.
DATA : wf_object TYPE tadir-object.
CLEAR wf_object.
GET CURSOR FIELD field1.
CHECK field1(8) EQ 'WA_TADIR'.
READ TABLE jtab WITH KEY obj_name = sy-lisel+1(20).
MOVE jtab-object TO wf_object.
CASE wf_object.
WHEN 'SMOD'.
SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
WHEN 'SXSD'.
SET PARAMETER ID 'EXN' FIELD sy-lisel+1(20).
CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
ENDCASE.
Thanks
Sarada -
How to find out the exact version of web server 7.0
Dear all,
I am using currently web server 7.0 and in error logs its shows me following version
Sun Java System Web Server 7.0 B12/04/2006 10:15
what i need how to find out what exact version i am using in my webserver 7.0 is it update 6 or update 7 or update 8
how to find out what exact version i am using in web server 7.0.....
thanks and regards
tigerWeb Server tells you specifically which Update release in the string you quote (in your string you are running the original release of Web Server 7.0).
My server is currently running Web Server 7.0 Update 7. The startup string looks like:
[19/Jan/2010:11:18:27] info (15407): CORE1116: Sun Java System Web Server 7.0U7 B12/14/2009 22:58 -
How to find out the exact time in UK with daylight savings.
Hi,
how can i get the exact time in UK even if the daylight savings time is implemented in UK..,
now my code is implemented for IST ,how can i get the BST timings?
Thankx.the setTimeZone method of SimpleDateFormat (actually inherited from DateFormat). Use it to set it to your timezone when parsing or formatting a date string for your timezone and set it to the UK timezone when parsing or formatting a date string for their timezone.
Edit: IOW SimpleDateFormat was the answer, not a question. -
How to find out the exact reason for backordered order in oracle apps R12
Hi,
I am new to OM module.I booked an order and trying to do "pick release" the booked order but i couldn't do so, because the order is getting backordered.
These are the things i checked
1.On-hand quantity for the particular item i am booking is sufficient enough
2.Item is in M1 org and onhand quantity is also in same org.
Can you please help me how to find the exact reason for my order getting backordered.
Regards
Sandeep.GHi Sandeep,
Reasons for pick release resulting in back ordered can be found here:
Reasons for a Sales Order to get Backordered!
Failing pick release, orders getting backordered and other common issues with picking.
Please review notes:
Cannot Pick Release Items, Completes with Warning and the Item is Backordered. (Doc ID 1240404.1)
Pick Release Process Completes In Warning Line Gets Backordered Though Onhand Is Present (Doc ID 1285514.1)
Pick Release Backorders Sales Order Lines, Error in Log File "No Mtl_Sales_Order ID found for oe header" (Doc ID 398385.1)
Reservation Remains After Pick Release Of Backordered Move Order (Doc ID 754518.1)
In addition, please review:
What is Back Order in OM? How are Backorders Handled | Oracle Apps
Thanks &
Best Regards, -
How do I find out the exact path of each and every file that LabVIEW finds and loads into memory for a given top level vi? There is probably a trivial, easy way to get this info, but I have not yet found it! Thanks..
Or if you want to grab all the paths programatically, try the attached VI.
Open the top level that you want all the paths from and close all others, then open the
attached and run it. It will return an array of all the VIs that the VI
in question uses, including vi.lib VIs. You can filter these as well if
you like.
Ed
Message Edited by Ed Dickens on 08-01-2005 07:01 PM
Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
Attachments:
Get all paths.vi 29 KB -
How to find out the locale setting in a browser?
In my Java web project, the multi-lingual issue on the JSP pages is handled by JSTL. It works fine so far for any input messages. However, some messages come from the container. It is needed to find out the browser's country and language settings inside of the container. My question is how to find out the settings?
Thanks in advance.
v.Hi, this I found on James' website--see http://www.rf.net/~james/perli18n.html#Q28
Q28. Can web servers automatically detect the language of the browser and display the correct localized page?
A28. Yes. HTTP/1.1 defines the details of how content negotiation works, including language content.
WWW browsers send an Accept-Language request header specifying which languages are preferred for responses. This technique works fairly well, although some versions of Netscape Navigator send an improperly formatted request parameter. Also, switching language preferences in either Navigator or IE 4 doesn't always "take" without first deleting a language hint.
Few sites do content-negotiation on language, and interestingly enough I do not know of any major portals doing this. One site that does is Sun's documentation library at SunDocs. Debian.org does a very nice job of using Apache content negotiation wih languages and also has some nice help info too on Setting the Default Language.
Apache's Content Negotiation features will select the right page to return, whether HTML or image file. Annoyingly, the match logic is very literal, so a browser request for en-us will not match a server entry of en except as a last resort. Any other exact match will win over en, even if en-us was first preference.
There are 2 ways of doing content negotiation with Apache: type or variant maps and multiviews.
Variant Maps
In httpd.conf, disable Options Multiviews if configured and add
AddType type-var var
DirectoryIndex index.var
Then create an index.var file like this:
URI: start; vary="type,language"
URI: index.html.en
Content-type: text/html
Content-language: en-GB
URI: index.html.en
Content-type: text/html
Content-language: en-US
URI: index.html.en
Content-type: text/html
Content-language: en
URI: index.html.fr
Content-type: text/html
Content-language: fr-CA
URI: index.html.fr
Content-type: text/html
Content-language: fr
URI: index.html.es
Content-type: text/html
Content-language: es
Multiviews
The multiviews technique works like this. This does add extra server load, as each content directory must be scanned for the variant document names.
index.html is localized into variant documents such as:
index.html.en (or index.en.html)
index.html.fr
index.html.es
index.html (or index.html.html as a reader has recommended) symlinked to one of the above as the last resort.
Here's an example of http.conf directives for this:
# in httpd.conf
AddLanguage en .en
AddLanguage fr .fr
AddLanguage es .es
# LanguagePriority allows you to give precedence to some languages
# in case of a tie during content negotiation.
# Just list the languages in decreasing order of preference.
LanguagePriority en es fr de pt
Options Multiviews
# end of httpd.conf fragment
Starting in Apache 1.2, you may also create documents with multiple language extensions.
O'Reilly's Apache - The Definitive Guide, Chapter 6
ApacheWeek article on Language Negotiation
Another ApacheWeek article on Language Negotiation -
Hi,
In selection screen (parameter) user will give input TXT file from presentation server to upload to SAP. I need to capture the file name only but not the path and need to concatenate with date stamp and need to download error log in XLS file to presentation server.
How to find out the file name from selection screen?
I searched SCN threads but not found relavant solution.
Thanks,
R KumarHi
This code gets only filename from selection screen :
REPORT x.
PARAMETERS p_file(100).
DATA : gv_full_path LIKE ibipparms-path,
gv_full_path_string TYPE string,
gv_filename(100),
gv_file_ext(3).
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
Ask user to select file with a popup :
CALL FUNCTION 'F4_FILENAME'
IMPORTING
file_name = gv_full_path.
Get filename from path :
gv_full_path_string = gv_full_path.
CALL FUNCTION 'CH_SPLIT_FILENAME'
EXPORTING
complete_filename = gv_full_path_string
IMPORTING
extension = gv_file_ext
name = gv_filename.
CONCATENATE gv_filename '.' gv_file_ext INTO gv_filename.
p_file = gv_filename.
I hope it helps. -
How to find out the image size?
How to find out the image size values(Width and height) in illustrator CS3 using any script. I tried but i got only the document height and width. I need to find out the image BoundingBox value of width and height. Kindly advice me.
Try this.
tell application "Adobe Illustrator"
set heightImage to get height of raster item 1 of current layer of current document
set widthImage to get width of raster item 1 of current layer of current document
display dialog (heightImage & " X " & widthImage) as string
end tell
JaiMS -
How to find out the IPS and DS Service Pack and patch levels in windows server.
Hi,
I have installed the Information Platform Services 4.0 and Data services 4.0 in windows QA system, now we need to install the same version of IPS & DS in windows PRD system for this how could we find out the exact version of IPS & DS ( Service pack and patch levels ) and where we can find the same.
Many Thanks,
SudheerHi Sudheer,
On a Windows Operating Systems you can check the “Programs and Features” in control panel.You can see a list of both the Name and Version number of SAP BusinessObjects that is installed.
option 2:
Open CMC go to Settings. In the properties, you will find the Product Version.
Please check below SAP notes for more information.
http://service.sap.com/sap/support/notes/1602088
Regards,
Pavan -
Does anyone have any idea how to find out the version of weblogic plugin
Does anyone have any idea about how to find out the current version of weblogic plugin used to connect from webserver to weblogic server?
I could not find version in plugin directory.
it's the same one that came prepackaged with Weblogic 9.2. we haven't change it.
Sun One 6.1 SP6
Weblogic 9.2
Solaris 5.10
Edited by: 985608 on 01-feb-2013 8:20
Edited by: 985608 on 04-feb-2013 6:25
Edited by: 985608 on 04-feb-2013 6:27Hi,
You can find version of weblogic plugin using below command.
strings <plugin module file> | grep -i wlsplugins
Mark if this helps.
Regards,
Kishore -
How to find out the query is accessing the DB tables or not
Hi Gurus ,
How to find out the query is accessing the DB tables or not.
Where exactly we will find this information in SAP BW.
I know that this information we can find in ST03. But where exactly we will find the query information along with DB information?Lakshmi
Activate BI Technical Content for Query analysis and run query against that.
Hope this helps
Thanks
sat -
How to find out the password of system?
Dear all,
I would like to know how to find out the password of system as I forgot it?
Thanks a lot
Francis SZESince oracle passwords are encrypted so you cant see actual password. But you can use following procedure to login to oracle with system user.
For any account issue this statement.
select username,password from dba_users where username='SYSTEM';
EMDU27ANS729273
this will give you the password in encrypted format.
Now you can change that password for temporary purpose.
alter user system identified by test;
Now login and do your work.
After login you can issue this statement to reset the password to its original value.
Alter user system identified by values 'EMDU27ANS729273';
You have to enter the same encrypted password in the quoted string which you had found in 1st statement.
Cheers. -
How to find out the user-exits?
hi.
how to find out the user-exits?
regards
eswar.Hi,
*& Report ZEXITFINDER
*report zexitfinder.
*& Enter the transaction code that you want to search through in order
*& to find which Standard SAP User Exits exists.
*& Tables
tables : tstc, "SAP Transaction Codes
tadir, "Directory of Repository Objects
modsapt, "SAP Enhancements - Short Texts
modact, "Modifications
trdir, "System table TRDIR
tfdir, "Function Module
enlfdir, "Additional Attributes for Function Modules
tstct. "Transaction Code Texts
*& Variables
data : jtab like tadir occurs 0 with header line.
data : field1(30).
data : v_devclass like tadir-devclass.
*& Selection Screen Parameters
selection-screen begin of block a01 with frame title text-001.
selection-screen skip.
parameters : p_tcode like tstc-tcode obligatory.
selection-screen skip.
selection-screen end of block a01.
*& Start of main program
start-of-selection.
Validate Transaction Code
select single * from tstc
where tcode eq p_tcode.
Find Repository Objects for transaction code
if sy-subrc eq 0.
select single * from tadir
where pgmid = 'R3TR'
and object = 'PROG'
and obj_name = tstc-pgmna.
move : tadir-devclass to v_devclass.
if sy-subrc ne 0.
select single * from trdir
where name = tstc-pgmna.
if trdir-subc eq 'F'.
select single * from tfdir
where pname = tstc-pgmna.
select single * from enlfdir
where funcname = tfdir-funcname.
select single * from tadir
where pgmid = 'R3TR'
and object = 'FUGR'
and obj_name = enlfdir-area.
move : tadir-devclass to v_devclass.
endif.
endif.
Find SAP Modifactions
select * from tadir
into table jtab
where pgmid = 'R3TR'
and object = 'SMOD'
and devclass = v_devclass.
select single * from tstct
where sprsl eq sy-langu
and tcode eq p_tcode.
format color col_positive intensified off.
write:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
skip.
if not jtab[] is initial.
write:/(95) sy-uline.
format color col_heading intensified on.
write:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
write:/(95) sy-uline.
loop at jtab.
select single * from modsapt
where sprsl = sy-langu and
name = jtab-obj_name.
format color col_normal intensified off.
write:/1 sy-vline,
2 jtab-obj_name hotspot on,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
endloop.
write:/(95) sy-uline.
describe table jtab.
skip.
format color col_total intensified on.
write:/ 'No of Exits:' , sy-tfill.
else.
format color col_negative intensified on.
write:/(95) 'No User Exit exists'.
endif.
else.
format color col_negative intensified on.
write:/(95) 'Transaction Code Does Not Exist'.
endif.
Take the user to SMOD for the Exit that was selected.
at line-selection.
get cursor field field1.
check field1(4) eq 'JTAB'.
set parameter id 'MON' field sy-lisel+1(10).
call transaction 'SMOD' and skip first screen.
Regards
Maybe you are looking for
-
9iAS : WHY THE HELL I NEED A CDROM ?
Anyone wanna to laugh ? I've here one computer that it does not have a CD-ROM! I unzip 9iAS disks installation to the HARDDRIVE, and i try to install just clicking on ISETUP from the the 1st disk! I get an error "NO CD-ROM available"! WHY THE HELL i
-
Audio in Advance Action Doesn't Execute from "On Success" in Quiz Question
In each of my quiz slides, I have set the On Success action to Execute an Advanced Action. In the Advanced Action, I have two lines. The first line is to run audio that says something like "That's Correct - great work - click any key to continue" a
-
Registration key missing for Documents to go premium
I just purchased Documents To Go Premium, and I supposed to get the registration and activation key, but the only thing I got is the purchase order. I can not find any help out there. Please help.
-
Compaq Presario CQ61 Hard Disc Size.
I have a Compaq Presario CQ61. It currently has a Hitachi Travelstar 5K500 B.320 gb Hard Disc. Can I swap in a 5K500 B.500 gb Hard Disc ?
-
I want to generate my JSPs using XSLT. We have many pages that have very similar layout, just different content. Therefore, I would like to create a XSLT stylesheet that contains JSP tags, so that I can use XSLT to generate the actual JSP. However, t