Replacing all entries on computer.

I have BB Desktop Manager 7.0.0.59
On one of my computers I sync my BB Bold 9900 to "Replace all entires on computer with the entries on your device". Everytime I sync I have to click the organizer tab and configure the contacts, calendar, tasks and memos to "Replace all entires on computer with the entries on your device".
Any tips on how to leave this option ON without having to configure every single time I sync??

Hi guys,
I would also like to know if and how this can be set, please, but in the opposite direction (replace all entries on the handset).
Running the same version of BB Desktop Software.
Cheers

Similar Messages

  • Replacing a inner join with for all entries

    Hi Team,
       In a already developed program I am replacing a inner join with select query follow up with for-all-entris and passing the data to final internal table but in both the case the result should be same then only my replacement will be correct. But my no records in both cases differs. This happening because when i am selecting data from first data base table is 32 lines. then I am doing fo-all-entries moving all the duplicate entries then the no records are four. but in final internal table i am looping the first internal table. So in final internal table the no of records are 32. But in inner join query the records are 16.So please let me know how resolve this issue?
    Thanks and REgards
    Deepa

    Hi Thomas,
      Thanks for ur suggestion.
    The solved that in below.
    In select query I did not change anything The way I had written the code was correct.
    I think many of us know how to write that how to make the performance better in that way.
    I made the change when I transfered the to final internal table.
    The original Inner join code:
    select a~field1 a~field2 a~field3 b~field2 b~field3 b~field4
               from dbtab1 as a  inner join dbtab2 as b
              on a~field1 = b~field1 into it_final where
              a~field1 in s_field1. [Field1  in both the table are key field]
    Before code:
    Sort itab1 by key-fields.
    sort itab2 by keyfields.
    loop at itab1 into wa1.
    move: wa1-field1 to wa_final-field1,
               wa1-field2 to wa_final-field2,
               wa1-field3 to wa_final-field3.
    read table itab2 into wa2 witk key field1 = wa1-field1 binary search.
      if sy-subrc = 0.
      move : wa2-field2 to wa_final-field4,
                 wa2-field3 to wa_final-field5,
                 wa2-field4 to wa_final-field6.
    append wa_final to it_final.
    endif.
    Clear : wa1, wa2, wa_final.
    endloop.
    In this case if the one key fieild value is not present there in second internal table but its there in first internal table still it will read that row with 2nd internal values having zeroes. Normally what does not happen in inner join case if the key field value will same in both the case ,then that will fetch only those rows.
    Changed Code
    loop at itab1 into wa1.
    read table itab2 into wa2 witk key field1 = wa1-field1 binary search.
      if sy-subrc = 0.
    move: wa1-field1 to wa_final-field1,
               wa1-field2 to wa_final-field2,
               wa1-field3 to wa_final-field3.
      move : wa2-field2 to wa_final-field4,
                 wa2-field3 to wa_final-field5,
                 wa2-field4 to wa_final-field6.
    append wa_final to it_final.
    endif.
    Clear : wa1, wa2, wa_final.
    endloop.
    In this case the values will read to final internal table if both key field matches.
    With Regards
    Deepa

  • Replacing innerjoins with for all entries

    can any one help me in replacing the below
    innerjoins with for all entries
      SELECT avbeln aposnr amatnr apstyv a~werks
        FROM vbap AS a INNER JOIN marc AS b
                               ON amatnr = bmatnr AND
                                  awerks = bwerks
        INTO TABLE vbap_itab
       WHERE a~vbeln = i_vbeln-vbeln
         AND a~uepos = 0
         AND b~umrsl = 'VBOM'.
    and please tell me which table we need to select first in vbap and marc and why
    Edited by: ram reddy on Apr 30, 2008 9:27 AM

    hi check this one
    data:
           begin of  vbap_itab,
           vbeln  type vbap_-vbeln,
           posnr type vbap_posnr,
           matnr type vbap_matnr,
           pstyv  type vbap_pstvy,
           werks type vbap_werks,        
           end of itab,
           begin of marc_itab,
              matnr type marc-matnr,
              werks type marc-werks,
          end of marc_itab.
    select matnr
              werks
       from marc
       into table marc-itab
    where umrsl = 'VBOM'.
    if marc_itab is initial.
    exit.
    else.
    select vbeln
              posnr
             matnr
             pstvy
             werks
      from vbap
      into  table vbap_itab
    for all entries in marc_itab
    where matnr = marc_itab-matnr
          and    werks = marc_itab-werks
          and  vbeln = i_vbeln-vbeln
          and uepos = 0.
    endif.
    Edited by: ravi kumar on Apr 30, 2008 9:51 AM

  • Replacing innerjoin with for all entries

    hi,
      i have a requirement that i have to improve the performance of report . this the code below.
    SELECT  A~VBELN A~BSTNK A~AUDAT A~KUNNR B~MATNR  B~WERKS B~KWMENG
           FROM VBAK AS A INNER JOIN VBAP  AS B ON A~VBELN = B~VBELN
           INTO CORRESPONDING FIELDS OF TABLE ITEKKo WHERE 
    B~MATKL IN S_MATKL AND A~AUDAT IN S_BEDAT AND
    A~VKORG IN S_VKORG AND A~VTWEG IN S_VTWEG
       AND B~WERKS IN S_WERKS .
    LOOP AT ITEKKO.
      SELECT SINGLE MVGR1 MVGR5 FROM MVKE INTO (ITEKKO-MATKL, ITEKKO-MVGR5)  WHERE
    MATNR = ITEKKO-MATNR.
      SELECT SINGLE INCO2 FROM VBKD INTO ITEKKO-NAME1 WHERe VBELN = ITEKKO-VBELN.
      SELECT SINGLE LAND1 FROM KNA1 INTO CCODE WHERE
                KUNNR = ITEKKO-KUNNR.
      SELECT SINGLE LANDX50 FROM T005T INTO ITEKKO-CNAME WHERE
                LAND1 = CCODE   AND SPRAS = 'E'.
      MODIFY ITEKKO.
    ENDLOOP.
    SELECT C~BLDAT D~VBELN D~POSNR D~VGBEL
               D~MATKL D~MFRGR D~LFIMG D~MEINS D~MATNR
           FROM LIKP AS C INNER JOIN LIPS AS D ON C~VBELN = D~VBELN
           INNER JOIN VBAK AS A ON D~VGBEL = A~VBELN
           INTO CORRESPONDING FIELDS OF TABLE IT_LIPS
           WHERE A~AUDAT IN S_BEDAT
           ORDER BY D~VGBEL D~MFRGR.
    LOOP AT IT_LIPS.
      SELECT SINGLE MVGR5 FROM MVKE INTO IT_LIPS-MVGR5 WHERE
                                      MATNR = IT_LIPS-MATNR.
      MODIFY IT_LIPS.
    ENDLOOP.
    it is taking very long time when the loops r executing.
    can anybody please help.

    Hi,
    Check this coding,
    TYPES:BEGIN OF Y_TAB,
                 BLDAT TYPE LIKP-BLDAT,
                 VBELN TYPE LIPS-VBELN,
                 POSNR TYPE LIPS-POSNR,
                 VGBEL TYPE LIPS-VGBEL,
                 MATKL TYPE LIPS-MATKL,
                 MFRGR TYPE LIPS-MFRGR,
                 LFIMG TYPE LIPS-LFIMG,
                 MEINS TYPE LIPS-MEINS,
                 MATNR TYPE LIPS-MATNR,
      END OF LS_TAB.
    TYPES : BEGIN OF Y_VBAK,
                 VBELN TYPE VBAK-VBELN,
    END OF Y_VBAK.
    TYPES: BEGIN OF Y_LIPS,
                VBELN TYPE LIPS-VBELN,
                POSNR TYPE LIPS-POSNR,
                VGBEL TYPE LIPS-VGBEL,
                MATKL TYPE LIPS-MATKL,
                MFRGR TYPE LIPS-MFRGR,
                LFIMG TYPE LIPS-LFIMG,
                MEINS TYPE LIPS-MEINS,
                MATNR TYPE LIPS-MATNR,
    END OF Y_LIPS.
    TYPES : BEGIN OF Y_LIKP,
                 BLDAT TYPE LIKP-BLDAT,
                VBELN TYPE LIKP-VBELN,
    END OF Y_LIKP.
    DATA IT_ITAB TYPE TABLE OF LS_TAB.
    DATA WA_ITAB TYPE  LS_TAB.
    DATA IT_LIPS TYPE TABLE OF Y_LIPS.
    DATA WA_LIPS TYPE  Y_LIPS.
    DATA IT_LIKP TYPE TABLE OF Y_LIKP.
    DATA IT_VBAK TYPE TABLE OF Y_VBAK.
    DATA WA_LIKP TYPE  Y_LIKP.
    SELECT VBELN FROM VBAK INTO TABLE IT_VBAK WHERE AUDAT IN S_BEDAT.
    SELECT VBELN POSNR VGBEL MATKL MFRGR LFIMG MEINS MATNR FROM
                               LIPS INTO TABLE IT_LIPS FOR ALL ENTRIES IN IT_VBAK
                                                                WHERE VGBEL = IT_VBAK-VBELN.
    SELECT BLDAT VBELN FROM LIKP INTO TABLE IT_LIKP FOR ALL ENTRIES IN IT_LIPS WHERE VBELN = IT_LIPS-VBELN.
    LOOP AT IT_LIKP INTO WA_LIKP.
      READ TABLE IT_LIPS INTO WA_LIPS WITH  KEY VBELN = WA_LIKP-VBELN.
      IF SY-SUBRC EQ 0.
        MOVE-CORRESPONDING WA_LIPS TO WA_ITAB.
        MOVE WA_LIKP-BLDAT TO WA_ITAB-BLDAT.
        APPEND WA_ITAB TO IT_ITAB.
        CLEAR WA_ITAB.
      ENDIF.
    ENDLOOP.
    SORT  IT_ITAB BY VGBEL MFRGR.
    I Hope it will help.

  • Delete all entries from the following tables - Follow-up Activities (oracle)

    Hello,
    I performed a homogeneous system copy of our development BW system with the database (oracle 11.2.0.3) from the BW production system!
    I already start the oracle database and the SAP system in the target system/server (development BW system) and I´m doing some follow-up activities. One of this activities is (at the system copy guide 6.2.3.2 Activities at Database Level) is to delete all entries from the following tables:
    DBSTATHORA, DBSTAIHORA, DBSTATIORA, DBSTATTORA
    I tried to delete them using SQL Plus:
    sqlplus /nolog
    SQL> connect /as sysdba
    SQL> delete from DBSTATTORA;
    delete from DBSTATTORA
    ERROR at line 1:
    ORA-00942: table or view does not exist
    ... and it show me that error message.
    This is strange because when I go to transaction SE14 and check the DBSTATTORA I see that table exist and contain a lot of entries!
    Why this is happened in SQL Plus!? I´m running the correct SQL statement for doing this type of task or not?
    How can I delete the entries of that tables? Can I do that using the transaction SE14?
    Can you help me please?
    Thank you,
    samid raif

    Hello
    sqlplus /nolog
    SQL> connect /as sysdba
    SQL> delete from DBSTATTORA;
    delete from DBSTATTORA
    ERROR at line 1:
    ORA-00942: table or view does not exist
    It doesn't surprise me as you are not mentioning the schema name here. Instead it should be
    delete from SAPSR3.DBSTATTORA;
    Assuming the schema owner is SAPSR3. if the owner is different then replace that with the correct one.
    Regards
    RB

  • I purchased an iMac MC309LL/A model A1311 21.5" All in one computer. I purchased it 8/28/11 and about 2 months ago it started powering down. I called for support and a Apple Customer Support, I did what they said and now it wont turn on at all.

    I purchased an iMac MC 309LL/A model A1311 21.5" All in one computer on 8/28/11. The computer stated to shut down on me every once in a while when I was working on it. I called Apple customer support and a rep walked me through deleting all of my cache files saying it was the prooblem. She then had me do a re-install with the installation disc. After doing that she said to turn my computer off then back on and the computer would want to run some updates an to let them run. I was told to call back if there were anymore problems. The computer turned on for a couple minutes then shut down again and won't turn back on at all now. I took it to the Apple store and they told me it was the main board that delivers power to the computer and it whoulld cost about $550 to replace. I have had this computer for 1 1/6 year and hardly use it. My tech told me the same thing happened to his. Doesn't this mean the equipment could be faulty?
    Who keeps track of how many of these are having the same problem and when should there be a recall. I have always used Dells at work. The one I have is 6 years old and works great. I have Compaq laptop at home that is almost 7 years old. I have never had a problem like this before and I can't believe that I spent$1300 for a computer that crashed after 1 yr 6 months. What's worse is that it is my first major Apple product other than my iPod Shuffle.

    Sorry to hear of your problem, but any hardware in a computer can fail - that includes the hard drive, the logic board, etc, etc. Fortunately, it usually doesn't happen that soon; however, I've read of hard drives failing within 6 months.
    So, since you did not purchase the extended Applecare Protection Plan (3 years coverage), you will need to make a decision to repair or sell it as is. I would always purchase 3 year coverage for an all in one or a laptop because repairs are expensive and at least I'd be covered for 3 years.
    We can't speculate on whether there should be a recall or not; these forums are for user to user assistance with technical problems. In your case, there is nothing we can help with since you've already gotten a diagnosis.

  • HOW TO PRINT THE MATTER IN FOR ALL ENTRIES

    HI HOW T  PRINT THE FOR ALL ENTRIES MATTER

    Hi Naresh,
    You can only use FOR ALL ENTRIES IN ...WHERE ...in a SELECT statement.
    SELECT ... FOR ALL ENTRIES IN itab WHERE cond returns the union of the solution sets of all SELECT statements that would result if you wrote a separate statement for each line of the internal table replacing the symbol itab-f with the corresponding value of component f in the WHERE condition.Duplicates are discarded from the result set. If the internal table itab does not contain any entries, the system treats the statement as though there were no WHERE cond condition, and selects all records (in the current client).
    For example:
    SELECT * FROM sflight INTO wa_sflight 
    FOR ALL ENTRIES IN ftab 
    WHERE CARRID = ftab-carrid AND 
                 CONNID = ftab-connid AND 
                     fldate = '20010228'. 
    This condition, return all entries of the sflight.
    When using FOR ALL ENTRIES the number of matching records is restricted to the number of records in the internal table. If the number of records in the database tables is too large then join would cause overheads in performance. Additionally a JOIN bypasses the table buffering.
    Thanks,
    Reward If Helpful.

  • I do i find and replace all in numbers

    How do I find and replace all.  It is time-consuming to find and replace one entry at a time.

    Works here. As you can see, all three instances were located, in my test.
    Can you think af anything that could be different in your case than in my example?
    Jerry

  • Macbook pro fan making loud noises and going really fast. Now the fan doesn't work at all and my computer gets extremely hot almost instantly. Is there a way to fix it without having to pay a ton of money to have someone fix it for me?

    I've had my Macbook pro for about 3 1/2 years now. It has worked great until recently. A few months ago I noticed that the fan would always run really fast when I was doing simple tasks. After a few weeks/months, the fan was still really fast but it also started to make these loud noises. Now, it only occasionally makes the loud noise if I move my computer after its been stationary for a while. The fan no longer works at all and my computer gets exceptionally hot almost instantly when I turn it on. Is there a way to fix this problem without having to pay a ton of money to have someone fix it for me?

    You can try a SMC reset:
    http://support.apple.com/kb/HT3964
    you can also check this:
    http://www.ifixit.com/Answers/Active?search=replace+fans&csrf=sqmfo0yj19

  • For All Entries is NOT better than INNER JOIN in most cases

    I quote from Siegfried Boes' excellent post here: Will writing an inner join be better or creating a view?
    For all the FOR ALL ENTRIES lovers ... there is no proof for these reappearing recommendation.
    There is nearly nobody who receives forum points, who recommends FOR ALL ENTRIES instead of Joins. What is the reason ???
    It is easier to prove the opposite. A Join is a nested loop inside the database, a FOR ALL ENTRIES is partly outside of the database. FOR ALL ENTRIES works in blocks, joins on totals.
    FOR ALL ENTRIES are not recommded on really large tables, because the chances are too high that
    too many records are transferred.
    People prefer FOR ALL ENTRIES, because JOINs are not so easy to understand. Joins can go wrong, but with a bit of understanding they can be fixed.
    Some Joins are slow and can not be fixed, but then the FOR ALL ENTRIES would be extremely slow.
    There are several kinds of views:
    - projection views, i.e. only one table involved just fields reduced
    - join views, several tables, joins conditions stored in dictionary
    - materialized views, here the joined data are actually stored in the database. Storing and synchronisation has to be done manually.
    Only the last one creates real overhead. It should be the exception.
    Join Views and Joins are nearly identical. The view is better for reuse. The join is better in complicated, becuase if the access goes wrong, it can often be fixed by adding a hint. Hints can not be added to views.
    Abraham Bukit  points out:
    If it is cluster table, (you can't use join). If it is buffered table, I would also say avoid join.
    If they all are transaction table which are not buffered and are not cluster tables.  
    He further supports Siegfried's statement that FAE is easier to undestand than INNER JOINs.
    Thomas Zloch says, regarding buffered tables:
    At least think twice, maybe compare runtimes if in doubt. 
    So, unless someone has some EVIDENCE that FOR ALL ENTRIES is better, I don't think we want to see this discussed further.
    Kind regards
    Matt

    To give food for thought here's an example I  gave in a thread:
    If you have a statement like
    SELECT ... FOR ALL ENTRIES IN FAE_itab WHERE f = FAE_itab-f.
    SAP sends it to the database depending how the parameter rsdb/prefer_union_all is set:
    rsdb/prefer_union_all = 0 =>
    SELECT ... WHERE f = FAE_itab[1]-f
              OR    f = FAE_itab[2]-f
              OR    f = FAE_itab[N]-f
    You have some influence  of the generated statement type: Instead of OR'ed fields an IN list can be used
    if you have only a single coulmn N to compare:
    rsdb/prefer_in_itab_opt parameter:
    SELECT ... WHERE f IN (itab[1]-f, itab[2]-f, ..., itab[N]-f)
    rsdb/prefer_union_all = 1 =>
    SELECT ... WHERE f = FAE_itab[1]-f
    UNION ALL SELECT ... WHERE f = FAE_itab[2]-f
    UNION ALL SELECT ... WHERE f = FAE_itab[N]-f
    see: Note 48230 - Parameters for the SELECT ... FOR ALL ENTRIES statement
    As you can see for the 2nd parameter several statements are generated and combined with a UNION ALL,
    the first setting generates statements with OR's (or uses IN  if possible) for the entries in FAE_itab.
    I give you a little example here (my parameters are set in a way that the OR's are translated to IN lists; i traced the execution in ST05)
    Select myid into table t_tabcount from mydbtable
      for all entries in t_table    " 484 entries
        where myid = t_table-myid .
    ST05 trace:
    |Transaction SEU_INT|Work process no 0|Proc.type  DIA|Client  200|User |
    |Duration |Obj. name |Op.    |Recs.|RC    |Statement|
    | 640|mydbtable |PREPARE|   |  0|SELECT WHERE "myid" IN ( :A0 , :A1 , :A2 , :A3 , :A4 ) AND "myid" = :A5|
    | 2|mydbtable |OPEN   |   |  0|SELECT WHERE "myid" IN ( 1 , 2 , 3 , 4 , 5 ) AND "myid" = 72 |
    | 2.536|mydbtable |FETCH  |    0|  1403|   |
    | 3|mydbtable |REOPEN |   |  0|SELECT WHERE "myid" IN ( 6 , 7 , 8 , 9 , 10 ) AND "myid" = 72 |
    | 118|mydbtable |FETCH  |  0|  |
    | 2|mydbtable |REOPEN |  |  0|SELECT WHERE "myid" IN ( 11 , 12 , 13 , 14 , 15 ) AND "myid" = 72     |
    | 3|mydbtable |REOPEN |  |  0|SELECT WHERE "myid" IN ( 475 , 476 , 477 , 478 , 479 ) AND "myid" = 72  |
    | 94|mydbtable |FETCH  | 0| 1403|   |
    | 2|mydbtable |REOPEN |   |  0|SELECT WHERE "myid" IN ( 480 , 481 , 482 , 483 , 484 ) AND "myid" = 72 |
    You see the IN list contained 5 entries each , wich made up about 97 statements for all 484 entries.
    For every statment you have a single fetch operation wich means a separate access to the database.
    If you would replace the FAE with a join you would only have one fetch to the database.
    With the example above we can derive these observations:
    1. From database point of view these settings kill performance when you access a big table and/or have a lot of entries or columns in your FAE_itab. Furthermore, you hide information what data you will access
    at all and thus you block the database from creating a more efficient execution plan because it DOESN'T KNOW wich data you will select in the next step. I.e. it may be more efficient to scan the table in one shot instead of having many index accesses - but the database can make this decision only if it can examine ONE statement that has ALL the information of what data to retrieve.
    2. A second impact is that with every statement execution you trigger the allocation of database resources
    wich will contribute to the overhead described above.
    Said that, FAE  can never be a replacement for joining big tables (think of having a table with thousands of records in a FAE table )
    Edited by: kishan P on Nov 2, 2010 2:16 PM - Format Fixed

  • Help, lost all the songs on my iPod when checked the box titled "Replace all items when Autofilling" in my Autofill Settings window.

    Help, I lost all the songs on my iPod when I deleted a few songs from my iTunes Library, checked the box titled "Replace all items when Autofilling" in my Autofill Settings window, and then tried to Autofill. Note that I do not purchase songs from iTunes, but rather I rip songs off my own cd's and then transfer the mp3 files to iTunes.  And after I transfer mp3 files from my pc to iTunes and then Autofill, I generally delete those files from my pc.
    I can still see the songs in my iTunes Library, but not on my iPod.  Is there a way that I can salvage them and get them back on my iPod?
    Thanks in advance.

    Well you will have to wait to connect you ipod to the orignal computer and it will put all your songs back on to it.

  • For all entries

    I was under the impression that, while getting data from database table 'for all entries' always imporves performance. Since we are not getting whole database table data. I was doing a select statement and I have used for all entries. I have only 20,000 records in the internal table. While selecting data from database table, it took more than one hour and timed out.
    Latter, I hard coded some values and query worked and it just took few minutes.
    So, do we need to avoid for all entries? What the best practice?
    For more details Please check the code:
    Source package has only 20,000 records and while getting data it timed out. So I commented for all entries and hardcoded the values. This time it took only few minutes. Can any one suggest the best practice for handling such things?
        IF SOURCE_PACKAGE[] IS NOT INITIAL.
          SELECT
            CALMONTH
            CALYEAR
            COMPANY
            /BIC/XPROF_CTR
            PCOMPANY
            /BIC/ZPRODASGN
            /BIC/ZSLSRPTCD
            CURKEY_TC
            UNIT
            GL_ACCOUNT
            MATERIAL
            FUNC_AREA
            COSTCENTER
            WBS_ELEMT
            CURKEY_LC
            /BIC/ZTEMPKEY
            QUANTITY
            /BIC/ZAMT_REP
            /BIC/ZSALETYP
          FROM
          /BIC/AZGMROA1400
          INTO TABLE IT_SOURCE_TMP
         FOR ALL ENTRIES IN SOURCE_PACKAGE
          WHERE
                CALMONTH       BETWEEN CMONTH1 AND CMONTH2 AND
                CALYEAR        = CURR_YEAR AND
               COMPANY        = SOURCE_PACKAGE-COMPANY AND
               /BIC/XPROF_CTR = SOURCE_PACKAGE-/BIC/XPROF_CTR AND
               PCOMPANY       = SOURCE_PACKAGE-PCOMPANY AND
               /BIC/ZPRODASGN = SOURCE_PACKAGE-/BIC/ZPRODASGN AND
               /BIC/ZSLSRPTCD = SOURCE_PACKAGE-/BIC/ZSLSRPTCD AND
               CURKEY_TC      = SOURCE_PACKAGE-CURKEY_TC AND
               UNIT           = SOURCE_PACKAGE-UNIT AND
               GL_ACCOUNT     = SOURCE_PACKAGE-GL_ACCOUNT AND
                MATERIAL       = SOURCE_PACKAGE-MATERIAL AND
                /BIC/ZSALETYP  in ('TS', 'CG', 'IS', 'IC',
                                   'TO', 'FG', 'OD', 'SS',
                                   'RD', 'I3', 'D1', 'D2',
                                   'D3', 'MS', 'PF', 'RA') .
               FUNC_AREA      = SOURCE_PACKAGE-FUNC_AREA AND
               COSTCENTER     = SOURCE_PACKAGE-COSTCENTER AND
               WBS_ELEMT      = SOURCE_PACKAGE-WBS_ELEMT AND
               CURKEY_LC      = SOURCE_PACKAGE-CURKEY_LC and
               /BIC/ZACCOUNT       = SOURCE_PACKAGE-/BIC/ZACCOUNT .
        ENDIF.

    Hi,
    if you have a statement like
    SELECT ... FOR ALL ENTRIES IN FAE_itab WHERE f = FAE_itab-f.
    SAP sends it to the database depending how the parameter rsdb/prefer_union_all is set:
    rsdb/prefer_union_all = 0 =>
    SELECT ... WHERE f = FAE_itab[1]-f
              OR    f = FAE_itab[2]-f
              OR    f = FAE_itab[N]-f
    You have some small influence of the number of generated statements in the case of  OR'ed  taht an IN list should be used  by
    rsdb/prefer_in_itab_opt parameter:
    SELECT ... WHERE f IN (itab[1]-f, itab[2]-f, ..., itab[N]-f)
    rsdb/prefer_union_all = 1 =>
    SELECT ... WHERE f = FAE_itab[1]-f
    UNION ALL SELECT ... WHERE f = FAE_itab[2]-f
    UNION ALL SELECT ... WHERE f = FAE_itab[N]-f
    see: Note 48230 - Parameters for the SELECT ... FOR ALL ENTRIES statement
    As you can see that the last setting generates several statements and combine them with a UNION ALL,
    the first setting generates a statement with OR's (or uses IN list) for the entries in FAE_itab.
    I give you a little example here (my parameters are set in a way that the OR's are translated to IN lists; i traced the execution in  ST05)
    Select myid into table t_tabcount from mydbtable
      for all entries in t_table    " 484 entries
        where myid = t_table-myid
        and myid = 72.
    ST05 trace:
    |Transaction SEU_INT|Work process no 0|Proc.type  DIA|Client  200|User     |
    |Duration |Obj. name |Op.    |Recs.|RC    |Statement                                                                                |
    |      640|mydbtable |PREPARE|     |     0|SELECT WHERE "myid" IN ( :A0 , :A1 , :A2 , :A3 , :A4 ) AND "myid" = :A5                                                                                |
    |        2|mydbtable |OPEN   |     |     0|SELECT WHERE "myid" IN ( 1 , 2 , 3 , 4 , 5 ) AND "myid" = 72                                                                                |
    |    2.536|mydbtable |FETCH  |    0|  1403|                                                                                |
    |        3|mydbtable |REOPEN |     |     0|SELECT WHERE "myid" IN ( 6 , 7 , 8 , 9 , 10 ) AND "myid" = 72                                                                                |
    |      118|mydbtable |FETCH  |    0|  1403|                                                                                |
    |        2|mydbtable |REOPEN |     |     0|SELECT WHERE "myid" IN ( 11 , 12 , 13 , 14 , 15 ) AND "myid" = 72                                                                                |
    |        3|mydbtable |REOPEN |     |     0|SELECT WHERE "myid" IN ( 475 , 476 , 477 , 478 , 479 ) AND "myid" = 72                                                                                |
    |       94|mydbtable |FETCH  |    0|  1403|                                                                                |
    |        2|mydbtable |REOPEN |     |     0|SELECT WHERE "myid" IN ( 480 , 481 , 482 , 483 , 484 ) AND "myid" = 72                                                                                |
    You see the IN list contained 5 entries each  , wich made up about 97 statements for all 484 entries.
    From database point of view these settings kill performance when you have a lot of entries and/or
    a lot of columns in your FAE_itab.
    Said that, FAE i.e. can never be a replacement for joining big tables (think of having a table with thousands of records in a FAE table like you had)
    If you say now that you completly threw away the FAE table of 20.000 entries it is no wonder
    that it performs better. 20.000 records is not a small number if you create a lot of UNION's or OR's / IN lists  that way!
    Your original statement is a good example for the abuse of a FAE. In the SAP Notes this is the core problem with FAE besides empty FAE tables.
    It's safe to use a FAE_itab table if the expected entries count is small (i.e. << 100).
    What you have to decide is if it's more advantagous to
    retrieve the FAE_tabs data once and executing other statements with the SAME FAE table in the same program to reuse it
    or having additional roundtrips to the database if you don't use FAE tables at all
    Bye
    yk

  • Lost all data on computer, want to sync back from iPhone

    Hello, first of all thank you very much for helping me, and sorry for my bad english.
    I have a iphone3g which connects to windows Xp trough an itunes 9.0.2.
    My problem is:
    I had to format my hard disk so I've lost my itunes libray and all files wich were included it. By the way I've reinstalled the iTunes. I've found an older libray and sat it up iTunes to use that folder/libray.
    The only problem is that this libray has an 50% diference that my iPhone has. I mean the half of the files (music, movie,calendar etc.) are different. I noticed it when i connected my iPhone to the iTunes, because iTunes wanted to replace all my sings and applications on my iPhone as it is on the (old) libray. I've noticed it and disconnected my iPhone from the CP.
    I've tired to create a new fresh empty libray and copy all my media from my iPhone to the new libray. But it said the iPhone could be connected just one lbray. (Which seems to be my "old"libray.) I dosnet want to connect my iPhone to the old libray because it will cause the loss of the half of my songs. I neither cant find the libray which is the same as the one on my iPhone nor copy my songs to a new libray.
    My songs were not imported to the itunes libray folder but were on their own place. It means that I have not lost my data, just the configuration (playlist, rateing, playcount, wich files were selected to add to the itunes, !applications! , etc.)
    Oh yes, there is an other thing. My newly bought applications were synced to the lost libray, and they could not be found in the "old" one, just on my iPhone. But as i said, I can not connect my iPhone to a new libray.
    I hope I've described it well, and you can help me please.
    Waiting for your answer.

    This user tip is very helpful and the instructions are easy to understand. Read it and do what it instructs you to do and you should be good to go.
    Syncing to a New Computer or replacing a crashed hard drive
    https://discussions.apple.com/docs/DOC-3141

  • All entries duplicated after update to new MobileMe Calendar

    Since updating to the new MobileMe Calendar, all entries in my local calendars (those that appear on both my desktop and my laptop) have every entry duplicated. Each entry that was there before the upgrade is still there and it is overlaid by an identical entry at the exact same times and with the exact same text. The calendar that appears in MobileMe does not have these duplicates. Has anyone else experienced this and does anyone have a solution to remove all the duplicates?

    John,
    I think I'm in over my head.  Yesterday I was prompted to download and install the newest software for my iPhone 4.  During the course of the install, I was asked if I wanted to use iCloud as my backup destination, and I answered "yes".  Later I was also asked if I wanted to set up a MobileMe account, to facilitate being able to use "Find My Phone".  I answered "yes" to that also. (I'm so easy!)
    I finished the install and then last night I plugged my phone into the computer to sync and charge, as I always do.  It was this morning that I noticed that all the entried in my Calendar (on the phone) were duplicated.  I didn't have time to deal with it right away, and while I was at work, I entered a few appointments into my phone.  After work, I noticed that not only were the entries on my phone duplicated, but the appointments entered on to my phone this morning, weren't appearing on iCal (on my computer).
    My Calendar appointments are crucial to my business, and I need to be able to trust that what I enter on my phone will also show up on my computer, and vice versa.  That's where I'm trying to go, and frankly, I don't really understand iCloud or MobileMe, and probably shouldn't have tried to upgrade without more knowledge. 
    I certainly appreciate the time and patience you've offered me, but I don't want to use your whole day.  Worse comes to worst, I can always make an appointment at my local Apple Store. You've been very generous, and I appreciate it.
    Thanks again,
    Nela

  • FOR ALL ENTRIES... with FIELD SYMBOL

    Is it possible to use FOR ALL ENTRIES with a FIELD-SYMBOL that points to a data reference of type STANDARD TABLE ?
    I have the following:
      SELECT * FROM mara
        INTO TABLE table
        FOR ALL ENTRIES IN another_table
        WHERE matnr EQ another_table-matnr.
    The code above is what exists, (working), but I'm improving the program and one of the improvements is to allow dynamic querying by providing a field symbol instead of a hard-coded table like "another_table". But I get the message "the specified type has no structure and therefore no component called "MATNR".
    My code just have the field symbol that points to a previously data reference created for a table passed as a parameter (this is working, having checked via debugging) replacing "another_table" and <fs>-matnr instead of "another_table-matnr".
    What solutions would you guys suggest ?
    Thanks
    Avraham

    Why is that that the commented line doesn't work, but under debugging I can reach <ls_items>-matnr ?
    Everything is fine with <lt_items>, it contains 8 lines, and debugging shows <ls_items> receiving one line each loop pass, just as expected. I wanted to understand why/when does this error of "has no structure therefore there is no component"... appears.
    LOOP AT <lt_items> INTO <ls_items>.
    *    SELECT SINGLE * INTO ls_mara FROM mara WHERE mara~matnr = <ls_items>-matnr.
        IF sy-subrc = 0.
          APPEND ls_mara TO lt_mara.
        ENDIF.
      ENDLOOP.

Maybe you are looking for