Condition not executed in Plan

Hi,
we´ve got a sql statement which looks like that:
SELECT BplSegment.SalesOrg, WeeklyBplDataMeta.Line
FROM BPLSEGMENT BplSegment
LEFT OUTER JOIN BPLDATA WeeklyBplData
INNER JOIN BPLDATAMETA WeeklyBplDataMeta
ON WeeklyBplDataMeta.PKey=WeeklyBplData.BplDataMetaPKey
ON WeeklyBplData.BplSegmentPKey=BplSegment.PKey
And WeeklyBplDataMeta.Sheet='SegmentSummary'
And WeeklyBplDataMeta.Line IN ('TotalSalesPlanned','TotalCostsPlanned','TotalQtyPlanned','ROI-BplPlanned')
and BplSegment.SalesOrg=N'0001'
WHERE BplSegment.BplMainPKey= '0010000000391eog'
And BplSegment.SysPeriodPKey= '0010000000387wvy'
The result of the query is wrong. It seems that the part WeeklyBplDataMeta.Line IN ('TotalSalesPlanned','TotalCostsPlanned','TotalQtyPlanned','ROI-BplPlanned') is not executed in plan.
Wrong Plan:
!http://img213.imageshack.us/img213/4500/planl.png!
If we delete the bold part of the statement we receive the correct data! The IN (TotalSalesPlanned, ...) part is then executed in plan.
Correct Plan:
!http://img204.imageshack.us/img204/7740/plan2h.png!
Why is the condition and BplSegment.SalesOrg=N'0001' so significant to the plan?
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
Thx,
Alex

Well, this is a bit hard to follow.
When you say "The result of the query is wrong." do you mean the actual data returned from the query, or just the access plan of the query? I would assume the latter based on your query plan posting, but i'm really not sure.
Also, it's not that i don't believe you, but i don't typically believe TOAD, ~insert front end tool here~, etc... when it comes to things like this. Can you provide the results using a copy/paste from SQLPLUS?
An example would be (which you would run for BOTH statements you have) ...
SQL?ALTER SESSION SET STATISTICS_LEVEL = ALL;
Session altered.
--YOUR QUERY WOULD REPLACE MY EXAMPLE QUERY
SQL?select *
from t1
where col1 = 100;
  2    3 
      COL1      COL2
       100         0
SQL?SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY_CURSOR(NULL, NULL, 'ALLSTATS LAST'));
PLAN_TABLE_OUTPUT
SQL_ID     7z61ytum3h786, child number 0
select * from t1 where col1 = 100
Plan hash value: 2347959165
| Id  | Operation              | Name  | Starts | E-Rows | A-Rows |   A-Time   | Buffers |
|   1 |  TABLE ACCESS BY INDEX ROWID| T1    |        1 |         1 |      1 |00:00:00.01 |         4 |
|*  2 |   INDEX UNIQUE SCAN         | T1_PK |        1 |         1 |      1 |00:00:00.01 |         3 |
Predicate Information (identified by operation id):
   2 - access("COL1"=100)
18 rows selected.
SQL?Also, when posting, if you use the tags you can preserve the formatting of your code so it's easier to read.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • HBR sequence on data form does not execute when Planning data form is saved

    Has anyone experienced this issue before in Planning? Below I have included the scenario and what has been attempted to correct the situation.
    We are using Hyperion Planning/Essbase 9.3.1, sequence contains 3 business rules - 2 executed on the Workforce Cube and 1 transfers totals from Workforce Cube to Main cube. 2 of the BR's contain run-time prompts - 1st BR in the sequence (calculation in Workforce) and 3rd BR in the sequence (transfer of Workforce totals to Main). We are using Projects to assign access priviledges to the BR's and sequences. All 3 business rules, as well as the sequence itself, validate successfully in the admin services console.
    In Planning the data form contains BR Properties to "Save on Exit", "Use members on data form" and "Hide prompt". Have tried removing BR from data form, then put BR back on data form. Also tried building a new sequence in EAS console and attaching that BR to the existing data form. Neither of these attempts were successful. Tried building an entirely new data form with the newly created sequence, still unsuccessful. Was able to execute the sequence successfully when processed from the Tools -> Business Rules menu. Sequence was once again successful when I tried modifying the data form to remove property "Hide prompt". Problem with leaving the form in that state is, our users would not know which Planning server they were on as they access the Planning application through Workspace and we currently have 2 application servers in this environment - so essentially they have a 50/50 chance of selecting the correct server.
    We have this same setup in another environment where the execution of the sequence on the data form works successfully. We have compared everything that I can think of and it all appears the same in both environments - in fact this used to be successful in this environment, but all of a sudden stopped working earlier this year - we have not applied any patches or upgrades to either environment. Do not know if this is relevant or not, but we do currently utilize Netscaler in both of these environments.
    Any experiences with this type of situation or suggestions at this point would be greatly appreciated.

    I don't have a solution for you but more steps to solve the problem
    You are ultimately on the right track in some ways but break it down into it's components.
    The problem could like in the business rule, the form connection, the variables, even the order of operations could all be in play.
    So I would strip this baby down to its bare bones then build it back up.
    1) Run the business rule. Each one separately and only after the previous ones is complete without variables and without touching the form
    Is it successful: go to 2
    If it isn't successful: trouble shoot the calc and or try running in EAS natively to see if that gives you ideas
    2) Run the calc outside the form but with variables included. Did it prompt you correctly.
    Is it successful: go to 3
    If it isn't. What is wrong with the variable
    3) Now attach it to the form but don't hide the prompts
    Still good go to 4
    4) hide the prompts and run on save
    And if it fails on step four then it's not picking up the right variables in the prompt. And you need to look at why it wouldn't grab the right item.
    This will isolate your problem for you and give you steps to fix it. Ultimately 99% of the time something did change in the structure for example that is impacting the calc. And when you isolate the problem this will reveal itself quite quickly.

  • XPATH condition not executing

    Hi Experts,
    I am stucked with a condition in XPATH which is not executing. I want to use substring function in the Expression Editor. In the source structure field IDTNR at path /ORDERS01/IDOC/E1EDP01/E1EDP19/IDTNR if the field value of IDTNR starts with a D(for eg DADHJI) then I have to block this particular message or else(eg ASHDJKKD) pass for other values. I have tried following ways so far.
    (ORDERS01/IDOC/E1EDP01/E1EDP19/IDTNR[(substring(.,0,1) ='D')] EX )
    /ORDERS01/IDOC/E1EDP01/E1EDP19/IDTNRhttp://not(starts-with(.,"D"))
    substring(ORDERS01/IDOC/E1EDP01/E1EDP19/IDTNR,0,1) = 'D'
    And also can some body please expalin what is the meaning of http:// in the second statement as also in thread  Re: Using substring in the XPATH expression for Receiver Determination
    Requesting you , please dont forward the links or blogs.
    Thanks in Advance.
    Sudhir

    Hi Sudhir
    I think
    substring(string,start,length) or substring(string,start)
    should work on this.
    Moreover try with
    contains(String,contain string) or starts-with(String, Starts with String)
    I am not sure if it get problem with escape sequences in String. Check again.
    You can also use
    substring-before(String, String) or substring-after(String,String)
    Thanks
    Gaurav

  • Authorization problem in executing a Planning Function

    Hi All,
    We are facing an authorization issue  while executing a planning function in a WAD template.
    The error message is :
    The planning function ended with errors.
    The user does not have authorization on infoprovider YF2IGM37.
    But the relevant authorizations have already been provided to the said user for:
    S_RS_ALVL,S_RS_PLENQ ,S_RS_PLSE ,S_RS_RLSQ, S_RS_PLST        along with authorization for
    Cube, multiprovider, query as well as aggregation layer.
    Could anyone pls help us resolving the issue.
    rgds,
    Nandini.

    Check any authorization relevant infoobject user is not authorized for.
    For example, if company code is authorization relevant,and in your query any default company code is provided, user may not have the relevant access.

  • Not Getting Benifit Plan in a rule -- Please help urgent

    Hi Gurus,
    I need to query the benifit plan and need to override the system calculated values in certain conditions. But I am not able to query the benifit plan in a rule
    Made a rule like this
      D TABLEP0169VARGBBPLAN
    &&&&        CONTINUE  
    0381 AMT=& VAR1AMT/2 ADDWTI6200
    But its not getting the plan '0381' (but its there in the Master data) and its coming to continue always
    *I am invoking the rule like this in the schema*
    ACTIO ZSPT A
    Please help me to figure out whats going wrong. Its very urgent
    thanks

    Arun this is not working ..
    The view name exceeds the 10 char limit in the rule while invoking that with Table..

  • [BIACM0085] Error executing load plan after reverting from LDAP to original security mechanism in BIA 11.1.1.7.1

    We have tried to change authenticaion of BI Apps 11.1.1.7.1 to LDAP, but reverted this due to some other issues. Now we are back with standard authentication, and all functionality seems to work fine, except execution of a load plan.
    When we select (any) plan that was executed earlier, we get an error:
    [BIACM0085] Error executing load plan. Action: Correct the properties selected or entered and retry.
    [BIACM0080] Cause: Application error: MustUnderstand headers:[{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security] are not understood Action: Contact your help desk or system administrator.
    According to one of our WLS gurus there is a mismatch between consumer and provider of a web service with a security policy, but we cannot find any difference between a working and this failing environment.
    We already started a trace in WLS, but this does not help us further.
    Any hints on troubleshooting steps or even better resolution are more than welcome, as this is blocking a new full load and further tests.
    Tx,
    Luc

    We have tried to change authenticaion of BI Apps 11.1.1.7.1 to LDAP, but reverted this due to some other issues. Now we are back with standard authentication, and all functionality seems to work fine, except execution of a load plan.
    When we select (any) plan that was executed earlier, we get an error:
    [BIACM0085] Error executing load plan. Action: Correct the properties selected or entered and retry.
    [BIACM0080] Cause: Application error: MustUnderstand headers:[{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security] are not understood Action: Contact your help desk or system administrator.
    According to one of our WLS gurus there is a mismatch between consumer and provider of a web service with a security policy, but we cannot find any difference between a working and this failing environment.
    We already started a trace in WLS, but this does not help us further.
    Any hints on troubleshooting steps or even better resolution are more than welcome, as this is blocking a new full load and further tests.
    Tx,
    Luc

  • ABAP Debugger-Is it possible to NOT execute a statement?

    Hello all,
    In ABAP debugger, is it possible to NOT execute a  statement? This will allow testing programs without having to change, generate and transporting the new version.
    Thank you for your help.
    AG

    hi,
          Debugger does not have this kind of functionality but if you want to do on that then put your code between an if else block and while debugging change the value of if else condition based on ur rwquirement as u know u can change value of varriable in debugger.
    Rewards if helpful.
    Regards
    Gagan

  • Input Help (F4) does not work for Planning Functions in Web

    Hi Gurus,
    I am working in BI-Integrated Planning.
    When I execute a planning function from web layout (through Web Application Designer), the "Input Help" does not work. When I give F4 it takes me to the initial planning layout screen from the planning function variable screen without any action being performed.
    But the "Input Help" works fine when I have to select for the variable from the initial selection to open the planning layout.
    Can anyone suggest me any fix for this...
    Thanks!!!

    Hi All,
    Can somebody help me here what went wrong with indesign cc extension so that copy/paste does not work in input type element text
    Regards,
    Alam

  • Warning 'Calculating result as....' was not executed

    Hi all,
    At the time of executing a report, after giving the inputs for variables I am getting an warning messager: Warning 'Calculating result as....' was not executed'.
    Kindly advise.
    Thank you,
    Praveen

    Hi
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/9794b990-0201-0010-2cb4-962bff1f0d19
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0ceb827-e6c1-2b10-4b94-de298fccade3
    http://help.sap.com/saphelp_nw04/helpdata/en/0d/af12403dbedd5fe10000000a155106/frameset.htm
    www.scribd.com/doc/6412427/How-Tobuild-BEx-Analyzer-Workbooks-for-Planning-With-Excel-Design-Objects

  • 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

  • Do not execute - Maintenance Order ??

    Hi,
    There is an option before Release of MAintenance order called 'Do not execute ' , can we click that option if anyone have generated wrong maintenance order by change or by doing worng scheduling of Maintenance Plan. I think this option is for the same.
    Any suggestions.
    Thanks
    DM

    Hi,
    Yes, you could use that option.
    You just need to be aware that the function cannot be reversed.
    -Paul

  • 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

  • Not executing the step

    hi ,
    im using loop in workflow.
    in loop i have used 3 steps.
    while i was watching the log i found that  one particular step was not executed and its going to the next step  even i have given the steps sequentially in the loop.due to that condition is not satisfied and its showing the maximun number of nodes reached.
    how to correct this error.
    please help me.
    Raghu

    Check your workflow definition to see what is wrong. Also analyze the technical log.
    Regards,
    Martin
    Edited by: Martin Nooteboom on Jun 13, 2008 11:59 AM
    Or as you will have found from your other thread, reset the buffers. Please try to be more clear when you ask a question and try to give as much information as possible.

  • Error: Common entries are not permitted for plan queries and input queries

    Hi,
    I have a 2 selections in the column struct:
    1. year = 2005, version = actual
    2. year = 2006, version = plan, marked as data can be changed using user entry or planning function
    row has posting periods from 1-12
    in the workbook I have inserted this query in the workbook in analysis grid. it runs good.
    now i added a button and assigned planning function to it. this planning function copies 2005, actuals to 2006, plan.
    when i execute the workbook and hit this button, it gives me following error:
    "Common entries are not permitted for plan queries and input queries"
    please can anyone provide me assistance with this issue.
    thanks,
    sam

    when i go to diagnosis it displays following:
    Diagnosis
    InfoProvider ZIP_PLAN2 must be described in this application by both a plan query and by a input-ready query, which is directly defined on the InfoProvider ZIP_PLAN2.
    System Response
    This is not permitted.

  • Global succession updates are limited to 500 relationships. If more than 500 exist PLM presents a warning message and does not execute the update

    Global succession updates are limited to 500 relationships. If more than 500 exist PLM presents a warning message and does not execute the update.
    How/Where to increase the relationship count?
    The message which I can see :
    Warning:
    This specification has exceeded the number of parent relationships allowed by Where Used. The Where Used tool only supports up to 500 parent relationships.
    Thanks

    This really brings up a larger topic around change management.
    The questions you should start with is
    1. What kind of change is happening to the raw material? 
    2. Will this change affect anything upstream inside or outside of PLM4P? (Will this change affect nutrition, compliance, the ingredient statement, the label etc?)
    3. Who needs to approve this change?
    If they are non-material changes (changes that don't affect theoretical calculations, the ingredient statement, labeling, upstream systems that need to be notified etc) then you should be using get latest revision instead of global succession.   Get Latest Revision will automatically switch out the material with the latest approved version.  This logic is also configurable in case you need to add additional guard conditions.   We can also provide guidance around locking the get latest revision lock once a specification has reached the retired/obsolete state so changes won't occur for specifications in those statuses.
    If the changes to the raw material are material changes (changes that affect calculations, labeling etc) then the change should be reflected with a copy of the specification.  Dependent specifications then need to be re-issued so calculations can be performed and the appropriate workflow reviews can occur.   Smart Issue allows for filtering based on status and should let you re-issue in smaller blocks. 
    Let me know more about your change management strategy, how often large material changes happen and maybe example causes for those mass changes.  We can also schedule a change management training session for everyone where we can share our vision and tools available for change management.  This topic is quite large and generally requires a lot of business process discussion beyond just the tools available. 
    Thanks
    Kelly

Maybe you are looking for