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.

Similar Messages

  • ADF FACES: af:table not rendering all columns

    I'm using ADF EA 17 with myFaces 1.0.9 on JBoss 4.0.1/JVM 1.4.2_07-b05. The af:table is embedded within an af:panelgroup (being body of af:panelbox).
    The af:table is not rendering all columns (only last 2 out of 8 cols total). The model behind the af:table is a java.util.List. Debugging shows that the list is filled up with beans correctly and that each of the properties of such a bean corresponding to a table column are also set correctly.
    Strange thing is that sometimes all columns are rendered ok. Especially if i make heavy changes on the jsp (e.g. removing all but 2 cols from the af:table) and dropping it into the .../jboss/server/../tmp/deploy/tmpXYZ-exp.war directory. Restarting JBoss results in the old behaviour. Also closing browser and re-opening it yields to the missing columns again.
    I've set breakpoints on the bean properties representing on table column and i can see, that the getter methods aren't called (all but those 2 that get rendered finally)
    Table has multiselection enabled with 1 command button.
    This happens with both IE 6 and Firefox 1.0.4; no oracle, myFaces exceptions visible on console or any log file.
    Has anybody made same experiences so far or an idea what the problem really is ?
    best regards,
    Christoph.

    I've tried it also with a plain af:table without any surrounding af:panelgroup or/and af:panelbox. Same result.
    The bean holding the table-model (the java.util.List) is in session-scope. the table-model is update by an actionListener fetching values from an EJB. Could the session-scope be a problem ?
    Potential candidates from my point of view, that might cause trouble here:
    --) Caching (i've seen that sort of "CachedRenderers" are used
    --) partial page rendering
    --) multi-threading issue.
    --) or any silly mistake of mine :-)
    best regards,
    Christoph

  • Table not displaying all column

    hi my table>adf table does not display all column when i run the application it only display the first three column but in design it display all column

    hi user,
    i think so some panelcollection is closely strecthed, so only this problem.
    go to panelcollection make it as styleClass=" AFStretchWidth" .
    solution:
    if you are used panelcollection inside af:table means it will suits.
    or else go to the af:table add this
    styleClass=" AFStretchWidth"
    columnStretching="last"
    or else some problem:
    please elaborate or else paste the part of the code.

  • Query not displaying all records when execute it first tme

    Hello,
    i have an issue with the WEBI report.when i run  the report first time it's displaying only few records, but when i run the same report second time it's displaying the more records and it's correct.
    Could any one tell me why it's not displaying all records when i execute first time.
    Thanks in advance for your help.
    Regards,
    Prathap

    Which BOBJ version do you use?
    Which kind of data source are you retrieving data from?
    Regards,
    Stratos

  • Bex Query not passing blank columns to crystal reports

    good morning ladies and gentleman,
    i have created a bex query that shows all employees from the master data table and links to the cats table to show absence hours...
    in bex, all employees are showing and some of the employees have hours showing for sick time. very good...
    i have created a report in crystal with this bex query and it does not show rows from the master data that do not have a link to the cats table. only the rows that have a link to the cats table are showing up.
    the reason i need the master data from the employee table is that the users want to divide the total hours off(sick time) per department by the total employees in that department.
    i have tried to create a formula that will add 1 to the hours sick field, then all the rows should have a amount in it. but, it still does not show the employees who do not have sick time.
    here is the sql query from crystal.
    SELECT {[Measures].[4J8L2TQJ3P517ISQ1R4Y8UZ36], [Measures].[4J9PY3UANRIW2HW15YSOED92A], [Measures].[4J9TLIO0NDQROSA2YONCW6HB6]}
    ON COLUMNS, 
    NON EMPTY
    CROSSJOIN([0EMPLOYEE].[LEVEL01].MEMBERS, [0EMPLOYEE__0COMP_CODE].[LEVEL01].MEMBERS)
    DIMENSION PROPERTIES [0EMPLOYEE].[50COMP_CODE], [0EMPLOYEE].[50MAST_CCTR] ON ROWS
    FROM [ZCATS_MC1/ZZCATS_MC1_Q001C]
    SAP VARIABLES [0I_DAYS] INCLUDING [0CALDAY].[20100502] : [0CALDAY].[20100903]
    this is kind of an emergency and i have been working on this for two days and cannot come to a resolution.
    if anyone can help, i would appreciate it.
    i am guessing that there is a option somewhere that will allow blank records to show.
    please help.
    thanks,
    erik

    miss stated the issue. created new note.

  • Bex Query not passing all rows to Crystal reports

    hello experts,
    i have created a bex query that shows all employees from the master data table and links to the cats table to show absence hours...
    in bex, all employees are showing and some of the employees have hours showing for sick time. this is known as a left outer join.
    i have created a report in crystal with this bex query and it does not show rows from the master data that do not have a link to the cats table. only the rows that have a link to the cats table are showing up. (this is compared to a inner join)
    the reason i need the master data from the employee table is that the users want to divide the total hours off(sick time) per department by the total employees in that department.
    here is the sql query from crystal that was created automatically when i used the bex query to created the crystal report.
    SELECT {Measures.4J8L2TQJ3P517ISQ1R4Y8UZ36, Measures.4J9PY3UANRIW2HW15YSOED92A, Measures.4J9TLIO0NDQROSA2YONCW6HB6}
    ON COLUMNS,
    NON EMPTY
    CROSSJOIN(0EMPLOYEE.LEVEL01.MEMBERS, 0EMPLOYEE__0COMP_CODE.LEVEL01.MEMBERS)
    DIMENSION PROPERTIES 0EMPLOYEE.50COMP_CODE, 0EMPLOYEE.50MAST_CCTR ON ROWS
    FROM ZCATS_MC1/ZZCATS_MC1_Q001C
    SAP VARIABLES 0I_DAYS INCLUDING 0CALDAY.20100502 : 0CALDAY.20100903
    i am using the mdx driver, and the integration kit is 2.8.
    any thoughts?
    thanks,
    erik

    Thanks Ingo for the quick response.
    this sounds like a limitation in the integration between bex and crystal because the query shows the correct data and the crystal reports does not. i have tried to add a calculated key figure to all the rows and put a number in it but it still does not show the rows in crystal.
    my issue is that they(the business users) want to know all the employees in the employee master data along with all the sick / illness data.
    do you have a suggestion for this issue?
    do you think that the mdx driver should be updated to allow master data to flow to crystal?
    thx,
    Erik

  • Out put in Background (SM37) not showing All columns

    Hi Folks,
             I’m creating an out put display for my query in background , we have define an output device , after submitting the query in back ground it just showing me only 10 columns . I mean I its not showing me all columns when I went to SE37-> select job->”spool ->view (display).
    Why it’s happening?
    Please help me
    Cheers
    Usman

    When you are submitting the job in background by exexuting your query from Sq01 or Tr.code , a screen will pop-up ask for you device name, on the same screen you’ll see properties hit that, it’ll take you to another screen and change the report format 65 and 200 or 65 and 200. It depends on your out put device . You can only display report till 255 . If you want to active ALV functional enable in background spool job you have to use extracts for that . So you can download your data in correct format.
    You can also decrease the length of variables in query so within 255 characters you can see all report columns. 
    Hope this’ll help you .
    Hope this’ll give you idea!!
    <b>P.S award the points.</b>
    Good luck
    Thanks
    Saquib Khan
    "Some are wise and some are otherwise"

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

  • Function module u0091GET_PRINT_PARAMETERSu0092 Not showing all columns

    Hello all,
    I am using function module ‘GET_PRINT_PARAMETERS’
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          DESTINATION    = LOC_DEST
          COPIES         = WF_COPIES
          LIST_NAME      = WF_LISTNAME
          LIST_TEXT      = WF_LISTTEXT
          IMMEDIATELY    = ' '
          RELEASE        = ' '
          NEW_LIST_ID    = 'X'
          EXPIRATION     = WF_DAYS
          LINE_SIZE      = 132
          LINE_COUNT     = 65
          LAYOUT         = 'X_65_132'
          SAP_COVER_PAGE = 'X'
          RECEIVER       = 'SAP*'
          DEPARTMENT     = ''
          NO_DIALOG      = 'X'
        IMPORTING
          OUT_PARAMETERS = WF_PARAMS
          VALID          = WF_VALID.
    NEW-PAGE PRINT ON PARAMETERS WF_PARAMS NO DIALOG.
        PERFORM WRITE_PDF_SUMMARY USING P_VALID P_COND P_ZMGC P_ZOGC P_PDF.
        NEW-PAGE PRINT OFF.
    But in my report there are 10 columns and in download file it’s showing only 6 columns .If I increase that size to X_65_200 Then it shows all columns But it’s not readable. Please tell me how can I use that fix size X_65_132 & it will show all columns .
    Message was edited by:
            megha waykar

    You r right,But that program is already developed in following sequence
    *==>  1. Create Virtual Spool
                using FUNCTION 'GET_PRINT_PARAMETERS'
    *==>  2. Write Report to Virtual Spool. Use NEW-PAGE PRINT ON option.
                NEW-PAGE PRINT ON PARAMETERS WF_PARAMS NO DIALOG.
                PERFORM WRITE_PDF_SUMMARY USING P_VALID            
                NEW-PAGE PRINT OFF.
    *===> 3. Prepare Path and set spool number.
    *===> 4. Convert List to PDF format.
                 Use function 'CONVERT_ABAPSPOOLJOB_2_PDF'
    *==> 5. download PDF file
                CALL FUNCTION 'GUI_DOWNLOAD'.
    and it's not showing readable download file.
    I don't have to change whole coding. I just want to increase that font.

  • CRM 2011 Outlook Client not showing all columns in Opportunity Views

    Versions:
    CRM: 2011 On-Premise - 5.0.9688.1533
    Outlook: 2010 Professional - 14.0.6122.5000 32bit
    CRM Client for Outlook: 5.0.9690.1992
    Basic Problem
    The Outlook Client views that show up in Opportunities do not have all the columns that are in the view. 
    Some of the views do, but not all of them.
    Example:
    View Name: Won Opportunities
    Columns in view: Created on, Location, Quote Type, Scope of Work, Quote Number, Booked Sale Date.....8 other
    columns (many custom columns)
    Columns in View in Outlook: Icon, Quote Number, Categories, Flag....thats all.
    Other Notes
    This only happens in the Opportunity section of the Outlook Client. 
    This does not happen in advanced find in Outlook or anywhere in the web client. This does not happen for any other entity.
    This happens on all of our users Outlook clients.
    I have tried recreating the view.
    No error messages are recording in any logs that I can find.
    Any ideas on why this is happening or how to fix it?
    Thank you
    Paul

    1. Are you sure this is a System View and not a User Defined View? Can you take a screenshot of all the availalbe Outlook views when you click on the little down arrow to add a new view? Yes.  See the screen shot at the bottom.  It is a public
    view.
    2. What happens when you close the view and add it back?  same results.
    3. What happens when you restart Outlook? I ask because if you customized your System Views, those are only persistent for a given session. If your restart Outlook, then it should reset the View.  we have tried that.  and uninstalled Outlook client
    and reinstalled.  And uninstalled Outlook and reinstalled.  Same results.  The only view that works for opportunities is the Default Custom View.  The strange thing is that the filters are working just fine. just not the columns. 
    4. A workaround - have you tried creating a new System View similar to the one you want? Yes.  same results

  • DB Adapter not returning all columns from a sql table type

    Using Soa Suite 10.1.3.4.
    Calling DB Adapter from bpel to a database package procedure with an OUT NOCOPY parameter based on a TABLE OF type.
    It works fine except that I only get the first 14 columns out of 55.
    Can query all columns from Sqldeveloper or Sqlplus.
    XML skema reflects all columns correct.
    Same result without NOCOPY in parameter.
    HaveI missed some details/limitations?

    hi
    here is how I solved it.
    first create custom view that will find all requred data.
    in my case it was
    tables :
    ADRCITYT
    ADRCITY
    ADRPCDCITY
    T005S
    T005U
    joins :
    ADRCITY     CLIENT     =     ADRCITYT     CLIENT
    ADRCITY     COUNTRY     =     ADRCITYT     COUNTRY
    ADRCITY     CITY_CODE     =     ADRCITYT     CITY_CODE
    ADRCITY     CLIENT     =     ADRPCDCITY     CLIENT
    ADRCITY     COUNTRY     =     ADRPCDCITY     COUNTRY
    ADRCITY     CITY_CODE     =     ADRPCDCITY     CITY_CODE
    T005S     MANDT     =     ADRCITY     CLIENT
    T005S     BLAND     =     ADRCITY     REGION
    T005S     MANDT     =     T005U     MANDT
    T005S     LAND1     =     T005U     LAND1
    T005S     BLAND     =     T005U     BLAND
    and finaly searh help
    ORT01     3     3     PAD_ORT01
    CITY_CODE     0     2     CITY_CODE
    PSTLZ     1     1     PSTLZ_HR
    STATE     4     4     REGIO
    BEZEI     5     5     BEZEI20
    COUNTRY     0     6     LAND1
    LANGU     0     7     LANGU

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

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

  • Personnel Admin AdHoc Query not retrieving all records

    Hi, I recently added a custom info type to a copy of the SAP ad hoc query for Personnel Admin by using the menu path in SQ02>Edit>Change Infotype selection . The query is picking up the new info type and runs fine but does not retrieve all records from the table for a given personnel id. It only retrieves 1 record per id.
    Has anyone dealt with this before and have an easy/quick fix for this?

    Have other users try the query, preferably a user with end user authorization.
    I've had this issue before, I'm an IT person and I customized a Standard infoset.
    During testing, I'm only getting 1 (in my case) Insurance record per employee.
    The end user can see multiple record per employee.
    Btw, did you customize a Global or a Standard Infoset?
    Regards,
    Olekan

Maybe you are looking for

  • Is there any way to have a COMPLETE list of all samples and loops ( Logic 8

    I'm sure it's been posted previously, but anyway, I'm looking to buy new Apple Loops libraries and I have faced the fact , that many of the sounds and loops produced by third parties manufacturers have been already included in Logic installation disc

  • My Laptop fell! Will my ADH even work?!!!

    After getting some things done in the library at school I decided to leave, as usual I carry my laptop, my books, my frap, etc. Well as I am going down the stairs I missed a step and stupidly enough tried to save everything all at once! My laptop wen

  • "Waiting for RAID Controller F/W to become ready..."

    Hello Lately I have been getting this message more often than not -- before Windows 7 (not) booting:  "Waiting for RAID Controller F/W to become ready..." Any suggestions? I have a Areca  ARC-1680D-IX 12-ports SAS RAID Thanks Rowby

  • Update with Outer Join, round 2

    Thanks for those of you who helped me out on the first one (I never thought that you could use a one-row SELECT like that). However, here is a new version of my problem: I have three tables. Table_1 has a column that needs to be updated based on valu

  • Which of these 2 laptops would be my best choice for editing video?

    I am going to get a new laptop mainly to use for LR and PS but I also want to be able to edit video.  Which of these 2 laptops is my best option... ASUS ROG G751JT-CH71 Intel Core i7-4710HQ 2.5 GHz 16 GB DDR3 1000 GB 7200 rpm Hard Drive 17.3-Inch Scr