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

Similar Messages

  • Execute Query - Not finding data

    I have a form with a Master-Detail-Detail (I will refer to them as Master, Detail_1, Detail_2) relationship between blocks.
    There is a WHEN_NEW_FORM_INSTANCE trigger that populates a record group and then sets a list item in Detail_1 to the record group values. All other behavior is default forms.
    When I perform an execute query using the default toolbar buttons, no data is returned even though data exists in the corresponding tables.
    I am thinking that the setting of the list item may be causing the query to fail but I'm not sure. I have commented out the working code in the WNFI trigger and just have a NULL; statement as a test, but the default query still returns no data.
    Do I need to clear the list item of its values? If so, at what point should I do this (enter-query)?
    My Forms version is 10.1.2.
    I appreciate guidance on this matter.

    The query may be failing because you are retrieving a record that has a value that is not listed in the list item's list of values. Use the list item's Mapping of Other Values property to tell Forms what to do when it retrieves a value not found in the list of values. Also see the CONVERT_OTHER_VALUE built-in.

  • Execute query not working  in CALL_FORM

    Hi,
    I am opening FormA from FormB, when clicking a button, and pass the values to Form B,
    by using the global variables, and assigned these values in the pre-query of Form B, When clicking button Form B is
    opening, but nothing displaying, I need to click on Execute Query to get the data displayed.
    I am calling Form B by using CALL_form('FORMB.FMX');
    Statment In the WHEN-NEW-FORM-INSTANCE of Form B
         EXECUTE_QUERY; << This not working >>           
         GO_BLOCK('NRT_HEADER');
    Oracle & Forms Verison : 10g
    Thanks in advance
    Rizly

    Thanks Francois & Tony.
    The problem got solved by using NO_HIDE
    CALL_form('POPUP_NRT_FILE_HEADER.FMX',NO_HIDE);
    Now the data & form is visible, But when I click on the any other field ( other than the first field), the screen is becoming blank, again I need to click on the Execute Query button, but after that I can click on any other field it wont go invisible.
    THanks in advance
    Edited by: RizlyFaisal on Sep 25, 2008 2:30 AM

  • 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!

  • Execute query  not give result

    Hi master
    Sir lets suppose I have emp form and I put under blow code in when button press event
    When_Button_press
    go_block('emp');
    enter_query;
    :emp.deptno := 10;
    execute_query;
    but
    when I press button then no result no data in any field and curser present in first column or form.
    It is my idea the execute query are not run or these command are not run
    :emp.deptno := 10;
    execute_query;
    system not replace data and no run execute_query
    please give me idea
    Thanking you
    Muhammad Fahim Aamir

    Hi master
    Sir when I use this code with numeric data work fine
    DECLARE
         DD VARCHAR2(15);
    BEGIN
         DD:=10;
    set_block_property('emp', default_where, 'where
    DEPTNO='||DD);
    go_block('emp');
    execute_query;
    set_block_property('emp', default_where, '');
    END;
    But When use with string data then not give result I
    press f8 and show all record
    With character not give any result
    DECLARE
         DD VARCHAR2(15);
    BEGIN
         DD:='SALESMAN';
    set_block_property('emp', default_where, 'where
    RTRIM(EMPNO)='||DD);
    go_block('emp');
    execute_query;
    set_block_property('emp', default_where, '');
    END;
    Please give me any ideaYour problem is in your where clause you do not put the word where in the where clause as it is assumed
    I usually declare a variable v_where VARCHAR2(200);
    and then assign it my new where clause
    v_where := ' RTRIM(EMPNO)='||DD;
    GO_BLOCK ('emp');
    SET_BLOCK_PROPERTY('emp',default_where, v_where);
    EXECUTE_QUERY;
    v_where := null; ---clean up
    This allows you to easily put your where clause into a message
    message(v_where);
    so you can see what is really being queried. This is very useful when you are using multiple values to make sure you have all the apostrophes that you need
    eg: v_where := v_where := 'item_type <> ''CAT'''||' and user_id = '''||:login.user_id||'''';

  • Trigger query not executed and havenot any exception

    Hello all,
    I am using oracle 10g lite database, and i m firing a create trigger query, but it is not executed on console, when i try at console at this trigger query after that no one query will fire,
    Plzzzzzzzzzzzzzzzzzzz help me
    my used table is
    1. create table t1 ( c1 int, c2 int);
    2. create table t2 (c1 int, c2 int);
    3. Create trigger System.check after insert on system.t1 For each Row begin Insert Into system.t2 ( c1,c2 ) Values (1,1) ;end ;
    Thankx in advance
    Pankaj

    Triggers are supported on the client side in newer versions:
    11.2.1 Creating Java Stored Procedures
    To create a stored procedure, perform the following:
    1.
    Create the class that you want to store in Oracle Database Lite. You can use any Java IDE to write the procedure, or you can simply reuse an existing procedure that meets your needs.
    When creating the class, consider the following restrictions on calling Java stored procedures from SQL DML statements:
    When called from an INSERT, UPDATE, or DELETE statement, the method cannot query or modify any database tables modified by that statement.
    When called from a SELECT, INSERT, UPDATE, or DELETE statement, the method cannot execute SQL transaction control statements, such as COMMIT or ROLLBACK.
    Note:
    Any SQL statement in a stored procedure that violates a restriction produces an error at run time.
    2.
    Provide your class with a unique name for its deployment environment, since only one Java Virtual Machine is loaded for each Oracle Database Lite application. If the application executes methods from multiple databases, then the Java classes from these databases are loaded into the same Java Virtual Machine. We recommend that you prefix the Java class name with the database name to ensure that the Java class names are unique across multiple databases.
    3.
    If you are executing any DML statements in your Java stored procedure, then—in order for these statements to exist within the same transaction—you must pass an argument of type java.sql.Connection as the first argument in the method. You must have the Connection object in order to prepare and execute any statements. Oracle Database Lite supplies the appropriate argument value of the Oracle Lite database Connection object for you; the application executing the method does not need to provide a value for this parameter.

  • Execute Query not working on custom forms

    Hi
    After upgrading from 11.5.10.2 and Oracle 9.2.0.5 to ATG6, AD6, oracle 10.2.0.4, Forms 6.0 (Form Compiler) Version 6.0.8.28.0 . The execute query (F11 & CTRL F11) is not working on custom forms. But after tabbing from one column to another column then press CTRL F11 is working.
    Please any one help me on this issue.
    Thanks
    sva

    Hi
    I found this error in the trace file. Please help me what is the problem, the data is there in the table.
    Out Argument 0 - Type: String Value: ORA-01403: no data found
    Executing NAME_IN Built-in:
    In Argument 0 - Type: String Value: parameter.G_query_find
    Out Argument 0 - Type: String Value: NULL
    Executing USER_EXIT Built-in:
    In Argument 0 - Type: String Value: FND MESSAGE_CLEAR
    MCXQPBULKINVOICEENTER, -1, Built-In, Entry, -1196178744, USER_EXIT
    TSE FSERVER_START -1 1407 1279530838565801000
    TSE FSERVER_END -1 0 1279530838579778000MCXQPBULKINVOICEENTER, -1, Built-In, Exit, -1196091744, USER_EXIT
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Entering app_debug.clear
    In Argument 1 - Type: String Value: global.frd_debug
    Executing FIND_GROUP Built-in:
    In Argument 0 - Type: String Value: APP_DEBUG
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Completed app_debug.free.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing MESSAGE Built-in:
    In Argument 0 - Type: String Value: FRM-41003: This function cannot be performed here.
    In Argument 1 - Type: Number Value: 121
    Unhandled Exception ORA-100501
    State Delta:
    MCXQPBULKINVOICEENTER, -2, Trigger, Exit, -1190876744, ON-ERROR
    ##### CTIME STARTS HERE
    # 8 - MCXQPBULKINVOICEENTER:BLOCKNAME.RADIO_BUTTON81.1279530839956685000
    KEY Execute_query
    Error Message: FRM-41003: This function cannot be performed here.
    N-ERROR Trigger Fired:
    Form: MCXQPBULKINVOICEENTER
    State Delta:
    MCXQPBULKINVOICEENTER, -2, Trigger, Entry, 181183256, ON-ERROR
    MCXQPBULKINVOICEENTER, -1, Prog Unit, Entry, 181304256, /MCXQPBULKINVOICEENTER-3/P58_07_DEC_200909_04_40
    Executing COPY Built-in:
    In Argument 0 - Type: String Value: Entering app_standard.event. Event is ON-ERROR.
    In Argument 1 - Type: String Value: global.frd_debug
    Executing ERROR_TYPE Built-in:
    Out Argument 0 - Type: String Value: FRM
    Executing ERROR_CODE Built-in:
    Out Argument 0 - Type: Number Value: 41003
    Executing ERROR_TEXT Built-in:
    Out Argument 0 - Type: String Value: This function cannot be performed here
    Thanks
    sva

  • Execute query not workin on application server

    i have upgraded my form to 10.1.2.0.2 successfully and can host them using the application server ....
    in the form i have got various tab canvas,stacked canvas,contect canvas.....
    but my execute query function is not working ...dont know why

    @abdetu...
    hey buddy every thing is working fine now ....
    according to your suggestion i checked the errors...
    and found that some of the columns were not exported properly from the targer database ...
    after adding the database everything started to work perfectly fine
    once again thnx a lot for ur help and time

  • Query not executing for one particular value

    Hi
    I have query on multi provider. and this multi provider is combination of Info objects only but not any ODS or cubes. I have one key figure in this multi provider.while executing the query i need to give input for variabl which has 7 different values. Query is executing fine for 6 values but not for one particular value.
    query executed in listcube transaction and it is executed fine here for the same selection. then what might be the reason?
    Please advise as soon as possible.
    Thanks

    Hi Kiran,
    are you maintaining any filters in the query? or is there any logic in the exit for this variable.
    regards.

  • ViewLink accessor attribute NULL when VO has bind vars

    Hi! I noticed that a ViewLink accessor attribute returns a NullPointer when the ViewObject SQL has a bind variable. i have a data model with Dept and Employee ViewObjects that is connected via viewlink.
    I inserted a bind parameter :pDept and added on the whereclause "DeptNo = :pDept" to filter the employee returned based on Department. I then created a new Dept Row and a new employee on the same transaction (no commiting yet). When I got a reference to the viewLink accessor on the EmployeeViewRowImpl, i got a null reference when i tried to reference the viewLInk accessor for the department view:
    //code snippet inside EmployeeViewRowImpl
    void setAnAttribute(Object value) {
       Row row = getDeptView(); //returns null
    }I notice that when I removed the bind variables and the where clause, I get the correct ViewLink accessor.
    Is this expected behavior? if this is a bug, how can i get around this problem?

    hi anton.
    Maybe this is also related to your issue:
    "Difference Between View Link Attribute and View Link Instance in Data Model"
    http://radio.weblogs.com/0118231/stories/2004/11/08/differenceBetweenViewLinkAttributeAndViewLinkInstanceInDataModel.html
    success
    Jan Vervecken

  • Query not executing the results

    Hi,
    I have created a Custom Virtual Cube with a custom function module. This Cube displays data when i check it through the transaction code - LISTCUBE.
    I have a query which has to be executed on this Virtual Cube. When i execute this Query , it does not display any data at all. It always displays "No applicable data found".
    I have tried with the combination of inputs for which the data is available in the cube. but still it gives "No applicable data found".
    Can someone suggest me what i have to do to correct this problem.
    Thanks
    Maddy

    Hi Maddy,
    I also encountered similar problem in BI 7.0, which doesn't happen in BW 3.5, though I was using Basic Cube, not Virtual Cube. I could finally work it out. Here are the steps I used:
    - Right click on the InfoCube > choose "Manage".
    - In the "Requests" tab, click the traffic light button in the "Request Status" column, set it to "Status OK".
    - The "Request for Reporting Available" column will show the "Request is available for reporting" icon automatically.
    - Try to execute your query again.
    Hope this might be relevant to your situation as well.
    Regards,
    arie

  • Query not executing all columns

    Hi Experts
    My client is running a query. they have been using it for a little while now with no issues. I have attached the query as a formatted search on the item master data form. when one of their users runs the queriy through the formatted search, it doesnt show the last column. but when running it through the query manager, it works fine.
    its only giving this problem for the one user (doesnt matter if we log in as that user on his PC or any other PC) therefore it is user related.
    why could this be happening?

    OK below is the query:
    declare @CurUser as nvarchar(10)
    set @CurUser = $[user]
    if(@CurUser in (1,5,8,9,22,44
    begin
    with req as
    select [item number] as 'item',[required qty] as 'required', [forecast current month] as 'forecast', [sq] as 'SQ', [on hand]
    FROM VPP_2006SBO_GARSINLIVE.DBO.VLGX_GetPlannedItemDetails()
    Invoices AS  --Get invoices per item
    *(SELECT T0.[ItemCode], T0.[FrgnName], SUM(I1.[Quantity]) AS Qty,*
            *DATEDIFF(month, T0.CreateDate,getdate()) AS ItemMonths*            
       *FROM OITM T0  full outer join inv1 i1 on T0.ItemCode = I1.ItemCode*
                     *left join OINV I0 ON I0.DocEntry = I1.DocEntry*
      *WHERE I0.[DocDate] >= '2006-06-01'*
        *AND I0.DocType <> 'S'*
      *GROUP BY T0.[ItemCode], T0.[FrgnName], T0.CreateDate*
    *Credit AS               -- Get credit notes per item*
    (      SELECT C1.[ItemCode],
    *                C1.[Dscription],*
    *                SUM(C1.[Quantity]) AS Qty*
    *          FROM ORIN C0  INNER JOIN RIN1 C1 ON C0.DocEntry = C1.DocEntry*
           WHERE C0.[DocDate] >= '2006-06-01'
                 AND C0.DocType <> 'S'
          GROUP BY C1.[ItemCode], C1.[Dscription]
    ItemInfo As
    (SELECT T0.ItemCode[SearchCode], t0.ItemName,T0.FRGNName[Description], cast (cast ((T0.OnHand- T0.IsCommited) as decimal (5,0)) as nvarchar (10))[Available], cast (cast (T0.OnOrder as decimal (5,0)) as nvarchar (10))[Expected],
    (case when (T0.U_IMP is null or T0.U_IMP = '')  then '0' else T0.U_IMP end )as 'InputTube',
    *(T0.U_Wieghtm * T0.BLength1)[KgLength], T0.ValidComm[-], T2.Price[PriceL],  T0.SWW[Spec],T0.U_ManStd, T0.U_MaterialSpec,T0.U_WIEGHTM[KgMetre],* 
    (T2.Price/(CASE WHEN T0.BLength1 = 0 THEN 0.0001 ELSE T0.BLength1 END))[PriceM]
    FROM OITM T0  INNER JOIN ITM1 T2 ON T0.ItemCode = T2.ItemCode,
    OCRD T3
    WHERE T3.CardName = '[%1]'
    and LEFT(T0.ITEMCODE,1)<>'L'
    and t0.itmsgrpcod <> '105'
    and t0.itmsgrpcod <> '101'
    and t0.itmsgrpcod <> '112'
    and t0.itmsgrpcod <> '113'
    and t0.itmsgrpcod <> '111'
    and t0.itmsgrpcod<>'114'
    and T2.[PriceList] = T3.[ListNum]
    and T3.CardType = 'C'        
    --order by T0.ITEMNAME
    SELECT
    ITEMINFO.SearchCode,
    --iteminfo.itemname,
    ITEMINFO.Description,
    ITEMINFO.Available,
    (case when ITEMINFO.Expected is null then '0' else ITEMINFO.Expected end ) as 'Expected',
    (case when req.forecast is null then 0 when req.forecast = 0 then 0 when req.forecast > 0 then (iteminfo.available + (case when ITEMINFO.Expected is null then 0 else ITEMINFO.Expected end)) / (case when req.FORECAST is null then 0 else req.FORECAST end)end) as 'Months Left of Stock',
    --(case when Inv.[Qty] is null then Inv.[Qty]  else Inv.[Qty] end) as 'i qty',
    --(case when Crn.[Qty] is null then Crn.[Qty]  else Crn.[Qty] end) as 'c qty',
    --(case when Inv.ItemMonths is null then Inv.ItemMonths else Inv.ItemMonths end) as 'Invoice ItemMonths',
    (case when  (Inv.[Qty] is null or Crn.[Qty] is null) and Inv.ItemMonths is null then '0' when Inv.[Qty] is null then '0' when Inv.ItemMonths ='0' then Inv.[Qty] when Crn.[Qty] is null and Inv.[Qty] >=0 then (Inv.[Qty] / Inv.ItemMonths) ELSE ((Inv.[Qty] - Crn.[Qty]) / Inv.ItemMonths) END) AS 'Garsin Avg Sales Per Month',
    (case when req.FORECAST is null then '0' else req.FORECAST end) as 'Valogix Avg Sales Per Month',
    (case when ITEMINFO.InputTube is null then '0' else ITEMINFO.InputTube end) as 'Input Tube',
    (case when ITEMINFO.KgLength is null then '0' else ITEMINFO.KgLength end) as 'Kg Length',
    (case when ITEMINFO.PriceL is null then '0' else ITEMINFO.PriceL end) as 'Price L' ,
    (case when ITEMINFO.Spec is null then '0' else ITEMINFO.Spec end) as 'Standard/Non-Standard', Iteminfo.U_MaterialSpec as 'Material Grade',
    (case when iteminfo.U_manstd is null then ' ' else iteminfo.U_manstd end) as 'Manufacturing Standard' ,
    (case when ITEMINFO.KgMetre is null then '0' else ITEMINFO.KgMetre end) as 'Kg Metre',
    (case when Iteminfo.PriceM is null then '0' else Iteminfo.PriceM end) as 'Price M'
    FROM Invoices Inv left outer JOIN Credit Crn ON Inv.[ItemCode] = Crn.[ItemCode]
                      full outer join ItemInfo  ON Inv.[ItemCode] =ItemInfo.[SearchCode]
    *                         left outer join req on req.item =  iteminfo.searchcode collate SQL_Latin1_general_CP850_CI_AS     *
    where Iteminfo.SearchCode is not null
    GROUP BY iteminfo.itemname , ItemInfo.[SearchCode], ItemInfo.[Description],Iteminfo.Available, Inv.Qty, Crn.Qty, Inv.ItemMonths, Iteminfo.Expected, ItemInfo.InputTube, ItemInfo.KgLength, Iteminfo.PriceL, ItemInfo.Spec,iteminfo.U_manstd,Iteminfo.Kgmetre, Iteminfo.U_MaterialSpec,ItemInfo.PriceM,req.FORECAST
    order by iteminfo.itemname
    end
    else
    begin
    WITH Invoices AS  --Get invoices per item
    *(SELECT T0.[ItemCode], T0.[FrgnName], SUM(I1.[Quantity]) AS Qty,*
            *DATEDIFF(month, T0.CreateDate,getdate()) AS ItemMonths*            
       *FROM OITM T0  full outer join inv1 i1 on T0.ItemCode = I1.ItemCode*
                     *left join OINV I0 ON I0.DocEntry = I1.DocEntry*
      *WHERE I0.[DocDate] >= '2006-06-01'*
        *AND I0.DocType <> 'S'*
      *GROUP BY T0.[ItemCode], T0.[FrgnName], T0.CreateDate*
    *Credit AS               -- Get credit notes per item*
    (      SELECT C1.[ItemCode],
    *                C1.[Dscription],*
    *                SUM(C1.[Quantity]) AS Qty*
    *          FROM ORIN C0  INNER JOIN RIN1 C1 ON C0.DocEntry = C1.DocEntry*
           WHERE C0.[DocDate] >= '2006-06-01'
                 AND C0.DocType <> 'S'
          GROUP BY C1.[ItemCode], C1.[Dscription]
    ItemInfo As
    (SELECT T0.ItemCode[SearchCode], t0.ItemName,T0.FRGNName[Description], cast (cast ((T0.OnHand- T0.IsCommited) as decimal (5,0)) as nvarchar (10))[Available], cast (cast (T0.OnOrder as decimal (5,0)) as nvarchar (10))[Expected],
    (case when (T0.U_IMP is null or T0.U_IMP = '')  then '0' else T0.U_IMP end )as 'InputTube',
    *(T0.U_Wieghtm * T0.BLength1)[KgLength], T0.ValidComm[-], T2.Price[PriceL],  T0.SWW[Spec], T0.U_MaterialSpec,T0.U_WIEGHTM[KgMetre],* 
    (T2.Price/(CASE WHEN T0.BLength1 = 0 THEN 0.0001 ELSE T0.BLength1 END))[PriceM]
    FROM OITM T0  INNER JOIN ITM1 T2 ON T0.ItemCode = T2.ItemCode,
    OCRD T3
    WHERE T3.CardName = '[%1]'
    and LEFT(T0.ITEMCODE,1)<>'L'
    and t0.itmsgrpcod <> '105'
    and t0.itmsgrpcod <> '101'
    and t0.itmsgrpcod <> '112'
    and t0.itmsgrpcod <> '113'
    and t0.itmsgrpcod <> '111'
    and t0.itmsgrpcod<>'114'
    and T2.[PriceList] = T3.[ListNum]
    and T3.CardType = 'C'        
    --order by T0.ITEMNAME
    SELECT
    ITEMINFO.SearchCode,
    --iteminfo.itemname,
    ITEMINFO.Description,
    ITEMINFO.Available,
    (case when ITEMINFO.Expected is null then '0' else ITEMINFO.Expected end ) as 'Expected',
    (case when ITEMINFO.InputTube is null then '0' else ITEMINFO.InputTube end) as 'Input Tube',
    (case when ITEMINFO.KgLength is null then '0' else ITEMINFO.KgLength end) as 'Kg Length',
    (case when ITEMINFO.PriceL is null then '0' else ITEMINFO.PriceL end) as 'Price L' ,
    (case when ITEMINFO.Spec is null then '0' else ITEMINFO.Spec end) as 'Standard/Non-Standard', Iteminfo.U_MaterialSpec as 'Material Spec',
    (case when ITEMINFO.KgMetre is null then '0' else ITEMINFO.KgMetre end) as 'Kg Metre',
    (case when Iteminfo.PriceM is null then '0' else Iteminfo.PriceM end) as 'Price M'
    FROM Invoices Inv left outer JOIN Credit Crn ON Inv.[ItemCode] = Crn.[ItemCode]
                      full outer join ItemInfo  ON Inv.[ItemCode] =ItemInfo.[SearchCode]
    where Iteminfo.SearchCode is not null
    GROUP BY iteminfo.itemname , ItemInfo.[SearchCode], ItemInfo.[Description],Iteminfo.Available, Inv.Qty, Crn.Qty, Inv.ItemMonths, Iteminfo.Expected, ItemInfo.InputTube, ItemInfo.KgLength, Iteminfo.PriceL, ItemInfo.Spec,Iteminfo.Kgmetre, Iteminfo.U_MaterialSpec,ItemInfo.PriceM
    order by iteminfo.itemname
    end
    >>BASICALLY THERE ARE 2 QUERIES BUILT INTO ONE. IF THE USERCODE IS 1,5,8,9,22, OR 44 THEN IT WILL EXECUTE THE FIRST PART OTHERWISE IT EXECUTES THE OTHER PART. THIS ISNT THE ISSUE WTH MY QUERY AS I HAVE CHECKED THE USERCODE.

  • ABAP query not executing

    Dear all,
    I have created ABAP query on purchasing. But in SQ1, when I executed " TEST", it throws message "List is wider than 255 characters (generation not possible) ". please let me know what changes I need for successful execution of query?
    thanks and regards,
    Prashanth

    Hi Prashanth,
    It seems that the output that you generate is wider than 255 char. try with lesser fields in the output and check.
    Hope it helps.
    Thanks,
    Anju

  • Query not executing any results

    Hi,
    I have created a Custom Virtual Cube with a custom function module. This Cube displays data when i check it through the transaction code - LISTCUBE.
    I have a query which has to be executed on this Virtual Cube. When i execute this Query , it does not display any data at all. It always displays "No applicable data found".
    I have tried with the combination of inputs for which the data is available in the cube. but still it gives "No applicable data found".
    Can someone suggest me what i have to do to correct this problem.
    Thanks
    Maddy

    Hi Maddy,
    I also encountered similar problem in BI 7.0, which doesn't happen in BW 3.5, though I was using Basic Cube, not Virtual Cube. I could finally work it out. Here are the steps I used:
    - Right click on the InfoCube > choose "Manage".
    - In the "Requests" tab, click the traffic light button in the "Request Status" column, set it to "Status OK".
    - The "Request for Reporting Available" column will show the "Request is available for reporting" icon automatically.
    - Try to execute your query again.
    Hope this might be relevant to your situation as well.
    Regards,
    arie

  • BIC7.0.3 Level4 BCT-CO Query not executing

    BI7.0 SP10
    BI Content 7.0.3 Level 4
    Hello All,
    I have installed the Business Content Controlling Analysis scenario.  I have loaded the master and transactional data.  I am now trying to execute business content queries (0CCA_C11_Q00XX).  When trying to execute queries for 0CCA_C11 via Query Designer (BI7.0), I am getting the following error:
    "Variable 0P_FVAEX could not be replaced"
    This error occurs after I have entered fields for the selection screen then attempted to execute the query.
    All help is appreciated!
    Thanks,
    -B

    0P_FVAEX is an SAP Exit variable for the fiscal year variant characteristic

Maybe you are looking for