Avoid Enter Hit

Hi Everyone,
I had created a selection screen with two parameters.
1st parameter have search help.
I got F4 help on value request for 2nd parameter.
My requirement is, after entering value in 1st parameter, relavant records from table should be fetched
and only those data should be in f4 help for 2nd parameter.
Everything is working fine as per requirement.
Only problem is , after entering data in parameter1, till a ENTER Hit, F4 help for Parameter 2 is not workking.
I think this is for a event trigger, But how can i over come this issue to avoid ENTER HIT.
Thanks in Advance,
Regards
Ravi

Hay try this,(DYNP_VALUES_READ)
data: begin of i_afpo occurs 0,
           aufnr type afpo-aufnr,
           end of i_afpo.
  data : dyname like d020s-prog value sy-repid,
         dynumb like d020s-dnum value '0100'.
  data: begin of dynpfields occurs 3.
        include structure dynpread.
  data: end of dynpfields.
  refresh dynpfields.
  move 'PARAMETER 1' to dynpfields-fieldname.
  append dynpfields.
*--> FETCHING PURCHASE ORDERS RELATED TO PLANT.
  call function 'DYNP_VALUES_READ'
    exporting
      dyname                         = sy-repid
      dynumb                         = dynumb
   translate_to_upper             = 'X'
  REQUEST                        = ' '
  PERFORM_CONVERSION_EXITS       = ' '
  PERFORM_INPUT_CONVERSION       = ' '
  DETERMINE_LOOP_INDEX           = ' '
    tables
      dynpfields                     = dynpfields
EXCEPTIONS
  INVALID_ABAPWORKAREA           = 1
  INVALID_DYNPROFIELD            = 2
  INVALID_DYNPRONAME             = 3
  INVALID_DYNPRONUMMER           = 4
  INVALID_REQUEST                = 5
  NO_FIELDDESCRIPTION            = 6
  INVALID_PARAMETER              = 7
  UNDEFIND_ERROR                 = 8
  DOUBLE_CONVERSION              = 9
  STEPL_NOT_FOUND                = 10
  OTHERS                         = 11
  if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  endif.
  read table dynpfields
        with key fieldname = 'PARAMETER 1' transporting fieldvalue.
  move dynpfields-fieldvalue to var1.
  select aufnr
     from  afpo
     into table i_afpo
     where pwerk eq var1.
  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
  DDIC_STRUCTURE         = ' '
      retfield               = 'AUFNR'
  PVALKEY                = ' '
     dynpprog               = sy-repid
     dynpnr                 = sy-dynnr
     dynprofield            = PARAMETER 2
  STEPL                  = 0
  WINDOW_TITLE           =
  VALUE                  = ' '
     value_org              = 'S'
  MULTIPLE_CHOICE        = ' '
  DISPLAY                = ' '
  CALLBACK_PROGRAM       = ' '
  CALLBACK_FORM          = ' '
  MARK_TAB               =
IMPORTING
  USER_RESET             =
    tables
      value_tab              = i_afpo
  FIELD_TAB              =
  RETURN_TAB             =
  DYNPFLD_MAPPING        =
EXCEPTIONS
  PARAMETER_ERROR        = 1
  NO_VALUES_FOUND        = 2
  OTHERS                 = 3
  if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  endif.

Similar Messages

  • Any way to avoid the hit on the TEMP tablespace?

    I'm running a CTAS query that unions 13 tables with about 7,000,000 rows each, inner joins that union again against a global temporary table with 13 rows, and then doing a GROUP BY against the result, summing about 6 fields. The resulting query runs in about 2 hours with about a 16 Gig hit on the TEMP tablespace.
    In production I will need to join 52 tables with about that many rows against a GTT with 52 rows. I haven't experimented with it yet but I'm guessing the time and memory increase will be linear (i.e. 8 hours, 64 Gig hit).
    I'm being asked if there's any way to avoid the hit on the TEMP tablespace. It was suggested that I look into using a materialized view, but won't that just transfer the hit from the harddrive to the RAM? I don't think this particular database has 64 Gigs of RAM dedicated to it, and I'm sure the row counts will grow in the future anyway.
    Thoughts?
    Thanks
    Joe

    I don't have visibility to the TEMP tablespace on their database so I don't know if the hit there is any less.
    If you have privileges you can use SQL*PLUS autotrace (or possibly Oracle trace, if you're really that interested) to get run-time statistics on a query as you run it. Waiting for the 2-hour results will be a bit tedious though. If you don't have privileges for autotrace it won'r work; the error messages explain what's wrong rather well ;)
    SQL> set autotrace on
    SQL> select * from dual;
    D
    X
    Execution Plan
    Plan hash value: 3543395131
    | Id  | Operation         | Name | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT  |      |     1 |     2 |     2   (0)| 00:00:01 |
    |   1 |  TABLE ACCESS FULL| DUAL |     1 |     2 |     2   (0)| 00:00:01 |
    Statistics
              1  recursive calls
              0  db block gets
              3  consistent gets
              2  physical reads
              0  redo size
            204  bytes sent via SQL*Net to client
            234  bytes received via SQL*Net from client
              2  SQL*Net roundtrips to/from client
              0  sorts (memory)
              0  sorts (disk)
              1  rows processedI still haven't figured out why selecting from dual is doing 3 consistent gets and 2 physical reads ;)

  • Drop-down lists: how to avoid entering long item lists by hand

    Hello all,
    I am very new to LiveCycle Designer. I want to create a form containing several drop-down lists. Each of them have a relatively long (up to 30-40) list of pre-defined items that can be selected at filling time. Those lists, btw, can also change from time to time.
    My question is: how can I avoid entering by hand those long list of items?
    I have seen from the online help that LiveCycle Designer supports a "binding" mechanims that should allow me to load those item lists from an "example XML" file. I have done several tests, but never succeded. I just do not what XML fields should be used. For instance, I have named a drop-down lists as "List1", then tried to feed an XML file like the following:
    This and other similar attemps just cause LiveCycle Designer to cough and show error messages.
    Someone is willing to show me how to do the job?
    TIA to all volunteers.
    Adriano

    Hello,
    +1. Complete Forms Solution described in the Dynamic poplist in a multi-record item. thread.+
    This solution is based on dynamic list population with appropriate predefined record group (the number of such predefined record groups could be rather big --> 1 Continents*Countries.+
    Record Groups can be totally dynamic, so you don't need to have them pre-existing at runtime.
    Francois

  • USB External HD with WRT350N - How to Avoid Entering Password to Access?

    I just purchased my new WRT350N primarily to use the storage link feature. I have connected a 300 GB HP personal media drive (USB) to the router. The router shows up on my home network just fine. I have one wired desktop and one wireless desktop (both XP SP2) and one wireless laptop (Vista Ultimate 64-bit). When I connect to the router in XP ("My Network Places") or in Vista ("Network"), I have to enter a username (default "admin") and password (default "admin") to access the router and get to my external HD. I use the HD to, among other things, store my Thunderbird mail profile (which includes all my e-mail folders) and my KeyPass password database, as well as other applications that I want to use from my various computers. Having to use a password means I can't connect to the drive on start-up, use shortcuts to applications on the HD, etc. It's a pain in the butt, basically. Is there any way to configure the router to allow access to it, and my external HD, without the password (e.g., MAC filters)? Any other workaround's? Many thanks.

    dRdoS7 wrote:
    Hi,
    Have you tried enabling "Reconnect at logon" when mapping the drive?
    dRdoS7
    Yes, I have tried the "Reconnect at Logon" switch selected. What happens then is that I get an error message on startup stating "Unable to Connect Some Network Drives" or something similar. I still have to use the username and password to get through the router to my external drive. I just got off the phone with Linksys tech support, a nice, knowledgeable Indian fellow who affirmed that the router could not be accessed without having to sign in. He said it was "for my security." It strikes me as odd that you can completely disable the security features of your entire wireless network by simply adjusting some settings in the router setup. But you CANNOT disable the security feature of the router access! How weird can you get - Linksys allows you to completely leave your network unprotected, but by god, you're not gonna get into that router!!! He said all of the USB-equipped routers have the same feature - Netgear, Belkin, D-link ... I am SO frustrated! I bought, and returned, the Belkin "wireless" network hub before I got the 350N. It was not possible to run Thunderbird using a profile on the HD (connected to the hub USB) because of severe stability issues. Guess what? Same thing happens when I run it through the Linksys router! Firefox simply shuts down. There was never an issue when I ran Firefox on the external HD when it was connected to my desktop. So, the search goes on - trying to find a way to access my external HD without having to have it connected to a powered PC. What a drag ...

  • Recognize ENTER hit on JTable after cell edit is done

    Hello,
    I'm trying to find a way to detect a key press (specifically, Enter key) after editing a value on a JTable. That is, when I double click on a cell in my table, edit the value and press enter after the editing is done, I want to be able to detect pressing the enter. Adding a normal keyListener to the JTable object won't do it. So I'm trying to find a new way. Please help me out!
    Here's my SSCCE:
    import java.awt.event.KeyAdapter;
    import java.awt.event.KeyEvent;
    import javax.swing.JFrame;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    public class MyTable extends JTable {
         JTable table;
         public MyTable(Object[][] data, Object[] columnNames)
              JFrame frame = new JFrame("My Table");
              table = new JTable(data, columnNames);
              JScrollPane scrollPane = new JScrollPane(table);
              frame.getContentPane().add(scrollPane);
              frame.setSize(100, 100);
              frame.setVisible(true);
              table.addKeyListener(new KeyAdapter()
                   public void keyPressed(KeyEvent e)
                        if(e.getKeyChar()==KeyEvent.VK_ENTER)
                             System.out.println("Key Pressed");
         public static void main(String[] args) {
              // TODO Auto-generated method stub
              Object [][]data = {{"item1"},{"item2"},{"item3"},{"item4"},{"item5"}};
              String []columnNames = {"ITEMS"};
              MyTable table = new MyTable(data, columnNames);
    }Message was edited by:
    programmer_girl

    First of all you don't use a KeyListener to check for KeyEvents on a compponent. You use "Key Bindings" and Actions:
    http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html
    When you are "editing" a cell then focus is on the edtitor used by cell editor. For a cell containing Strings a JTextField is used. Since a JTextField supports an ActionListener all you need to do is get the JTextField and add an ActionListener to the text field. You can use the getDefaultEditor(...) method of JTable and cast the editor to a DefaultCellEditor. From there you can then get the editing component.
    Of course the question is why are you specifically worried about the enter key? What if the user tabs to the next cell or uses the mouse to click on a different cell. There is more than one way to finish editing a cell.

  • Avoid multiple hits on HRP1001

    Hello all,
    I have a requirement wherein I need to check if there is a chief position existing for a particular Org Unit. I can do this by checking in HRP1001 with appropriate obj type etc. But if I fail to find the chief position, I need to check if the Ord Unit has a superior Org Unit and then find the chief position of that Superior Org Unit.
    This means we need to hit HRP1001 till we find a chief position, which is highly performance deteriorating. Is there any other way that would improve the performance in this logic?
    Useful answers will be awarded with points.
    Thanks,
    Anil

    Hi
    <li>Try to use RH_GET_LEADER function module to get manager.
    Thanks
    Venkat.O

  • Precompiling code, avoiding "first-hit" slow response

    Hello,
    I have some java that I have bunled into a JAR file and they are called via JSP's.
    I am using Apache and JServ.
    Problem is when I make a change to the code it takes AGES for the page to be called the first time.
    How can I get around this ?
    Another question (as I am using the Apache server that comes with the 9i database), will these pages be like this every day for the first user to hit them if Apache has been taken down & up or is the cache on disk rather than memory therefore the only long first-hits will be when code has changed.
    Thanks for any help.

    Hi Dominique,
    I also faced the same problem with the Apache server as the first hit response is very slow. I tried with the jspc compiler and i think the latest version of Apache has come with the jspc that makes the java and class files for jsp inside the _pages folder. I tried with the jspc of Jrun but that is not compatible. You can see the documents for the latest jspc release of Apache and I think this will be compatible with Oracle 9i Apache version. I guess you know the jspc compiler precompiles the jsp files so that the jsp engine don't have to compile and load the files into the jvm for the first hit of the jsp pages.
    Otherwise in order to have a better response time for the first hit u need to optimize your jsp files, too much overloading of the jsp files with Java objects slows down the performance of the jsp.
    Thanks
    Arnab
    [email protected]

  • Module Pool Screen:Want to do Validation on listbox selection w/o Hitting Enter

    Dear Team,
    I want to write some code(Check & validation) at the time of listbox selection(any value) without Hitting enter.As when i am trying to put '/H' It's not taking me inside the program (but after listbox selection & enter hit i could go into program).
    Plz suggest me how can i go inside the program once i select value from list box without hitting enter.
    Thanks in advance.
    Santosh

    Dear Arun,
    Perfact!!!
    It's working
    Thanks a lot...
    Santosh

  • Having to hit enter after input field

    In one of our application once the users has input data in a
    field, they do not hit Enter but rather they click on a button. In
    Captivate 3, is there a way to validate that input entry without
    having to ask the user to hit Enter (hitting enter doesn't happen
    in the apps).
    thanks in advance.

    Welcome to our community, Jack
    Indeed you may configure Captivate to do exactly what you
    need. If you double-click your Text Entry Box object and look at
    the Options tab, you will find a check box allowing you to also
    display a Button that is related to the Text Entry Box. The Button
    is then used for validation. Note that the Button may also be
    customized and made transparent so that you may overlay an image of
    the application Button to achieve the same look and feel.
    Cheers... Rick

  • How we cn avoid the sequence in remote tables through global temporary tabl

    Hi,
    We have table xx_interface_qualifiers in the remote db and we are inserting the data like this and its on a loop
    INSERT INTO xx_interface_qua
    (interface_id,
    list_line_interface_id, excluder_flag,
    qualifier_context, qualifier_attribute,
    qualifier_attr_value, qualifier_precedence,
    comparison_operator_code, start_date_active,
    end_date_active, list_header_name, list_line_no,
    creation_date, created_by, last_update_date,
    last_updated_by, interface_attribute1
    VALUES (xx_interface_qua_s.NEXTVAL,
    ttt, 'Y',
    xxx, xxx2,
    xxx3, xxx4,
    '=', SYSDATE,
    NULL, xxx4, -1,
    SYSDATE, '-1', SYSDATE,
    '-1', 44 );
    We are trying to avoid the hitting of the database every time for a sequence and try to implement the global temporary tables,i mean to say 1st we need to insert the data to TEMP table and then from temp table we cn inseert all the data to xx_interface_qual in a single shot to improve the performance.
    But how we cn avoid the sequence in this case as we do not know the sequence in remote side.
    Please suggest any other way to improve the performance.
    Regards
    Das

    797846 wrote:
    We have table xx_interface_qualifiers in the remote db and we are inserting the data like this and its on a loop
    We are trying to avoid the hitting of the database every time for a sequence and try to implement the global temporary tables,i mean to say 1st we need to insert the data to TEMP table and then from temp table we cn inseert all the data to xx_interface_qual in a single shot to improve the performance.
    But how we cn avoid the sequence in this case as we do not know the sequence in remote side.Does not make sense. I/O is the slowest database operation.
    You have an unknown performance problem (that you claim is due to a sequence, but failed to provide any evidence for). Now you want to create more I/O, by writing the data twice. Once into a temp table and then again into the destination table. And do that in order to increase performance?
    I do not see how this can solve the underlying, and unknown, performance issue that you claim exists.
    Any problem solution needs to start with correctly and comprehensively identifying the problem.
    You cannot solve a problem without first knowing WHAT the problem is.

  • Handling Enter key in JTable

    Hi...
    What I m trying is to add a blank row to the table,if and only if
    the user presses ENTER in the last row(with some data in cell,not blank)
    Unfortunately,I m not able to do so . Also I want that the focus
    should go to the cell in the next row & previous column.Please help
    me with the code...
    My code is as follows....
    tableView.addKeyListener(ka = new KeyAdapter(){
    public void keyPressed(KeyEvent e)
    if(e.getKeyCode()==KeyEvent.VK_ENTER)
    int selRow = tableView.getSelectedRow();
    int rowCount = tableView.getRowCount();
    int selCol = tableView.getSelectedColumn();
    String val =(String)tableView.getValueAt(selRow,selCol);
    System.out.println(rowCount-1 + " "+ selRow + " " + tableView.getSelectedColumn());
    if((!val.equals("")) && selRow==rowCount-1)
    System.out.println(rowCount-1 + " "+ tableView.getSelectedRow()+ " " + tableView.getSelectedColumn());
    blank1 = new String[columns];
    for(int p=0;p<columns;p++)
    blank1[p]="";
    datarows.addElement(blank1);
    //dataModel.fireTableDataChanged();
    dataModel.fireTableChanged(null);
    I do get the desired result ,but the second time I press Enter
    in the same cell...
    Please help me to get out of this annoying problem.....
    Thanx in advance...
    Piyush

    Hi...
    First of all thanks both of u....
    But my problem is not completely solved...
    I have four columns in my table.What I want is when the user presses
    ENTER in the last row and 2nd or 4th column new row should be appended
    and the input focus should be at (selectedRow+1,selectedCol-1),that is,
    diagonally...
    But when I press ENTER fot the first time,nothing happens...
    Again when I come back to the same cell(second time) and press ENTER,
    I get the desired results...
    I think the cellEditor's stopCellEditing() method should be called,
    but it throws exception....
    Here's my _enterKeyHit() method....
    private void _enterKeyHit()
    // Enter hit on last row... do stuff
    int selRow = tableView.getSelectedRow();
    int rowCount = tableView.getRowCount();
    int selCol = tableView.getSelectedColumn();
    String val =(String)tableView.getValueAt(selRow,selCol);
    //-- Throws Exception....
    boolean res=tableView.getCellEditor().stopCellEditing();
    if((!val.equals("")) && selRow==rowCount-1 && (selCol==1 || selCol==3))
    System.out.println(rowCount-1 + " "+ tableView.getSelectedRow()+ " " + tableView.getSelectedColumn());
    blank1 = new String[columns];
    for(int p=0;p<columns;p++)
    blank1[p]="";
    datarows.addElement(blank1);
    dataModel.fireTableChanged(null);
    tableView.editCellAt(selRow+1,selCol-1);
    if(!val.equals("") && selRow!=rowCount-1)
    if(selCol==1 || selCol==3)
    tableView.editCellAt(selRow+1,selCol-1);
    else
    tableView.editCellAt(selRow,selCol+1);
    if((!val.equals("")) && selRow==rowCount-1 && (selCol==0 || selCol==2))
    tableView.editCellAt(selRow,selCol+1);
    }

  • Avoid suspension when closing screen

    How can i avoid entering in suspension mode when i close the screen?
    Thanks a lot!

    By changing the hibernatemode for the computer.
    0 : Default sleep behavior on most Apple computers. RAM is still powered on while sleeping. Wake up is fast. Safe sleep is disabled.
    1 : Hibernation behavior. System is totally shut down while sleeping. RAM contents are dumped to disk. Wake up is slow.
    3 : Default behavior on laptops computers. RAM is still powered on while sleeping. Wake up is fast. Safe sleep is enabled, so RAM contents are also dumped to disk before going to sleep.
    Only a single mode can be activated at a time. In order to check what hibernate mode is currently active, the following command can be used in the Terminal application:
    pmset -g | grep hibernatemode
    In addition, users with administrator privileges can choose the hibernate mode. In order to do so, the following command can be used in the Terminal:
    sudo pmset -a hibernatemode X
    Press RETURN. Replace X with the value of the hibernate mode to set. You will be asked to enter your admin password.  It will not be echoed.

  • IPhone 4S Battery Life: Best solutions and procedures for 1st time user: 1-Do you have a battery life issue (learn first what the usage time spec is about) 2-What can you try to remedy the situation without reading 500 pages of posts

    What follows is a grouping of some of the most fruitful procedures - from what I've seen in the biggest battery life issue thread - and some background information and discussion for solving or improving the battery life with the iPhone 4S and may be applicable also to devices on which iOS 5.0/5.0.1 has been applied. Credit goes to the respective users who contributed this information to the forum and they should be commended for doing so. This is not a final listing. The goal here is to provide a first stop sort of knowledge base document for newcomers instead of having them perusing the never ending threads where the wheel is reinvented on every page...
    Please don't post your questions, usage screenshots, or claims that it worked or not for you or anything here except PROCEDURES/DEBUG STEPS/SOLUTIONS or improvements to the procedures already listed here. Try to use point form and to be as concise and clear as possible. Hope all this helps.
    Thank you and good luck!
    General info and specs
    First, take a look Apple's battery tips, info and specs(obligatory reading for all Iphone 4S users - read it once and for all):
    http://www.apple.com/batteries/iphone.html
    http://www.apple.com/batteries/
    ... you didn't read it? loll Always remember this i.e. the definition of "usage":
    Usage: Amount of time iPhone has been awake and in use since the last full charge.  The phone is awake when you’re on a call, using email, listening to music, browsing the web, or sending and receiving text messages, or during certain background tasks such as auto-checking email.
    I'm still not convinced you read the links so here's what Apple has to say in terms of fine tuning your battery life:
    Optimize your settings
    Depending on how they are configured, a few features may decrease your iPhone battery life.  For example, the frequency with which you retrieve email and the number of email accounts you auto-check can both affect battery life. The tips below apply to an iPhone running iOS 5.0 or later and may help extend your battery life.
    Minimize use of location services: Applications that actively use location services such as Maps may reduce battery life. To disable location services, go to Settings > General > Location Services or use location services only when needed.
    Turn off push notifications: Some applications from the App Store use the Apple Push Notification service to alert you of new data. Applications that extensively rely on push notifications (such as instant messaging applications) may impact battery life. To disable push notifications, go to Settings > Notifications and set Notifications to Off. Note that this does not prevent new data from being received when the application is opened. Also, the Notifications setting will not be visible if you do not have any applications installed that support push notifications.
    Fetch new data less frequently: Applications such as Mail can be set to fetch data wirelessly at specific intervals.  The more frequently email or other data is fetched, the quicker your battery may drain. To fetch new data manually, from the Home screen choose Settings > Mail, Contacts, Calendars > Fetch New Data and tap Manually. To increase the fetch interval, go to Settings > Mail, Contacts, Calendars > Fetch New Data and tap Hourly. Note that this is a global setting and applies to all applications that do not support push services.
    Turn off push mail: If you have a push mail account such as Yahoo! or Microsoft Exchange, turn off push when you don’t need it. Go to Settings > Mail, Contacts, Calendars > Fetch New Data and set Push to Off. Messages sent to your push email accounts will now be received on your phone based on the global Fetch setting rather than as they arrive.
    Auto-check fewer email accounts: You can save power by checking fewer email accounts. This can be accomplished by turning off an email account or by deleting it. To turn off an account, go to Settings > Mail, Contacts, Calendars, choose an email account, and set Account to Off. To remove an account, go to Settings > Mail, Contacts, Calendars, choose an email account, and tap Delete Account.
    Turn off Wi-Fi: If you rarely use Wi-Fi, you can turn it off to save power. Go to Settings > Wi-Fi and set Wi-Fi to Off. Note that if you frequently use your iPhone to browse the web, battery life may be improved by using Wi-Fi instead of cellular data networks.
    Turn off Bluetooth: If you rarely use a Bluetooth headset or car kit, you can turn off Bluetooth to save power.  Go to Settings > General > Bluetooth and set Bluetooth to Off.
    Use Airplane Mode in low- or no-coverage areas: Because your iPhone always tries to maintain a connection with the cellular network, it may use more power in low- or no-coverage areas.  Turning on Airplane Mode can increase battery life in these situations; however, you will be unable to make or receive calls.  To turn on Airplane Mode, go to Settings and set Airplane Mode to On.
    Adjust brightness: Dimming the screen is another way to extend battery life.  Go to Settings > Brightness and drag the slider to the left to lower the default screen brightness. In addition, turning on Auto-Brightness allows the screen to adjust its brightness based on current lighting conditions.  Go to Settings > Brightness and set Auto-Brightness to On.
    Turn off EQ: Applying an equalizer setting to song playback on your iPhone can decrease battery life.  To turn EQ off, go to Settings > iPod > EQ and tap Off. Note that if you’ve added EQ to songs directly in iTunes, you’ll need to set EQ on iPhone to Flat in order to have the same effect as Off because iPhone keeps your iTunes settings intact.  Go to Settings > iPod > EQ and tap Flat.
    Usage specs for the 4S - http://www.apple.com/iphone/specs.html:
    Talk time: Up to 8 hours (12.5% per hour drain) on 3G, up to 14 hours (7.1% per hour drain) on 2G (GSM)
    Standby time: Up to 200 hours (0.5% per hour drain)
    Internet use: Up to 6 hours on 3G (16.6% per hour drain), up to 9 hours (11.1% per hour drain) on Wi-Fi
    Video playback: Up to 10 hours (10% per hour drain)
    Audio playback: Up to 40 hours (2.5% per hour drain)
    So a scenario of normal usage could be for example: 4 heavy hours of 3G internet browsing (66.4%), with one hour of call on 3G (12.5%) and 22 hours of standby (11%) = 100%
    A battery life issue is a problem where the drain is really out of spec either during usage or standby or both. For example, multi-% per minute drain during usage or a 10% drain per hour during standby is problematic. Browsing the internet on 3G during one hour and losing 16-17% is not.
    Apple's test methodology for claiming the specs:
    http://www.apple.com/iphone/battery.html
    Procedures
    davidch tips (reset+full discharge recharge):
    Go through these steps to address the battery after updating to iOS 5.0.1:
    1. Reset all settings (settings app-> general-> reset)
    2. Go through initial setup steps (lang, wifi, siri, enable location, etc) and choose setup as new phone (don't worry your apps, data, contacts, mail will still be there). Do NOT restore from iCloud or iTunes (It can copy back corrupt settings)
    3. Turn off system location services timezone and iAd
    4. Fully discharge battery  (tilll it shuts off with the spinning wheel)
    5. Fully recharge battery (overnight if possible)
    In my experience this improves the Standby battery drain issue significantly in most cases.  It reduces drain from 2-4% or more per hr to 0.5% or less. It has worked for many, many users now. If it does not work after a few try's you may have a real battery or hardware issue and should contact Apple.  Good Luck!
    ram130's variant of davidch i.e. additional steps:
    Now using davidch original steps and attaching the tweaks I made to get me more usage. As shown on page 29.
    Go through these steps to address the battery after updating to iOS 5.0.1:
    1. Reset all settings (settings app-> general-> reset)
    2. Go through initial setup steps (lang, wifi, siri, enable location, etc) and choose setup as new phone (don't worry your apps, data, contacts, mail will still be there). Do NOT restore from iCloud or iTunes (It can copy back corrupt settings)
    3. Turn off system location services timezone and iAd
    4. Fully discharge battery  (till it shuts off with the spinning wheel)
    5. Fully recharge battery (overnight if possible)
    6. Disable Siri 'Raise To Speak' and REBOOT *( if possible use another camera to verify the                 infrared is off after the reboot).
    7. Set emails, icloud and calendars to fetch. ** test. Mines on hourly.
    8. If your in a no signal and your phone is saying "Searching..." even after 10mins, reboot while in that area and after 1-2min it should say "No Service". This mainly applies to Verizon customers and improve battery life in these areas.
    9. *optional* Goto Settings > General > Network and you will see "Hotspot.." loading something, wait a few seconds and it should say "setup personal hotspot" then exit out.
    * I notice a great improvement after disabling this and rebooting. This increased my "screen on" usage or at least helped it. Make the change.
    ** I have not tested push yet to narrow down the drain but I had this change on my phone. I believe exchange push is responsible for some stand by drain. As for icloud, haven't notice much of a difference. Just try it for a day. My email still came in fast most times. Again still testing, will report back on these..
    buxbuster tips(wifi sync, iCloud):
    These are my own tested workarounds that worked for my iPhone 4S and seemed to have worked for others as well :
    Workaround number 1. Deselect wifi-sync in iTunes and press sync.
    If that doesn't work try :
    Workaround number 2 : Remove iCloud, reset network settings. ( I guess this won't work for you since you don't have it enabled ).
    If both workarounds fail, you can always try to completely wipe your phone. That also solved some of the cases out there.
    rolandomerida tips - i.e. buxbuster and additional steps:
    Finally, I solved the syncing error loop. My contacts are syncing flawessly again between my devices and iCloud, and yes, the battery stopped draining, which is the main topic here.
    I followed instructions from buxbuster (check his workaround a few pages up!) and an additional BIG step to restore contacts and syncing, as seen in a MacRumors forum.
    This is what I did:
    1. Make a backup of your Address Book, using the vCard option (or both, it doesn't hurt). Save it for later.
    2. In your iPhone, delete iCloud account. When it asks, accept both: delete AND delete from my iPhone.
    3. Reset network settings. The iPhone will restart, then will ask you to unlock the SIM card.
    4.Turn Wi-Fi on.
    5. Add the iCloud account again.
    That's for Buxbuster's workaround. For some, it might work just like that. My iPhone repopulated from iCloud after step 5, but I still had that "server error" on iCloud. I had to do some extra steps, since my Mac was not syncing to iCloud and couldn't edit anything on my Mac or iCloud. Syncing back had to be fixed, too. If not, the syncing loop would continue from my iPhone, and the battery would drain awfully again.
    1. In System Preferences -> iCloud, I turned Contacts off. I chose "keep on My Mac" those contacts, but I got an empty Address Book after a while. And a few minutes later, iCloud contacts were empty and my iPhone also. It is scary at first! Now, before importing that vCard backup...
    2. Turn Wi-Fi off. This is important, since your contact-empty iCloud will attempt to wipe your Address Book from your Mac in seconds after importing.
    3. Import your vCard backup to Address Book. Just drag it to your blank Address Book window; it asks if you want to import "x" number of cards. Of course, say yes.
    4. Turn Wi-Fi on, and then iCloud contacts on again (System Preferences -> iCloud). It will offer to merge your newly populated Address Book with iCloud (which is empty at this point). It should upload every single contact to iCloud, and then to your iDevices. If not, a fifth step would be to import the vCard file to iCloud, but it shouldn't be necessary.
    So, with iCloud syncing working correctly, there is no battery draining! Again, that was my particular issue.
    I can't tell if this is the single answer to the widely spread battery draining problem, but it sure can be fixed with these workarounds, and yes, Apple should address the problem with a future update, for we affected customers don't need workarounds in the first place
    This is the MacRumors discussion:
    http://forums.macrumors.com/showthread.php?t=1256807
    And dont' forget to check buxbuster's fix, video, and THANK him!
    Miless tips (full 800mb release of 5.0.1 and sanitizing a restore):
    As for 4S battery life. Try doing this,
    1. Settings>Location Service ... disable all location services you do not need. In particularly Facebook because it drains the battery a lot.
    Scroll down to the bottom at Settings>Location services>System Services ... Disable Setting Time zone, location based iAds, Diagnostic & Usage.
    2. Settings>Notification>Calendar ... turn off the Notification Centre.
    3. Settings>General>Reset ... do Reset All Settings. Doing this will not wipe out your iPhone. It will just Reset the network settings, location warning, keyboard dictionary, etc... but it will clear up some corrupted data there. Generally this will help.
    Try these 3 steps first... if it still drains a lot, try the following,
    4. Drain your battery down to 1%. Then charge it up using USB from PC ... not the charger. The charger output 1.0 A ( x 5V from USB ... you get 5W power). From PC, output is only 0.5A x 5V = 2.5W power. Charging is slower but trickle charge 4S helps the battery retain its charge better. I think it takes about 3-3.5 hours to charge full from USB/PC compared to slightly below 2 hours using iPhone charger.
    If after doing the above still could not solve your battery issues (mine with iOS 5.0 was ok up to step 4, but not iOS 5.0.1).... plug you iPhone to a charger (any charger), from iPhone, access your iCloud ... set it up if you havent. Back up your iPhone data to iCloud. if you do not have enough storage (only 5GB is free), go to details and select the apps you need its data backup, choose only those you really need and leave those unnecessary ones out. Back up your camera roll to your PC/Mac manually as it could be too big to backup to iCloud.... once you have it setup, make sure you are on Wifi ...  tap backup to iCloud from your iPhone. It will take a while if the file is huge.
    Once backup to iCloud is completed, plug your iPhone to PC/Mac and launch iTunes 10.5.1 (make sure you have 10.5.1)
    Click Restore. It will automatically initiate a download of iOS 5.0.1 ipsw for iPhone 4S. Wait for the whole process to finish, ie. download, restore software/firmware.
    Once its done, do not set up your iPhone from iTunes. Set it up on your iPhone. Go through the selection. When prompted, select restore from iCloud (from your iphone backup earlier). Keep your iphone plugged into iTunes while restoring backup from iCloud. Because while restoring from iClouds, some data will be synced from iTunes if you plug in, e.g. music, video, etc... unless you bought these content from iTunes store. Apps will be downloaded from App Store from the cloud.
    Once it's all done restored. Turn off your iPhone,.. and turn it on again.
    Now, hopefully your battery wont be draining so fast anymore. Usually it wont after this. But you need to charge your battery at least 4-5 cycles to stabilize the charge on the battery. I dont know why... but battery life seems to get better and better for me after a few charge cycles after all the above work.
    Good luck. Let us know if it works for you.
    W. Raider tips (Sirii):
    Bottom line for me of things that helped battery life are:
    1. Turing off Siri and Rebooting the phone by holding the Home button and Top button down, ignoring the slider, until the phone shut down. (turn off Siri, reboot, and check top front of iPhone 4S against a lesser camera like the front-facing camera on an iPad2 - making sure the IR sensor is off)
    2. Fully draining the battery, meaning using the phone until it shuts itself off from a drained battery and then recharging it to 100% about 4, maybe 5 times. I charged it both with a Mac and a wall charger.
    Hope this is helpful!
    Comments
    jmm514 remarks (Twitter):
    I may have found something. I had Twitter disabled in my notifications, but got a tweet today that popped up on my home screen. Didn't know I had this enabled. At the bottom of the Twitter notification settings is the home scrren toggle. Since disabling this, battery life seems better. Considering there is no setting for frequency of checking for tweets, it appears the phone is continually connecting to wifi to check for new tweets.
    tmksnyder comments (notifications, corrupt data in iCloud):
    For me, I found my iphone on wifi mysteriously connecting to my mac.  I eventually narrowed it down to the Apple Move Trailers app which keeps a file in iCloud.  The phone was trying to sync the file with the mac in the background even when the Movie Trailers app was closed (hitting the red x).  Based on my macosx logs the iCloud process that was trying to sync was working directly between the phone and the mac without using itunes by connecting to an https address hosted on the phone.  It was connecting every 3 minutes and failing (while phone was awake or awake during during a notification).  I also found that iCloud control panel on OSX would error if I tried to delete the file.  I fixed it by removing the App and doing a hard reset which stopped the sync.  I probably could have turned off iCloud document sync in the phone but didn't think of that.  My battery life has greatly improved while at home on wifi.    I am now at 28 hrs standby, 2 hrs 20 minutes of usage, and 68% battery.  It was ok before where I could get 20-30 hrs standby and 6 -8 hrs usage.  My usage today was phone calls, 3g surfing, and music via bluetooth in the car.
    I also found even with Itunes iMatch, if I mass updated tages, art work etc, it would hit the phone on wifi even in standby.  I was amazed.   Granted if I am not doing updates, Match won't hot the phone so this was a once in awhile event.  I could drop my percentage by 5-10% in a matter of minutes when doing updates.   I think a lot of our problems are background processes, associated with iCloud, notification, and apps.  More features means more battery.   I think the key thing is to keep track of what has recently been added or changed if battery life gets worse all of a sudden.   It may be an app that was recently installed and if possible you may want to completely remove it and not just quit it.
    With twitter, i think it uses push notifications so it doesn't need to be running and actively poll on the phone. For instance , if i quit the mail app, i still will get mail notifications and can swipe the message and load mail. Apple Push Notifications servics maintain the connection to the phone and there are likely pings or connection checks  that occur for the service on an os level not an app level.  This minimizes the load so there arent a bunch of apps all runing and constantly checking.  The notification service , if it is contacted from twitter or another service with data, will check the settings you have registered to the with the apple push service and send the notification to your phone.  No matter what, there is a drain with notifications. M hunch is once one application is configured to receive notifications, connection checking occurs betwen the push service and the phone so it knows where it is on the network. If it is implemented correctly, these checks arent frequent if you are still and more frequent as you move. The other drain is for when the noification hits and is processsed.  If i get 9 emails over night, my screen just popped up for 20 seconds or so to process each message using battery.  I would even think that just go from low power to turning n the screen uses more juice than if the device was already on and i get the message.  On nights I get no notifications, I see a 3  or 4 percent drop.  On nights with a number of notifications, i have seen up to a 10 percent drop.  Besides notifications, wifi sync and icloud will poll on the local network and use up battery if the host computer is on and running itunes or trying to sync a data file that is corrupt (which i had with the apple movie trailers app causing my phone to drain).  For me turning off wifi sync and remving a corrupt file in icloud solved my battery issues and I get over 24 hrs of standby with 6 to 9 hrs of use and this is with all the normal location services and push serivices turned on.
    See http://developer.apple.com/library/mac/ipad/#documentation/NetworkingInternet/Co nceptual/RemoteNotificationsPG/ApplePushService/ApplePushService.html for more info.  I think it has a good overview of how the notifications work.

    Well seems like that rumor of iOS 5.0.1 is finally gone the way of the dogs since developers got a beta of 5.1. So as stated earlier in the master discussion-> I suspect if you are filling up this thread with false post or creating a master set of links to various post that are unreliable you are wasting your time. Press is not going to touch the story due to poor or inaccurate sources which may be links from the master thread. This can include inaccurate information, combination of conflicting post or postings from users which may not own the device. Reputable press organizations have policies that require discloser and strict rules about what is a reliable source for a story. It is clear that many of the post in the master thread, which are links presented here are questionable. 
    Sorry to say that postings taken without any analysis of their totality have been propagated via various sites, for example sites such as http://www.2012federalbudget(dot)com. (Do not visit but I suspect that this is not the 2012 federal-budget site you would expect based on analysis of the records. There are plenty of sites like http://www.2012federalbudget(dot)com propagating questionable post in these threads.) One site for example in the discussion thread used a self signed certificate, the site had a log in to allow users to enter their OpenID. Seems many of these sites are pop and drop drupel configurations.
    So remember this is how the really bad rumor of iOS 5.0.2 got started, the 5.1 memory leak issue, iCloud Issues, call quality, address book, etc.
    Some of the postings have been very comical, I think the latest now is a dropbox issue. Seems that the length of the previous thread has resulted in various app engines of some proxy servers/tools reaching their limits.
    So I would make sure to know the source of any information you link to. Make sure you avoid entering any information to outside links such as OpenID or Apple ID, these are big prize items for anyone with malicious intent.  If you have issues and are a valid user contact APPLE CARE. (Note link is using McAfee Secure Short URL Service, and is https.)
    http://mcaf.ee/ricdt
    The original solution still represents a high level of success for users having any battery issues.
    Install 5.0.1 on your iPhone 4s. Some users posting they are still using older versions, bad fake serial numbers, etc.
    Make sure your device can run iOS 5.0.1 and is not altered.
    Make sure you use a new Sim, not some cut down version which many users admit to doing. (Again, worth confirming what people are posting.)
    Reset the device doing a hard reset and software reset.
    Let battery drain and then charge for the full cycle, which is 24 hours.
    I think you will find you will get the battery usage that APPLE has stated for the device.
    Best of luck, stay safe and thanks

  • Use of requirements in access sequence

    please explain with example what is the use of requirement while creating an access sequence.

    Hi,
    As you a requirement is used to do a pre-check before executing a step, so in Pricing Procedure it is used to check wether to execute a step (where Condition Type is attched) and in same way it is used in Access Sequence to check before running a step in Acc Seq.
    There could be mutiple ways you can use Requirments in Acc Sequence:
    - If you know that there rare chances that you will find a condition record in a particular table, you can assign routine on that step stating conditoin. For example, if I have common access sequence as YDIS for providing discount and as per Biz process my compancy never provide discount on a particular product line (let's say Prod Hier XYZ) you can state a check in the acc seq routine to check if the order is placed for that product line. If material does not belong to that product line (PH <> XYZ here) only then system will try to see record in the respectibe condition table. this will avoid unnecessary hits on the table, and will improve the performance. In the routine you need to use form KOBED_nnn in this type of application where nnn stands for routine number.
    - There could chances the discount mentioned abouve is not applicable at SOrg level instead of Product Line level. In this case the whole document is not applicable for discount from that table (for example 1st step in Acc Seq is SOrg / DCh / MM and second step DCh / MM). meaning when I place order for Sorg 1000 there will never be any discount at SOrg level but there might be doscumnt at Worldwide level for MM, so you should not worry about 1st step whenever order is placed for 1000. This can be acived again using routine at Acc Seq but you can put check in KOBEV_nnn along w/ Access Seq optimization. W/ this system will carry a pre-step when you enter 1st line item, and if it is for 1000 then it will remove step 1 from YDIS acc seq for whole doc (will not even run the acc routine from 2nd item). Again improvemnt in the performance.
    - In some business process you may have to pass on Constant value (Source filed) in the acc seq field, but you may want to do it celectively. So you can put you check in routine and then fix the source valuse in Acc field. So if the cehck is successful then system will use the Constant to look for record, else will skip that step and move to next one.
    Let me know it this helps...
    Dinesh

  • Installing soa 11.1.1.3 - Help pls

    All,
    OS: win xp SP3
    As per the oracle guidlines I completed the soa 11.1.1.3 installation. Here are the steps I followed
    1. Installed Oracle DB 11.0.1.7
    2. Ran rcu ofm_rcu_win32_11.1.1.3.3_disk1_1of1.zip
    3. installed wlogic 10.3.3
    4. installed soa 11.1.1.2
    5. installed the patchset soa 11.1.1.3 on top of soa 11.1.1.2
    6. configured domain
    I haven't installed Jdev 11.1.1.3 yet, but prior to that I thought of starting the weblogic admin and managed server to test. But when I ran the startweblogic.cmd, the console came up and went off immediately. I checked the folder under user_projects/domains/<domain_1>/servers, I can see only AdminServer but not SoaServer!. That means all the required folders didnt get created. I tried re-installing couple of times, all the time I hit on the same issue.
    Can anybody tell me where I might have gone wrong? Please shed some inputs.
    Please let me know log location. I remember under ../<domain_1>/servers the log dir usually gets created. Since I dont see any log dir, where do i check?
    Thanks
    Sen

    Hi Sen
    when you start weblogic, most probably you are getting error with default memory settings something like not able to allocate memory and it is getting closed immediately. This is my gut feeling. Please do one thing. Open DOS command prompt. In this navigate to your soa domain root folder. And type startWeblogic and hit enter. If there is a problem it immediately comes out and you can see any error like above shown in that window.
    Now, coming to the fix, its very simple. Go to your SOA Domain root folder/bin and open setSOADomainEnv.cmd in any text file editor. All we do is change the default memory args from 1024 to something like 512 or 768mb. This is around after line number 28. I gave snippet from my file below for your reference. Just comment the existing line and copy it and make changes. So you will know what you changed in future.
    REM JEGGA REDUCED THE MEMORY SIZE
    REM set DEFAULT_MEM_ARGS=-Xms512m -Xmx1024m
    set DEFAULT_MEM_ARGS=-Xms512m -Xmx768m
    Once the AdminServer is fully started, then open another command prompt window. go to your domain/bin folder and type this command to start the managed server i.e soa_server1.
    startmanagedweblogic soa_server1 http://localhost:yourport. It will ask for username and password. Type both of them. This will start soa_server1. Later on you can avoid entering username/password by doing this. Go to your soa_server1 folder something like shown below and create a folder by name security. In this folder create a file named boot.properties. In this file enter username and password in plain text. Start the managed server. It will encrypt these details and will not prompt for credentails when you start soa server1.
    user_projects\domains\soaClusterDomain1\servers\soa_server1\security
    contents of boot.properties file (see similar file under adminserver/security folder to get an idea)
    username=doamin username in plain text
    password=domain password in plain text
    NOTE that by default when you create a Domain, you will NOT see many folders like managed server soa_server1 folder etc. Only when you start the servers, these folders are created.
    Please let me know if you run into any other issues.
    Thanks
    Ravi Jegga

Maybe you are looking for

  • Issues with a website created with Iweb

    I'm hoping someone out there can help... The site appears okay when viewed on a computer screen but... The main problem that I'm having at the moment is with printing site content. When opened in Firefox, only the first page of content will show up i

  • SQL Parameters: Add vs. AddWithValue

    I'm in the process of designing an application (Visual C# 2012) that will be working with a SQL database, and have been using parameters in my queries. My question is if there is any advantages/disadvantages to using AddWithValue over Adding the para

  • Jelly Bean When Will It Be Available OTA

    Anyone know when this will be available OTA???? LOVE MY SG3

  • Uninstall Photoshop CS5 with CS5.1 Installed?

    How do I uninstall Mac Photoshop CS5 when I have installed CS5.1 also? The Adobe Application Manager just shows one version to uninstall which I would guess is the CS5.1 version.

  • Cannot see how to uninstall VISA for LV 7.1

    I need to reinstall LV 7.1 on Linux. I do an uninstall and re-install and it says that VISA is already installed. How do I uninstall VISA 3.1-1?