Not getting the required output:
BID BNAME BAUTHNAME
687 the haunted house steve breckman
692 the adventureof reny steve breckman
672 the adventureof rosy steve breckman
672 the adventureof niel steve breckman
677 the dog zone steve houstin
BID SID BTAKE BRET
692 123 22-AUG-11 30-AUG-11
672 124 22-SEP-11 30-SEP-11
677 127 22-OCT-11 30-OCT-11
677 129 22-DEC-11 30-DEC-11
create or replace procedure book is
cursor cur is select count(b.bid) bidd,b.bname bnn,bd.btake from books b,booksdate bd where b.bid=bd.bid group by b.bname,bd.btake;
begin
for rec in cur
loop
dbms_output.put_line(rec.bnn||'has been purchased'||rec.bidd||'times');
end loop;
end;
the o/p should look like
the bookname purchased 2 times
the bookname purchased 1 time
can anyone jus modify it?
Maybe NOT TESTED! remember the [url http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:73891904732164]mantra
with
books as
(select 687 bid,'the haunted house' bname,'steve breckman' bauthname from dual union all
select 692,'the adventure of reny','steve breckman' from dual union all
select 672,'the adventure of rosy','steve breckman' from dual union all
select 672,'the adventure of niel','steve breckman' from dual union all
select 677,'the dog zone','steve houstin' from dual
borrowing as
(select 692 bid,123 sid,to_date('22-AUG-11','DD-MON-YY') btake,to_date('30-AUG-11','DD-MON-YY') bret from dual union all
select 672,124,to_date('22-SEP-11','DD-MON-YY'),to_date('30-SEP-11','DD-MON-YY') from dual union all
select 677,127,to_date('22-OCT-11','DD-MON-YY'),to_date('30-OCT-11','DD-MON-YY') from dual union all
select 677,129,to_date('22-DEC-11','DD-MON-YY'),to_date('30-DEC-11','DD-MON-YY') from dual
select b.bname || ' borrowed ' || to_char(c.the_count) || decode(c.the_count,1,' time',' times')
from books b,
(select bid,count(*) the_count
from borrowing
group by bid
) c
where b.bid = c.bidRegards
Etbin
Similar Messages
-
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
package Exp4;
import java.awt.Color;
import java.awt.GridLayout;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import javax.swing.JComboBox;
import javax.swing.JFrame;
* @author Gursimran
public class combox extends JFrame implements ItemListener{
public combox()
JComboBox cb;
setLayout(new GridLayout(10,10));
cb= new JComboBox<>();
cb.addItem("Red");
cb.addItem("Green");
cb.addItem("Blue");
add(cb);
cb.addItemListener(this);
setVisible(true);
setSize(400,400);
public static void main(String[] args)
combox obj=new combox();
@Override
public void itemStateChanged(ItemEvent e)
if(e.getItemSelectable().equals(0))
this.getContentPane().setBackground(Color.red);
else if(e.getItemSelectable().equals(1))
this.getContentPane().setBackground(Color.green);Please post the exact error message you get.
-
PAYABLES NOT GETTING THE REPORT OUTPUT IN PDF AFTER APPLYING RUP5 R12
Hi All,
RDBMS:10.2.0.3.0
Oracle Apps :12.0.4
OS:AIX 5.3
Problem Description:
We are presently facing an issue in Payables not getting the report output in PDF esp for the reports "Invoice Register", Invoice Hold Report and also other reports. We were able to generate the reports till our last test performed on last Thursday. This instance was cloned over the last weekend and probably the new upgrade to RUP5 R12,would have impacted it.
Concurrent Programs submitted are completed normal but on clicking "view output" results in Blank PDF output.
The error message what was shown is as below:
"Adobe Reader could not open 'AcrC.tmp' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)".
Where could we locate ther above 'AcrC.tmp' of Adobe Reader..
could anyone please share such an experience encountered for resolution..
Would appreciate an early response..
Thanks for your time!
Regards,I suggest you speak to your DBA/sysadmin. This is not likely to be a reports problem.
Check that you can see the output from apps through the viewer (the report may not hav output anything)
Check whether you can print anything on that printer from apps.
May also be worth checking to see if you can print to another printer from this report. -
HIII ,
AM DOING AN APPLICATION IN WHICH I AM TRYING TO INSERT VALUES IN A TABLE(CREATED THRU JAVA DICTIONARY), USING EJBS(ENTITY BEAN AND SESSION BEAN) AND COMMAND BEAN..AND WEBDYNPRO....
AFTER DEPLOYMENT EVRYTHNG IS RUNNING FINE BUT VALUES NOT GETTING ADDED IN THE TABLE...
THE CODE FOR THE "ADD" BUTTON IS :
wdContext.currentEmp_cmdElement().modelObject().add(wdContext.currentEmp_cmdElement().getEmpno(),wdContext.currentEmp_cmdElement().getEmpname());
THE CODE FOR ADD function IN COMMANDBEAN IS
public void add(String empno,String empname){
try {
local.createdata(empno,empname);
} catch (Exception e) {
e.printStackTrace();}
PLZZ DO HELP OUT!!!try { aPreparedStatement.close();
if(dmd!=null)
dmd = null;
if(con!=null)
con.close();
catch (Exception e)
e.printStackTrace();
}instead of catching the last error i printed it and it came up with an error of nullPointerException
for the line of code
try { aPreparedStatement.close();how can i fix this error please
and thank you -
Not getting the complete output in the crontab script
Hi All,
I am running a script to find the CPU and memory utilization of the Oracle 10g server. Script name is atul.sh. When i run this script then it gives the desired output as mentioned below:
bash-3.00$ cat ./SCRIPTS/atul.sh
*A=`date| cut -d" " -f1-9; top -d 1| awk '/^CPU states/ {print $3,$5,$7,$9} /^Mem/ {print $2,$3,$4,$5,$6,$7,$8,$9,$10}'*
echo $A
bash-3.00$
bash-3.00$ ./SCRIPTS/atul.sh >> /oracle/SCRIPTS/toplog
bash-3.00$ cat /oracle/SCRIPTS/toplog
Thu Sep 8 11:43:49 IST 2011 99.5% 0.0% 0.5% 0.0% 2048M phys mem, 77M free mem, 8193M total swap,
bash-3.00$
However, when i run this script through crontab, it gives incomplete output. It only display the date and not the cpu and memory utilization.:
bash-3.00$ crontab -l
* * * * * /oracle/SCRIPTS/atul.sh >> /oracle/SCRIPTS/toplog
bash-3.00$
bash-3.00$ cat /oracle/SCRIPTS/toplog
Thu Sep 8 11:43:49 IST 2011 99.5% 0.0% 0.5% 0.0% 2048M phys mem, 77M free mem, 8193M total swap,
Thu Sep 8 11:44:00 IST 2011
Thu Sep 8 11:45:00 IST 2011
bash-3.00$
Kindly, provide me the soluton.
Edited by: 883925 on Sep 7, 2011 11:24 PM
Edited by: 883925 on Sep 7, 2011 11:29 PMThanks everyone for the reply.
*@DUDE*
Still problem is not solved. I have used the command given by you but problem is same..*its displaying only date when scheduled from crontab*.
bash-3.00$ crontab -l
* * * * * /oracle/SCRIPTS/sm >> /oracle/SCRIPTS/memorylog.csv
* * * * * /oracle/SCRIPTS/sc >> /oracle/SCRIPTS/cpulog.csv
* * * * * /oracle/SCRIPTS/atul.sh >> /oracle/SCRIPTS/toplog.csv
bash-3.00$
bash-3.00$ cat atul.sh
*A=`date| cut -d" " -f1-9; top -d 1 -n 1 | awk '/^Cpu/ {print $3,$5,$7,$9} /^Mem/ {print $2,$3,$4,$5,$6,$7,$8,$9,$10}'`*
echo $A
bash-3.00$
bash-3.00$ cat toplog.csv
Fri Sep 9 10:06:00 IST 2011
Fri Sep 9 10:07:00 IST 2011
Fri Sep 9 10:08:00 IST 2011
bash-3.00$
However, expected output is that it should display the CPU and memory utilization along with the date.
bash-3.00$ ./atul.sh
Fri Sep 9 10:08:52 IST 2011 2048M phys mem, 33M free mem, 8193M total swap,
bash-3.00$
Edited by: 883925 on Sep 8, 2011 9:43 PM -
Not getting the expected output in report, run throughapps
hi,
when i run the report through apps, there are some records missing. But, i executed the same query in TOAD, which is used in the data model of the report, and i got the expected output. But, the same, when run through apps, not giving the result.
Can anybody please help me in this regard?
Thanks,
maschenderYou should probably ask in
PL/SQL
Note: Make Sure you post your table structure, your sample query and expected output. -
Where do I apply this CSS file in the login page to get the required output
Hi,
I am an apex beginner. I got this html text from a 'Google Blank Search' for beautifying the login page. I have no idea where to copy and paste this CSS file in the 'login' edit page. If I open 'Edit Page template option, I can see page 'Definition' , 'Header' and 'Footer' and so many codes. In which part of these areas I Should copy this script to get the output.
Thanks in advance...
Please find the script below.
html, body {
font:normal 12px verdana;
padding:0;
border:0 none;
overflow:hidden;
height:100%;
body {
padding: 0px;
background-image:url(&LOGIN_BACKGROUND_IMAGE.);
background-repeat:repeat;
background-position:center;
background-attachment: fixed;
text-align:center;
margin:0 auto;
vertical-align:middle;
#Messages {
width:345px;
margin-left:-180px;
position:absolute;
top:50%;
left:50%;
margin-top:-35px;
#BoxBody {
width:345px;
margin-left:-170px;
position:absolute;
top:50%;
left:50%;
margin-top:30px;
Edited by: user13561710 on Jan 9, 2011 5:32 PM
Edited by: user13561710 on Jan 9, 2011 5:33 PM
Edited by: user13561710 on Jan 9, 2011 5:37 PMHi,
Edit the page and add the styles into the HTML Header setting. Also ensure that the styles are enclosed within STYLE tags:
<style type="text/css">
html, body {
margin-top:30px;
</style>Andy -
Hi Guys,,I am not getting the right output?Plz help
Hi Guys,
Here is my code..
ELSEIF p_versb = 'W2'.
CONCATENATE lv_perxx '08' INTO lv_date3. (20090708)
CONCATENATE lv_perxx '15' INTO lv_date4. (20090715)
SELECT mseg~mblnr
mseg~bwart
mseg~matnr
mseg~lgort
mseg~menge
FROM mseg
INNER JOIN mkpf
ON msegmblnr = mkpfmblnr
INTO TABLE t_temp
FOR ALL ENTRIES IN t_firmplan
WHERE mseg~matnr = t_firmplan-matnr (490045,500001)
AND mkpf~budat GE lv_date3
AND mkpf~budat LE lv_date4
AND mseg~bwart IN ('101', '102')
AND mseg~werks = t_firmplan-werks. (werks = 1100)
Plz suggest where I m wrong ?
Thanks
SteveHi,
Check the
SELECT mseg~mblnr
mseg~bwart
mseg~matnr
mseg~lgort
mseg~menge
FROM mseg
INNER JOIN mkpf
ON mseg~mblnr = mkpf~mblnr
INTO TABLE t_temp
FOR ALL ENTRIES IN t_firmplan
WHERE mseg~matnr = t_firmplan-matnr (490045,500001) " Check the matnr value in the MSEG table if it storing with
" leading zero's then use the conversion exit to get the leading zero's
" in t_firmplan-matnr
AND mkpf~budat GE lv_date3
AND mkpf~budat LE lv_date4
AND mseg~bwart IN ('101', '102')
AND mseg~werks = t_firmplan-werks. (werks = 1100) -
How to fetch the data from databse table and get the required output
Hi,
I have made a project that connects CEP to database table but i m getting some problem in fetching the data from database.
From the following code :
If the where condition is removed then the application runs fine but i am still not able to fetch the data from the table because it is not showing any output.
Can anyone please suggest me that how to write WHERE statement correctly and how i will be able to see the output.
Following is the config.xml for processor:
======================================
<?xml version="1.0" encoding="UTF-8"?>
<wlevs:config xmlns:wlevs="http://www.bea.com/ns/wlevs/config/application"
xmlns:jdbc="http://www.oracle.com/ns/ocep/config/jdbc">
<processor>
<name>JDBC_Processor</name>
<rules>
<query id="q1"><![CDATA[
SELECT STOCK.SYMBOL as symbol, STOCK.EXCHANGE as exchange
FROM ExchangeStream [Now] as datastream, STOCK
WHERE datastream.SYMBOL = datastream.SYMBOL ]]></query>
</rules>
</processor>
<jms-adapter>
<name>JMS_IN_Adapter</name>
<jndi-provider-url>t3://CHDSEZ135400D:7001</jndi-provider-url>
<destination-jndi-name>jms.TestKanikaQueue</destination-jndi-name>
<user>weblogic</user>
<password>welcome1</password>
</jms-adapter>
</wlevs:config>
Following is the assembly file:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:osgi="http://www.springframework.org/schema/osgi"
xmlns:wlevs="http://www.bea.com/ns/wlevs/spring" xmlns:jdbc="http://www.oracle.com/ns/ocep/jdbc"
xmlns:spatial="http://www.oracle.com/ns/ocep/spatial"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/osgi
http://www.springframework.org/schema/osgi/spring-osgi.xsd
http://www.bea.com/ns/wlevs/spring
http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd
http://www.oracle.com/ns/ocep/jdbc
http://www.oracle.com/ns/ocep/jdbc/ocep-jdbc.xsd
http://www.oracle.com/ns/ocep/spatial
http://www.oracle.com/ns/ocep/spatial/ocep-spatial.xsd">
<wlevs:event-type-repository>
<wlevs:event-type type-name="StockEvent">
<wlevs:properties>
<wlevs:property name="SYMBOL" type="byte[]" length="16" />
<wlevs:property name="EXCHANGE" type="byte[]" length="16" />
</wlevs:properties>
</wlevs:event-type>
<wlevs:event-type type-name="ExchangeEvent">
<wlevs:class>com.bea.wlevs.event.example.JDBC_CEP.ExchangeEvent</wlevs:class>
</wlevs:event-type>
<wlevs:event-type type-name="StockExchangeEvent">
<wlevs:properties>
<wlevs:property name="symbol" type="byte[]" length="16" />
<wlevs:property name="price" type="byte[]" length="16" />
<wlevs:property name="exchange" type="byte[]" length="16" />
</wlevs:properties>
</wlevs:event-type>
</wlevs:event-type-repository>
<bean id="readConverter" class="com.bea.wlevs.adapter.example.JDBC_CEP.Adapter_JDBC" />
<bean id="outputJDBCBean" class="com.bea.wlevs.bean.example.JDBC_CEP.OutputBean_JDBC">
</bean>
<wlevs:adapter id="JMS_IN_Adapter" provider="jms-inbound">
<wlevs:listener ref="ExchangeStream" />
<wlevs:instance-property name="converterBean"
ref="readConverter" />
</wlevs:adapter>
<wlevs:processor id="JDBC_Processor" advertise="true">
<wlevs:listener ref="OutputChannel" />
<wlevs:table-source ref="STOCK" />
</wlevs:processor>
<wlevs:channel id="ExchangeStream" event-type="ExchangeEvent" advertise="true">
<wlevs:listener ref="JDBC_Processor" />
</wlevs:channel>
<wlevs:channel id="OutputChannel" event-type="StockExchangeEvent"
advertise="true">
<wlevs:listener ref="outputJDBCBean" />
</wlevs:channel>
<wlevs:table id="STOCK" event-type="StockEvent"
data-source="StockDs" table-name="STOCK" />
<wlevs:table id="STOCK_EXCHANGE" event-type="StockExchangeEvent"
data-source="StockDs" table-name="STOCK_EXCHANGE" />
</beans>
ExchangeEvent.java:
package com.bea.wlevs.event.example.JDBC_CEP;
public class ExchangeEvent {
public String SYMBOL;
public String symbol;
public String exchange;
public ExchangeEvent() {
public String getSYMBOL() {
return SYMBOL;
public void setSYMBOL(String sYMBOL) {
SYMBOL = sYMBOL;
public String getSymbol() {
return symbol;
public void setSymbol(String symbol) {
this.symbol = symbol;
public String getExchange() {
return exchange;
public void setExchange(String price) {
this.exchange = price;
Adapter Class:
package com.bea.wlevs.adapter.example.JDBC_CEP;
import com.bea.wlevs.adapter.example.JDBC_CEP.MyLogger;
import com.bea.wlevs.adapters.jms.api.InboundMessageConverter;
import java.text.DateFormat;
import java.util.Date;
import com.bea.wlevs.adapters.jms.api.MessageConverterException;
import com.bea.wlevs.event.example.JDBC_CEP.ExchangeEvent;
import javax.jms.JMSException;
import javax.jms.Message;
import javax.jms.TextMessage;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
public class Adapter_JDBC implements InboundMessageConverter{
@SuppressWarnings("unchecked")
public List convert(Message message) throws MessageConverterException, JMSException {
Random rand = new Random();
int unique_id = rand.nextInt();
DateFormat dateFormat;
dateFormat = DateFormat.getTimeInstance();
dateFormat.format(new Date());
MyLogger.info(unique_id + " CEP Start Time is: " + dateFormat.format(new Date()));
System.out.println("Message from the Queue is :"+ message);
TextMessage textMessage = (TextMessage) message;
String stringMessage = textMessage.getText().toString();
System.out.println("Message after getting converted into String is :"+ stringMessage);
String[] results = stringMessage.split(",\\s*"); // split on commas
ExchangeEvent event1 = new ExchangeEvent();
event1.setSYMBOL(results[0]);
List events = new ArrayList(2);
events.add(event1);
return events;
Output Bean Class :
package com.bea.wlevs.bean.example.JDBC_CEP;
import com.bea.wlevs.ede.api.StreamSink;
import com.bea.wlevs.event.example.JDBC_CEP.ExchangeEvent;
import com.bea.core.datasource.DataSourceService;
public class OutputBean_JDBC implements StreamSink{
public void onInsertEvent(Object event) {
if (event instanceof ExchangeEvent) {
ExchangeEvent cacheEvent = (ExchangeEvent) event;
System.out.println("Symbol is: " + cacheEvent.getSymbol());
System.out.println("Exchange is: " + cacheEvent.getExchange());
System.out.println(DataSourceService.class.getClass());
Kindly let me know if you need further info.Do you have StockDs configured in your server config.xml?
I think the query should look more like this:
SELECT stocks.SYMBOL, stocks.EXCHANGE
FROM STOCK as stocks, ExchangeStream [Now] as datastream WHERE stocks.SYMBOL = datastream.SYMBOL
Thanks
andy -
input :
S.No Description Qty. Units Rate(Rs.) Value(Rs.)
1 Akon 1 Nos 3700 3,700
2 Lester 1 Nos 1600 1,600
3 Aamp 31 Rmt 270 8,370
Gross Total 13,670
The above Total include Services Tax Amount of Rs 536
Total Invoice Value I 13,670
If i give this input...this may be anywhere in the text file.means.but i would like to extract this information...Here is my code:
import java.io.File;
import java.io.FileNotFoundException;
import java.util.Formatter;
import java.util.Scanner;
public class StringBuilderEx {
static String Sno,Qty,Description,Unit,Rate,Value;
public static void main(String args[]) throws FileNotFoundException{
File file = new File("D:\\CSV\\tab2.txt");
StringBuilder sb = new StringBuilder();
Scanner scanner = new Scanner(file);
if(scanner.hasNextLine())
scanner.nextLine();
while (scanner.hasNextLine()) {
Sno = scanner.next();
Description = scanner.next();
Qty = scanner.next();
Unit = scanner.next();
Rate = scanner.next();
Value = scanner.next();
Formatter fmt=new Formatter();
fmt.format("%5$2S,%4$2s,%3$2s,%2$2s,%1$2s",Value,Rate,Qty,Description,Sno );
System.out.println("Sno :"+Sno);
System.out.println("Description :"+Description);
System.out.println("Qty :"+Qty);
System.out.println("Rate :"+Rate);
System.out.println("Value :"+Value);
System.out.println();
}i am getting wrong output...
Here is My Output:
Sno :1
Description :Aviation
Qty :Lamp
Rate :Nos
Value :3700
Sno :3,700
Description :2
Qty :Lighting
Rate :1
Value :Nos
Sno :1600
Description :1,600
Qty :3
Rate :Lamp
Value :Cable
Sno :31
Description :Rmt
Qty :270
Rate :Gross
Value :Total
Sno :13,670
Description :The
Qty :above
Rate :include
Value :Services
Sno :Tax
Description :Amount
Qty :of
Rate :536
Value :Total
Sno :Invoice
Description :Value
Qty :I
Rate :Now
Value :Claimed
Sno :100%
Description :of
Qty :Invoice
Rate :13,670
Value :(Rupees
Sno :Thirteen
Description :Thousand
Qty :Six
Rate :and
Value :Seventy
Exception in thread "main" java.util.NoSuchElementException
at java.util.Scanner.throwFor(Scanner.java:838)
at java.util.Scanner.next(Scanner.java:1347)
at StringBuilderEx.main(StringBuilderEx.java:25)Can anybody help me inthis???If i give this input...this may be anywhere in the text file.means.but i would like to extract this information...Here is my code:Anywhere means...
it may at the top..middle..bottom..of the text..it should recognise this and then apply the code..one more thing.."Desription" tag also extracting some random information..Here is my exact input file ..can you look once:
INVOICE
Ray TELE SERVICES PVT. LTD. Invoice No: EMH48DCO56
Flat no.4 to 7, C/o Krishna Plaza, Date: 28-Dec-07
Opp.Water Tanks, Near TATA Garden Busstop, P.O.NO: 4352
Chandan Nagar, PUNE-14 Date: 28-May-07
PAN No.AACCA5469L
CST TIN is: 27150005249C w.e.f 01.04.2006
VAT TIN is: 27150005249V w.e.f 01.04.2006
ST Regn No. AACCA5469LST001
To, Site Name: Gad Mudsingi
Vodafone Essar Cellular Ltd., Tower Type: RTT
-.L)Metropolitan, F/P No.27, Tower Height: 21 Mts
S.No. 21, Old Mumbai-Pune Highway, Natureof Work:Avaition Lamp, Lighting Arrester
Wakadewadi, Shivaji Nagar,
PUNE - 411005
S.No Description Qty. Units Rate (Rs.) Value (Rs.)
1 Aviation Lamp 1 Nos 3700 3,700
2 Lighting Arrester 1 Nos 1600 1,600
3 Aviataion Lamp Cable 31 Rmt 270 8,370
Gross Total 13,670
The above Total include Services Tax Amount of Rs 536
Total Invoice Value I 13,670
Now Claimed 100% of Invoice Value 13,670
(Rupees Thirteen Thousand Six Hundred and Seventy only)
For ASTER TELE SERVICES PVT LTD
lk .
Authorised Signatory
ASTER TELESERVICES PVT.LTD.
4-7 Krishna Plaza, Opp. Water Tank, Near Tata Garden Bus Stop, Chandan Nagar, Pune - 411 014Here is My Output:
Sno :1
Qty :Aviation
Description :Lamp
Unit :1
Rate :Nos
Value :3700
Sno :2
Qty :Lighting
Description :Arrester
Unit :1
Rate :Nos
Value :1600
Sno :3
Qty :Aviataion
Description :Lamp
Unit :Cable
Rate :31
Value :Rmt
Exception in thread "main" java.util.NoSuchElementException
at java.util.Scanner.throwFor(Scanner.java:838)
at java.util.Scanner.next(Scanner.java:1347)
at StringBuilderEx.printinRequiredForm(StringBuilderEx.java:44)
at StringBuilderEx.main(StringBuilderEx.java:35)any Help
Edited by: abbhoshan on May 15, 2008 11:52 PM -
Regular expression not giving the required output.
Hi , I have msgs that look like this :
dear john smith you Bought 500 shares of Nile Cotton Ginning at 14.9 L.E On 21/01/10
Im using the Regular expression to get 4 substrings of this msg
1-Bought|Sold
2-Quantity of shares (ex: 500)
3-Name of the stock (ex:Nile Cotton Ginning)
4-price (ex:14.9)
Here is my code , but the output returns the whole msg back :
select SMSID,SMSNO,CUSTOMERACCOUNTID,SENDDATE,ENTRYDATE,
regexp_replace(trim(regexp_replace(SMSTEXT,'^.* you (Sold|Bought)(.*) of (.*) at (.*)','\1')),'(watheeqa)') buy_sell
regexp_replace(trim(regexp_replace(SMSTEXT,'^.* you (Sold|Bought)(.*) of (.*) at (.*)','\2')),'(watheeqa)') amount ,
regexp_replace(trim(regexp_replace(SMSTEXT,'^.* you (Sold|Bought)(.*) of (.*) at (.*)','\3')),'(watheeqa)') company ,
regexp_replace(trim(regexp_replace(SMSTEXT,'^.* you (Sold|Bought)(.*) of (.*) at ([0-9]*\.[0-9]*|[0-9][^A-Z][^a-z]) .*','\4')),'(watheeqa)') price
from SMSOUTMSG@bimsic s
where trunc(SENDDATE) = trunc(sysdate) -1
and exists (select 1 from PHONEDETAIL@bimsic p
where s.CUSTOMERACCOUNTID = p.CUSTOMERACCOUNTID
and SMSFLAG = 1);Thanks.It does check it out
with t
as
select 'dear john smith you Bought 500 shares of Nile Cotton Ginning at 14.9 L.E On 21/01/10' smstext from dual
select
regexp_replace(trim(regexp_replace(SMSTEXT,'^.* you (Sold|Bought)(.*) of (.*) at (.*)','\1')),'(watheeqa)') buy_sell,
regexp_replace(trim(regexp_replace(SMSTEXT,'^.* you (Sold|Bought)(.*) of (.*) at (.*)','\2')),'(watheeqa)') amount ,
regexp_replace(trim(regexp_replace(SMSTEXT,'^.* you (Sold|Bought)(.*) of (.*) at (.*)','\3')),'(watheeqa)') company ,
regexp_replace(trim(regexp_replace(SMSTEXT,'^.* you (Sold|Bought)(.*) of (.*) at ([0-9]*\.[0-9]*|[0-9][^A-Z][^a-z]) .*','\4')),'(watheeqa)') price
from t -
Help for thst I can not get the correct output
The program is :1,insert some strings.
2.search some strings,if same to the strings inserted,output true.
Other wise,ouput false
But in my output,all are false.I have checked my code many times,but I can not figure it out.
So ask for help.Thanks.
My output:
Inserting My
Inserting name
Inserting is
Inserting John
Inserting Latham
Inserting and
Inserting my
Inserting hobbies
Inserting include
Inserting films
Inserting music
Inserting electronics
Inserting and
Inserting computing
Searching for latham:false
Searching for films:false
Searching for swimming:false
Searching for fishing:false
Searching for computing:false
Searching for climbing:false
Searching for paragliding:false
Searching for Latham:false
Correct output:
Inserting My
Inserting name
Inserting is
Inserting John
Inserting Latham
Inserting and
Inserting my
Inserting hobbies
Inserting include
Inserting films
Inserting music
Inserting electronics
Inserting and
Inserting computing
Searching for latham:false
Searching for films:true
Searching for swimming:false
Searching for fishing:false
Searching for computing:false
Searching for climbing:true
Searching for paragliding:false
Searching for Latham:trueAnd the other problem is that you didn't fix the problem from your last thread correctly.
This is wrong.
OBT.find( findString);
System.out.println("Searching for " + findString[i] +":" + OBT.isEmpty());Just do this already.System.out.println("Searching for " + findString[i] +":" + OBT.find( findString[i])); -
Please do help me
I too had a same problem, when I attached AUX IN pin of my car to my ipad it got stucked in it.I went to Apple Store, they were helpless and asked me to replace it with new one for 16000 INR.
What I did is, I took a refill of a pen and sharped its back so that it exactly sits into the gap. After thar I applied some pressure and pulled it out...I got the remaining part wich was stucked.
Try this, I hope this is risk free. All the Best. -
How to reterive the required output
i want to extract data from two different tables and to create a single table.
first table is gc1
idx suburb_form
1 ALBANY
2 PERTH
3 ALBANY CBD
4 PERTH CBD
SECOND TABLE IS CITIES
ALBANY
PERTH
I WANT TO CREATE A TABLE WHICH SHOULD CONTAIN ALL RECORDS FROM THE GC1 TABLE
I HAVE WRITTEN QUERY LIKE THIS BUT IT DOES NOT WORK.
CREATE TABLE TEMP AS SELECT IDX, SUBURB_foRm FROM GC1 A
WHERE exists(select NULL from POI.SH_POI_SMALL_CITIES C where upper(trim(A.SUBURB_FORM))=C.CITY OR RTRIM(A.SUBURB_FORM,' CBD')) =C.CITY)
PLEASE CAN ANYBODY HELP ME IN ORDER TO GET THE REQUIRED OUTPUT.
tHANKSCONTAIN ALL RECORDS FROM THE GC1 TABLEIn these case, wouldnt just selecting GC1 be sufficient?
CREATE TABLE TEMP AS SELECT IDX, SUBURB_foRm FROM GC1 A -
Cosuming web service using consumer proxy - not getting the output
Hello All,
I am not getting the consumer proxy output structue filled though the web service is successfully executed. I did the following steps.
1. Created a webservice form RFC BAPISDORDER_GETDETAILEDLIST
2. Created a consumer proxy for the above created WSDL document.
3. Tested the service by executing the proxy directly by feeding the input in the XML (sales document and partner view). it is working fine
4. Created a program to access the consumer proxy by passing the input(same input as per XML). I am not getting the output in the proxy output structure ( but I can see the RFC is successfully executed and having the right values in the debugging mode).
Is this the issue is due to the date fields (XML cannot consider a blank date )?
Please note: the partner output table parameter in the bapi (output I am looking for ) is not having any date fields.
Please help me to sort out this issue.
Thanks,
GopiHi Gopi,
From your description, I assume you used the SE37 transaction's menu option Utilities -> More Utilities -> Create Web Service -> From the Function Module, to expose the BAPI concerned as a Web Service.
If this is the case, then it is possible that you are falling foul of your SAP User ID not having the necessary Remote Function Call authorization to execute the BAPI.
A prerequisite for successfully calling an RFC-enabled Function Module (which is what a BAPI is) is that the User ID used to call the function module must have the required RFC authorization (Authorization Object S_RFC). For example, when calling function module BAPI_CUSTOMER_GET_ROOT, if the User ID lacks the requisite authorization in the target system, the following error message will be received by the Consuming application:
User <User ID> has no RFC authorization for function group V02HBAPI.
Notice, as you can see from the above message, RFC execution authorization is implemented at the Function Group level, not at the Function Module level. In othere words, granting a user the authorization to a function group (authorization object S_RFC) enables the user to execute all RFC-enabled function modules contained within that function group.
I am guessing the BAPI works for you in debug mode because you are not calling the BAPI remotely.
Let me know if this helps.
Best Regards,
Andy.
Maybe you are looking for
-
Invalid table name error when updating object in collection using SQL
Hi, I have pl/sql code where I am selecting a object from a collection using sql select query. I am processing this record and now I want to update the collection with the new object. ie. ensure that the object that was fetched be removed and this ne
-
i cal apple from israel i say i gat i phone5 in the philippines and it stop working the say bring it to us apple and i gat ther the say sand it to hong kong ?
-
Table containes GL account and Symbolic account .
Hi All , Is there any table or Function module Or Bapi so that we can find out G/L account ( expense account ) for any symbolic account ??? Expense account is maintained against Symbolic account through configuration using path ( Financial Account
-
Please help for ios6 maps, india
It is nt working properly, as it not showing navigation between two places. Only shows current location. Please need ur immediate help.
-
I'm having multiple issues with my 2011 intel based macbook pro
It's the i7 with the gigabyte nvidia card and a terrabyte hard drive and 4 gigs of ram i have no idea why its crapping out on my after only 6 months but when gaming my screen will randomly go to sleep and this is kinda of solved by pressing the esc k