Query Approval not executing

Dear All
Stuck at query approval:
SELECT
DISTINCT 'TRUE'
FROM    
POR1 INNER JOIN
OITM ON POR1.ItemCode = OITM.ItemCode INNER JOIN
OITB ON OITM.ItmsGrpCod = OITB.ItmsGrpCod
Where POR1.DocEntry = $[OPOR.Docentry]
Group By OITB.U_POLimit
HAVING OITB.U_POLimit < Sum(POR1.GTotal)
Value is coming properly in sap query manager but approval is not executing at the time of transaction

Hi Sumeet,
Try the below query, but it will consider the item group of the first line "Item code".
For example , one PO will have different type of item group's item then you wont get expected result.
SELECT
DISTINCT 'TRUE'
FROM   
POR1 INNER JOIN
OITM ON  $[$38.1.1] = OITM.ItemCode INNER JOIN
OITB ON OITM.ItmsGrpCod = OITB.ItmsGrpCod and  Isnull(OITB.U_POLimit,0) < $[$22.0.Number]

Similar Messages

  • My query is not executing properly after applying patches(bi.7

    iam working bi.7 support package 13
    after applying patches
    my query is not executing properly in production my problem with FI queries
    the query is executing properly but ihav created newformula using formulavariable that fields are not getting data in report if i click on currency conversion iam getting popup but currency translation coversion list is not coming and currency type(target currency also not dispalying)
    but if i execute same query in development its working properly newformula fields are getting data and currency conversion also working in development
    can u please help me in this issure
    i hope as soon i will get solutions from bw gurus

    That currency conversion problem is solved
    i checked TCODE:RSCUR IN PRD its not showing any details
    again i checked in dev and moved all currency types dev to production
    now its wokring
    i hope check with this it will work

  • The SQL query is not executing

    Hi
    I have the following situation: In a project we designed our reports calling a stored procedure the exits in a MS SQL Server 200 database. The Stored Procedures works fine and when they are used in the report everything works perfectly.
    The reports are being made with CR DEsigner 11, when the designer ends them, ha pass them to me and we put them in our java web application. I open them and even preview them since the Crystal Reprots Perspective of Eclipse and I can see the data, so everything to this point is OK.
    The problem comes when I change of connection, I'm trying to connect every report to the same host and database, and when the reprot is displayed in the browser there is no data. I profile the SQL commands that are executed when the report is requested and I found that the reprot is not executing the stored procedure.
    I guess because i'm connectring the report to the same database and host that was used when the report is created and i'm also passing exactly the same parameters of the stored procedure, then report thinks that it doesn't have executing again becuase it will be the same information.
    SO, i wonder if there is a way to request to the report to execute the sql query every time i have to display it.
    thanks for any help.

    What happens when you try to view the report using a simple viewer.jsp?without changing the connection?
    2009-05-25 14:06:09,250 ERROR com.businessobjects.reports.sdk.JRCCommunicationAdapter -  detected an exception: Error de conexión: [SQLServer 2000 Driver for JDBC]Error establishing socket.
    But the database server is ok, so i think the rpt needs more information to be connect to the database.
    Also what happens if you dont use the data bean and give everything there only?
    The same, the rpt is not executing the stored procedure.
    Did anything change on the RDBMS side? Additional packages, changes to the schema, ownership, etc?
    No, the server is ok and the database is ok.
    If you configure Log4J logging to DEBUG, you should see the database invokes from the Crystal Java engine, specifically the queries sent and the number of rowsets returned. Do you notice any errors?
    I have a problem here with log4j. In my project i'm using spring and with the help of spring i configure log4j, basically with spring is easier to configure log4j.
    I'm telling you this because i have log4j working but when my application reaches the code to change the connection to the rerport, log4j dies and stop sending any message to the stdout or to a log file. I haven't since this behavior in any other app o library. So i want to guess i have something wrong with my log4j or maybe with log4j+spring.
    So, i remove all the code of spring referring to log4j, but the problem with log4j wasn't solved.
    What i will try now is to remove spring from the project.
    This is my log4j.properties:
    log4j.rootLogger=DEBUG, stdout
    log4j.appender.stdout=org.apache.log4j.ConsoleAppender
    log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
    log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n

  • Select query is not executing

    Hi Friends,
    my code is :
    itab-vbeln = bseg-vbeln.
    if not itab-vbeln is initial.
    select single vbeln inco1 inco2 into ( itab-vbeln itab-inco1 itab-inco2)
    from vbrk where vbeln = itab-vbeln.
    appned itab.
    note : here inco1 inco2 are incoterms
    my question is  can we direct move the values of bseg-vbeln into itab-vbeln. ???
    and i am generating the report with one varient , when i debug this report the
    there is no value in bseg-vbeln. it is showing null value.thats why my select query is not working..but i want execute this select query final.
    in output i want display the inco1 inco2 data.(incoterms)
    any help please.
    urgent.
    regards,
    vijay.

    Hi Vijay,
    First you need to check it out whether <b>itab-vbeln = bseg-vbeln</b> is in with in LOOP or not (<b>if ITAB is intenal table</b>)
    if itab is internal table you should write above statement with in loop, and also check it out in debug mode why bseg-vbeln value is not coming.
    and one more thing you need to make small correction in ur code use ',' .
    select single vbeln inco1 inco2 into ( <b>itab-vbeln, itab-inco1, itab-inco2</b>)
    from vbrk where vbeln = itab-vbeln
    Note: when ever use select single u should pass values into work area, dont use internal table .
    <b>if you have more doubts just send your entire code then i will rewrite it.</b>
    <b>Reward with points if useful.</b>
    Regards,
    Vijay Krishna

  • Query link not executing in Management Cockpit

    Hi,
    We have two types of Frame in the Management Cockpit namely Graphic and
    Reports and Links. The Graphic Frame is working fine.
    In the Frame Type-Reports and Links, we have added link of the
    query.However, when we try to execute this query from there, we
    get a popup as "Analyzer Message Popup" with the following messages:
    "Components D0LD7QSGDO27MCD613JJ04WLR (version A) do not exist on the
    database.
    The requested query/D0LD7QSGD027MCD613JJ04WLR does not exist on the
    current server.
    Unknown or deleted query"
    We are able to execute this query otherwise from analyzer or thru menu.
    Please advise.
    Regards,
    Ramesh

    user10887630 wrote:
    the second query is not returning rows at all................... So are you stating that the query never returns (i.e. it executes forever)? That it returns but the result set is not what you are expecting? Or something else?
    i mean that local ='en_us' is not there That sounds like you may be saying that the query returns but the results are not what you expect. Is that the case?
    Can you post the results of the query I posted?
    Justin

  • Query is not executing on Multiprovider.

    Hi Bw xpertz
    Could any one clarify me. I have added a infocube to the existing multiprovider.I had taken all the selection in the identification tab like chars,time chars and keyfigs.
    When i am looking the data via listschema its showing the data .How ever when i generated a new query on the multiprovider with new keyfigure which i added via new cube is not displaying.
    Evry thing is ok up to cube level i checked with a query on cube too.
    How ever ther is a problem with multiprovider.
    I dint get what xact reason behind this.Could any one help me in this aspect.
    When i am trying to execute the other queries on the same multiprovider they are working fine.
    I had gone through some of the earlier postings too. but i didnt get the answer..
    When i am trying to execute the newly generated query its not working ..and taking more than 1 hr even the data is not displaying.
    Any suggestions would be appreciable.
    Thanx in advance
    RMK
    *No need to say good answers can get full pointz**
    **Sharing is the only way to improve the knowledge**

    Are you filtering by any char not contained in your new cube or by any char tha althoug contained in your cube the ID is not marked in multiprovider definition?
    Check if any modification to any cube in multicube had deactivated the multicube.
    Try to do a query only for your new cube, filtering by infoprovider, the data must be there.

  • SAP QUERY does not execute in other client

    Hi,
    I am working on SAP QUERY on the Quality Assurance and Cust & Dev Client and i am facing a strange thing when i tried to execute the Query from SQ01 ,there i found itis not able to get executed but when i generated the report ,after that it get s executed.
    I want to know what are the reasons behind it,please provide me guidelines for solving it.

    See, SQ01 can not alone be used.
    It is linked with the SQ02 - Funectional Area, where the joins handeled and codes implemented.
    Also SQ03 - User Groups.
    User Group you can ignore, but Functional Area is must to run a query through SQ01.
    When you generate the Functional Area using SQ02, it activates all the objects associated with the Query.
    So even if you need same query to some other client sayu in quality or production, you need to import export Functional area first before query or simultaneously.
    Regds,
    ANil

  • Problem in date comparing with db2 database,query is not executing

    hi everyone
    i have one jsp page two text box
    1. one for start date
    2.second for end date
    and for date selection have used datepicker
    user selects the start date and end date .then clicks on view button
    then i am retrieving these two dates on next jsp page .uptp here is ok
    here i want display related data from db2 databse between these two dates(start date and end date)on next jsppage
    but it is giving error my db2 dtabse uses the format of YYYY-MM-DD
    the query i am not able execute
    String strsql ="select voucher_master.VOUCHER_TYPE,voucher_master.VOUCHER_NO,dd_master.CHQ_DD_NO,dd_master.DD_DATE from voucher_master,dd_master Where voucher_master.VOUCHER_ID = dd_master.VOUCHER_ID and dd_master.DD_DATE >=" + fromdate + " and dd_master.DD_DATE <=" + todate + "";
    it is giving error
    please help me

    Mutlipost: http://forum.java.sun.com/thread.jspa?threadID=5224616
    Why aren't you checking your earlier posts for replies? Don't multipost, it's irritating and wastes times and energy.
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • Query is not executed(takeing long time)

    Hi
    We have aquery(stock statement) on 0ic_c03  when i execute the query it showing error after some time
    Error :
    1)Error while reading data;navigation is possible
    2)query0:runtime error time limit exceded. with parllal processing via RFC
    what is the reason what can i do
    If any one face like this plz suggest me
    Tahnks in advances
    Ogeti

    Hi
    First try to execute the report using the RSRT tcode then you know if is there any problem in the query.
    and check in the data target is there any failed request are there.
    Regards,
    Chandra.

  • QBE style(Find-Execute) Query not executing when VO has bind parameter

    I have an Entity Based ViewObject that is composed of 3 Entities so the entities are related through an Assoc. Then the ViewObject also has a bind paremeter defined and used in the WHERE clause.
    In my page everything is fine until when I use/click on the Find operation on the JSF page. When the Find operation is executed the page/form goes blank so I can enter by QBE query. Now when I Execute my search by executing the ExecuteWith params operation. Nothing is happening to the screen, it seems that query was not executed. Although there was no errors or exceptions displayed.
    However if I remove the bind parameter, and execute the Execute operation instead after going to Find mode, the query is executed properly and I get expected results.
    My problem is a bit general, but are there anyone who had a similar problem like this? Im still in the process of creating a test case.
    regards,
    Anton

    Hi Frank,
    But the "ExecuteWithParams" operation provides the bind variable right? (i had the value hardcoded on the pagedef). So it must have supplied a value. I also noticed that this is happening only when if the VIewObject contains two or more Entities. If the Viewobject has only 1 entity, the ViewObject queries properly.
    Anyway Frank, I had found a fix for this. I set an InvokeAction on the pagedef that binds to the ExecuteWithParams that is invoked during page load only(!postback condition). and then I just use the Find-Execute operations instead of the Find-ExecuteWithParams operations that I used previously.
    I will try to replicate the issue again to investigate what's really going on. I just want to know if its a bug or just an expected behavior or i just made a mistake.
    regards,
    Anton

  • Database migration query not executing in database

    We moved over our SQL database to another server. We have a few .cfm template files that have queries to get 'content' from our database. These queries in the .cfm template files work fine and execute properly. However, for some reason, since we moved over our database, the queries in the actual database don't execute/run anymore. In the old server we didn't have this problem. Our queries in the database would run properly then. The data would display correctly on the webpages.
    Is there some kind of properties setup that was overlooked when migrating over our database?
    The output we now see when viewing our pages is the actual query code.
    Example:
    SELECT lname
    FROM table
    This is actually displayed on the website and therefore the query is not executing/running. Our code was never changed. So why is it not outputting the same?
    Thanks for any help provided.

    Sorry for the confusion.
    The coldfusion templates and database queries both worked fine on the previous old server.
    Now since the migration onto the new server, only the coldfusion templates work fine, but not the queries in the database.
    So for example, a query in the coldfusion template will run fine, and execute the intial pull of data. But once the content is pulled from the database, the queries inside the database (including stored procedures) don't execute.
    We do get the expected results when we run our stored procedure in Management Studio and if we put the stored procedure on a standalone web page we do see the records. 
    We only see the sql code when we have the stored procedure inside of our w_content table of our database, and its being called by the first query in the template.  For some odd reason the stored procedure does not execute if it is inside the database.  
    Hopefully that clarifies our problem.
    Thank you for helping!

  • PO Response approval Work item is not executing from approver inbox.

    Hi,
    PO Response approval Work item is not executing from approver inbox. After click the approve button system is not showing any error and also work item is not clearing from user inbox. When we checked the status of the work item in SWI1 Transaction is still READY.
    Standard Task: TS14508055 - Transfer purchase order response data to purchase order
    Business Object: BUS2209
    Scenario:
    1. Create PO in SRM System, Vendor belongs to SUS System Vendor
    2. SUS Vendor creates the PO Response SUS system, POR Value is greater Than PO Value
    3. Approval Work item will go to Buyers of purchasing group
    4. Buyer trying to approving The PO Response from his approval inbox
    Regards,
    Surya Sankar

    what all buttons do you see when you open the workitem in the approval inbox.
    as far as i know , there will only button 'transfer response to purchase order'..
    what happens if you click the above button.

  • Execute Query is not working

    hi all,
    In my when-new-form-instance form level trigger i have given go_block('blockname')
    execute_query
    but this execute query is not firing .when i checked using message i was able to reach line b4 and after the execute query but still it has not populated the data from the base table.
    the base table also contains records.
    when i run this particular fmx in the similliar but differnt database this form runs well and data gets populated automatically.
    i am unable to move fwd becouse of this i have spend many hours on this issue. please help me out.
    please write for any further clarifications..
    thanks and regards,

    There is no data on the table that satisfies the query. Copy the data from the database that does return data and try again. Are you looking at the correct table, it maybe a synonym issue as someone previously mentioned.
    A trick to see the select statement is this :- Press enter_query, enter :A into one of the query fields, press enter_query. A query box should appear. Type dog=1 and click ok. You will then get an error message (FRM-40505). Choose 'Display error' of the help menu (or Shift+F1). This will display the select statement. Obviously ignore the dog=1 as this is what caused the error but look at the where clause for clues.
    It does sound like the form is looking at at different table to you.

  • Oracle ADF refresh as deferred does not execute query on page load

    In the oracle ADF page I have two panel boxes. (Oracle ADF 11.1.1.4)
    a) Personal information panel box with PanelFormLayout (PersonalInfoViewObj) - ReadOnly View Object
    b) Address information panel box with Table (AddressInfoViewObj) - Read Only View Object
    For the iterators in a) and b) I have kept refresh condition as deferred and cacheResult=false. Also in b) for af:table, I have kept contentDelivery="immediate"
    When page loads it fires SQL query for a) and populate the data in Personal information panel box. However for b) it does not execute the SQL query and the data is not getting populated ( in AddressInformation panel with the tables. Please note data is there in the DATABASE......)
    Becasue with the refresh as deferred it was not executing the sql query for Panel b) (panel with Table and table iterator). I have tried refresh as always and refresh ifNeeded/renderModel/prepareModel however in that case it is executing the SQL query two times (twice).
    Please let me know the best way to fix this issue.

    Hi,
    I think you need a method in an application module to init your data.
    In your AM : create a method like :
    public void init(){
    getViewObject().executeQuery();
    }In your adfc-config.xml create a methodCall from this method and a "control flow case" from the methodCall to your page.
    and keep refresh as "deferred " in your pageDef.
    Clément

  • Org.hibernate.exception.GenericJDBCException: could not execute query

    while executing sql statements with hibernate oracle this type of errors
    org.hibernate.exception.GenericJDBCException: could not execute query
    ava.sql.SQLException: ORA-01001: cursore non valido can any one suggest
    a solution for this.
    Thanks

    This is likely due to a commit/rollback being executed after the statement has been executed but befofre the result set has been processed by the application. In TimesTen, unlike Oracle, commit/rollback closes all open cursors on the connection. This could be a case of using the wrong Hibernate dialect. Are you using a TimesTen dialect in Hibernate?
    Chris

Maybe you are looking for

  • While doing a routine sync on my ipod, an error 13019 came up.

    I tried syncing without music by clicking the music tab and unclicking music. that didn't work. i did this for every category and have determined that it is my music that has the problem. I also updated itunes today too so that is not the problem. i'

  • ITunes sorting issue

    As you can see in these two screens, iTunes isn't sorting some albums properly. They were fine before I reinstalled Lion. The top screen shows the songs grouped, but not in order. And the second is pretty obvious. They are both albums made up of rand

  • Faxing questions

    I just bought an external modem so I can set up faxing. I even called applecare but am unable to send or receive faxes. Any ideas?

  • Creating ImageIcon from Image is very slow

    Hi I have a program which reads a number of files which may contain (amongst other things) image data in various formats such as JPG.I read scale this down into an image object fine, and then I want to display a small version of it on screen so I put

  • Need Help viewing Podcast with Quicktime

    I'm having difficulty viewing my podcast movies in quicktime 7.1.5 When I start watching a podcast movie (the Russell Brown photoshop lessons) , it will suddenly change to white/yellow. As soon as I move my mouse, it will become normal again. If I ke