What's wrong with my approval procedure query ?
Hi everybody,
This is my query :
SELECT DISTINCT 'TRUE' FROM RDR1 WHERE $[$38.U_Prix_plancher.number] >=$[$38.Price.number]
What's wrong with that ?
Thanks
Ara
Ara,
The problem is not with your Query but the problem is with the way the Query gets trigerred for an Approval Process.
SAP only recognizes the value of a $[$38.x.x] parameter when that particular row is active.
I suggest you can test this by simply highlight that particular row which breaks the rule and try to Add the document and you will see that the Approval Procudure will fire.
Also remember an Approval Procudure works only when you are in Add Mode and does not on Update.
Regards
Suda
Similar Messages
-
What's wrong with my store procedure?
HI, I can't figure out what's wrong with my stored procedure. I believe i have a "commit;" where it's not supposed to be. What i really want to acheive is save the record once it finds those keywords. Maybe my syntax is all wrong.
I am getting the following error msg. PLS-00103
create or replace
procedure sp_diag is
DECLARE
v_setting_key NUMBER(18);
v_parent NUMBER(22);
v_name VARCHAR2(100);
v_class_key NUMBER(22);
CURSOR c1 IS
select setting_key, setting_class_key,name
from cms2wire.setting_list;
CURSOR c2 IS
select setting_class_key, parent_class_key,name
from cms2wire.setting_class
where setting_class_key = v_parent;
BEGIN
OPEN c1;
LOOP
FETCH c1 into v_setting_key, v_parent, v_name;
EXIT when c1%NOTFOUND;
WHILE v_parent != null
LOOP
OPEN c2;
FETCH c2 into v_class_key, v_parent, v_name;
CLOSE c2;
IF v_name='Diag.'or v_name='Settings.' THEN
COMMIT;
END IF;
END LOOP;
END LOOP;
CLOSE c1;
END;
-------------------------------------------------------------------------------------Now, the way I see it, if you want to save the information, then you need to put it some place, so your slow-by-slow stored procedure becomes something like
INSERT INTO some_table (column list)
SELECT a.setting_key,
a.setting_class_key,
a.name
b.setting_class_key,
b.parent_class_key,
b.name
FROM cms2wire.setting_list a,
cms2wire.setting_class b
WHERE a.setting_class_key = a.setting_class_key
AND b.name in ('Diag.', 'Settings.');
COMMIT;does it not? -
What is wrong with this dynamic LOV query?
I am trying to create a dynamic LOV which contains calendar week numbers, given a bind var containing the year. If the year given is this year I want the LOV to contain all weeks up to but not including this week, if the year given is in the past I want the LOV to contain all weeks in that year.
Here is my query;
select display_value, week_num from
(select decode(
:P31_YEAR,
to_char(sysdate, 'YYYY'), to_number(to_char(sysdate, 'IW')),
1+to_number(to_char(to_date('31/12/' || :P31_YEAR, 'DD/MM/YYYY'), 'IW'))
) max_weeks,
level week_num,
'Week ' || level display_value
from dual
connect by level < 54
) where week_num < max_weeks
When I try to create the dynamic LOV Apex tells me the query is invalid. It runs in TOAD and as far as I can see follows the LOV query rules.Try this:
select display_value d, week_num r from
(select decode(
nvl(:P13_YEAR,'2007'),
to_char(sysdate, 'YYYY'), to_number(to_char(sysdate, 'IW')),
1+to_number(to_char(to_date('31/12/' || nvl(:P13_YEAR,'2007'), 'DD/MM/YYYY'), 'IW'))
) max_weeks,
level week_num,
'Week ' || level display_value
from dual
connect by level < 54
) where week_num < max_weeks
Scott -
What is wrong with my XPath Query ??
Hi Guys,
please help me to solve the following problem. Trying to execute :
XPathAPI.selectNodeList(MyNode,"//*[starts-with()='WType']")
throws always an exception :
javax.xml.transform.TransformerException: FuncStartsWith only allows 2 arguments
What doesn't that mean ? What's wrong with my query ?According to my XSLT book, the starts-with() function requires 2 arguments. You haven't given it any arguments, and that seems to be exactly what the error message is telling you. And it returns a boolean, so comparing that with a string isn't going to work either.
I suggest you will find Mulberry's xsl-list a better place to ask questions about XSLT than a Java forum. You can find it here:
http://www.mulberrytech.com/xsl/xsl-list/ -
Pleas what is wrong with this query
select h.business_unit_id bu, h.edi_sequence_id seq, d.edi_det_sequ_id dseq, s.edi_size_sequ_id sseq, h.po_number po, h.total_unit tUnit, h.total_amount tDollar, s.quantity qty, s.unit_price price,
(select (case when count(*) = 0 then 'N' else 'Y' end)
from(select s.business_unit_id, s.edi_sequence_id, s.edi_det_sequ_id, s.edi_size_sequ_id
from sewn.nt_edii_purchase_size s
where s.business_unit_id='01'
and s.edi_sequence_id = '168420'
and (s.edi_sequence_id, s.edi_det_sequ_id, s.edi_size_sequ_id) not in
(select edi_sequence_id, edi_det_sequ_id, edi_size_sequ_id
from sewn.nt_edii_po_det_error
where business_unit_id = '01'
and edi_sequence_id='168420'
and error_code in(select error_code
from sewn.nt_edii_error_codes
where severity='CR'))))eligible
from sewn.nt_edii_purchase_size s, sewn.nt_edii_purchase_det d,
sewn.nt_edii_purchase_hdr h
where h.business_unit_id = '01'
and h.edi_sequence_id = '168420'
and h.business_unit_id = d.business_unit_id
and h.edi_sequence_id = d.edi_sequence_id
and d.business_unit_id = s.business_unit_id
and d.edi_sequence_id = s.edi_sequence_id
and d.edi_det_sequ_id = s.edi_det_sequ_id
group by h.business_unit_id, h.edi_sequence_id, d.edi_det_sequ_id,
s.edi_size_sequ_id,h.po_number, h.total_unit, h.total_amount, s.quantity,s.unit_priceNever mind, I got it working
-
What's wrong with this ejb-query?
Hi people,
may be i worked too much, may be i've just missed something, but guys, can enyone tell me what the hell is wrong with this GOD DAMNED query?
<ejb-ql>Select Object(adt) From AddrDataTable AS adt, IN (adt.addresseeQualities) AS aq WHERE adt.season.id = ?1 And aq.aQTemplate.id=?2</ejb-ql>
That JBoss throws following exception:
org.jboss.deployment.DeploymentException: Error compiling EJB-QL statement 'Select Object(adt) From AddrDataTable AS adt, IN (adt.addresseeQualities) AS aq WHERE adt.season.id = ?1 And aq.aQTemplate.id=?2'; - nested throwable: (org.jboss.ejb.plugins.cmp.ejbql.ParseException: Encountered "1" at line 1, column 103.
Was expecting one of:
"ABS" ...
"LENGTH" ...
"LOCATE" ...
"SQRT" ...
"+" ...
<INTEGER_LITERAL> ...
<FLOATING_POINT_LITERAL> ...
<NUMERIC_VALUED_PARAMETER> ...
<NUMERIC_VALUED_PATH> ...
at org.jboss.ejb.plugins.cmp.jdbc.JDBCEJBQLQuery.<init>(JDBCEJBQLQuery.java:50)
The worst thing is that when i remove WHERE clause JBoss keeps silence like a fish - it works fine!
So, any ideas about this?
Thank youAre you sure the ?1 and ?2 parameters exist in the method for which the query is addressed.
In the statement adt.season.id I guess season is a CMR field and then season has a CMP field called id
and the same for aq.aQTemplate.id, aQTemplate being the CMR field and the is being a CMP field in the CMR.
and in adt.addresseeQualities is a CMR field?
Looks like a complex query
SELECT OBJECT(adt) from BEAN AS adt,
IN(adt.CMR_FIELD) AS aq
WHERE
adt.ANOTHER_CMR.ANOTHER_AMR_CMP_FIELD=?1
AND
aq.2_CMR_FIELD.2_CMP_FIELD =?2 -
Can someone tell me what's wrong with this LOV query please?
This query works fine..
select FILTER_NAME display_value, FILTER_ID return_value
from OTMGUI_FILTER where username = 'ADAM'
But this one..
select FILTER_NAME display_value, FILTER_ID return_value
from OTMGUI_FILTER where username = apex_application.g_user
Gives the following error.
1 error has occurred
* LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query.
Thanks very much,
-Adam vonNiedaYa know, I still don't know what's wrong with this.
declare
l_val varchar2(100) := nvl(apex_application.g_user,'ADAM');
begin
return 'select filter_name display_value, filter_id return_value
from otmgui_filter where username = '''|| l_val || '''';
end;
Gets the same error as above. All I'm trying to do is create a dropdown LOV which selects based on the apex_application.g_user.
What am I missing here?
Thanks,
-Adam -
How to find quickly what's wrong with the performance of a BW Query?
Hi All,
After a long time, I had to work on performance tuning of a query, Version BI 7.0 EHP 1, SP7.
Compression in done, BI Stats are running, showing that OLAP time is high almost 70%, compared to 20% DB Read time.
Aggregates cannot be created due to the nature of the cube, BIA is out of scope.
How to find quickly, step by step, what's wrong with a particular query.
Thanks in advance,
Best Regards,
- ShashiHi Sashi ,
1. OLAP time is more, you need to increase OLAP cache, you have different options for the query in RSRT t-code..
Select properties which makes to store the query result set in OLAP Cache for permanent.
Doc for the same :
http://www.sdn.sap.com/44A46FE1-6DC0-4F2C-A8CB-A1BB45DF0186/FinalDownload/DownloadId-ED38793C4C172FE2AFFDE727E36B3991/44A46FE1-6DC0-4F2C-A8CB-A1BB45DF0186/irj/scn/go/portal/prtroot/docs/library/uuid/f048c590-31a4-2c10-8599-bd01fabb93d4?QuickLink=index&overridelayout=true
2.Use only less no of Characteristics in the initial report. Place remaining in Free characteristics.
3.You need to check the query .It cmod code exist for any variable or your query have lots of navigational attributes then try to check for code efficiency .
4.If Front End time more then try to avoid the more characteristics in displaying the query result.
5.Use authorization objects on queries if possible .That will reduce data amount .
6.Use query read mode and global structures as when possible.
Some helpful links :
http://www.tli-usa.com/download/Expert_Tips_and_New_Techniques_for_Optimizing_Data_Load_and_Query_Performance__Part_Two_.pdf
how to increase the performance
Aggregates in SAP BW
bw statistics
What is the use of cube partition?
Create indices before or after compression
Regards,
Jaya Tiwari -
What's wrong with this SQL?
what's wrong with this SQL?
Posted: Jan 16, 2007 9:35 AM Reply
Hi, everyone:
when I insert into table, i use the fellowing SQL:
INSERT INTO xhealthcall_script_data
(XHC_CALL_ENDED, XHC_SWITCH_PORT, XHC_SCRIPT_ID, XHC_FAX_SPECIFIED)
VALUES (SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS'), HH_SWITCHPORT, HH_SCRIPT,'N'
FROM tmp_healthhit_load WHERE HH_SCRIPT !='BROCHURE' UNION
SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS'), HH_SWITCHPORT, HH_SCRIPT,'N' FROM tmp_healthhit_load WHERE HH_SCRIPT !='BROCHURE');
I always got an error like;
VALUES (SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS'), HH_SWITCHPORT,
ERROR at line 3:
ORA-00936: missing expression
but I can't find anything wrong, who can tell me why?
thank you so much in advance
mpowel01
Posts: 1,516
Registered: 12/7/98
Re: what's wrong with this SQL?
Posted: Jan 16, 2007 9:38 AM in response to: jerrygreat Reply
For starters, an insert select does not have a values clause.
HTH -- Mark D Powell --
PP
Posts: 41
From: q
Registered: 8/10/06
Re: what's wrong with this SQL?
Posted: Jan 16, 2007 9:48 AM in response to: mpowel01 Reply
Even I see "missing VALUES" as the only error
Eric H
Posts: 2,822
Registered: 10/15/98
Re: what's wrong with this SQL?
Posted: Jan 16, 2007 9:54 AM in response to: jerrygreat Reply
...and why are you doing a UNION on the exact same two queries?
(SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS') ,HH_SWITCHPORT ,HH_SCRIPT ,'N' FROM tmp_healthhit_load WHERE HH_SCRIPT !='BROCHURE' UNION SELECT TO_DATE(HH_END_DATE||' '||HH_END_TIME,'MM/DD/YY HH24:MI:SS') ,HH_SWITCHPORT ,HH_SCRIPT ,'N' FROM tmp_healthhit_load WHERE HH_SCRIPT !='BROCHURE');
jerrygreat
Posts: 8
Registered: 1/3/07
Re: what's wrong with this SQL?
Posted: Jan 16, 2007 9:55 AM in response to: mpowel01 Reply
Hi,
thank you for your answer, but the problem is, if I deleted "values" as you pointed out, and then execute it again, I got error like "ERROR at line 3:
ORA-03113: end-of-file on communication channel", and I was then disconnected with server, I have to relogin SQLplus, and do everything from beganing.
so what 's wrong caused disconnection, I can't find any triggers related. it is so wired?
I wonder if anyone can help me about this.
thank you very much
jerry
yingkuan
Posts: 1,801
From: San Jose, CA
Registered: 10/8/98
Re: what's wrong with this SQL?
Posted: Jan 16, 2007 9:59 AM in response to: jerrygreat Reply
Dup Post
jerrygreat
Posts: 8
Registered: 1/3/07
Re: what's wrong with this SQL?
Posted: Jan 16, 2007 10:00 AM in response to: Eric H Reply
Hi,
acturlly what I do is debugging a previous developer's scipt for data loading, this script was called by Cron work, but it never can be successfully executed.
I think he use union for eliminating duplications of rows, I just guess.
thank you
jerry
mpowel01
Posts: 1,516
Registered: 12/7/98
Re: what's wrong with this SQL?
Posted: Jan 16, 2007 10:03 AM in response to: yingkuan Reply
Scratch the VALUES keyword then make sure that the select list matches the column list in number and type.
1 insert into marktest
2 (fld1, fld2, fld3, fld4, fld5)
3* select * from marktest
UT1 > /
16 rows created.
HTH -- Mark D Powell --
Jagan
Posts: 41
From: Hyderabad
Registered: 7/21/06
Re: what's wrong with this SQL?
Posted: Jan 16, 2007 10:07 AM in response to: jerrygreat Reply
try this - just paste the code and give me the error- i mean past the entire error as it is if error occurs
INSERT INTO xhealthcall_script_data
(xhc_call_ended, xhc_switch_port, xhc_script_id,
xhc_fax_specified)
SELECT TO_DATE (hh_end_date || ' ' || hh_end_time, 'MM/DD/YY HH24:MI:SS'),
hh_switchport, hh_script, 'N'
FROM tmp_healthhit_load
WHERE hh_script != 'BROCHURE'
UNION
SELECT TO_DATE (hh_end_date || ' ' || hh_end_time, 'MM/DD/YY HH24:MI:SS'),
hh_switchport, hh_script, 'N'
FROM tmp_healthhit_load
WHERE hh_script != 'BROCHURE';
Regards
Jagan
jerrygreat
Posts: 8
Registered: 1/3/07
Re: what's wrong with this SQL?
Posted: Jan 16, 2007 11:31 AM in response to: Jagan Reply
Hi, Jagan:
thank you very much for your answer.
but when I execute it, I still can get error like:
ERROR at line 1:
ORA-03113: end-of-file on communication channel
so wired, do you have any ideas?
thank you very muchAnd this one,
Aother question about SQL?
I thought I already told him to deal with
ORA-03113: end-of-file on communication channel
problem first.
There's nothing wrong (syntax wise) with the query. (of course when no "value" in the insert) -
What's wrong with my VI?
When i'm using a string control to select on the case structure, my vi is working as expected. But when i'm using the output of the read visa which outputs exactly the same string as the one i used in control string, the vi is not working as i expect it.
The output of the read visa string is "HP8593E", an id query from agilent spectrum analyzer.
thank you for your help..
JLS
Solved!
Go to Solution.altenbach wrote:
crossrulz wrote:
I recommend using a Trim Whitespace on the string going into your case selector to remove this End Of Line.
I agree that trim whitespace should be all you need. For good measure, you should also set the case structure for case insensitive matching.
The instrument's FW has a 50 char buffer for the ID response. Without knowing the exact FW on the device the ranged case is recommended. HP has a nasty habit of adding fields where buffers exist (And sometimes even entire alternate language support SCPI) so, a response of "ModelID, FWVER, SER" is to be expected in later FW "HP8593E..HP8593E\FF" permits this flexibility. (Especially since the instrument is obsolete and you don't know what FW is on the next device you can buy.) It may cost just a bit in performace Really? a nanosecond or two for each ID? we don't ID? the device a million times, it will not impact test cycle time. Yes a Case insensitive match would be perfered. Match pattern may be better.
Its not all that often I would disagree with the two of you...But in this instance
Jeff -
When is it going to start back working? What's wrong with it?
If you are having issues with Facetime, and your device is running iOS 7.1, and you have followed the troubleshooting procedures (http://support.apple.com/kb/TS3367), contact apple support.
The http://www.apple.com/support/systemstatus/ page states that if you are experiencing an issue not listed, to contact support . -
What's wrong with FaceTime I can't connect a video call to anyone
What's wrong with FaceTime I can't connect a video call to anyone
If you are having issues with Facetime, and your device is running iOS 7.1, and you have followed the troubleshooting procedures (http://support.apple.com/kb/TS3367), contact apple support.
The http://www.apple.com/support/systemstatus/ page states that if you are experiencing an issue not listed, to contact support . -
My iphone 5s consumed 10GB data this what's wrong with my VPN kindly guide suitably moreover battery drain fast
The long backups seem to be related to the size of the apps you installed, not the number. That's why some people with multiple pages of apps experience fast backups. There does seem to be a bug with the current firmware that can cause a crash when doing app uploads and syncs. This bug seems to be exacerbated by having large and many apps.
I was experiencing frequent crashes, but have no more - even with 70 apps installed - some of them large like the American Heritage Dictionary which is several hundred megabytes. I did the following:
1. I set iTunes to NOT do autosyncs every time I plug in. This setting is in the Itunes preferences.
2. I disabled the autobackups in iTunes for the iphone. I figured that if it did crash and it was going to take 2 hours to restore, why not just reload. The instructions are readily found using google search; it involves a command line setting. Anyway, the phone doesn't crash anymore since doing this.
3. I no longer install apps using the iPhone. I first install the app in iTunes and the I manually sync it to the iphone. I avoid doing multiple installs at once; at least for the large apps. Right click on each app and get its info from within itunes. If it is large, it is going to take time to backup.
4. I always first shut off the iphone and restart it before installing any apps in itunes. This clears any memory issues left behind from use.
I am going to continue to do these procedures until Apple releases a fix for the bugs relating to the apps.
As noted, since I took these steps, I have had no crashes. I was crashing at least once every 1-2 days before with the same or less number of apps. I too was a first gen iPhone user and was very frustrated with the 3G experience. Since doing the above, I am once again a very happy and productive iPhone 3G user. I know its a pain to do this, but the bugs will get fixed at some point. I would never go back to my old phones - they were just phones. -
itunes store is not available. try back later. Everytime I try to purchase something this message appears. What is wrong with itunes?
iTunes in Windows is difficult to uninstall.
I found this for you in an older thread (read carefully before you start):
Quote
Resolution
Note that the following procedure involves a registry edit. Back up your registry prior to proceeding.
(1) Do a complete uninstall of iTunes and related software components as per the instructions in the following document (but do not attempt to reinstall iTunes just yet):
Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7:
http://support.apple.com/kb/HT1923
(2) Launch Regedit as an administrator. In your Start Search field, type regedit. Right-click on the Regedit entry that comes up and select "Run as administrator" as per the following screenshot:
(3) In the left-hand pane of Regedit, click the triangle next to HKEY_LOCAL_MACHINE to expand its contents.
(4) Expand the contents of SOFTWARE
(5) Expand the contents of Microsoft
(6) Expand the contents of Windows
(7) Expand the contents of CurrentVersion
(8) Expand the contents of Installer
(9) Expand the contents of UserData
(10) Expand the contents of S-1-5-18
(11) Right-click on Components and select "Permissions" as per the following screenshot:
(12) In the "Permissions for Components" screen that comes up, click the Advanced button:
(13) In the "Advanced Security Settings for Components" screen that comes up, click the "Owner" tab.
(14) In the "Owner" tab, check the "Replace owner on subcontainers and objects tickbox, select "Administrators" and click Apply:
(14a) If (after clicking Apply) you receive a "Registry Editor could not set owner on the key currently selected, or some of its subkeys" message, click OK:
(15) Click OK in the "Advanced Security Settings for Components" screen.
(16) Click OK in the "Permissions for Components" screen.
(17) Quit out of Regedit.
(18) Try installing iTunes using the latest version of the iTunes installer downloaded from the Apple website:
http://www.apple.com/itunes/download/ -
What is wrong with Firefox ---It will not pull up anything the way it used to --having to use exployer instead ---Help
The catalog of our University will not pull up properly on Firefox but will on internet exployer Why?The #rdn# is a url variable that is pass to this form from
another page. I put it in a hidden filed and originallly used it as
from.rdn. That did not make a difference, so I just used rdn.
The cfoutput to display the rdn, partnumberid,
deliverynumber, totalrows, and row, all display properly. I even
use those in the query anlayzer and the update works.
I will remove the crparam and see if that makes any
difference. This is very frustrating since there are no error
messages and I am led to believe the code works.
Maybe you are looking for
-
I want to mirror my MacBook Pro's screen to my HDTV. I had it at one time by clicking the Mirror Icon on my upper menu bar but I do not have it any more? What am I missing? In the System Perferences the display menu seems incomplete. There is no w
-
Keynote 6.0 Images Disappearing
We do a lot of work within Keynote 6.0 and every time we add a new images to the presentation all other images disappear and we are left with a grey box with a cross and a question mark. It doesn't do this to all presentations but quite a lot, and al
-
In router/gateway 3825 I have a EVM-HD-8FXS/DID card and I want it register with CallManager. I have on CallManager "AALN/S1/SU0/[email protected]", Device type "Cisco MGCP FXS Port" Status:"Rejected". Any idea why is it rejected?
-
Attemping to download iOS 8.0.2 hangs
I have an iPad mini that I am trying to update to iOS 8.0.2. Currently running 7.1.2. When I went in to update it under "Software Update" it already said "downloading..." It has now been saying that for a couple days. To my knowledge I never actua
-
LR 5.3 won't print...
Running LR 5.3 on OS X 10.8.5 w/ an Epson 3880 Computer and Printer disply show out of paper or paper not loaded properly...this is not the case. All other apps can print to Epson 3880 fine, I believe this is a LR specific error. This also happened b