What is the difference between iterator.remove() ArrayList.remove()?

Following code uses iterator.remove() ArrayList.remove().
public class CollectionRemove
    private static void checkIteratorRemove()
         List<String> list = new ArrayList<String>();     
          list.add("1");
          list.add("2");
          list.add("3");     
         System.out.println("in checkWithIterator*************");
        Iterator<String> iter = list.iterator();
        while (iter.hasNext()) {
            String str = iter.next();           
            if (str.equals("2")) {
                iter.remove();
            System.out.println("list Size: " + list.size() + " Element: " +  str);
    private static void checkListRemove()
         List<String> list = new ArrayList<String>();     
          list.add("1");
          list.add("2");
          list.add("3");     
        System.out.println("in ncheckWithForLoop*************");
        Iterator<String> iter = list.iterator();
        while (iter.hasNext()) 
             String str = (String) iter.next();    
            if (str.equals("2")) {
                list.remove(str);
            System.out.println("list Size: " + list.size() + " Element: " +  str);
    public static void main(String args[])
         checkIteratorRemove();
         checkListRemove();
output is :
in checkWithIterator*************
list Size: 3 Element: 1
list Size: 2 Element: 2
list Size: 2 Element: 3
in ncheckWithForLoop*************
list Size: 3 Element: 1
list Size: 2 Element: 2Why is this difference ? what is the difference between iterator.remove() ArrayList.remove()?

In the case of Fail-fast iterator, if a thread modifies a collection directly while iterating over it, the iterator will thow ConcurrentModificationException . Say,
for (Iterator it = collection.iterator(); it.hasNext()) {
    Object object = it.next();
    if (isConditionTrue) {
        // collection.remove(object);  can throw ConcurrentModificationException
        it.remove(object);
}As per specs,
Note that this exception does not always indicate that an object has been concurrently modified by a different thread. If a single thread issues a sequence of method invocations that violates the contract of an object, the object may throw this exception. For example, if a thread modifies a collection directly while it is iterating over the collection with a fail-fast iterator, the iterator will thow this exception.

Similar Messages

  • WHAT'S THE DIFFERENCE BETWEEN.....

    Hi friends,
    Please enlighten me ....
    What's the difference between using this.....
    1. Add User command functionality to ALVgrid report
    In order to add user command functionality to the ALV grid you need to perform the following steps:
                        1. Update 'REUSE_ALV_GRID_DISPLAY' FM call to include 'USER_COMMAND' FORM
                    2. Create 'USER_COMMAND' FORM
    call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_callback_top_of_page   = 'TOP-OF-PAGE'
                I_callback_user_command = 'USER_COMMAND'   "see FORM
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
                i_save                  = 'X'
           tables
                t_outtab                = it_ekko
           exceptions
                program_error           = 1
                others                  = 2.
          FORM USER_COMMAND                                          *
          --> R_UCOMM                                                *
          --> RS_SELFIELD                                            *
    FORM user_command USING r_ucomm LIKE sy-ucomm
                      rs_selfield TYPE slis_selfield.
    Check function code
      CASE r_ucomm.
        WHEN '&IC1'.
      Check field clicked on within ALVgrid report
        IF rs_selfield-fieldname = 'EBELN'.
        Read data table, using index of row user clicked on
          READ TABLE it_ekko INTO wa_ekko INDEX rs_selfield-tabindex.
        Set parameter ID for transaction screen field
          SET PARAMETER ID 'BES' FIELD wa_ekko-ebeln.
        Sxecute transaction ME23N, and skip initial data entry screen
          CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
        ENDIF.
      ENDCASE.
    ENDFORM.
    and using this----
    2. Add User command functionality to ALVgrid report
    In order modify PF_STATUS of ALV grid report you need to perform the following steps:
         1. Update 'REUSE_ALV_GRID_DISPLAY' FM call to include:
                        i_callback_pf_status_set = 'SET_PF_STATUS' statement.
         2. Create 'SET_PF_STATUS' FORM
         3. Create pf_status (i.e. 'ZNEWSTATUS').
              - It is recommend that you copy standard status'STANDARD' from function group SALV
                and modify it accordingly. ALV standard function codes always start with '&'.
    call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_callback_top_of_page   = 'TOP-OF-PAGE'
                i_callback_pf_status_set = 'SET_PF_STATUS'   "see FORM
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
                i_save                  = 'X'
           tables
                t_outtab                = it_ekko
           exceptions
                program_error           = 1
                others                  = 2.
          FORM SET_PF_STATUS                                         *
    FORM set_pf_status USING rt_extab TYPE slis_t_extab.
      SET PF-STATUS 'ZNEWSTATUS'.
                      "Copy of 'STANDARD' pf_status from fgroup SALV
    ENDFORM.
    I have assumed the former is used  when I am selecting a field on the list
    and the later when I have  created a pf-status. I mean to say... I have slected a field and click on some button to get further information.
    Please remove my confusion.
    Thanking you alll in advance,
    Hari Kiran.

    From their Terms & Conditions page:
    Grade A - Working phone in as new/mint condition. Complete with original box and accessories as sold new.
    Grade B (and Discounted) - Working phone in good condition with slight cosmetic blemishes. Charger supplied. If the phone includes a music player/radio then it is supplied with headphones. If the phone has PDA functionality a sync cable and/or docking cradle is supplied. Missing original packaging.
    Grade C (and Budget) - Working phone in poor cosmetic condition. Original or 3rd party charger supplied but missing accessories and original packaging.
    Substitute iPod for phone and I think it makes sense...
    tt2

  • What is the difference between Category Mgmt and Spend Analysis?

    Hi Friends
    What is the difference between Category Mgmt and Spend Analysis?
    Regards
    Chinna Krishna

    Hi Chinna
    Here are my two cents on this questions
    1. Catagory Management : It pertains to all sourcing activities that a purchasing group does for a specific catagory of items ( say tyres, bearings, etc. in automobile industry scenario OR steel sheets, electric motor, etc. in consumer durables industry scenario) in order to meet companies strategic goals like cost, quality, delivery and new product introduction. It also involves the strategic sourcing piece for that category. Typically it can include following activities for a category which is being managed
    - Identifying current and future business & technical requirements
    - Constant vigilence and analysis of supply market for that category ( and also identifying new sources)
    - Lauching various projects within category focussed on cost reduction, quality improvement, delivery improvement. This may include some of activities like supplier analysis. RFx, Reverse auctions, contract negotiation, etc.
    - Monitoring the category specific supplier performance
    Category Management team typically consists of cross functional team and it is iterative process (continuous improvement).
    Category Management in covered to some extent in E-Sourcing application and its analysis is covered in Spend Analytics application. Fully blown category management is on road map of SAP but none of the current functionalities addresses it fully.
    2. Spend Analysis: This involves analysis of the spend at highest level of organization. To improve the data quality, it typically involves spend data standardization & enrichment, supplier normalization and spend categorization. Once you have clean data, one can slice and dice the data to gain insight into the spend and identify opportunities for launching the various initiatives focussed on cost, quality and delivery.
    SAP Spend Analytics application covers this spend analysis capability.
    Its a long answer and hope it helps you.
    Bhushan

  • What is the difference between PSE 8 and 9

    I was wondering what is the difference between PSE 8 and 9 and are the enhancements worth upgrading to PSE 9?

    iOS is the operating system for mobile devices such as iPhones, iPads, and iPods), as well as AppleTV. Mavericks is the current operating system for Macs (laptops and desktop computers). Yosemite is its newest iteration, currently in beta and due for release in the next few weeks.
    If you are looking for something more specific concerning functionality, you will have to be more specific with your question.

  • What is the difference between  ABAP and HR-ABAP?

    Hi people,
    Could u just tel me abt what is the difference between ABAP and HR-ABAP?
    Thanks in advance,
    Sanjeev K.V

    Hi Sir ,
    Please have a look below .Hope it is suitable and simpler solution for your question.
    Please do reward if useful.
    Thankx.
    HR deals with the INFOTYPES which are similar to Tables in General ABAP.
    There are different ways of fetching data from these infotypes.
    There are different areas in HR LIKE Personal Admn, Orgn Management, Benefits, Time amangement, Event Management, Payroll etc
    Infotypes for these areas are different from one another area.
    storing of records data in each type of area is different
    LDBS like PNP are used in HR programing.
    Instead of Select.. we use some ROUTINES and PROVIDE..ENDPROVIDE.. etc
    and in the case of Pay roll we use Clusters and we Import and Export them for data fetching.
    On the whole Normal ABAP is different from HR abap.
    Also,
    HR:
    HR deals with the INFOTYPES which are similar to Tables in General ABAP.
    There are different ways of fetching data from these infotypes.
    There are different areas in HR LIKE Personal Admn, Orgn Management, Benefits, Time amangement, Event Management, Payroll etc
    Infotypes for these areas are different from one another area.
    storing of records data in each type of area is different
    LDBS like PNP are used in HR programing.
    Instead of Select.. we use some ROUTINES and PROVIDE..ENDPROVIDE.. etc
    and in the case of Pay roll we use Clusters and we Import and Export them for data fetching.
    On the whole Normal ABAP is different from HR abap.
    For Personal Admn the Infotypes start with PA0000 to PA1999
    Time Related Infotypes start with PA2000 to PA2999.
    Orgn related Infotypes start with HRP1000 to HRP1999.
    All custom developed infotypes stsrat with PA9000 onwards.
    In payroll processing we use Clusters like PCL1,2,3 and 4.
    Instead of Select query we use PROVIDE and ENDPROVIDE..
    You have to assign a Logical Database in the attributes PNP.
    Go through the SAp doc for HR programming and start doing.
    http://www.sapdevelopment.co.uk/hr/hrhome.htm
    See:
    http://help.sap.com/saphelp_46c/helpdata/en/4f/d5268a575e11d189270000e8322f96/content.htm
    sites regarding hr-abap:
    http://www.sapdevelopment.co.uk/hr/hrhome.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPA/PAPA.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPD/PAPD.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PYINT/PYINT_BASICS.pdf
    http://www.atomhr.com/training/Technical_Topics_in_HR.htm
    http://www.planetsap.com/hr_abap_main_page.htm
    You can see some Standard Program examples in this one ...
    http://www.sapdevelopment.co.uk/programs/programshr.htm
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci1030179,00.html?Offer=SAlgwn12604#Certification
    http://www.erpgenie.com/faq/hr.htm.
    http://www.planetsap.com/hr_abap_main_page.htm
    http://www.sapbrain.com/TUTORIALS/FUNCTIONAL/HR_tutorial.html
    These are the FAQ's that might helps you as well.
    http://www.sap-img.com/human/hr-faq.htm
    http://www.sapgenie.com/faq/hr.htm
    http://www.planetsap.com/hr_abap_main_page.htm
    http://www.atomhr.com/library_full.htm
    HR Long texts Upload
    Look at the below link
    And finally,
    Few notes are below:
    InfoSets in the HR Application
    You can use SAP Query in HR to report on HR data. Queries are maintained as described in Creating Queries. The special features of queries created for HR are described in Maintaining Queries in the Human Resources Application. The maintenance procedure for HR InfoSets differs from the described procedure inasmuch as HR data fields are grouped together in infotypes.
    InfoSet management in SAP Query is also used for InfoSet Query. For further information, see Functions for Managing InfoSets.
    If you want to create InfoSets for HR, you can use logical databases PNP, PNPCE, PAP, and PCH (see HR Logical Databases). The database you must use to create your InfoSet depends on the component in which the data you want to report on is stored.
    The reports you can execute using InfoSets based on logical databases PNP (or PNPCE) or PCH are similar, but differ in that they can select different objects. The following table describes the connection between the logical database, and the infotypes you can include in an InfoSet. It also provides you with one or two examples of reports that you can execute using the appropriate InfoSets.
    Logical database PNP/PNPCE* PCH PAP
    Selection of Persons Objects from Personnel Planning Applicants
    Infotypes that can be included in the InfoSet Infotypes for· Personnel Administration (0000-0999) · Time Management (2000-2999) · Payroll infotypes · Infotypes for Personnel Planning objects that can be related to persons If the object type is specified:· Infotypes for the object type · Infotypes for objects that can be related to the specified object typeIf the object type is not specified:· All infotypes · Infotypes for Recruitment (4000-4999)· Some infotypes for Personnel Administration (such as 0001 and 0002)
    · Customer infotypes
    Reporting examples · Selection of all persons who participated in a specific business event, output of prices for reserved business events · Selection of all persons assigned to a specific personnel area, output of qualifications held by these persons · Selection of all business events held in London in March, output of all persons who participated in these business events · Selection of all positions assigned to a specific organizational unit, output of all persons assigned to the positions · Selection of all applicants hired last year to work on special projects, output of addresses for the applicants selected
    Logical database PNPCE (PNP Concurrent Employment) functions just like logical database PNP. The procedure for creating InfoSets is also the same. It only becomes significant if you work with Concurrent Employment.
    Creating InfoSets
    The maintenance procedure for HR InfoSets differs from the procedure described so far in this section inasmuch as HR data fields are grouped together in infotypes. To set up an InfoSet for the HR application, proceed as follows:
    1. On the initial screen for maintaining InfoSets, enter a name for the InfoSet and choose Create.
    2. On the next screen, enter a name for the InfoSet and select one of the HR logical databases in accordance with your reporting requirements.
    Customer infotypes can be created on all HR logical databases. In each individual case, therefore, you must decide which database to select so that you can report on customer infotypes.
    This screen enables you to enter an authorization group. All of the queries that are subsequently created using this InfoSet can only be executed by persons who have this authorization group.
    3. Choose .
    This takes you to the Infotype Selection for InfoSet  screen. You now have the option of creating field groups and assigning fields as required for non-HR InfoSets. Field groups that correspond to infotypes and already contain fields, however, are always created for HR InfoSets. The field groups are displayed in an overview tree in the top right section of the screen.
    The infotypes that you included in the InfoSet are displayed in an overview tree on the left of the screen. The infotype fields that are already included in field groups are displayed in a different color, and the corresponding field group ID is displayed.
    In the standard system, a field group is created automatically for each infotype that you included in the InfoSet (a field group corresponds to an infotype).
    In the standard system, each field group contains the infotype-specific fields. To ensure that working with the InfoSet is as easy as possible, you are advised to restrict your use of fields in each field group to those you really require. This means you should remove fields that are not required.
    An infotype's fields must only be assigned to the pertinent field group. Make sure this assignment is correct. If the assignment is incorrect, the InfoSet could be rendered unusable.
    When an InfoSet is created, the following fields are transferred automatically to the first field group:
    § Logical database PNPCE or PNP Personnel number
    § Logical database PAP Applicant number
    § Logical database PCH Object ID, plan version, and object type
    6. Determine the fields that must be included in the field groups of your InfoSet. If you require further information, see Assigning Fields to a Field Group.
    If you want, you can change the default sequence of field groups and fields as required using Drag&Drop.
    7. To save the InfoSet, choose .
    8. To generate the InfoSet, choose .
    On the Change InfoSet (InfoSet name) screen, you can choose Edit ® Change infotype selection to add more infotypes to the InfoSet, or to remove infotypes from the InfoSet. Remember to regenerate the InfoSet afterwards.
    This screen also enables you to update InfoSets if, for example, the system contains new additional fields for specific key values. To do so, choose InfoSet ® Additional functions ® Update additional HR fields.
    9. Go back to the initial screen for InfoSet maintenance.
    10. Choose User group assignment.
    11. Select a user group, and save your entry.
    sample code
    START-OF-SELECTION.
    GET pernr.
    rp_provide_from_frst p0000 space pn-begda pn-endda.
    if pnp-sw-found EQ '1'.
    READ TABLE p0001 WITH KEY pernr = p0000-pernr.
    if sy-subrc = 0.
    write : p0001-plans. " earliest.
    endif.
    endif.
    rp_provide_from_last p0014 space pn-begda pn-endda.
    if pnp-sw-found EQ '1'.
    READ TABLE p0014 WITH KEY pernr = p0000-pernr.
    if sy-subrc = 0.
    write : p0014-LGART. .
    endif.
    endif.

  • What are the differences between TestStand Version 1.0.2 and 1.0.3?

    I have TestStand version 1.0.2 and have a customer that uses 1.0.3. I am updating test software for that customer and need to know if I can use TestStand 1.0.2. What are the differences between 1.0.2 and 1.0.3?

    vc -
    The Whatsnew.txt file for TestStand 1.0.3 contains the following text:
    Changes from TestStand 1.0.2 to 1.0.3
    TestStand 1.0.3 includes a translation to Japanese. It also
    includes other fixes mostly related to translation issues.
    1) Configure Database Options menu item was not localized.
    2) Dismissing a modal CVI dialog brought a random window to the front.
    3) Removed text from operator interface splash screens
    4) Resized operator interface panels
    5) In the TestStand - Sequence Display.vi of the LabVIEW operator interface, the
    following control descriptions didn't use resource strings:
    - Sequence Description:
    - Current Test:
    - Number of Tests:
    6) The Engine Installation Wizard wasn't localizable.
    7) Flexible MessageBox sometimes displayed only 1-2 lines. This was seen in the
    Edit Database Options Help dialog and the Adapter Configuration dialog in the
    CVI operator interface.
    8) The buttons in the Automation Adapter Configuration dialog were not localized.
    9) Font for the Add Directory to Search Directories checkbox on Find File dialog
    was incorrect for Japanese Windows.
    10) Dialog used to browse for directory to specify the report location was not translated.
    11) Database Viewer was not localized correctly.
    Scott Richardson
    National Instruments

  • What is the difference between closing your macbook & pressing apple-sleep?

    What is the difference between closing your macbook & pressing apple-sleep? My friend aid that it is better to put your computer to sleep by pressing the apple then hitting sleep. I have been just closing it. Is there a difference? Also, is it better to shut your computer down every once and a while. It seems like it gets slow if I just have it sleep after a couple weeks. ALSO, after it has been on sleep every night for a while, my computer has trrouble turning off. I get the problem that says, the application finder has failed to quit try force quitting and try again

    None.
    There's no particular need to shut down the computer except when traveling or moving the computer.
    Whatever other problems you've described have nothing to do with sleeping or shutdown. More likely you need to do some maintenance and/or check that you haven't installed incompatible third-party software.
    Kappy's Personal Suggestions for OS X Maintenance
    For disk repairs use Disk Utility. For situations DU cannot handle the best third-party utilities are: Disk Warrior; DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible. TechTool Pro provides additional repair options including file repair and recovery, system diagnostics, and disk defragmentation. TechTool Pro 4.5.1 or higher are Intel Mac compatible; Drive Genius is similar to TechTool Pro in terms of the various repair services provided. Versions 1.5.1 or later are Intel Mac compatible.
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep. Dependence upon third-party utilities to run the periodic maintenance scripts had been significantly reduced in Tiger and Leopard.
    OS X automatically defrags files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems.
    I would also recommend downloading the shareware utility TinkerTool System that you can use for periodic maintenance such as removing old logfiles and archives, clearing caches, etc.
    For emergency repairs install the freeware utility Applejack. If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the commandline. Note that presently AppleJack is not compatible with Leopard.
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand. I also recommend booting into safe mode before doing system software updates.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
    1. Retrospect Desktop (Commercial - not yet universal binary)
    2. Synchronize! Pro X (Commercial)
    3. Synk (Backup, Standard, or Pro)
    4. Deja Vu (Shareware)
    5. Carbon Copy Cloner (Donationware)
    6. SuperDuper! (Commercial)
    7. Intego Personal Backup (Commercial)
    8. Data Backup (Commercial)
    The following utilities can also be used for backup, but cannot create bootable clones:
    1. Backup (requires a .Mac account with Apple both to get the software and to use it.)
    2. Toast
    3. Impression
    4. arRSync
    Apple's Backup is a full backup tool capable of also backing up across multiple media such as CD/DVD. However, it cannot create bootable backups. It is primarily an "archiving" utility as are the other two.
    Impression and Toast are disk image based backups, only. Particularly useful if you need to backup to CD/DVD across multiple media.
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.
    Additional suggestions will be found in Mac Maintenance Quick Assist.
    Referenced software can be found at www.versiontracker.com and www.macupdate.com.
    Repairing the Hard Drive and Permissions
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger and Leopard.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer. Now restart normally.
    If DU reports errors it cannot fix, then you will need Disk Warrior (4.0 for Tiger, and 4.1 for Leopard) and/or TechTool Pro (4.6.1 for Leopard) to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.

  • What are the differences between Sun Certified Programmer for Java 2 Platfo

    Hi
    What are the differences between Sun Certified Web Component Developer for the Java 2 Platform, Enterprise Edition 1.4 (CX-310-081) and 5 (CX-310-083) exams?
    What has been removed from the new web component developer 5 exam?
    What has been added to the new web component developer 5 exam?
    Thanks in Advance

    what (apart from laziness) is preventing you from looking up the information for yourself?

  • What is the difference between define Assessment and define distribution

    What is the difference between define Assessment(S_ALR_87005742)  and define distribution(S_ALR_87005757)

    Hi,
    Assessment and distribution of relevant overhead costs is performed at period closing (actual data) or plan closing (plan data). This is usually done directly in CO. It is then reflected in the data in Profit Center Accounting.If you have a service profit center or allocation profit center in your profit center hierarchy, you may need to assess or Distribute costs again in Profit center Accounting.
    In Profit Center Accounting, the allocation function allows you to allocate the following plan and actual data.
    -- Costs (assessment and/or distribution)
    -- Revenues and sales deductions (assessment and/or distribution)
    -- Balance sheet items (distribution)
    Assessment is made using a special cost/revenue element. In distribution, the original cost/revenue element/account number is retained.
    Assesment,you set rules in the form of cycles for allocating primary and secondary costs in plan.
    Activities in assesment are
    Create an plan assessment cycle by proceeding as follows:
    1. Enter a name for the cycle
    2. Enter a validity timeframe for the cycle
    3. Maintain the header data for the cycle by entering the following:
    a) In which currencies the costs should be charged
    b) Whether consumption quantities should be charged
    c) Whether negative tracing factors should be scaled
    d) Whether the cycle should be processed iteratively
    e) In which version the cycle is valid
    4. Create segments for the cycle that contain the following information:
    a) The sender cost element to be distributed
    b) Criteria to distribute the costs among the receivers
    c) Sender objects
    d) Receiver objects
    Distribution ,you create rules in the form of cycle for the settlement of primary costs on a cost center.
    Activities in distribution are
    Create a plan distribution cycle by proceeding as follows:
    1. Determine a name for the cycle.
    2. Determine a validity period for the cycle.
    3. Maintain the header data for the cycle by entering the following.
    a) Which currencies are to be used in the allocations
    b) Whether consumption is to be allocated or not
    c) Whether negative tracing factors are scaled or not
    d) Whether cycle processing is to be iterative
    e) In which version the allocation is to take place
    4. Define cycle segments in which you store the following information.
    a) Sender cost element to be distributed
    b) Criteria for cost distribution to the receiver
    c) Sender objects
    d) Receiver objects
    regards,
    Santosh kumar

  • What is the difference between tkprof and explainplan

    Hi,
    what is the difference between tkprof and explainplan.

    Execution Plans and the EXPLAIN PLAN Statement
    Before the database server can execute a SQL statement, Oracle must first parse the statement and develop an execution plan. The execution plan is a task list of sorts that decomposes a potentially complex SQL operation into a series of basic data access operations. For example, a query against the dept table might have an execution plan that consists of an index lookup on the deptno index, followed by a table access by ROWID.
    The EXPLAIN PLAN statement allows you to submit a SQL statement to Oracle and have the database prepare the execution plan for the statement without actually executing it. The execution plan is made available to you in the form of rows inserted into a special table called a plan table. You may query the rows in the plan table using ordinary SELECT statements in order to see the steps of the execution plan for the statement you explained. You may keep multiple execution plans in the plan table by assigning each a unique statement_id. Or you may choose to delete the rows from the plan table after you are finished looking at the execution plan. You can also roll back an EXPLAIN PLAN statement in order to remove the execution plan from the plan table.
    The EXPLAIN PLAN statement runs very quickly, even if the statement being explained is a query that might run for hours. This is because the statement is simply parsed and its execution plan saved into the plan table. The actual statement is never executed by EXPLAIN PLAN. Along these same lines, if the statement being explained includes bind variables, the variables never need to actually be bound. The values that would be bound are not relevant since the statement is not actually executed.
    You don’t need any special system privileges in order to use the EXPLAIN PLAN statement. However, you do need to have INSERT privileges on the plan table, and you must have sufficient privileges to execute the statement you are trying to explain. The one difference is that in order to explain a statement that involves views, you must have privileges on all of the tables that make up the view. If you don’t, you’ll get an “ORA-01039: insufficient privileges on underlying objects of the view” error.
    The columns that make up the plan table are as follows:
    Name Null? Type
    STATEMENT_ID VARCHAR2(30)
    TIMESTAMP DATE
    REMARKS VARCHAR2(80)
    OPERATION VARCHAR2(30)
    OPTIONS VARCHAR2(30)
    OBJECT_NODE VARCHAR2(128)
    OBJECT_OWNER VARCHAR2(30)
    OBJECT_NAME VARCHAR2(30)
    OBJECT_INSTANCE NUMBER(38)
    OBJECT_TYPE VARCHAR2(30)
    OPTIMIZER VARCHAR2(255)
    SEARCH_COLUMNS NUMBER
    ID NUMBER(38)
    PARENT_ID NUMBER(38)
    POSITION NUMBER(38)
    COST NUMBER(38)
    CARDINALITY NUMBER(38)
    BYTES NUMBER(38)
    OTHER_TAG VARCHAR2(255)
    PARTITION_START VARCHAR2(255)
    PARTITION_STOP VARCHAR2(255)
    PARTITION_ID NUMBER(38)
    OTHER LONG
    DISTRIBUTION VARCHAR2(30)
    There are other ways to view execution plans besides issuing the EXPLAIN PLAN statement and querying the plan table. SQL*Plus can automatically display an execution plan after each statement is executed. Also, there are many GUI tools available that allow you to click on a SQL statement in the shared pool and view its execution plan. In addition, TKPROF can optionally include execution plans in its reports as well.
    Trace Files and the TKPROF Utility
    TKPROF is a utility that you invoke at the operating system level in order to analyze SQL trace files and generate reports that present the trace information in a readable form. Although the details of how you invoke TKPROF vary from one platform to the next, Oracle Corporation provides TKPROF with all releases of the database and the basic functionality is the same on all platforms.
    The term trace file may be a bit confusing. More recent releases of the database offer a product called Oracle Trace Collection Services. Also, Net8 is capable of generating trace files. SQL trace files are entirely different. SQL trace is a facility that you enable or disable for individual database sessions or for the entire instance as a whole. When SQL trace is enabled for a database session, the Oracle server process handling that session writes detailed information about all database calls and operations to a trace file. Special database events may be set in order to cause Oracle to write even more specific information—such as the values of bind variables—into the trace file.
    SQL trace files are text files that, strictly speaking, are human readable. However, they are extremely verbose, repetitive, and cryptic. For example, if an application opens a cursor and fetches 1000 rows from the cursor one row at a time, there will be over 1000 separate entries in the trace file.
    TKPROF is a program that you invoke at the operating system command prompt in order to reformat the trace file into a format that is much easier to comprehend. Each SQL statement is displayed in the report, along with counts of how many times it was parsed, executed, and fetched. CPU time, elapsed time, logical reads, physical reads, and rows processed are also reported, along with information about recursion level and misses in the library cache. TKPROF can also optionally include the execution plan for each SQL statement in the report, along with counts of how many rows were processed at each step of the execution plan.
    The SQL statements can be listed in a TKPROF report in the order of how much resource they used, if desired. Also, recursive SQL statements issued by the SYS user to manage the data dictionary can be included or excluded, and TKPROF can write SQL statements from the traced session into a spool file.
    How EXPLAIN PLAN and TKPROF Aid in the Application Tuning Process
    EXPLAIN PLAN and TKPROF are valuable tools in the tuning process. Tuning at the application level typically yields the most dramatic results, and these two tools can help with the tuning in many different ways.
    EXPLAIN PLAN and TKPROF allow you to proactively tune an application while it is in development. It is relatively easy to enable SQL trace, run an application in a test environment, run TKPROF on the trace file, and review the output to determine if application or schema changes are called for. EXPLAIN PLAN is handy for evaluating individual SQL statements.
    By reviewing execution plans, you can also validate the scalability of an application. If the database operations are dependent upon full table scans of tables that could grow quite large, then there may be scalability problems ahead. On the other hand, if large tables are accessed via selective indexes, then scalability may not be a problem.
    EXPLAIN PLAN and TKPROF may also be used in an existing production environment in order to zero in on resource intensive operations and get insights into how the code may be optimized. TKPROF can further be used to quantify the resources required by specific database operations or application functions.
    EXPLAIN PLAN is also handy for estimating resource requirements in advance. Suppose you have an ad hoc reporting request against a very large database. Running queries through EXPLAIN PLAN will let you determine in advance if the queries are feasible or if they will be resource intensive and will take unacceptably long to run.

  • What is the difference between HttpSessionBindingListener and HttpSessionLi

    What is the difference between HttpSessionBindingListener and HttpSessionListener?

    HttpSessionBindingListener gets notified if a value has been added to or remove from a session.
    HttpSessionListener gets notified if a session is created or destroyed.

  • PE2 - What's the difference between "cut" and "clear" in Project Assets?

    When removing items from the Project Assets area, what's the difference between "cut" and "clear"?
    Also I believe "delete" is an option at times, but I couldn't replicate it.

    Cut should Delete, but transfer that Clip to the Clipboard, where Clear will just Delete it completely - no transfer to Clipboard.
    That can be tested by doing a Cut, then move the CTI (Current Timeline Indicator) to the end of the Timeline, and hit Ctrl+V (Paste). That Deleted Clip should appear after the CTI.
    Then, clear (or choose a different Clip) the Clipboard, and try Clear. It should not Paste the Clip into the Timeline.
    Good luck,
    Hunt

  • What is the difference between the T.codes MC.B and MC44 ?

    Hi Guys
    What is the difference between the T.codes MC.B and MC44 ?
    and
    What is the meaning of "Key figure" ?
    cheers
    MaruthiRam

    Dear,
    MC.B - Mat.Anal.Selection; Turnover - Executing material tunrover basing the different selection parameters available.
    MC44 - Analysis of Inventory Turnover - The key figure "inventory turnover" specifies how often average stock has been consumed. Inventory turnover is calculated as the ratio of cumulative usage to average stock level.
    An inventory turnover analysis allows you to identify whether there are any "slow-moving items". It provides a basis for evaluating, for example, how effectively fixed capital has been used.
    Key figure: The key figures that you can evaluate in the standard analyses for stock placement/removal and material placement/removal, provide information from the point of view of a storage area, and distinguish between internal and external warehouse movements. Both of these standard analyses are based on data that is updated to the information structure S090 when the events goods movement (external quantities), or stock removals/placements and transfer orders occur. The only difference between these analyses is the predefined standard drilldown path.
    Regards,
    Syed Hussain.

  • What is the difference between these tow?

    Hi,
    Inside a JFrame's code both
    getContentPane.add (...)and
    add (...)both are working.
    How come they are working identically? What is the difference between them?

    Darryl.Burke wrote:
    And learn to read the API.
    As a conveniance add and its variants, remove and setLayout have been overridden to forward to the contentPane as necessary.
    dbProbably first learn where to find it, here:
    http://java.sun.com/javase/6/docs/api/

  • 1. What's the difference between private mode in Safari which i have to turn on every time again when opening safari. It's a two click activity which i would love to be able to set in the preference as default.

    1. What's the difference between private mode in Safari which i have to turn on every time again when opening safari.
    It's a two click activity which i would love to be able to set in the preference as default. It's tyering when have to do it everyday a few times. (Yes, i'm one of many who have the "i like safari but since the update crash everyday a few times" syndrome...
    Yes, i have updated my system.
    Yes, i have repared disk permissions with disk utility.
    Am open for any other help in both cases. Thank you upfront
    2. and the "tell websites not to track me" under Safari - Preference - Privacy.

    That box should prevent websites using trackers to log your movements on the Web to benefit advertisers. I have no idea if it does.
    Safari can keep your browsing history private. When you turn on private browsing, Safari doesn’t remember the pages you visit, your search history, or your AutoFill information, so your partner cannot see where you have been, but you must also remember to also turn off acceptance of cookies.
    In all other respects Private Browsing is not as private as you might think:
    http://www.switchingtomac.com/tutorials/how-to-make-safaris-private-browsing-fea ture-actually-private/
    http://www.insanely-great.com/news.php?id=9054
    and then Apple's own advice from here: http://www.apple.com/pro/tips/privacy_safari.html
    "Note that the Private Browsing option does not prevent Safari from collecting cookies (the preference files automatically generated by many websites). The Reset Safari option clears all cookies. If you want to delete only certain ones, choose Preferences from the Safari menu, click the Security tab, and then click Show Cookies. You can select and delete individual cookies from the list that appears. Careful, though — if you’re a frequent web user, this list can be very, very long."
    which is itself incomplete, the relevant part being 'If you want to delete only certain ones.
    To that end it is useful to have Safari Cookies installed, which is the only cookie manager available for Safari:
    http://sweetpproductions.com/safaricookies/
    which automatically deletes all cookies not marked as 'favourites' when closing Safari. It does the same for Flash Cookies, but they are subject for themselves:
    From this website:
    http://machacks.tv/2009/01/27/flushapp-flash-cookie-removal-tool-for-os-x/
    For those who do not know about Flash cookies, more properly referred to as Local Shared Objects (LSO), they operate in a similar way to regular browser cookies but are stored outside the purview of your browser, meaning you cannot delete them from within your browser, whether Safari, Firefox, Opera or any other. Typically they are issued from sites or 3rd party sites that contain Adobe Flash content. Since virtually all internet advertising is  delivered in Flash, Google/Doudleclick and all other internet advertising companies are sure to be tracking your browsing behavior with Flash cookies. These companies can see you traverse the Internet as you come upon the plethora of sites that contain their embedded advertising. Check out the Wikipedia entry here.
    In Mac OS X they are stored in the following location:
    /User’s Home Folder/Library/Preferences/Macromedia/Flash Player/#SharedObjects
    The settings for the Flash cookies are stored in:
    /User’s Home Folder/Library/Preferences/Macromedia/Flash Player/macromedia.com/support/flashplayer/sys
    In OS X Local Shared Objects, or Flash Cookies, are appended with a .sol suffix. Flush deletes all the Flash cookies (.sol) and their settings.
    Flush can be downloaded from that page.
    If you want to retain certain Flash cookies but not others, the excellent add-on for Safari called SafariCookies now includes a setting for automatically deleting flash cookies you don't want to retain, when Safari is shut down, in the same as it deals with ordinary cookies:
    http://www.sweetpproductions.com/safaricookies/index.htm
    which not only does that but much more equally useful stuff!
    This article covers the issue in more depth:
    http://www.wired.com/epicenter/2009/08/you-deleted-your-cookies-think-again/
    Flash cookies are also known as 'Zombie Cookies' and are used by a number of firms, including Hulu, MTV, and Myspace. Graham Cluley, senior technology consultant at the internet security firm Sophos, told BBC News that the source of the trouble was Adobe Flash itself, which he called "one of the weirdest programs on the planet".
    "I think it's highly unlikely that these large companies have abused Flash cookies - which are different from browser cookies - with malicious intent," he said.
    "I think it's much more likely that the vast majority of users are simply oblivious to the bizarre way in which Adobe allows them to configure the software."
    http://www.bbc.co.uk/news/technology-10787882
    And a more recent article:
    http://www.nytimes.com/2010/09/21/technology/21cookie.html?_r=3&scp=1&sq=flash&s t=cse
    [b]Tracker cookies and the invisible web:[/b]
    – tags, web bugs, pixels and beacons that are included on web pages in order to get an idea of your online behavior.
    Ghostery tracks the trackers and gives you a roll-call of the ad networks, behavioral data providers, web publishers, and other companies interested in your activity.
    http://www.ghostery.com/about
    This provides an extension to Safari (also available for other browsers) that shows you what data tracking is active on each web page you visit, and enables you to block them.

Maybe you are looking for