Performance issue in ECC 6.0, pls help!

Dear all,
I have a join statement which works fine with the same data in 4.6 C but in the upgraded system it is too slow.
SELECT PA0105USRID PA0001BUKRS PA0001~GSBER
   INTO TABLE I_pa0001
  FROM PA0105 INNER JOIN PA0001 ON PA0001PERNR = PA0105PERNR
FOR ALL ENTRIES IN i_apqi
   WHERE PA0001~ENDDA EQ '99991231'
   AND PA0001~BUKRS IN S_bukrs
AND PA0001~GSBER IN S_GSBER
   AND PA0105~SUBTY EQ '0001'
   and pa0105~usrid = i_apqi-creator
  AND PA0105~ENDDA EQ '99991231'.
Table i_apqi has a list of user ids. This is taking around 6 minutes which is too much. Any ideas to improve this?
Will be happy to reward points for the answers
Regards
Veena

Hi,
I think you could use this code.
IF i_apqi[] IS NOT INITIAL.
SELECT PA0105~USRID PA0001~BUKRS PA0001~GSBER
INTO TABLE I_pa0001
FROM PA0105 INNER JOIN PA0001 ON PA0001~PERNR = PA0105~PERNR
FOR ALL ENTRIES IN i_apqi
WHERE pa0105~usrid = i_apqi-creator
AND PA0001~ENDDA EQ '99991231'
AND PA0001~BUKRS IN S_bukrs
AND PA0001~GSBER IN S_GSBER
AND PA0105~SUBTY EQ '0001'
AND PA0105~ENDDA EQ '99991231'
%_HINTS ORACLE 'FIRST_ROWS'.
ENDIF.
But your table i_apqi must have than first row creator
Brgds
Julien

Similar Messages

  • Performance issue related to BSIS table:pls help

    Theres a select statement which fetches data from BSIS table.
    As in the where clause the only key field used is BUKRS its consuming more time.Below is the code.
    Could you please tell me how to improvise this piece of code.
    I tried to fecth first from BKPF table based on the selection screen paramater t001-bukrs and then for all entries in BKPF fetched from BSIS.But it didnt worked.
    your help would be very much appreciated.Thanks in advance.
      SELECT bukrs waers ktopl periv
             FROM t001
             INTO TABLE i_ccode
             WHERE bukrs IN s_bukrs.
    SELECT bukrs hkont gjahr belnr buzei bldat waers blart monat bschl
    shkzg mwskz dmbtr wrbtr wmwst prctr kostl
               FROM bsis
               INTO TABLE i_bsis
               FOR ALL ENTRIES IN i_ccode
               WHERE bukrs EQ i_ccode-bukrs
               AND   budat IN i_date.
    Regards
    Akmal
    Moved by moderator to the correct forum
    Edited by: Matt on Nov 6, 2008 4:10 PM

    Dnt go for FOR ALL ENTRIES  it will not help in this case .Do like below , you can see a lot of performance improvement.
    SELECT bukrs waers ktopl periv
             FROM t001
             INTO TABLE i_ccode
             WHERE bukrs IN s_bukrs.
    sort i_ccode by bukrs.
    LOOP AT i_ccode.
       SELECT bukrs hkont gjahr belnr buzei bldat waers blart         monat bschl shkzg mwskz dmbtr wrbtr wmwst prctr kostl
             FROM bsis
            APPENDING TABLE i_bsis
            WHERE bukrs EQ i_ccode-bukrs
            AND   budat IN i_date.
      ENDLOOP.
    I dnt know why perform is good for the above query than "bulrs in so_bukrs" .This willl help , i m sure. this approach helped me.
    Edited by: Karthik Arunachalam on Nov 6, 2008 8:52 PM

  • Experiencing strange performance issues after a hard drive failure - Help!

    I bought my mid-2012 i5 Macbook Pro in December of 2012. I realized when shopping for computers that I wanted an SSD installed, but that it would be a lot cheaper if I bought the SSD and installed it rather than customizing it in the Apple Store. So I bought a nice Samsung 128GB SSD (820 or 840 - can't remember which) and did the installation. I went ahead and installed two 4GB sticks of RAM while I was at it. Everything was just dandy: my boot time was just under 9 seconds, and all of my data-heavy apps booted in no-time at all. Then all **** broke loose.
    About two weeks ago, I opened my computer and I got the dreaded "? File Folder" notification with a gray screen. I immediately thought hard drive failure. No matter how many times I tried to boot, the computer just would not talk to the SSD anymore. I used Internet Recovery to get into my Disk Utility, and the entire partition was gone. I assumed the worst but wanted to be sure - I bought a hard drive enclosure and hooked the SSD up to an older Macbook, and lo and behold: it worked perfectly. I was not only able to recover data, but I could write data to the drive. Nothing appeared wrong with the drive when I plugged it into the old Macbook, but my newer Macbook still would not recognize it. Even my fiance's Windows 7 PC recognized the drive as "?" (since it was formatted for Mac, but hey - it recognized that it existed!).
    I decided to re-install the original HDD that came with the 2012 Macbook Pro (the one I removed in favor of the SSD). I was able to re-install the OS and I can boot up at will, but everything is different. The performance issues are extremely noticeable. I can't have more than two programs running at one time without the spinning wheel of death appearing. My boot time went from 9 seconds to 2 minutes. I know that SSDs increase performance, so there is some slight performance downgrade to be expected since I am using a mechanical drive now -- but these are not normal issues. Sometimes I can't even type a web address into Safari without the wheel appearing. iTunes, and specifically the App Store, take minutes to open - and I have no media is on iTunes.
    Here's the thing: I have tried just about anything to fix this problem that Google can pull up. I've verified the HDD, I've booted into Safe Mode, reset RAM and cache, run benchmarks and other performance tests, entered all sorts of weird language into Command Prompt, and studied Activity Monitor - I can't find a single red flag that would indicate anything being wrong. It appears to be a perfectly functioning, updated computer.
    I'm thinking a piece of hardware failed that triggered the error with the SSD. I'm not really sure though since all of my performance tests indicate perfectly functioning hardware. I'm a little afraid to take it to the Apple store because I know they'll tell me it's my fault for opening the computer and replacing the hard drive in the first place.
    Any ideas? At this point anything to salvage this computer would be helpful.

    Spin Cycle,
    were those other computers which were able to recognize your SSD in its external enclosure also Macs? Do you know if your SSD has its most recent firmware revision installed? (If it doesn’t, its installer can be downloaded from the Samsung SSD firmware page for burning onto a bootable DVD.) I haven’t used the 830 myself, so I don’t know what its reputation is with Macs. I have an 840 PRO in my MacBook Pro, which has been trouble-free for me, but my understanding is that the 840 EVO has had trouble with Macs in its earlier firmware revisions — so I’m wondering if the 830 has a known track record with Macs, good or bad.

  • Last hope on performance issues in ECC 6

    This forum is my last hope for help on this issue.
    We just recently went from 4.6c, oracle 9-something to ecc 6, oracle 10g.
    We have found that report performance in the background has been TERRIBLE in comparison to the old version. Especially CO reports and PS reports. We have spent countless hours on analyss and program changes, and OSS note applications, and have exhausted evey means to find the underlying issue that the upgrade seems to have caused.
    The biggest issue we found were changes to the PSJ logical database, and we fixed that.
    We have looked both on the Oracle side and the SAP side.
    Still reports are running 3-4 times longer.
    We are non-unicode
    Has anyone else run into this issue?

    I´d do an SQL trace (ST05), switch it on for a user, start the report and let it run until it bombs out with timeout. Then switch off the trace and evaluate it.
    Also check note 871096 and install the patches listed for your platform.
    Did you create database statistics after you did your upgrade?
    In any case, create an SQL trace and open an OSS call on BC-DB-ORA telling the support your problems and let them have a look at the execution plan of your statement.
    Markus

  • Performance issue in ECC 6.0

    HI Experts,
    The client has upgraded to ECC 6.0 from 4.6c, everything works fine but the only problem is that the users complain that the server is slow. The client has done a memory upgrade from 8Gb to 16 Gb but the problem still pertains. The server is Up and running and there is no problem at all.
    The ECC runs on this WIN NT server and the DB2 database is connected to it through the IBM server. They use DB2connect
    They dont have any application servers.
    After the upgrade their system performance declined,
    Users are complaining that the response time of the system is very slow. Also while executing some transaction codes like  GD13,  the system just throws the user out after a while.
    they have to execute the transaction in steps.The ST02 shows a lot of swaps in the program buffer and the EXport/ IMport buffer. Also in ST02,SAP memory section
    we can see that the Max Use is 2 times that of the In Memory for the Page Area.
    In ST03N, the DB time for the background work process type is much greater than the processing time.
    Please let me know if i have missed out any details.
    I am attaching the parameters here below for further information. Please let me know what are the parameters that have to be modified for solving this error. I am not a pro in performance tuning and that is the reason seeking help from the GURU's
    Thank you in advance and please let me know if more details are required
    SACHIN
    03/06/2008                         Active parameters                        08:25:57
    Parameter Name
    Parameter value
    |SAPDBHOST                                  sapgbeth                                                                               
    |j2ee/dbtype                                db2                                                                               
    |j2ee/dbname                                DB2P                                                                               
    |j2ee/dbhost                                SAPPRD                                                                               
    |SAPSYSTEMNAME                              PRD                                                                               
    |SAPGLOBALHOST                              sapap4                                                                               
    |rdisp/bufrefmode                           sendoff,exeauto                                                                               
    |rdisp/mshost                               sapap4                                                                               
    |rdisp/msserv                               sapmsPRD                                                                               
    |rdisp/msserv_internal                      3900                                                                               
    |j2ee/scs/host                              sapap4                                                                               
    |j2ee/scs/system                            31                                                                               
    |j2ee/ms/port                               3931                                                                               
    |SAPTRANSHOST                               sapap2                                                                               
    |login/system_client                        300                                                                               
    Instance parameters
                       Active parameters                        08:33:11
    Parameter Name
    Parameter value
    |icm/server_port_1                          |PROT=SMTP,PORT=25                                                                               
    |zcsa/table_buffer_area                     |120000000                                                                               
    |rsau/selection_slots                       |5                                                                               
    |rsau/enable                                |1                                                                               
    |zcsa/presentation_buffer_area              |44000000                                                                               
    |rdisp/gui_auto_logout                      |7200                                                                               
    |rdisp/noptime                              |14400                                                                               
    |rdisp/wp_auto_restart                      |14400                                                                               
    |rsdb/ntab/entrycount                       |70000                                                                               
    |rsdb/esm/buffersize_kb                     |4096                                                                               
    |rsdb/esm/max_objects                       |2000                                                                               
    |rsdb/ntab/ftabsize                         |62500                                                                               
    |rsdb/ntab/irbdsize                         |30000                                                                               
    |rsdb/ntab/sntabsize                        |2500                                                                               
    |rsdb/obj/buffersize                        |32000                                                                               
    |rsdb/obj/max_objects                       |20000                                                                               
    |rsdb/otr/buffersize_kb                     |4096                                                                               
    |rtbb/buffer_length                         |30000                                                                               
    |rtbb/max_tables                            |500                                                                               
    |sap/bufdir_entries                         |4500                                                                               
    |zcsa/db_max_buftab                         |25000                                                                               
    |abap/buffersize                            |850000                                                                               
    |SAPSYSTEMNAME                              |PRD                                                                               
    |SAPGLOBALHOST                              |sapap4                                                                               
    |SAPSYSTEM                                  |00                                                                               
    |INSTANCE_NAME                              |DVEBMGS00                                                                               
    |DIR_CT_RUN                                 |$(DIR_EXE_ROOT)\$(OS_UNICODE)\NTAMD64                                                                               
    |rsdb/cua/buffersize                        |12500                                                                               
    |DIR_EXECUTABLE                             |$(DIR_INSTANCE)\exe                                                                               
    |jstartup/trimming_properties               |off                                                                               
    |jstartup/protocol                          |on                                                                               
    |jstartup/vm/home                           |C:\j2sdk1.4.2_14-x64\                                                                               
    |login/fails_to_user_lock                   |4                                                                               
    |login/password_expiration_time             |30                                                                               
    |jstartup/max_caches                        |500                                                                               
    |jstartup/release                           |700                                                                               
    |jstartup/instance_properties               |$(jstartup/j2ee_properties);$(jstartup/sdm_properties)                                                                               
    |j2ee/dbdriver                              |C:/Program Files/IBM/SQLLIB/\java\/db2jcc.jar;C:/Program Files/IBM/SQLLIB/\java\/db2jcc_license_cisuz.jar                                                                               
    |rdisp/wp_no_dia                            |12                                                                               
    |rdisp/wp_no_btc                            |8                                                                               
    |rdisp/j2ee_start_control                   |1                                                                               
    |rdisp/j2ee_start                           |1                                                                               
    |rdisp/j2ee_libpath                         |$(DIR_EXECUTABLE)                                                                               
    |exe/j2ee                                   |$(DIR_EXECUTABLE)\jcontrol$(FT_EXE)                                                                               
    |rdisp/j2ee_timeout                         |600                                                                               
    |rdisp/frfc_fallback                        |on                                                                               
    |icm/HTTP/j2ee_0                            |PREFIX=/,HOST=localhost,CONN=0-500,PORT=5$$00                                                                               
    |icm/server_port_0                          |PROT=HTTP,PORT=80$$                                                                               
    |ms/server_port_0                           |PROT=HTTP,PORT=81$$                                                                               
    |rdisp/wp_no_enq                            |1                                                                               
    |rdisp/wp_no_vb                             |8                                                                               
    |rdisp/wp_no_vb2                            |1                                                                               
    |login/min_password_lng                     |4                                                                               
    |rdisp/wp_no_spo                            |2                                                                               
    |dbms/type                                  |db2                                                                               
    |dbs/db2/schema                             |SAPR3                                                                               
    |dbs/db2/use_drda                           |1                                                                               
    |dbs/db2/ssid                               |DB2P                                                                               
    |dbs/db2/hosttcp                            |sapprd                                                                               
    dbs/db2/user
    PRDADM
    |rsdb/max_blocking_factor                   |10                                                                               
    |rsdb/max_in_blocking_factor                |10                                                                               
    |rsdb/min_blocking_factor                   |3                                                                               
    |rsdb/min_in_blocking_factor                |3                                                                               
    |rsdb/prefer_fix_blocking                   |0                                                                               
    |rsdb/prefer_union_all                      |1                                                                               
    |rsdb/prefer_in_itab_opt                    |1                                                                               
    |j2ee/instance_id                           |ID0058933                                                                               
                             Active parameters                        08:34:47
    Parameter Name
    Parameter value
    SAPSYSTEMNAME
    PRD
    |SAPGLOBALHOST                              |sapap4                                                                               
    |SAPSYSTEM                                  |00                                                                               
    |INSTANCE_NAME                              |DVEBMGS00                                                                               
    |DIR_CT_RUN                                 |$(DIR_EXE_ROOT)\$(OS_UNICODE)\NTAMD64                                                                               
    |DIR_EXECUTABLE                             |$(DIR_INSTANCE)\exe                                                                               
    |DIR_PROFILE                                |$(DIR_INSTALL)\profile                                                                               
    |_PF                                        |$(DIR_PROFILE)\PRD_DVEBMGS00_sapap4                                                                               
    |Start_Program_00                           |immediate $(DIR_CT_RUN)\sapcpe$(FT_EXE) pf=$(_PF)                                                                               
    |_MS                                        |$(DIR_EXECUTABLE)\msg_server$(FT_EXE)                                                                               
    |Start_Program_01                           |local $(_MS) pf=$(_PF)                                                                               
    |_DW                                        |$(DIR_EXECUTABLE)\disp+work$(FT_EXE)                                                                               
    |Start_Program_02                           |local $(_DW) pf=$(_PF)                                                                               
    |_IG                                        |$(DIR_EXECUTABLE)\igswd$(FT_EXE)                                                                               
    |Start_Program_03                           |local $(_IG) -mode=profile pf=$(_PF)                                                                               
    |dbms/type                                  |db2                                                                               
    |dbs/db2/schema                             |SAPR3                                                                               
    |dbs/db2/use_drda                           |1                                                                               
    |dbs/db2/ssid                               |DB2P                                                                               
    |dbs/db2/hosttcp                            |sapprd                                                                               
    |dbs/db2/user                               |PRDADM                                                                               
    |rsdb/max_blocking_factor                   |10                                                                               
    |rsdb/max_in_blocking_factor                |10                                                                               
    |rsdb/min_blocking_factor                   |3                                                                               
    |rsdb/min_in_blocking_factor                |3                                                                               
    |rsdb/prefer_fix_blocking                   |0                                                                               
    |rsdb/prefer_union_all                      |1                                                                               
    |rsdb/prefer_in_itab_opt                    |1                                                                               
    ST02 details
    System:                  sapap4_PRD_00             Tune summary
    Date + Time of Snapshot: 03/06/2008    09:12:54    Startup:     02/28/2008 17:00:25
    Buffer
    HitRatio %
    Alloc. KB
    Freesp. KB
    % Free Sp.
    Dir. Size
    FreeDirEnt
    % Free Dir
    Swaps
    DB Accs
    Nametab (NTAB)
    0
    Table definition
    99.81
    17,230
    8,898
    66.41
    70,000
    46,486
    66.41
    0
    35,319
    Field definition
    99.82
    67,969
    1,093
    1.75
    70,000
    50,465
    72.09
    3,122
    23,024
    Short NTAB
    99.81
    4,688
    1,494
    59.76
    17,500
    14,009
    80.05
    0
    3,491
    Initial records
    77.19
    32,188
    25,367
    84.56
    17,500
    204
    1.17
    0
    17,333
    0
    program
    99.86
    850,000
    2,503
    0.31
    212,500
    187,621
    88.29
    16,688
    133,368
    CUA
    99.89
    12,500
    1,687
    15.43
    6,250
    4,841
    77.46
    0
    1,440
    Screen
    99.92
    42,969
    4,178
    9.78
    4,500
    2,539
    56.42
    0
    2,025
    Calendar
    100.00
    488
    407
    85.32
    200
    111
    55.50
    0
    89
    OTR
    100.00
    4,096
    3,594
    100.00
    2,000
    2,000
    100.00
    0
    0
    Tables
    0
    Generic Key
    99.96
    117,188
    10,484
    9.40
    25,000
    963
    3.85
    19
    91,258
    Single record
    99.43
    30,000
    19,703
    66.00
    500
    307
    61.40
    0
    100,286
    0
    Export/import
    87.05
    32,000
    345
    1.28
    20,000
    7,881
    39.41
    20,674
    Exp./ Imp. SHM
    96.21
    4,096
    3,487
    97.02
    2,000
    1,999
    99.95
    0
    SAP Memory
    Curr.Use %
    CurUse[KB]
    MaxUse[KB]
    In Mem[KB]
    OnDisk[KB]
    SAPCurCach
    HitRatio %
    Roll area
    6.99
    18,328
    24,152
    262,144
    0
    IDs
    88.76
    Page area
    11.15
    29,222
    262,136
    131,072
    131,072
    Statement
    86.00
    Extended memory
    13.28
    2,228,224
    4,182,016
    16,773,120
    0
    0.00
    Heap memory
    0
    0
    1,953,199
    0
    0.00
    Call Stati
    HitRatio %
    ABAP/4 Req
    ABAP Fails
    DBTotCalls
    AvTime[ms]
    DBRowsAff.
    Select single
    99.59
    43,894,293
    12,780,161
    318,640
    0
    31,114,132
    Select
    91.37
    83,904,537
    0
    1,381,069
    0
    10,468,946
    Insert
    0.00
    27,752
    11,469
    28,873
    0
    48,575
    Update
    0.00
    102,654
    5,118
    104,414
    0
    97,141
    Delete
    0.00
    50,367
    44,486
    52,487
    0
    45,787
    Total
    95.48
    127,979,603
    12,841,234
    1,885,483
    0
    41,774,581

    Hi,
    How is the database server operating system coping in terms of CPU load and memory? and what is the db data cache hit ratio in ST04?
    I would look into the following things, network configuration between database and central instance, and the load on the DB server cpu load/memory and possibly the most important the DB2 memory and configuration instead of focusing on the SAP application server in case of high DB times.
    Please be aware of the fact that tables in upgrade from 4.6C to ECC increase from about 30000 to 60-70000 and db tuning is the most likely explanation for your problems.
    Regards
    Sindri

  • (canon 5D 3 Magic Lantern .raw) fps issue in premiere pro. Pls help

    I took a shot with Canon 5D 3 Magic Lantern(.raw converted to cdng) at 23.97 fps which is reflecting as 24 fps in the premiere metadata? How to change it to 23.97 fps without affecting the quality of my clip?

    Thank you Simon, I did try it more than twice, same problem appears, the same converter setting worked well with other similar clips. Still looking for an answer from someone who have experienced similar issues and have a resolution. Thanks in advance

  • Performance issue when using select count on large tables

    Hello Experts,
    I have a requirement where i need to get count of data  from a database table.Later on i need to display the count in ALV format.
    As per my requirement, I have to use this select count inside a nested loops.
    Below is the count snippet:
    LOOP at systems assigning <fs_sc_systems>.
    LOOP at date assigning <fs_sc_date>.
    SELECT COUNT( DISTINCT crmd_orderadm_i~header )
       FROM crmd_orderadm_i
       INNER JOIN bbp_pdigp
           ON crmd_orderadm_iclient EQ bbp_pdigpclient               "MANDT is referred as client
         AND crmd_orderadm_iguid  EQ bbp_pdigpguid
         INTO w_sc_count
    WHERE crmd_orderadm_i~created_at BETWEEN <fs_sc_date>-start_timestamp
         AND <fs_sc_date>-end_timestamp
         AND bbp_pdigp~zz_scsys   EQ <fs_sc_systems>-sys_name.
    endloop.
    endloop.
    In the above code snippet,
    <fs_sc_systems>-sys_name is having the system name,
    <fs_sc_date>-start_timestamp is having the start date of month
    and <fs_sc_date>-end_timestamp is the end date of month.
    Also the data in tables crmd_orderadm_i and bbp_pdigp is very large and it increases every day.
    Now,the above select query is taking a lot of time to give the count due to which i am facing performance issues.
    Can any one pls help me out to optimize this code.
    Thanks,
    Suman

    Hi Choudhary Suman ,
    Try this:
    SELECT crmd_orderadm_i~header
      INTO it_header                 " interna table
      FROM crmd_orderadm_i
    INNER JOIN bbp_pdigp
        ON crmd_orderadm_iclient EQ bbp_pdigpclient
       AND crmd_orderadm_iguid   EQ bbp_pdigpguid
       FOR ALL ENTRIES IN date
    WHERE crmd_orderadm_i~created_at BETWEEN date-start_timestamp
                                          AND date-end_timestamp
       AND bbp_pdigp~zz_scsys EQ date-sys_name.
        SORT it_header BY header.
        DELETE ADJACENT DUPLICATES FROM it_header
        COMPARING header.
        describe table it_header lines v_lines.
    Hope this information is help to you.
    Regards,
    José

  • Performance issue on query. Help needed.

    This is mainly a performance issue. I hope someone can help me on this.
    Basically I have four tables Master (150000 records), Child1 (100000+ records), Child2 (50 million records !), Child 3 (10000+ records)
    (please pardon the aliases).
    Now every record in master has more than one corresponding record in each of the child tables (one to many).
    Also there may not be any record in any or all of the tables for a particular master record.
    Now, I need to fetch the max of last_updated_date for every master record in each of the 3 child tables and then find the maximum of
    the three last_active_dates obtained from the 3 tables.
    eg: for Master ID 100, I need to query Child1 for all the records of Master ID 100 and get the max last_updated_date.
    Same for the other 2 tables and then get the maximum of these three values.
    (I also need to take care of cases where no record may be found in a child table for a Master ID)
    Writing a procedure that uses cursors that fetches the value from each of the child table hits performance
    badly. And thing is I need to find out the last_updated_date for every Master record (all 150000 of them). It'll probably take days to do this.
    SELECT MAX (C1.LAST_UPDATED_DATE)
    ,MAX (C2.LAST_UPDATED_DATE)
    ,MAX (C3.LAST_UPDATED_DATE)
    FROM CHILD1 C1
    ,CHILD2 C2
    ,CHILD3 C3
    WHERE C1.MASTER_ID = 100
    OR C2.MASTER_ID = 100
    OR C3.MASTER_ID = 100
    I tried the above but I got a temp tablespace error. I don't think the query is good enough at all.
    (The OR clause is to take care of no records in any child table. If there's an AND, then the join and hence select will
    fail even if there is no record in one child table but valid values in the other 2 tables).
    Thanks a lot.
    Edited by: user773489 on Dec 16, 2008 11:49 AM

    Not sure I understand the problem. The max you are getting from the above is already the greatest out of the three - that's why we do the UNION ALL.
    Here's sample code without output, maybe this will clear it up:
    with a as (
    select 10 MASTER_ID, to_date('12/15/2008', 'MM/DD/YYYY') LAST_DTE from dual UNION ALL
    select 20 MASTER_ID, to_date('12/01/2008', 'MM/DD/YYYY') LAST_DTE from dual UNION ALL
    select 30 MASTER_ID, to_date('12/02/2008', 'MM/DD/YYYY') LAST_DTE from dual
    b as (
    select 10 MASTER_ID, to_date('12/14/2008', 'MM/DD/YYYY') LAST_DTE from dual UNION ALL
    select 20 MASTER_ID, to_date('12/02/2008', 'MM/DD/YYYY') LAST_DTE from dual UNION ALL
    select 40 MASTER_ID, to_date('11/15/2008', 'MM/DD/YYYY') LAST_DTE from dual
    c as (
    select 10 MASTER_ID, to_date('12/07/2008', 'MM/DD/YYYY') LAST_DTE from dual UNION ALL
    select 30 MASTER_ID, to_date('11/29/2008', 'MM/DD/YYYY') LAST_DTE from dual UNION ALL
    select 40 MASTER_ID, to_date('12/13/2008', 'MM/DD/YYYY') LAST_DTE from dual
    select MASTER_ID, MAX(LAST_DTE)
    FROM
    (select MASTER_ID, LAST_DTE from a UNION ALL
    select MASTER_ID, LAST_DTE from b UNION ALL
    select MASTER_ID, LAST_DTE from c)
    group by MASTER_ID;
    MASTER_ID              MAX(LAST_DTE)            
    30                     02-DEC-08                
    40                     13-DEC-08                
    20                     02-DEC-08                
    10                     15-DEC-08                
    4 rows selectedEdited by: tk-7381344 on Dec 16, 2008 12:38 PM

  • Performance issue after Upgrade from 4.7 to ECC 6.0 with a select query

    Hi All,
    There is a Performance issue after Upgrade from 4.7 to ECC 6.0 with a select query in a report painter.
    This query is working fine when executed in 4.7 system where as it is running for more time in ECC6.0.
    Select query is on the table COSP.
    SELECT (FIELD_LIST)
            INTO CORRESPONDING FIELDS OF TABLE I_COSP PACKAGE SIZE 1000
            FROM  COSP CLIENT SPECIFIED
            WHERE GJAHR IN SELR_GJAHR
              AND KSTAR IN SELR_KSTAR
              AND LEDNR EQ '00'
              AND OBJNR IN SELR_OBJNR
              AND PERBL IN SELR_PERBL
              AND VERSN IN SELR_VERSN
              AND WRTTP IN SELR_WRTTP
              AND MANDT IN MANDTTAB
            GROUP BY (GROUP_LIST).
       LOOP AT I_COSP      .
         COSP                           = I_COSP      .
         PERFORM PCOSP       USING I_COSP-_COUNTER.
         CLEAR: $RWTAB, COSP                          .
         CLEAR CCR1S                         .
       ENDLOOP.
    ENDSELECT.
    I have checked with the table indexes, they were same as in 4.7 system.
    What can be the reson for the difference in execution time. How can this be reduced without adjusting the select query.
    Thanks in advance for the responses.
    Regards,
    Dedeepya.

    Hi,
    ohhhhh....... lots of problems in select query......this is not the way you should write it.
    Some generic comments:
    1. never use SELECT
                       endselect.
       SELECT
      into table
       for all entries in table
      where.
       use perform statment after this selection.
    2. Do not use into corresponding fields. use exact structure type.
    3. use proper sequence of fields in the where condition so that it helps table go according to indexes.
        e.g in your case
              sequence should be
    LEDNR
    OBJNR
    GJAHR
    WRTTP
    VERSN
    KSTAR
    HRKFT
    VRGNG
    VBUND
    PARGB
    BEKNZ
    TWAER
    PERBL
    sequence should be same as defined in table.
    Always keep select query as simple as possible and perform all other calculations etc. afterwords.
    I hope it helps.
    Regards,
    Pranaya

  • Performance issue - in 4.7 ( previously worked in ECC 6 only)

    Hi experts,
    I have worked on ECC 6.0 and now i have got a new job and now working in 4.7 for support project. I feel it is very difficult after working in 6.0.
    I have not used occurs 0, like etc.. statements in 6.0.
    In 4.7 what are the things that i should consider to avoid performance issues.
    plz guide me.
    thanks in advance.

    Hi Sakthi,
    I faced the same problem,. I am in support now for last 3 months...
    So let me share some of the tips and tricks I follow...
    In ECC 6.0 there is always less data... since the database may be from 2005 but not early than that...
    But for 4.7 EE it may be from 1997 also... like mine...
    Since of a huge database,,, some times the select statements you write will not work in PRD & QAS..
    You will get Request Timed Out.
    So you need to be more carefull at select statements,,, match as many as primary keys.. and learn Secondary indexes,,, and must should have a good idea on foreign key relations very well...
    About the like or Occurs..etc.  you dont worry about that,, that is very easy.... and if there is a modification you can write the code almost all like the ECC 6.0...
    In SAP Wiki, there are performance tips & Coding procedures.. Lokk at that it will be help full...
    Thanks & regards,
    Dileep .C

  • EP6 sp12 Performance Issue, Need help to improve performance

    We have a Portal development environment with EP6.0 sp12.
    What we are experiencing is performance issue, It's not extremely slow, but slow compared to normal ( compared to our prod box). For example, after putting the username and password and clicking the <Log on> Button it's taking more than 10 secs for the first home page to appear. Also currently we have hooked the Portal with 3 xAPPS system and one BW system. The time taken for a BW query to appear ( with selection screen) is also more than 10 secs. However access to one other xAPPS is comparatively faster.
    Do we have a simple to use guide( Not a very elaborate one) with step by step guidance to immediately improve the performance of the Portal.
    Simple guide, easy to implement,  with immediate effect is what we are looking for in the short term
    Thanks
    Arunabha

    Hi Eric,
      I have searched but didn't find the Portal Tuning and Optimization Guide as you have suggested, Can you help to find this.
    Subrato,
      This is good and I would obviously read through this, The issue here is this is only for Network.
      But do you know any other guide, which as very basic ( may be 10 steps) and show step by step the process, it would be very helpful. I already have some information from the thread Portal Performance - page loads slow, client cache reset/cleared too often
    But really looking for answer ( steps to do it quickly and effectively) instead of list of various guides.
    It would be very helpful if you or anybody( who has actually done some performance tuning) can send  a basic list of steps that I can do immediately, instead of reading through these large guides.
    I know I am looking for a shortcut, but this is the need of the hour.
    Thanks
    Arun

  • HT4623 having issues with activating my iPhone 3gs after upgrading to ios6. Tried activating via itunes but no respite " says No sim inserted". pls help.

    Guys, I just upgraded my iphone 3gs to ios6, it took 2 hours get it installed. However asfter installing there are issues with activating it.
    Its getting failed every time..."says the activation server is temporarily unavailable".
    Tried activating via itunes but no respite " says No sim inserted".
    pls help.

    No, I did not find a way to fix it.  Went to Apple store to be told that the phone is dead and I would need to purchase a new phone.  A little frustrated with the fact that it is Apple who caused the phone to not work!

  • Hi I cant able to see some web photos in my ipad showing 'unable to load' .. Some photos able to see but still almost 90% I can't ...pls help me to clear this issue ...thanks in advance

    Hi
    My ipad is not able to see some of the photos .... I can see with google images and all .. When I am loading some applications or safari images getting the same issue ..first it's showing 'loading' then its happens like 'unable to load ' pls help me to solve the issue ..thanks

    When you say that you can't find them anywhere, I assume that you mean that you can't find them on the iPad even though the storage figure says that the photos are there.
    You can try this. I don't know if this will work for you but this was recently discovered as solution for phantom photos. This was copied from a post started by gail from maine
    Delete all of your Recently Deleted photos from your Recently Deleted folder
    Then go to Settings>General>Date & Time, and change the date back to last September when iOS 8 came out, and then go back to the Recently Deleted folder. Although at the Album level it will still say "0" if you tap on the Album, you will be greeted by all of the "Recently Deleted" photos that have surpassed the 30 day limit. Mine went back to when I installed iOS 8.
    She found this in a post where txforever  was the person that discovered how to do this.
    More photos in settings than photos app shows

  • Hi, i installed ios 5 for my iphone 4 and the camera function on lock screen was on the first few days , now it doesn't show the lock screen . is there any change i can do . Pls help me to solve the issue.

    hi, i installed ios 5 for my iphone 4 and the camera function on lock screen was on the first few days , now it doesn't show the lock screen . is there any change i can do . Pls help me to solve the issue.

    nishaadp wrote:
    ... it stucks with the apple logo ,  nothing works. Is anything i can do?
    See Here for
    Frozen or unresponsive iPhone

  • My iphone 4 ios 7.0.2 wont detect 3g even after i restored it to factory settings.its a software issue  Pls help . I tried using another phone ang 3g works though

    Pls help...my phone just stopped detecting 3g, i called my provider and said that its a software issue. I did try restoring it to factory settings but no luck. Anybody can help me pls.. I would gladly appreciate it :(

    Hi and i appreciate your help. Its been updated to 7.0.4 now but still no luck here :(

Maybe you are looking for