ENHANCEMENT: parse condition queries in builder
The conditions box on item attributes does not seem to parse the condition statement when saving; unlike the region source or process source.
It would be helpful if the conditions box parsed the statements of type plsql expression, function body, sql query when they are saved displaying any parsing errors so that they can be fixed at time of writing
Farhan - thanks, that's on our list.
Scott
Similar Messages
-
Queries regarding SGA, PGA and parsed SQL Queries
Hi
I am new to Oracle server architecture.
Please correct me if am wrong.
As per my understanding, the data that we retrieve from a SQL query is stored in SGA in Database buffer cache.
I have some queries:
1. Does the database buffer cache store only data from SQL queries or anything else also? What is its size? Can we set the size?
2. Where are the parsed SQL queries stored - SGA or PGA? And where exactly? I want to know if all the users connected in an Instance have access to each other's parsed SQL queries?
3. SGA is shared by all users in an Oracle Instance? PGA and UGA are local to a specific user in an instance? Is it correct?
Thanks
AbhiAB312062 wrote:
Hi
I am new to Oracle server architecture.
Please correct me if am wrong.
As per my understanding, the data that we retrieve from a SQL query is stored in SGA in Database buffer cache.
I have some queries:
1. Does the database buffer cache store only data from SQL queries or anything else also? What is its size? Can we set the size?
2. Where are the parsed SQL queries stored - SGA or PGA? And where exactly? I want to know if all the users connected in an Instance have access to each other's parsed SQL queries?
3. SGA is shared by all users in an Oracle Instance? PGA and UGA are local to a specific user in an instance? Is it correct?
Thanks
AbhiThe questions you have are all good ones, but require far too much to be explained (properly) in a forum such as this.
I would highly recommend picking up a book by Tom Kyte and reading through that.
Cheers, -
Hi;
I need a Pl/SQL program witch accepts an SQL query as input, and returns me the different clauses, objects referenced and the conditions used in that query.
it likes look a parser.
any ideas.
thanxand keep in mind that it's harder than you think. here's a query for you to parse (not with a program, just pencil and paper)
with c as (select rownum r from dual connect by level < 3)
select * from
( with a as (select r, ascii(32+r) x from c),
b as (select r b1 from c)
select * from a, b where r = b1 ) x,
( with itest as (select r r1, sysdate+r d from c) select * from itest ) y,
c,
itest i
where x.r = y.r1
and c.r = x.r
and x.r = i.i(+)the query has several modules (subqueries). but it only has two actual tables in it - DUAL and ITEST. but ITEST is also an alias to an SFC. and SFCs can show up in submodules, and their scope is then limited to that submodule. and don't forget precedence - the SFC alias takes precedence over actual tables within a given module. -
Enhanced and conditional interface determination, :
Experts ,
can you giv me some link/ examples of Conditional interface determination and Enhanced Interface determination.
Pls dont send me teh below link!
http://help.sap.com/saphelp_nw04s/helpdata/en/42/ed364cf8593eebe10000000a1553f7/frameset.htm
many Thanks
Arnab MondalHI,
U can refer this threads of same discussion:
Re: Condition In Receiver Determination Not Working
purpose of Enhanced Receiver Determination
Then refer this blogs:
Illustration of Enhanced Receiver Determination - SP16
SAP NetWeaver Process Integration: Enhanced Receiver Determination for Synchronous Scenarios -
Enhancing Price Conditions to PO
Hi Experts,
I am working on a requirement on PO Price Conditions. It is required to update the price condition of PO according to certain customer fields on the PO line items. I have tried several BAdi with no luck.
BBP_DOC_CHECK_BADI - cannot actually change the document
BBP_DOC_CHANGE_BADI - does not offer the price condition information
BPP_DOC_SAVE_BADI - worse, just provide the document GUI
tried to use some other function modules (condadd*), but no luck as well.
those are internal function modules and are coupled with some global variants/checkings
Anyone has experience on this ?
Any advice ? Many Thanks.
Yours,
Chun FaiThanks Jay,
I have done a debugging with the function module "BBP_PD_PO_UPDATE".
However, i found that the function module does not process the price condition at all.
Internal tables for price documents are always empty.
Even when a condition is added using the screen control, the price document is not available as well.
Values manually updated during debug does not take any effect.
The document information is not full available. (e.g. the header GUID, etc)
Certainly we can call other function modules to obtain such document informations (BBP_PD_PO_GETDETAIL, BBP_PD_PO_ITEM_GETDETAIL)
However, I am doubtful as to
1. whether the function module can handle the information as proposed
2. whether price document creation, etc, "backend" operations are required if no condition pre-exists
3. whether there are other side effects
At the meantime, I am still looking forward to solutions around BAdi, in order to keep the complexity and side effects to a minimum. Enhancement framework has more or less side effects on the existing system functions.
PS: the price condition function modules i mentioned in the first message are "PRC_PD_ITEM_ADD_COND", "PRC_PD_ITEM_CHANGE_COND" and "PRC_PD_ITEM_DELETE_COND".
Any other experience or recommendations?
Many thanks.
Yours,
Chun Fai -
Ant conditional target in Build.XML
Hi!
I am new to the Ant Build process & I am looking for some condition type build parameter in build.xml so that the user can use some command line option to execute the same target but with some modification & if not passed then the normal execution take place. I want something like this
<!-- compiling of java files done here normal "ant"-->
<target name="compile">
<javac srcdir="${src}" destdir="${src}" classpathref="classpath"/>
<echo message="compiling done"/>
</target>
<!-- Excute when some argument is passed something like conditional statemet-->
<!-- compile without wsdl when "ant withoutwsdl"-->
<target name="compile">
<javac srcdir="${src}" destdir="${src}" excludes="wsdl/**" classpathref="classpath"/>
<echo message="Compiled without WSDL done."/>
</target> So that i dont have to make much change in the build process.
Please help me out.
Thanks.check the ANT documentation. It tells you how to have conditional execution in your targets.
Of course you can NOT have multiple targets with the same name. -
NEED HELP:To Parse Conditional Operator Within An Expression.
Hi there:
I'm having some difficulties to parse some conditoional operator. My requirements is:
Constants value: int a=1,b=2,c=3
Input/Given value: 2
conditional operator expression: d=a|b|c
Expected result: d=true
Summary: I like to receive a boolean from anys expressions defined, which check against Input/Given value.Note: The expression are various from time to time, based on user's setup, the method is smart enough to return boolean based on any expression.
Let me know if you have any concerns.
Thanks a million,
selenahere is a simple example.
BNF changes
EXPR ::= OPERATOR
EXPR ::= OPERATION OPERANT EXPR
This is as far as I can go, please use it as a template only
because you need to take into account the precedence using ()
the logic of the eval was simply right to left so I think it is not what you want
Cheers
public interface Expression
String OR = "|";
String AND = "&";
public boolean eval(int value) throws Exception;
public class ExpressionImpl implements Expression
public String oper1;
public String operant;
public Expression tail;
/* (non-Javadoc)
* @see parser.Expression#eval()
public boolean eval(int value) throws Exception
int val1 = getValue(oper1);
if (null == tail)
System.out.println(val1 + ":" + value);
return (val1 == value);
else
if (OR.equals(operant))
return (val1 == value || tail.eval(value));
else if (AND.equals(operant))
return (val1 == value && tail.eval(value));
else
throw new Exception("unsupported operant " + operant);
private int getValue(String operator) throws Exception
Integer temp = ((Integer)Parser.symbol_table.get(operator));
if (null == temp)
throw new Exception("symbol not found " + operator);
return temp.intValue();
public String toString()
if (null == operant) return oper1;
return oper1 + operant + tail.toString();
public class Parser
public static HashMap symbol_table = new HashMap();
* recursive parsing
public Expression parse(String s)
ExpressionImpl e = new ExpressionImpl();
e.oper1 = String.valueOf(s.charAt(0));
if (s.length() == 1)
return e;
else if (s.length() > 2)
e.operant = String.valueOf(s.charAt(1));
e.tail = parse(s.substring(2));
else
throw new IllegalArgumentException("invalid input " + s);
return e;
public static void main(String[] args) throws Exception
Parser p = new Parser();
Parser.symbol_table.put("a", new Integer(1));
Parser.symbol_table.put("b", new Integer(2));
Parser.symbol_table.put("c", new Integer(3));
Parser.symbol_table.put("d", new Integer(4));
Expression e = p.parse("a|b|c&d");
System.out.println("input " + e.toString());
System.out.println(e.eval(2));
} -
Enhancement: readonly condition - authorization scheme
I don't know where to file a enhancment request, so I file it here. I have authorization scheme for users, that are not allowed to edit anything. I use it successfully on the buttons, that they should not see (like SAVE, DELETE etc).
But currently I have to rewrite the logic into item's Readonly condition field every time a form item has to be readonly for them. It would be covienient, if I could select condition type to be Authorization Scheme and into Expression 1 text area write the name of the scheme...Kaja,
We're working on enhancements like this to make the read-only version of a page easier to create declaratively. Thanks for your notes.
Scott -
Parsing condition out of a string
Hi,
If I have a string, for example test := 'length(x) > 10';, is it then possible to use it in a condition? Like:
if test = true then
where oracle should see: if length(x) > 10 = true then
thanks<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Freek D ([email protected]):
Hi,
If I have a string, for example test := 'length(x) > 10';, is it then possible to use it in a condition? Like:
if test = true then
where oracle should see: if length(x) > 10 = true then
thanks<HR></BLOCKQUOTE>
Yes, it's possible, by passing the whole command to the DBMS_SQL package.
Hope this will help...
Thomas.
Thomas Devalli
KSI Int'l
[EMAIL][email protected][EMAIL]
www.ksi.be
null -
Hai Guru's. Trust every one is doing good. I have a requirement where in VA41 basing on Document type amount in conditions tab pricing elements has to be fetched automatically and it should be in non modifiable mode. I tried exit MV45AFZZ but KOMV-KBETR this field is clearing. SELECT * FROM ZMARKET_PRICE INTO corresponding fields of table IT_PRICE WHERE BUDAT = SY-DATUM and COMMODITY = 'SUGAR' . LOOP AT IT_PRICE. IF VBAK-AUART = 'ZKSA'. KOMV-KBETR = IT_PRICE-KSLNP. ENDIF. endloop. I tried exit MV45AFZZ and added the logic mentioned above but KOMV-KBETR this field is clearing. Please help me. Regards, Prudhvi Choudary.
Hi ,
Please check whether the code that you have added is at the right place in the exit. It might so happen that the value you are trying to populate is getting overwritten or getting cleared some time later in the processing after executing your code.
Otherwise as suggested above, you can create a custom routine(copy of original with additional changes of your requirement ) in VOFM and try to assign it to conditions tab value with the help of your functional.
Regards,
Shruti -
Multiple conditions in Querey builder Help
I'm trying to have search form provide the customer with several items to search for. I would like to for example have a url that looks like this
?zone=3,4,5&cost=9,10,11
and have those results be read by the Querey and return all the records that have the number3, 4 or 5 in the zone table and all records that have 9, 10 or 11 in the cost table returned. most of the tables are csv's so i need to look for multiple numbers in each search.
This is a beginner problem I know but im stuck. any ideas?
<---------CODE
SELECT li_classification.classification_order, tool.tool_order, li_classification.classification_name, tool.tool_name, tool.tool_color, li_classification.classification_color, tool.tool_id, tool.tool_zone, tool.tool_cost, tool.tool_maintenance, tool.tool_slope, tool.tool_soil, tool.tool_climate, li_classification.classification_id
FROM (tool
LEFT JOIN li_classification ON li_classification.classification_id=tool.tool_LI_classification_id)
WHERE tool.tool_zone LIKE '%".$_GET["zone"]."%'
AND tool.tool_cost LIKE '%".$_GET["cost"]."%'
ORDER BY li_classification.classification_order ASC, tool.tool_order ASC
--------------->CodeHi Ryan
sorry - forgot to mention
I dont THINK that QB can create a query with HAVING
can't test this - but my first guess would be
SELECT li_classification.classification_order, tool.tool_order, li_classification.classification_name, tool.tool_name, tool.tool_color, li_classification.classification_color, tool.tool_id, tool.tool_zone, tool.tool_cost, tool.tool_maintenance, tool.tool_slope, tool.tool_soil, tool.tool_climate, li_classification.classification_id
FROM (tool
LEFT JOIN li_classification ON li_classification.classification_id=tool.tool_LI_classification_id)
GROUP BY tool.tool_zone HAVING tool_zone IN (colname1) AND tool_cost IN (colname2)
all else fails email me the sql dump
tempforum_mail 'at' byte-design.co.uk
assume you are using Dreamweaver :)
Paul -
Condition type in sales order - enhance extractor
Can anyone help me in enhancing field condition type for sale flow. I need to filter sales orders with condition type 'minimum order surcharge' in BI.
There is KONP table having condition type field.
Do I need to enhance VAHDR or VAITM. Please help.
ThanksIf orders are to be filtered then both Order Header (VAHDR) and Order Item (VAITM) should be enhanced.
But I'd strongly recommend not to filter out the orders at the time of extraction/loading (in info-pkg).
It is better to do the filtering in the report itself.
Hope this helps. -
Hello,
I have quite strange question related to my research.
Probabley within Oracle DB there is some dynamic library which is parsing SQL queries,
for example.
SELECT * FROM schema.table which is able to extract informations from SQL listed above that we want to display all columns from selected table.
When this construction is valid ( SQL standard ) the next step is verification the object existence in DB. It means
that there are two separated actions which are analyzing queries.
I need only first part of that process, which will give me informations about all object used in SQL query
is it possible to accomodate that internal parser witin stand alone middleware like Weblogic Event Server ?
I can do it with regular expression patters, but it's not going to be fast and effective for subqueries and all advanced
constructions for DHW like MODEL, etc.
Thank You,
R.>
http://search.cpan.org/~rehsack/SQL-Statement-1.23/lib/SQL/Statement.pm
BUGS AND LIMITATIONS ^
* currently we treat NULL and '' as the same - eventually fix
* No nested C-style comments allowed as SQL99 says
>
That's the reason why I want to use dedicated for 11g EE library ;-)
Thanks for quick reply -
Service Enhancements ESR - Integration Builder
Hello,
I made some enhancements of standard services in the ESR. In the ABAP backend I created the corresponding proxys. But when I try to to configure the enhanced services in the Integration Builder I only get the standard services. How can I refer to the enhanced services in the Integration Builder?
Kind Regards
FelixHello,
If you did not change the Service Interface Name then you wil automatically make use of the changed datatype. The Integration Builder is just the configuration of the objects you make/change in the ESR.
If you only changed your datatype your scenario will continue to work. You do not have to change anything in the Integration Builder.
Best regards,
Fons -
Conditional build for chm and printed doc produce different outputs
I'm using RoboHelp HTML 9.0.2.271
In my TOC, I have two "books" of topics that I want to exclude from output because the topics won't be required at this time.
I right-clicked each book in the TOC and applied a condition ("Defer").
For the HTML Help (.chm), I made my build expression say NOT Defer and NOT Comment.
I generated the help.
The two books (and their topics) were excluded, as I expected.
For printed documentation (.doc), I made my build expression say NOT Defer and NOT Comment and NOT Online.
I generated the Word doc.
The two books were NOT excluded; they appeared in the printed doc.
The workaround is to delete them from the Chapter Layout window when I generate the printed doc, but I expected that since my build expression said to NOT include them, that they wouldn't be included.
Is my method wrong, or is it my expectation?You're right (of course!). My .chm file does actually contain those topics.
So, applying a condition to a TOC entry and then excluding it in the build has this effect:
HTML Help file (.chm): Now the topic entry will not appear in the TOC. The topic itself still exists in the .chm file, though, and you can find it by searching.
Printed output (Word): There doesn't seem to be any effect. That topic entry still appears in the Word TOC and the topic itself still exists in the .doc (or .docx) file.
So, to exclude a topic, I have to place the condition on the topic itself, by either right-clicking the topic in Project Manager and applying the condition or by opening the topic and applying the condition. Then I have to exclude that condition in the build.
Do I have it right yet? :-)
Maybe you are looking for
-
Camera roll app gone after installing iPhoto
My Camera Roll app is no longer to be found on my Gen 3 iPad after installing iPhoto. I've reset my iPad, though i haven't erased all content and settings, and I cannot get it back. Am I relegated to the "scorched earth" solution of backing up and er
-
Check in check out in Dreamweaver CS5 with php site
I created a new site for a client that has about 160 pages, three user login levels, site security, php, forms, . . . The client has a staff member who will make updates to pages with changing content but now wants access to the entire site so she ca
-
IPhoto MobileMe Gallery and Passwords !@#
Appears to be an issue with posted iPhoto Galleries with personalized passwords. I have noticed that iPhoto does not consistently publish iPhoto Galleries with functioning passwords (or more accurately, MobileMe does not push down passwords evenly to
-
Got my new iMac and love it!
Just got the 20" iMac today and it is perfect. Screen looks great and it works like a charm. I love the keyboard, front row and the remote. Does anyone know if the remote runs off of a watch battery and how do you change it?
-
Create error and integration tables o source
Hi, I would like to perform all the integration steps on the source schema and then just put the data on my target table. This means that I want to create I$ and E$ tables on the source schema. How can I handle this? Shall I write a new CKM? I'm work