Refresh chain of accessors

Hello,
I've got some problems with refreshing data, displayed via chain of view accessors.
OutputTexts have values like
<af:iterator var="round" value="...">
#{round.OlympiadRoundView.OlympiadPlaceLOV.Town}
So it is iterator var . accessor1 . accessor2 . attribute.
All those accessors are based on 1to1 view links.
So when a user changes data in VO, exposed by accessor1, I'm in trouble to refresh the data as soon as reexecuting the parent iterator is not enough.
ADFUtils.findIterator("OlympiadRoundsView1Iterator").executeQuery();
AdfFacesContext.getCurrentInstance().addPartialTarget(placePanel);Data change is commited by that moment.
Also I should mention that in Java 1to1 accessor is not a RowSet which has executeQuery method, but ViewRowImpl, which doesn't have such method.
((ViewRowImpl)ADFUtils.findIterator("OlympiadRoundsView1Iterator")
   .getCurrentRow().getAttribute("OlympiadRoundDetailsView")). ? refresh ?Could someone please advice me? Really need this answer.
ADF 11R2
Edited by: ILya Cyclone on Jan 24, 2013 7:26 PM

Hello Frank,
Data is changed through binding layer iterator, but displayed through accessors in af:iterator.
Edited by: ILya Cyclone on Jan 25, 2013 5:49 PM

Similar Messages

  • Process Chains Overlapping

    Hi,
    We are on BW 3.1C and have different process chains for our US Hourly Refresh and UK  Process Chains which runs every night. We are using different Process variants for each chain. Our Hourly refresh chain is sometimes overlapping with nightly chain. It is appearing on the same screen and it is causing issues. I have deleted the entire chain and recreated with different process variant still the problem is same. The problem is not reproducable, it is happening sometimes.
    Any help will be greatly appreciated.
    Regards
    Nag

    Hi,
    If you know the exact/approx time, when those 2 cahins are overlapping ?? If you know the exact time, then set a wait on your UK process chiain for the duration of your US ProcessChain run time.
    You can right click on Start process and set waiting time.
    Hope this helps.
    Praveen

  • Issue in query panel LOV order by

    Hi All,
    I am using Jdev 11.1.1.6 version and Weblogic 10.3.6 version. I am facing an issue which is explained below. I have a screen with query panel and results table.
    For Ex. Say i have Name in the results table and search paramater as well. Created Name with the help of a view object with search parameter as view criteria with Order by Name. Name search paramater is created as SelectOneChoice(LOV) . Also from my first page Add button can be clicked. On clicking the button new Name value can be added. On successfully saving the New value it is getting refreshed in the table results and displaying in the correct order. But in LOV the latest value is getting added at the Last. Rest of the values are Ordered by Name.
    Is it possible to display the values in the correct order in LOV after new values are getting added?
    I have tried the following.
         1. Refreshing the View Object with Search Criteria.
         2. Refreshing the LOV View Object.
         3. Refreshing the Whole Page.
    4. Order by in View Accessor.
    5. Refreshing the View Accessor.
    Note: When i totally reload the page again then it is getting refelected correctly.
    Thanks.
    Regards,
    Deena.

    Maybe you can try to reset QueryModel, something like this:
    QueryModel queryModel = queryComponent.getModel(); 
    QueryDescriptor queryDescriptor = queryComponent.getValue(); 
    queryModel.reset(queryDescriptor); 
    queryComponent.refresh(FacesContext.getCurrentInstance());
    AdfFacesContext.getCurrentInstance().addPartialTarget(queryComponent);Sorry, I don't have any more ideas :(
    Dario

  • ADF Table: LOV Iterator Issue

    I have an editable ADF Table, with a column that contains an LOV (Select One Choice). This LOV gets it's data from another View Object. We have an LOV Maintenance screen that populates the LOV's View Object with data.
    My problem is when you insert new data into the LOV's View Object, then go to the Editable ADF Table which contains the LOV Column, the new LOV Data does not show up in the Select One Choice. However, if I open up a new browser window and open the application, I see the new LOV data. Also the new LOV Data shows in the database. This is telling me the LOV's iterator is not updating properly.
    However, since i have an ADF Table, the LOV along with all other columns are bunched into a Tree Binding and respectively the ADF Table's Iterator (In the page bindings). Thus I don't know how i can directly access the LOV's iterator and refresh it.
    How do I refresh the LOV iterator?
    Currently we're on ADF 11.1.1.3.

    Another Edit:
    Okay I got this workaround functioning properly... It was a combination of settings that need to occur. I'm not crazy about it because it seems inefficient -  but it works.
    1.) I exposed the View Row Imp Class of my ADF Edit Table View Object (and Included Accessors). Included Accessors so I had programatic access to my LOV's View Accessors. I had two Accesors so i could have a switching LOV on my LOV Attribute.
    2.) Then in the RowImpl class, I went to the LOV Accessor getter methods, i did this below, so we refresh the View Accessor.
         * Gets the view accessor <code>RowSet</code> ActiveSmsModules.
        public RowSet getActiveSmsModules() {
          RowSet rs = (RowSet)getAttributeInternal(ACTIVESMSMODULES);
          rs.executeQuery();
          return rs;
            //return (RowSet)getAttributeInternal(ACTIVESMSMODULES);
         * Gets the view accessor <code>RowSet</code> AllSmsModules.
        public RowSet getAllSmsModules() {
          RowSet rs = (RowSet)getAttributeInternal(ALLSMSMODULES);
          rs.executeQuery();
          return rs;
            //return (RowSet)getAttributeInternal(ALLSMSMODULES);
    3.): After that, I had to go to my ADF Edit Table's Iterator (In the bindings), set Refresh to Always. I'm not sure why but it didnt work without this setting.
    4.) Then in my ADF Page Backing Bean, which holds the ADF Editable Table, i had to run this code once when the ADF Table gets rendered. Basically, re-execute the ADF Edit Table's iterator query. Then refresh the LOV UI Component. The LOV object was bound with a getter and setter in my backing bean.
            BindingContainer bindings = getBindings();
            DCIteratorBinding iterator = (DCIteratorBinding)bindings.get("UnvPracSmtView1Iterator");
            iterator.executeQuery();
            AdfFacesContext.getCurrentInstance().addPartialTarget(getSmtSmsCode());
    It would be easier to be able to simply access the LOV's iterator through the ADF Table's Tree Bindings, but there doesn't seem to be a straight forward way to do this. If anyone has any other solution to this, please let me know!

  • Auto-Refresh and Order By for view accessors

    Hi,
    We have set auto-refresh to true on a VO(LovVO) in shared AM and used the same to create an lov in another VO. Now if we have Order By in LovVO then we get the exception:
    ORA-29983: Unsupported query for Continuous Query Notification
    This is because of the Order By clause. When i remove the order by then there is no error. But we need the data to be ordered. So I have added the below code LovVOImpl.java executeQueryForCollection method:
    if(this.getSortBy() == null){
    this.setSortBy("Name");
    super.executeQueryForCollection(object, object2, i);
    and this is working fine. Is there any other declarative solution for this scenario?
    I tried setting the order by in the view accessor but that also appends to the sql query and throws the above error.
    Thanks
    Thiru

    Please see http://download.oracle.com/docs/cd/E11882_01/appdev.112/e17125/adfns_cqn.htm#CHDGEBFH. Look like OREDER By is supported only in Best-Effort mode.
    When you call .setSortBy("Name"), it happens in memory not part of SQL, apparently that works

  • Classic accessors vs chained setters

    I am in the process of designing an API. My first thought is to use conventional, JavaBeans-like setters and getters.
    But there are some classes in the Java API that take a different approach. ProcessBuilder comes to my mind.
    Look at this:
    File directory()
              Returns this process builder's working directory.
    ProcessBuilder directory(File directory)
              Sets this process builder's working directory.
    boolean redirectErrorStream()
              Tells whether this process builder merges standard error and standard output.
    ProcessBuilder redirectErrorStream(boolean redirectErrorStream)
              Sets this process builder's redirectErrorStream property. Those are essentially setters and getters with a twist: the setters return the object on which they are called and the naming convention is different.
    The only advantage I can see for this approach is that we can write code such as:
    ProcessBuilder pb = new ProcessBuilder(...).redirectErrorStream(true).directory(...);which is syntactic sugar, I think.
    We can also write code such as:
    pb.redirectErrorStream(); // It does not do what the name implies, it does nothing!The last mistake is the result of losing the absolute certainty that the old naming convention provided: getters get and setters set.
    Not to mention that this smells like an abuse of overloading.
    I can see a compromise: use the old naming convention, but return the object from setters.
    What I dislike about this is that I am trying to be 'clever' and how comes others did not think about it. Maybe they had good reasons.
    My question: is the ProcessBuilder approach some kind of a pattern? Where can I read about it, when to use it and when not?
    Any thoughts appreciated.
    Edited by: baftos on Mar 12, 2011 10:25 AM

    YoungWinston wrote:
    jschell wrote:
    Conversely if you have 1 or 2 out of 10,000 and you use this odd pattern than a maintainer is going to need to puzzle out exactly what is going on the first time they see this.You're the one who loves to ask for supporting evidence. What brought you to the figure 2 out of 10,000?Because I have written a lot of classes.
    And per the given link it provided a specific set of circumstances that were required to make this useful.
    Only average what percentage of classes that you write require, for example, 10 or more parameters to the constructor?
    And the alternative (which this idiom is supposed to improve on) is no worse for the fact that one is dealing with an odd object in the first place - specifically because it requires a large number of values to construct.Says who? Maybe others who have worked in different fields find this sort of thing commonplace. Bloch clearly thought it was worthy of mention, and I haven't seen any evidence to suggest that he's someone to waste words. I also suspect you haven't read the whole piece, because he also suggests other scenarios in which a Builder might be useful.I have worked in medical, telephony and financial fields. I certainly never saw a need for that.
    Also read a lot one what people consider 'good' OO. I certainly can't recall anyone claiming that that was needed. Pretty sure that I have seen more than a few writers that either explicitly or implicitly claimed doing that is wrong.
    Further as to the point of immutable and leaving construction in an indeterminate state - exactly how many objects out of the 10,000 is that a real concern?There we go, throwing statistics around again.And again - provide what you think your average is for constructors that take more than 10 parameters.
    Again if a lot of objects are like that then there is something seriously wrong with the design and very likely the architecture of the application.Rubbish. I've been a programmer and data modeller for a long time, and if there's one thing I know it's that some entities have lots of attributes and others don't. Rules of normalization are a far better guide as to how good the design is than some arbitrary dictum of yours.That however has nothing to do with what I said.
    I didn't say it was zero. I said it was small.
    And thus to use a different idiom for the very small number of cases versus the much larger set (but still waiting on what you think your stats are) makes no sense.

  • Questions on Multiprovider and Process Chain

    Hai All,
              I have two questions. One on Multiprovider and the other on Process chain.
    1. Multiprovider:
              For example, I have 2 ODSs. ODS1 has Objects ORDER NUMBER, COUNTRY and PRODUCT, ODS2 has objects ORDER NUMBER, DELIVERY STATUS, CREATION DATE.
    Now if I make a multiprovider on ODS1 and ODS2, then as ORDER NUMBER is common in both the ODSs, can I make a report like this:
    ORDER NUMBER - DELIVERY STATUS, CREATION DATE?
             I have a problem here bacuase its not getting those details from the other ODS even though the ORDER NUMBER(value) is same. Am I making nay mistake or is it a system problem.
    I beleive thats how a Multiprovider works.
    2. Process chain:
                    I have an END connector in my process chain that connects 3 processes and lets the following task start only after the success of all the above 3 processes.
    The system is displaying the END connector seperately under each process. But the name and everything else is same. Is this a setting somewhere in the process chain?
    Thank you.

    Hi,
    1. Those fields are in ODS2, you don't need to make a multiprovider.
    2. You mean an AND connector. Maybe you need to refresh the screen. if this doesn't work, delete the three and connectors and insert a new one.
    Hope this helps.
    Regards,
    Diego

  • Need help on tuning materialized view refresh

    Hi All,
    I am working on materialized view refresh tuning.Initially it was complete refresh and used to take more than 90 mins to complete.
    I changed it to fast refresh now it is completing fast. Now i have partitioned the base tables gl_balances and gl_code_combinations of column code_combination_id and created a local index on column code_combination_id then i am trying to partition the materialized on the same column to take advantage of partition change tracking.
    Size of gl_balances base tables is 40Gb and all others tables sizes are small. In where clause there all the 4 tables are mapped. If i will create the partition only on code_combination_id will i the materialized will become the candidate for partition change tracking. As i know it will be applicable for PCT. I need expert advice on this.
    While doing a fast refresh. the refresh takes less time. when there is a change in gl_balances , gl_code_combinations or gl_periods it completes in 20-30 mins. When there is a change in gl_set_of_books tables. It creates a problem here.DEL query takes more than 48 hours to complete.
    CREATE MATERIALIZED VIEW apps.BAL_PART
    REFRESH FAST ON DEMAND
    ENABLE QUERY REWRITE as
    SELECT GL.GL_CODE_COMBINATIONS21.ROWID C1,GL.GL_BALANCES21.ROWID C2, GL.GL_SETS_OF_BOOKS.ROWID C3,
    GL.GL_PERIOD.ROWID C4,
    "GL"."GL_BALANCES21"."ACTUAL_FLAG" ,
    "GL"."GL_BALANCES21"."CURRENCY_CODE" ,
    "GL"."GL_BALANCES21"."PERIOD_NUM" ,
    "GL"."GL_BALANCES21"."PERIOD_YEAR" ,
    "GL"."GL_BALANCES21"."SET_OF_BOOKS_ID" "SOB_ID",
    "GL"."GL_CODE_COMBINATIONS21"."CODE_COMBINATION_ID" "CCID",
    "GL"."GL_CODE_COMBINATIONS21"."SEGMENT1" ,
    "GL"."GL_CODE_COMBINATIONS21"."SEGMENT10" ,
    "GL"."GL_CODE_COMBINATIONS21"."SEGMENT11" ,
    "GL"."GL_CODE_COMBINATIONS21"."SEGMENT12" ,
    "GL"."GL_CODE_COMBINATIONS21"."SEGMENT13" ,
    "GL"."GL_CODE_COMBINATIONS21"."SEGMENT14" ,
    "GL"."GL_CODE_COMBINATIONS21"."SEGMENT2" ,
    "GL"."GL_CODE_COMBINATIONS21"."SEGMENT3" ,
    "GL"."GL_CODE_COMBINATIONS21"."SEGMENT4" ,
    "GL"."GL_CODE_COMBINATIONS21"."SEGMENT5" ,
    "GL"."GL_CODE_COMBINATIONS21"."SEGMENT6" ,
    "GL"."GL_CODE_COMBINATIONS21"."SEGMENT7" ,
    "GL"."GL_CODE_COMBINATIONS21"."SEGMENT8" ,
    "GL"."GL_CODE_COMBINATIONS21"."SEGMENT9" ,
    "GL"."GL_PERIODS"."PERIOD_NAME" ,
    NVL("GL"."GL_BALANCES21"."BEGIN_BALANCE_CR", 0) Open_Bal_Cr,
    NVL("GL"."GL_BALANCES21"."BEGIN_BALANCE_CR", 0) +
    NVL("GL"."GL_BALANCES21"."PERIOD_NET_CR", 0) Close_Bal_Cr,
    NVL("GL"."GL_BALANCES21"."BEGIN_BALANCE_DR", 0) Open_Bal_Dr,
    NVL("GL"."GL_BALANCES21"."BEGIN_BALANCE_DR", 0) +
    NVL("GL"."GL_BALANCES21"."PERIOD_NET_DR", 0) Close_Bal_Dr,
    NVL("GL"."GL_BALANCES21"."BEGIN_BALANCE_DR", 0) -
    NVL("GL"."GL_BALANCES21"."BEGIN_BALANCE_CR", 0) Open_Bal,
    NVL("GL"."GL_BALANCES21"."BEGIN_BALANCE_DR", 0) -
    NVL("GL"."GL_BALANCES21"."BEGIN_BALANCE_CR", 0) +
    NVL("GL"."GL_BALANCES21"."PERIOD_NET_DR", 0) -
    NVL("GL"."GL_BALANCES21"."PERIOD_NET_CR", 0) Close_Bal,
    NVL("GL"."GL_BALANCES21"."PERIOD_NET_CR", 0) Period_Cr,
    NVL("GL"."GL_BALANCES21"."PERIOD_NET_DR", 0) Period_Dr
    FROM GL.GL_CODE_COMBINATIONS21,
    GL.GL_BALANCES21,
    GL.GL_SETS_OF_BOOKS,
    GL.GL_PERIODS
    WHERE GL.GL_BALANCES21.CODE_COMBINATION_ID =GL.GL_CODE_COMBINATIONS21.CODE_COMBINATION_ID
    AND GL.GL_SETS_OF_BOOKS.SET_OF_BOOKS_ID = GL.GL_BALANCES21.SET_OF_BOOKS_ID
    AND GL.GL_PERIODS.PERIOD_NUM = GL.GL_BALANCES21.PERIOD_NUM
    AND GL.GL_PERIODS.PERIOD_YEAR = GL.GL_BALANCES21.PERIOD_YEAR
    AND GL.GL_PERIODS.PERIOD_TYPE = GL.GL_BALANCES21.PERIOD_TYPE
    AND GL.GL_PERIODS.PERIOD_NAME = GL.GL_BALANCES21.PERIOD_NAME
    AND GL.GL_PERIODS.PERIOD_SET_NAME = GL.GL_SETS_OF_BOOKS.PERIOD_SET_NAME
    and gl.GL_CODE_COMBINATIONS21.summary_flag != 'Y'TRACE 1046 del statement
    DELETE FROM "APPS"."apps.BAL_PART" SNA$
    WHERE "C3" IN (SELECT /*+ NO_MERGE  */ * FROM (SELECT 
      CHARTOROWID("MAS$"."M_ROW$$") RID$     FROM "GL"."MLOG$_GL_SETS_OF_BOOKS"
      "MAS$"   WHERE "MAS$".SNAPTIME$$ > :B_ST1 ) AS OF SNAPSHOT(:B_SCN) MAS$)
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        1      0.00       0.00          0          0          0           0
    Execute      1  17759.00  171782.99  159422121    1267371 2564144739           0
    Fetch        0      0.00       0.00          0          0          0           0
    total        2  17759.00  171782.99  159422121    1267371 2564144739           0
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer mode: ALL_ROWS
    Parsing user id: 175  (APPS)   (recursive depth: 1)
    Rows     Row Source Operation
          0  DELETE  apps.BAL_PART (cr=0 pr=0 pw=0 time=0 us)
    193128740   NESTED LOOPS  (cr=592437 pr=592422 pw=0 time=945244160 us cost=339302 size=168 card=1)
          3    SORT UNIQUE (cr=7 pr=0 pw=0 time=15832 us cost=2 size=138 card=1)
         24     TABLE ACCESS FULL MLOG$_GL_SETS_OF_BOOKS (cr=7 pr=0 pw=0 time=19 us cost=2 size=138 card=1)
    193128740    INDEX RANGE SCAN C3BOOKS (cr=592430 pr=592422 pw=0 time=789499200 us cost=339299 size=3318314250 card=110610475)(object id 2114736)
    error during execute of EXPLAIN PLAN statement
    ORA-08187: snapshot expression not allowed here
    parse error offset: 314
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      db file sequential read                   159520897        2.12     144415.96
      latch: cache buffers chains                   134        0.06          0.68
      latch: undo global data                        33        0.02          0.15
      latch: object queue header operation          521        0.02          0.53
      log file switch (private strand flush incomplete)
                                                    532        0.31         28.26
      resmgr:cpu quantum                            155        1.40         13.49
      resmgr:internal state change                   25        0.11          2.21
      latch free                                     10        0.00          0.00
      latch: cache buffers lru chain                  4        0.00          0.00
      rdbms ipc reply                               489        0.02          0.54
      reliable message                              587        0.00          0.56
      latch: row cache objects                        3        0.00          0.00
    ********************************************************************************GL_SETS_OF_BOOKS has only 6 rows. I know there is complete refresh as a option which will again take more than 90 mins.
    I want to do the fast refresh. Tables rows details below.
    SQL> select count(*) from gl.gl_code_combinations21;
    COUNT(*)
    3075255
    SQL> select count(*) from gl.GL_PERIODS;
    COUNT(*)
    1160
    SQL> select count(*) from gl.gl_balances21;
    COUNT(*)
    477613527
    SQL> select count(*) from gl.gl_sets_of_books;
    COUNT(*)
    6gl_sets_of_books has less rows. Whenever there is a change then it mapped to huge rows hence during materialized view has delete huge number of rows.
    select count(*) from apps.BAL_PART group by C3;
    C3 is the rowid which is present in create materialized statement.
    COUNT(*)
    292927011
    210215
    69330
    184406971
    Is there any way to improve the plan. As i created a partition on code_combination_id and local index on code_combination_id which will not help in set_of_books_id case. I dont PCT will help here or not. Is it possible to use PCT refresh by equipartitioning only one column in where clause.
    Please assist me in improving refresh of materialized view using fast refresh.
    Thanks and Regards,
    Edited by: user646034 on Feb 23, 2013 11:13 PM
    Edited by: user646034 on Feb 23, 2013 11:19 PM
    Edited by: user646034 on Feb 23, 2013 11:46 PM
    Edited by: user646034 on Feb 25, 2013 11:46 AM

    Hi
    The below explain without index and with index.
    /* MV_REFRESH (DEL) */ DELETE FROM "APPS"."BAL_PART                                                                                                                                                                                                                                                                                                                                                                                                                
    " SNA$ WHERE "C3" IN (SELECT /*+ NO_MERGE  */ * FROM (SELECT                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           
    CHARTOROWID("MAS$"."M_ROW$$") RID$     FROM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
    "GL"."MLOG$_GL_SETS_OF_BOOKS" "MAS$"   WHERE "MAS$".SNAPTIME$$ > :B_ST1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
    ) AS OF SNAPSHOT(:B_SCN) MAS$)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         
    Plan hash value: 2704021294                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | Id  | Operation            | Name                          | E-Rows |E-Bytes| Cost (%CPU)| E-Time   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
    |   0 | DELETE STATEMENT     |                               |        |       |   339K(100)|          |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
    |   1 |  DELETE              | BAL_PART                          |        |       |            |          |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
    |   2 |   NESTED LOOPS       |                               |      1 |   168 |   339K  (1)|999:59:59 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
    |   3 |    SORT UNIQUE       |                               |      1 |   138 |     2   (0)| 00:02:31 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
    |   4 |     TABLE ACCESS FULL| MLOG$_GL_SETS_OF_BOOKS        |      1 |   138 |     2   (0)| 00:02:31 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
    |   5 |    INDEX RANGE SCAN  | C3BOOKS                       |    110M|  3164M|   339K  (0)|999:59:59 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
    If i will not use the C3 index then the query will use the belolw plan, I guess this will also take same time or more time.
    |   0 | DELETE STATEMENT       |                               |        |       |  9743K(100)|          |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              
    |   1 |  DELETE                | BAL_PART                          |       |            |          |                                                                                                                                                                                                                                                                                                                                                                                                     

  • Job getting cancelled for 'Chain not processed for date-2007031920070318' ?

    Hi All,
      We have 2 process chains running only on weekdays - one for sales and the other for billing. A cancelled job is created for one of the process chains with the job log message as 'Chain not processed for date-2007031920070318' for the not run days whereas the other does not have any issues though the same monitor job program runs for both. The difference is only in the variant but nothing much other than that its maintained for 2 different chains.
       We also debugged the monitor job program. It basically does nothing other than displaying messages depending on the status of the chain log.
    Please let me know your suggestions as to why it happens.
    Thanks,
    krishna

    it is also giving following error message:
    Caution: Program has changed
    Caution: At time of termination,  Active source code no longer available  and after above two statements its giving sign "?" before every statement in below manner:
    024300 ?     lit_ekpo_dummy1[] = it_ekpo[].                     
    024310 ?     DELETE lit_ekpo_dummy1 WHERE ebeln NE tab1-ebeln.  
    024320 ?     DESCRIBE TABLE lit_ekpo_dummy1 LINES count01.      
    024330 ?                                                        
    024340 ?     REFRESH lit_ematn_dummy[].                         
    024350 ?     lit_ematn_dummy[] = lit_ematn[].

  • Questions on process chains

    Hai all,
             I have two questions on Process chains.
    1. I created a process chain for master data and a process chain for data loads(with ODS and cube). As the Master data has to be loaded first before loading transaction data, can I include the Master data process chain as a local process chain soon after the start process and then only after loading master data, the system proceeds to transaction data?
    2. I designed a process chain with the aggreagtion and compression of cube data. I have forgot to check the option delete overlapping requests in the infopackage to load the infocube. I ran the process chain and now there are 2 requests and the duplicate documents. I want to delete the recent request and check the deleting duplicate requests option in info package and re run. The problem is the system is not allowing me to delete the recent request.
    I appreciate any kind of help.
    Thanks.

    Hai Bhanu,
                Thanks for the reply. I am sceduling the request for deletion in the Manage infocube> but the request is not getting deleted. Everytime I click refresh, the delete icon disappears and the screen becomes as it was before scheduing the deletion. I checked after sometime, even then the same thing...
    I wonder the collpased requests can not be deleted???

  • Bug in bc4j?, view links at runtime, multi table relationships, accessor name

    The following seems like a bug in the business components framework
    to me:
    To make things simple, I will use view objects aV, bV, cV,
    corresponding rows aR, bR, cR and row iterators aI (not used though),
    bI, cI.
    I create two view links from aV to bV and from bV to cV at runtime,
    with the accessor names "Bs" and "Cs".
    ViewLink a2b = createViewLinkBetweenViewObjects(..., "Bs", ...);
    ViewLink b2c = createViewLinkBetweenViewObjects(..., "Cs", ...);
    First of all this code works perfectly fine:
    ViewObject aV = a2b.getSource();
    ViewObject bV = a2b.getDestination();
    ViewObject cV = b2c.getDestination();
    while(aV.hasNext())
    Row aR = aV.next();
    System.err.println("aR");
    while(bV.hasNext())
    Row bR=bI.next();
    System.err.println(" bR");
    while(cV.hasNext())
    Row cR=cI.next();
    System.err.println(" cR");
    Using the accessor name "Bs" at the first level is ok, too:
    ViewObject aV = a2b.getSource();
    while(aV.hasNext())
    Row aR = aV.next();
    System.err.println("aR");
    RowIterator bI=(RowIterator)aR.getAttribute("Bs");
    while(bI.hasNext())
    Row bR=bI.next();
    System.err.println(" bR");
    HOWEVER, USING THE ACCESSOR "Cs" AT THE SECOND LEVEL OF THE MULTITABLE
    RELATIONSHIP IN THE FOLLOWING CODE, GIVES ME AN EXCEPTION
    oracle.jbo.NoDefException: JBO-25002: Definition Cs of type Attribute
    not found. THE SEEMS LEGAL USAGE OF THE ACCESSOR "Cs" TOO ME THOUGH,
    THEREFORE MY SUSPICION OF A BUG.
    ViewObject aV = a2b.getSource();
    while(aV.hasNext())
    Row aR = aV.next();
    System.err.println("aR");
    RowIterator bI=(RowIterator)aR.getAttribute("Bs");
    while(bI.hasNext())
    Row bR=bI.next();
    System.err.println(" bR");
    RowIterator cI=(RowIterator)bR.getAttribute("Cs");
    while(cI.hasNext())
    Row cR=cI.next();
    System.err.println(" cR");
    (By the way, could make your window for filling in the message a little bit wider,
    making it easier to cope with the line breaks).
    Feedback is appreciated.
    Andreas Reuleaux
    Klopotek & Partner
    [email protected]
    null

    Your results are as expected per the imlementation. Basically you've established (two) ViewLinks between two sets of two instances of VOs.
    Now you try and get an accessor to return a set of details. You need to establish a link between that detail set and it's details to use the accessor on the second detail to get the desired results. Basically you've to establish the chaining between appropriate instances of VOs and not just the outer VOs or VO members of your AM.

  • Selective deletion based on Calendar Year/Month in process chains

    Hi all,
    I have a requirement from the business wherein I have to delete the past months data before I load the same data into 6 infocubes using a process chain.
    I checked the forums to understand how selective deletion is used in a process chain and I have come to know that RSDRD_DELETE_FACTS program or DELETE_FACTS Tcode can be used to generata a G* program that performs the deletion.
    I am to integrate this generated program in my process chain. I have 0CALMONTH(Calendar Year/Month) as the time characteristic in all my infocubes and therefore the only time characteristic available for selective deletion.
    My problem is that I am unable to create a dynamic selection for the Calendar Year/Month such that it takes the previous month.To be exact I am unable to use the "D" option in the Selection Variable column for this characteristic.
    Please can somebody help me out with this.

    Hi,
    Use this ABAP program code in your Process Chain...
    Type Pools
        TYPE-POOLS: rsdrd, rsdq, rssg.
    Local Internal Tables
        DATA: lit_msg     TYPE rs_t_msg,
                    lit_sel     TYPE rsdrd_thx_sel.
    Local Work Area
        DATA : lwa_sel_kf1     TYPE rsdrd_sx_sel,
                   lwa_range_kf1  TYPE rsdrd_s_range.
    Local Constants
        CONSTANTS :    lc_i(1)      TYPE c  VALUE 'I',
                                 lc_x(1)      TYPE c  VALUE 'X',
                                 lc_eq(2)     TYPE c  VALUE 'EQ',
                                 lc_kf1(11)   TYPE c  VALUE '0CALMONTH'.
        CONSTANTS :   lc_cube      TYPE rsddatatarget VALUE 'Z_C21'.
    Delete Existing cube records
    Key Field 1 (CALMONTH)
          lwa_range_kf1-sign    = lc_i.
          lwa_range_kf1-option  = lc_eq.
          lwa_range_kf1-high    = space.
          lwa_range_kf1-keyfl   = lc_x.
          lwa_range_kf1-low     = <Value of CALMONTH>.
          APPEND lwa_range_kf1 TO lwa_sel_kf1-t_range.
          CLEAR  lwa_range_kf1.
           lwa_sel_kf1-iobjnm = lc_kf1.
          INSERT lwa_sel_kf1 INTO TABLE lit_sel.
          CLEAR : lwa_sel_kf1.
    Selective Deletion through FM
          CALL FUNCTION 'RSDRD_SEL_DELETION'
            EXPORTING
              i_datatarget      = lc_cube
              i_thx_sel         = lit_sel
              i_authority_check = space
              i_mode            = lc_c
              i_no_enqueue      = lc_x
            CHANGING
              c_t_msg           = lit_msg
            EXCEPTIONS
              x_message         = 1
              inherited_error   = 2
              invalid_type      = 3
              OTHERS            = 4.
          IF sy-subrc = 0.
            REFRESH : lit_sel[],
                      lit_msg[].
          ENDIF.
    Thanks,
    Saru

  • BI Refresh -Reports not opening

    Hi All,
    We have recently Refreshed the BID system,  As part of the Refresh we have Loaded the FULL/INIT/DELTA.
    After running all the Process chains,  We are not able to open some of the reports
    While opening the report after entering data in variable screen, a pop-up message coming as:
    " An error occurred while comminication with the BI server As a result of this error the system has been DC from the BI server"
    Detailed description:
    Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
    System Error Program CL_RSR_RRKO_SELECTION and from COLLECT_CHAFIX-02-
    Any replies will be appreciated!
    Thanks in Advance,
    Teena.

    Thank You for the reply Prashanth,
    I am getting this problem only for some reports, not all the reports.
    If we regenerate in RSRT what is going to happen? Do We need to regenerate all reports which are not working correctly or all the reports?
    Thanks in advance,
    Teena

  • Chained LOVs in portal using Javascript

    Has anyone gotten this to work in portal forms. I have an LOV in a form based on a table and when the user selects a value in LOV 1 it should populate the LOV2 item with the corresponding values. Please note that the time it takes to refresh using the traditional chained LOV solution in portal is too inefficient and causes the page to refresh when it shouldn't have to. This should be a fairly simple task considering nearly all web sites have this simple functionality but within portal I have not been successful in implementing this.
    Can anyone offer a solution?
    Thanks

    OK,
    This is the functionality that I am looking for. Can someone tell me whether or not this is possible in portal?
    <html>
    <head><!--
    This file retrieved from the JS-Examples archives
    http://www.js-examples.com
    1000s of free ready to use scripts, tutorials, forums.
    Author: Artem - http://javascript4free.by.ru
    -->
    <script language="JavaScript">
    <!-- Begin
    var africaArray = new Array("('Select country','',true,true)",
    "('Ethiopia')",
    "('Somalia')",
    "('South Africa')",
    "('Other')");
    var middleeastArray = new Array("('Select country','',true,true)",
    "('Egypt')",
    "('Iran')",
    "('Israel')",
    "('Kuwait')",
    "('Lebanon')",
    "('Morocco')",
    "('Saudi Arabia')",
    "('Syria')",
    "('Turkey')",
    "('U. A. Emirates')",
    "('Other')");
    var asiaArray = new Array("('Select country','',true,true)",
    "('Armenia')",
    "('Bangladesh')",
    "('Cambodia')",
    "('China')",
    "('India')",
    "('Indonesia')",
    "('Japan')",
    "('Malaysia')",
    "('Myanmar')",
    "('Nepal')",
    "('Pakistan')",
    "('Philippines')",
    "('Singapore')",
    "('South Korea')",
    "('Sri Lanka')",
    "('Taiwan')",
    "('Thailand')",
    "('Uzbekistan')",
    "('Vietnam')",
    "('Other')");
    var europeArray = new Array("('Select country','',true,true)",
    "('Albania')",
    "('Austria')",
    "('Belarus')",
    "('Belgium')",
    "('Bosnia')",
    "('Bulgaria')",
    "('Croatia')",
    "('Cyprus')",
    "('Czech Rep.')",
    "('Denmark')",
    "('Estonia')",
    "('Finland')",
    "('France')",
    "('Germany')",
    "('Greece')",
    "('Hungary')",
    "('Iceland')",
    "('Ireland')",
    "('Italy')",
    "('Latvia')",
    "('Liechtenstein')",
    "('Lithuania')",
    "('Luxembourg')",
    "('Macedonia')",
    "('Malta')",
    "('Monaco')",
    "('Netherlands')",
    "('Norway')",
    "('Poland')",
    "('Portugal')",
    "('Romania')",
    "('Russia')",
    "('Slovakia')",
    "('Slovenia')",
    "('Spain')",
    "('Sweden')",
    "('Switzerland')",
    "('Ukraine')",
    "('United Kingdom')",
    "('Other')");
    var australiaArray = new Array("('Select country','',true,true)",
    "('Australia')",
    "('New Zealand')",
    "('Other')");
    var lamericaArray = new Array("('Select country','',true,true)",
    "('Costa Rica')",
    "('Cuba')",
    "('El Salvador')",
    "('Guatemala')",
    "('Haiti')",
    "('Jamaica')",
    "('Mexico')",
    "('Panama')",
    "('Other')");
    var namericaArray = new Array("('Select country','',true,true)",
    "('Canada')",
    "('USA')",
    "('Other')");
    var samericaArray = new Array("('Select country','',true,true)",
    "('Argentina')",
    "('Bolivia')",
    "('Brazil')",
    "('Chile')",
    "('Colombia')",
    "('Ecuador')",
    "('Paraguay')",
    "('Peru')",
    "('Suriname')",
    "('Uruguay')",
    "('Venezuela')",
    "('Other')");
    function populateCountry(inForm,selected)
    var selectedArray = eval(selected + "Array");
    while (selectedArray.length < inForm.country.options.length)
    inForm.country.options[(inForm.country.options.length - 1)] = null;
    for (var i=0; i < selectedArray.length; i++)
    eval("inForm.country.options=" + "new Option" + selectedArray[i]);
    if (inForm.region.options[0].value == '')
    inForm.region.options[0]= null;
    if ( navigator.appName == 'Netscape')
    if (parseInt(navigator.appVersion) < 4)
    window.history.go(0);
    else
    if (navigator.platform == 'Win32' || navigator.platform == 'Win16')
              if(!document.getElementById)
    window.history.go(0);
    function populateUSstate(inForm,selected) { 
    var stateArray = new Array("('Select State','',true,true)",
    "('Alabama')",
    "('Alaska')",
    "('Arizona')",
    "('Arkansas')",
    "('California')",
    "('Colorado')",
    "('Connecticut')",
    "('Delaware')",
    "('Columbia')",
    "('Florida')",
    "('Georgia')",
    "('Hawaii')",
    "('Idaho')",
    "('Illinois')",
    "('Indiana')",
    "('Iowa')",
    "('Kansas')",
    "('Kentucky')",
    "('Louisiana')",
    "('Maine')",
    "('Maryland')",
    "('Massachusetts')",
    "('Michigan')",
    "('Minnesota')",
    "('Mississippi')",
    "('Missouri')",
    "('Montana')",
    "('Nebraska')",
    "('Nevada')",
    "('New Hampshire')",
    "('New Jersey')",
    "('New Mexico')",
    "('New York')",
    "('North Carolina')",
    "('North Dakota')",
    "('Ohio')",
    "('Oklahoma')",
    "('Oregon')",
    "('Pennsylvania')",
    "('Rhode Island')",
    "('South Carolina')",
    "('South Dakota')",
    "('Tennessee')",
    "('Texas')",
    "('Utah')",
    "('Vermont')",
    "('Virginia')",
    "('Washington')",
    "('West Virginia')",
    "('Wisconsin')",
    "('Wyoming')");
    if (selected == 'USA') {
    for (var i=0; i < stateArray.length; i++) {
    eval("inForm.country.options[i]=" + "new Option" + stateArray[i]);
    if ( navigator.appName == 'Netscape') {
    if (parseInt(navigator.appVersion) < 4) {
    window.history.go(0)
    else {         
    if (navigator.platform == 'Win32' || navigator.platform == 'Win16') {
    window.history.go(0)
    else {
    if (selected == 'Other') {
    newCountry = "";
    while (newCountry == ""){
    newCountry=prompt ("Please enter the name of your country.", "");
    if (newCountry != null) {
    inForm.country.options[(inForm.country.options.length-1)]=new Option(newCountry,newCountry,true,true);
    inForm.country.options[inForm.country.options.length]=new Option('Other, not listed','Other');
    if(inForm.country.options[0].text == 'Select country') {
    inForm.country.options[0]= null;
    }// End -->
    </script>
    <title>JS</title>
    </head>
    <body>
    <form name="globe">
    <p><select name="region"
    onchange="populateCountry(document.globe,document.globe.region.options[document.globe.region.selectedIndex].value)"
    size="1">
    <option selected value>Select Region</option>
    <option value="asia">Asia</option>
    <option value="africa">Africa</option>
    <option value="australia">Australia</option>
    <option value="europe">Europe</option>
    <option value="middleeast">Middle East</option>
    <option value="lamerica">Latin America</option>
    <option value="namerica">North America</option>
    <option value="samerica">South America</option>
    </select> <select name="country"
    onchange="populateUSstate(document.globe,document.globe.country.options[document.globe.country.selectedIndex].text)"
    size="1">
    <option selected value>&lt;--------------------</option>
    </select> </p>
    </form>
    <p align="center"><br>
    JS-Examples.com </p>
    </body>
    </html>

  • "Save Hierarchies" step in Process chain getting failed

    Hello all,
    After searching thoroughly through various links / forums, i failed to get a solution. So, I am posting here.
    Recently we had a system copy. After that, in Quality system - "Save all Hierarchies" step in PC is getting failed.
    I ran the process chain for 3 times till now:
    1) Sometimes, it fails at batch monitor itself with UNCAUGHT_EXCEPTION runtime error.
    2) Sometimes, it fails saying "Error 0 when reading PSA 1" & "No hierarchy found for the selection criteria entered".
    When it fails with "Error 0 when reading PSA 1", then the above Hierarchy info package which is green automatically turns RED again with Process monitor saying "No PSA tables for the selection criteria".
    I also went through the below sdn links.
    http://scn.sap.com/thread/278794
    http://scn.sap.com/thread/1753212
    Things I did:
    1) Tried replicating & activating the Transfer rules and Data source.
    2) Repeated the step, as suggested in one post.
    3) Refreshed the OLTP hierarchies in Infopack. selections.
    I have attached a screenshot of a sample Data source which says Modified, though the transfer rules are active. Also, the process chain sample.
    Please let me know, if someone has faced this issue. Whatelse did I miss? Any clue.
    Thanks,
    Vikranth.

    Hi Raman,
    I couldn't retransport, but i removed it from schedule and re-activated it. But, i think the issue lies with one of the Info objects 0PROFIT_CTR.
    Because, when i tried to check the hierarchy structure; there are duplicate entries for one code. Can we delete one of them? Is it preferable.
    I tried using OSS and used a program RSR_REPAIR_INFOAREAHIER but this showed no errors.
    Any clue?
    Thanks,
    VIkranth

Maybe you are looking for

  • Lumia 520 nokia music activation problem

    When i try to download song in nokia music it says-this phone is already registered with a nokia music unlimited subscription. I don't know how to fix this problem.

  • | in text file???

    I currently have a txt file with food|drinks|games| and so on.... however I currently have problems reading the words with |.... May I know why? As I want to check the words individually. Thanks

  • Other display resolution options

    I've just bought a 19" widescreen display to go with a (planned) new mini. In the meantime I've hooked it up to my G4 iBook. Question is: is there any way of working around the standard resolution options in the Display Preferences. 1024x768 gives me

  • SXPG_COMMAND_EXECUTE failed for BRBACKUP - Reason: program_start_error

    Dear Gurus,          I installed SAP ERP 6 on distributed systems (DB Instance on SAPPRDDB and Central Instance on SAPPRDAP1).         When I ran brbackup from db13 on SAPPRDAP1, it found error as below. What's wrong? Best regards, Choosak B. <<< dev

  • LOADS of problems with 5.1.1 Update on IPhone 4!

    Gonna try and keep it fairly simple... Checked my phone, found out there was an update, so I plugged it into the wall, downloaded the newest iTunes on my laptop(mine was a few upgrades behind) then downloaded the Software Update for my iPhone. -First