Bex Query variants not working

Hello Experts,
I have a unique problem with one of my queries, the query variants which are created before Nov 1 are not fetching any vaules instead it gives a message MAKE ENTRY IN ALL THE FIELDS......
the variants which are created in Nov are working fine.....we have not done any upgrade....
does anyone faced this kind of problem? what needs to done to get back the variant values in the selection screen.
Any help is highly appreciated.
Regards

Was there a change to an InfoObject that is in the InfoProvider that is also one of the query input options?
e.g. IO ZHARA used to be defeined as a Char with a length of 4, but was changed after Nov 1 to Char, length of 8.
If you change an IO like this that is in the variant, that will render the variant unusable.
There is a program that checks for variants that have been broken like this, and another that you enter the query's technical name and it repairs the variant.
Try a search on SDN for something like "query variant program".  I'll post the program names after I get back in the office tomorrow.

Similar Messages

  • Bex Query is not working in portal

    Dear Experts,
    i have uploaded BI master role into portal, By default Bex Queries are assgined to Master Role. when I clcik on preview for particular Bex Query, it's working fine. but after assigning the master role to end user, that same Bex Query is not working. it's showing Below error..
    Portal runtime error.
    An exception occurred while processing your request. Send the exception ID to your portal administrator.
    Exception ID: 05:22_18/08/10_0002_7116150
    Refer to the log file for details about this exception.
    please give me suggetions...
    Regards,
    VENU

    Hi Venu ,
    Can you please check the logs for details -  http(s):<host>:<port>/nwa . This may be a permissions issue . Check if the iview has read permission for everyone group and then test . Also post the error details here .
    Regards
    Mayank

  • Optional BEx query variables not working in WebI

    Hi,
    I have an Webi report based on Bex Query using BICS connection.
    One characteristic is restricted with two variables. First an authorization variable and additional with an input ready variable.
    This input ready variable is optional. When it comes up in webi and you choose a value it doesn't filter on it.
    We are on BO 4.1. SP3 and BW 7.31.
    With SAP_ALL the optional prompt is working, but for a user with limited access, the optional variable doesn't work.
    I have already made a RSRT trace with a test user. But I'm not sure what's the problem.
    Trace returned:
    S_RS_AUTH  RC=4 -->  BIAUTH=0BI_ALL; type=RF;name=BICS_PROV_OPEN;
    But I don't want to give the user 0BI_ALL, otherwise my analysis authorizations for this info object would be obsolete.
    Any ideas?
    Thx and Regards,
    Katharina

    Hi Neetika,
    thank you for your advice!
    I tried the filter without authorziation variable and it was working.
    I in addition I tried another option: I defined auth variable as input ready and deleted filter variable and that would work working.
    With this setting I recognized that for the authorization variable all allowed values are set as default values! If you execute query with SAP_ALL no default is set, but with limited access the allowed values are set as default.
    This may be the problem here. I don't know if this behaviour is by design or if there is a problem with rights?
    But now I know where the problem comes from.
    Regards,
    Katharina

  • Custom Filter in Universe on top of BEX Query is not working in BO Explorer?

    Hi,
    I have created Condition(Filter) for an Dimension Object "Submitted by Group Hierarchy" in Universe designer tool on top of SAP BEx Query and then exported the universe to Repository.
    <FILTER KEY="@Select(Submitted By Group Hierarchy\L01 Submitted By Group Hierarchy).[TECH_NAME]"><CONDITION OPERATORCONDITION="InList"><CONSTANT CAPTION="@Prompt('Submitted By Group ','A',' Submitted By Group Hierarchy\L01 Submitted By Group Hierarchy',multi,primary_key,,{‘Direct Sales’)"/></CONDITION></FILTER>
    To test my custom filter , I have created WEBI report and its allowing input entry in my custom filter and output is also coming .
    where as in Explorer, i am not able to enter input values for my custom filter as below.
    Can anyone suggest me how to create custom filter in universe and use it in explorer.
    Thanks in advance.
    Regards,
    Ramana.

    Hi Ramana,
    Please try using 'mono' in place of multi in @prompt syntax and then test.
    Regards,
    Pranay Sharma

  • Temporary Table In SAP Query - Does not Work?

    DECLARE @date DATE
    DECLARE @delrows INT
    DECLARE @delquan INT
    DECLARE @a INT
    DECLARE @recrows INT
    DECLARE @recquan INT
    SET @a=0
    IF OBJECT_ID('tempdb..##tab) IS NOT NULL DROP TABLE ##tab
    CREATE TABLE ##tab
    [Date] date,
    [Delivery Rows] varchar(40),
    [Delivery Total Units] varchar(40),
    [Receipts Rows] varchar(40),
    [Receipts Total Units] varchar(40),
    WHILE @a!=7
         BEGIN
         SET @date=DATEADD(day,-@a, getdate())
         SELECT @delrows=ISNULL(COUNT(DLN1.[LineNum]),0), @delquan=ISNULL(SUM(DLN1.[Quantity]),0)
         FROM ODLN
         INNER JOIN DLN1 ON ODLN.[DocEntry]=DLN1.[DocEntry]
         WHERE ODLN.[CreateDate] = @date
         SELECT @recrows=ISNULL(COUNT(PCH1.[LineNum]),0) , @recquan=ISNULL(SUM(PCH1.[Quantity]),0)
         FROM OPCH
         INNER JOIN PCH1 ON OPCH.[DocEntry]=PCH1.[DocEntry]
         WHERE OPCH.[DocDate]=@date
         SET @a=@a+1
              INSERT INTO ##tab VALUES(@date,@delrows,@delquan,@recrows,@recquan)
    END
    SELECT * FROM ##tab
    {/code}
    Can anyone explain why this query does not work in SAP? It works fine on SQL but gives me this message in SAP:
    1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near ')'.
    2). [Microsoft][SQL Server Native Client 10.0][SQL Server]Statement 'Service Contracts' (OCTR) (s) could not be prepared.
    Edited by: Chris Candido on Feb 2, 2011 8:38 PM

    Chris,
    There are several areas in your code which needed changes. 
    1. On the field name for your temp table you had spaces.
    2. The SAP table name ODLN, OPCH, PCH1 had to be fully referenced like
    [dbo].[ODLN]
    3. You really need not have ## in front of your temp table, it could just be #
    The select at the end is actually what causes the most problem as for some reason from within SAP it does not produce the result.  I would suggest you put the whole code into a Stored Procedure and call the SP from SAP.  Corrected SQL below.  If you remove the Select line at the end the query would work with in SAP, but keep it give give you an error. SP is the best option for this.
    DECLARE @date DATE
    DECLARE @delrows INT
    DECLARE @delquan INT
    DECLARE @a INT
    DECLARE @recrows INT
    DECLARE @recquan INT
    SET @a=0
    IF object_id('tempdb..#tab') IS NOT NULL
    BEGIN
       DROP TABLE #tab
    END
    CREATE TABLE #tab
    [Date] date,
    DeliveryRows varchar(40),
    DeliveryTotalUnits varchar(40),
    ReceiptsRows varchar(40),
    ReceiptsTotalUnits varchar(40),
    WHILE @a!=7
    BEGIN
    SET @date=DATEADD(day,-@a, getdate())
    SELECT @delrows=ISNULL(COUNT(DLN1.LineNum),0), @delquan=ISNULL(SUM(DLN1.Quantity),0)
    FROM [dbo].[ODLN]
    INNER JOIN DLN1 ON [dbo].[ODLN].DocEntry=DLN1.DocEntry
    WHERE [dbo].[ODLN].CreateDate = @date
    SELECT @recrows=ISNULL(COUNT([dbo].[PCH1].LineNum),0) , @recquan=ISNULL(SUM([dbo].[PCH1].Quantity),0)
    FROM [dbo].[OPCH]
    INNER JOIN [dbo].[PCH1] ON [dbo].[OPCH].DocEntry=[dbo].[PCH1].DocEntry
    WHERE [dbo].[OPCH].DocDate=@date
    SET @a=@a+1
    INSERT INTO #tab VALUES(@date,@delrows,@delquan,@recrows,@recquan)
    END
    SELECT * FROM #tab
    Suda Sampath

  • Query is not working correctly

    Hi all,
    Below query is not working correctly. Please let me know, if you find the mistake
    select
    a.name,
    b.VOD_NAME,
    count(xm.ATTRIB_03)
    from
    siebel.s_vod b
    left outer join ISS_OBJ_DEF c on b.OBJECT_NUM=c.PAR_VOD_ID
    left outer join vod d on c.VOD_ID=d.row_id
    left outer join PROD_INT a on d.OBJECT_NUM=a.CFG_MODEL_ID
    left outer join PROD_INT_XM xm on a.row_id=xm.PAR_ROW_ID
    where
    b.VOD_TYPE_CD='CLASS_DEF'
    and
    c.LAST_VERS = 0
    and
    b.vod_name='Componentes'
    group by a.name,b.vod_name having count(xm.ATTRIB_03) >=5

    user9522927 wrote:
    Hi all,
    Below query is not working correctly. Please let me know, if you find the mistake
    select
    a.name,
    b.VOD_NAME,
    count(xm.ATTRIB_03)
    from
    siebel.s_vod b
    left outer join ISS_OBJ_DEF c on b.OBJECT_NUM=c.PAR_VOD_ID
    left outer join vod d on c.VOD_ID=d.row_id
    left outer join PROD_INT a on d.OBJECT_NUM=a.CFG_MODEL_ID
    left outer join PROD_INT_XM xm on a.row_id=xm.PAR_ROW_ID
    where
    b.VOD_TYPE_CD='CLASS_DEF'
    and
    c.LAST_VERS = 0
    and
    b.vod_name='Componentes'
    group by a.name,b.vod_name having count(xm.ATTRIB_03) >=5I couldn't see through the internet what happend when you ran said query. How about helping us out by showing us the evidence that it "is not working correctly".
    "Here's a picture of my car sitting in the driveway. Why won't it start?"

  • Select query is not working in BDC Program

    Hi,
    I am working in BDC for update valuation class for T-code mm01.Actually In this BDC i am using two recoding based on material type.
    i am using two internal table : I_DATA and ITAB
    Use I_DATA to hold excle data in which material No, plant , valuation type , valuation No. and ITAB for material No, material type Only.
    So, i am fetching material Type ( MARA-MTART ) through select query. But Select query is not working. and also i did check MARA table according that  Material Number then  material no. exit in Mara Table.
    Note : at run time  I_DATA have 1 row but ITAB have 0 row ....
    DATA: BEGIN OF I_DATA OCCURS 0,
    MATNR TYPE MARA-MATNR,
    WERKS TYPE MARC-WERKS,
    BWTAR TYPE RMMG1-BWTAR,
    VERPR TYPE BMMH1-VERPR,
    BKLAS TYPE MBEW-BKLAS,
    STATUS TYPE C,
    END OF I_DATA.
    DATA : BEGIN OF ITAB OCCURS 0,
    MATNR LIKE MARA-MATNR,
    MTART LIKE MARA-MTART,
    END OF ITAB.
    Loop at I_DATA.
    select matnr mtart from mara into table itab where matnr = I_DATA-matnr.
    endloop.
    Guide me..........

    If you use your
    Loop at I_DATA.
      select matnr mtart from mara into table itab
        where matnr = I_DATA-matnr.
    endloop.
    At end of loop, itab will only contain the result of the last select, so use a
    Loop at I_DATA.
      select matnr mtart from mara APPENDING table itab
        where matnr = I_DATA-matnr.
    endloop.
    better
    if I_DATA[] is not initial.
      select matnr mtart from mara into table itab
        FOR ALL ENTRIES IN i_data where matnr = i_data-matnr.
    endif.
    Some Remarks
    - If actually required (where does I_DATA come from, is it an external format, you need the internal value to use in SELECT statement), check via SE11 the correct [conversion exit|http://help.sap.com/saphelp_nw04/helpdata/en/35/26b217afab52b9e10000009b38f974/content.htm] associated with domain MATNR (Is it truly ALPHA, and not something like MATN1, so [CONVERSION_EXIT_MATN1_INPUT|http://www.sdn.sap.com/irj/scn/advancedsearch?query=conversion_exit_matn1_input])
    - You could try to use BAPI like [BAPI_MATERIAL_SAVEDATA|http://www.sdn.sap.com/irj/scn/advancedsearch?query=bapi_material_savedata] and not BDC
    Regards,
    Raymond

  • Why select query is not working?

    CREATE OR REPLACE TYPE prod_type AS OBJECT (
    pid INT,
    pprice NUMBER,
    MEMBER PROCEDURE display(pid IN NUMBER));
    create table prod of prod_type (pid primary key);
    CREATE OR REPLACE TYPE deal_type UNDER prod_type (
    ctr NUMBER,
    OVERRIDING MEMBER PROCEDURE display (pid IN NUMBER),
    insert into prod values(deal_type(101, 4, 1));
    insert into prod values(deal_type(102, 5, 0));
    ------below given select query is NOT WORKING ---------
    select ctr from prod p where p.pid=101;
    Thanks,
    -Nid

    ------below given select query is NOT WORKINGWondering how you inserted data ...
    SQL> CREATE OR REPLACE TYPE prod_type AS OBJECT (
      2  pid INT,
      3  pprice NUMBER,
      4  MEMBER PROCEDURE display(pid IN NUMBER));
      5  /
    Type created.
    SQL>
    SQL> create table prod of prod_type (pid primary key);
    Table created.
    SQL>
    SQL> CREATE OR REPLACE TYPE deal_type UNDER prod_type (
      2  ctr NUMBER,
      3  OVERRIDING MEMBER PROCEDURE display (pid IN NUMBER),
      4  );
      5  /
    Warning: Type created with compilation errors.
    SQL> sho err
    Errors for TYPE DEAL_TYPE:
    LINE/COL ERROR
    4/1      PLS-00103: Encountered the symbol ")" when expecting one of the
             following:
             , not pragma <an identifier>
             <a double-quoted delimited-identifier> final instantiable
             current order overriding static member constructor map
    SQL> CREATE OR REPLACE TYPE deal_type UNDER prod_type (
      2  ctr NUMBER,
      3  OVERRIDING MEMBER PROCEDURE display (pid IN NUMBER));
      4  /
    Warning: Type created with compilation errors.
    SQL> sho err
    Errors for TYPE DEAL_TYPE:
    LINE/COL ERROR
    1/1      PLS-00590: attempting to create a subtype UNDER a FINAL type
    SQL>You made an attempt to create a subtype UNDER a FINAL type - that the reason why can not work ...
    Avoid deriving a subtype from this FINAL type.
    HTH

  • Excel 2010 MS Query is not working

    Hi, I am in the process of upgrading all my Excel 2003 spreadsheets to Excel 2010.  I am running into problem with the MS Query.  Spreadsheets have MS Query linking to MS database.  However, when I open some of the spreadsheets, the MS Query
    is not working ie. the blue circle keeps turning and then not responding.  It is very weird that this MS Query is working fine with some spreadsheets but not couple and they are all linking to the same database except a small different in criteria.  I
    tried to re-create the Query in the spreadsheet in Excel 2010 by going to Data>From Other Sources>From Microsoft Query and select the database.  Once I set up the criteria and click Return data, the Query gets stuck.
    Please help! Any comments/suggestions will be appreciated.
    Thanks

    Hi,
    There are many possible causes that can crash MSQuery in Excel 2010.
    First, please make sure we have installed the latest Office 2010 and Windows patches.
    Second, Please read the Blog, it explains one typical crash scenario.
    =====
    AppName: msqry32.exe AppVer: 14.0.4750.1000 ModName: msvcr90.dll
    There are several possible resolution you can try to resolve the above crash:
    1. When you launch MS Query, just disable the option "Validate queries before saving or returning data", this is the fifth box in the options menu.
    The only problem is that if you have made any mistake in your query, you'll only be noticed when receiving the data in excel.
    2. Repair all the keys into registry at the following place:
    [HKEY_CURRENT_USER\Software\ODBC\ODBC.INI\ODBC]
    For example:
    Windows Registry Editor Version 5.00
    [HKEY_CURRENT_USER\Software\ODBC\ODBC.INI\ODBC]
    "TraceFile"="C:\\DOCUME~1\\...USERNAME...\\IMPOST~1\\Temp\\SQL.LOG"
    "TraceDll"="C:\\WINDOWS\\system32\\odbctrac.dll"
    http://blogs.technet.com/b/asiasupp/archive/2011/11/07/msquery-randomly-crashed.aspx
    =====
    Third, start the Excel 2010 with
    safe mode, it helps us confirm if some add-ins cause this issue.
    Hope it's helpful.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in
    Office programs.

  • Bex Query is not refereshing in analyzer..

    Hi Experts,
    I am having a issue  bex query is not refreshing in the bex analyzer.
    Actually my requirement to create a workbook on bex query. I have made once workbook but that also not refreshing .
    I already check the tick mark for refresh workbook on open,
    Please help.

    Hi,
    Refer below screenshot and check it, since I don't have enough screenshots/steps to reproduce. It is just a guess, so check on below points and respond.
    1. Is workbook is connected to system? check the connected/connection by clicking on icon (marked in purple). If it is connected, then proceed to next step.
    2. Are you clicking on 'Refresh' button (marked in red)? and saying variable screen is not appearing OR report is not refreshed? If yes, then proceed to next step.
    3. If you want to refresh and input value again, then click on 'Change Variable Values' Icon (marked in green).
    Hope it gives you steps to identify root cause.
    Thanks,
    Umashankar

  • Condition - Query Designer not working in BEx

    Hi all,
    I have used Condition in my Query in Query designer. it is to calulate the top 10 customer. when i execute the report in RSRT , condition is not working properly.
    But, at the same time , i am executing my same query on portal and condition is working on portal.
    We are on EHP 1 . please suggest.
    Regards,
    Macwan James.

    Hi James,
    There are certain functions about condition which are only available for 7.x runtime (Java Web, Portal) and are not available for 3.x runtime (transaction RSRT, BEx Analyzer, ABAP Web).
    For example this one:
    http://help.sap.com/saphelp_nw70/helpdata/en/43/2695d2fd2f0d23e10000000a1553f7/frameset.htm
    ●      Most Detailed Characteristic Along the Rows or Columns
    This option is optimized for threshold value conditions. The condition is applied to the most detailed characteristic of the rows or columns.
    Note that this function is not supported when executing the query in the BEx Analyzer.
    If you have set to "Most Detailed Characteristic Along the Rows or Columns" in Query Designer, portal would execute properly according to this setting while RSRT would use one of the other two settings (seems to be "Single Characteristics and Characteristic Combinations" as I remember) which lead to unexpected result. This is my assumption how it is in your case.
    Regards,
    Patricia

  • BEX Query variant - how to make it Global ?

    We have a problem that we did not have in 3.x. In NW04s, when some one saves a query variant, it can be seen/accessed only by that person. We have a need to make it global so that other users in the division can use the variant to run the query. Does anybody know to make this work?
    I looked at the table RSRPARAMETRIZA and the field PERSONAL is always set to 'X' for variants created in BEX (using new BEX tool). We tried to blank this out (for testing) to see if the variant becomes global. But it did not help, in fact after this change whenever I choose this variant it kicks me out and I have to login again.
    Any input/workaround is appreciated.
    Regards
    -Bala

    As of NetWeaver 2004s variants (created in the BI70 runtime) are stored as an XML string inside of the table RSRPARAMETRIZA. In BW3.5 and before they were stored along with ABAP variants within the table VARI.
    Check these notes:
    1004479
    1003466
    990801
    981693
    973676
    978803
    973844
    774413
    Hope this helps,
    Prakash

  • BEX Broadcaster does not work / open

    Hello,
    I'm trying to use the Broadcaster in BI 7 but when I try to open it (from the BEX Analyzer or the BEX Query Designer), it doesn't do anything, it even doesn't give an error.
    Does anybody know what could be wrong ?
    I've entered the standard web template for broadcasting in customizing so that's not the problem.
    We don't have the Portal installed but I didn't think you need the portal in order to be able to use the broadcaster, am I right ?
    Thanks in advance,

    Yes, you dont need portal for broadcasting...
    First test web reports through t-code RSRT, if web reports are working then check broadcasting templates through t-code RSCUSTV21& RSCUSTV27.
    Regards,
    shalin

  • Variable Selections in BEx Query Variants

    I am trying to save a variant for a BEx query that uses a floating date range.  I want the date range to move with the calendar.  I r/3 this is done with the variable selection.  In BW 3.5, I don't see how this is possible.  I only see options for TVARVC which are user exit selections.  Can someone point me in the right direction.
    Regards,
    Kevin B

    Hi Kevin
    Your requirment is that date range should move with calendar (ex. In first week , the date range should be from 1 to 7 of the current month & in  second week the date range should be from 1 to 15 of current month) ...if it is like this then you can go ahead with - create a variable and do the coding with sydatum (system date ) and embed the required logic. But if your requirement is completely random then you can not use this.
    Hope this helps
    Regards
    Pradip
    (Rewarding points is the way of saying thanks on SDN !!)

  • Characteristic "Master Data" setting in Query definition not working?

    Hi,
    I am having a problem with a query definition. (BI 7.0)
    The query comprises the following definition which relate to displaying Milestone dates for respective projects in a time series so the dates are populated in the correct column in a time series:
    Filter
    Project Definition = Fixed Single Project Definition
    Fiscal Year Variant = K4
    Project Profit Centre = Hierarchy Node
    Project Plant = Fixed Single Value
    Free Chars
    Network
    Network Activity
    Activity Element
    Rows
    Project Plant
    Project Profit Centre (With hierarchy)
    Project Definition
    Milestone Type  (Setting in characteristic to pick up Master Data)
    CSR Relevant    (Setting in characteristic to pick up Master Data)
          Structure
               Actual
               Scheduled
        (Actual:  Value type = Actual,  Origin = Manual ,Event = Start)
        (Scheduled:  Value type = Actual,  Origin = Scheduled ,Event = Start)
    Columns
    Key Figure structure of 12 key figures in a time series
    Selection
    Key Figure = Date
    Fiscal Year/Period = Current Fiscal Year / Period (SAP EXIT) (With Offset 1 to 12)
    FYI
    When I run the above it comes back correctly. However when I add "MILESTONE" (Characteristic setting (Posted Values) to the Query Definition immediately after the "Milestone Type" and before CSR it does not work it just is hanging for a considerable time.
    I am not using "Master Data" for the "Access Type for Result Vales" for the additional characteristic "MILESTONE" just "Posted Values".
    I was expecting that it would just show all Milestone types as per Master Data but just the Milestones that are posted for this result.
    I would appreciate a solution to this issue and an explanation to why it hangs when I add the "MILESTONE" characteristic to the definition as explained above.
    Thanks in advance..
    Stevo

    Hello there,
    Putting Milestone in the rows in the query definition is not being hang there (i.e., while creating and saving the query) right?
    It is stucked while executing the query isn't it so?
    That's because you have too many records to be desaggregated by milestone characteristic, and this is indepently of posted values in the characteristic settings.
    Putting milestone characteristic in the free characteristics will allow you to run the query, but desaggregate it (add it to the rows) will be to much information to read from your dataprovider (this is just a guess).
    If it is being stucked in query execution whike milestone is in the rows. Try this for example:
    Add milestone to the free chars. Execute the query. Filter milestone characteristic while still in the free rows and choose a value that you are pretty sure has the smallest records in the Dataprovider (could be for example value #). Than drill down milestone to the rows. You'll see that it can be executed without any problem.
    Diogo.

Maybe you are looking for