Performanc issue...help..

Hi all
i want to increase performance in one Existing program..this program is working fine but performance is very poor. we r indexing the required filed.
but i find some nested select  loop inside this program...
pls ,,suggest me how can i avoid this kind of nested select loop. instead of loop statement  can i user read statement  for avoiding the nested loop???
pls check the below code.
if any problem  within this logice  then change the code.
thanks in advance.
Indu
SORT it_but000 BY partner.
      LOOP AT it_ever INTO wa_ever.
        LOOP AT it_fkkvkp INTO wa_fkkvkp WHERE vkont = wa_ever-vkonto.
     READ TABLE it_but000 INTO wa_but000 WITH KEY partner = wa_fkkvkp-gpart
                                                       BINARY SEARCH.
          IF sy-subrc = 0.
            IF wa_but000-name_org1 IS INITIAL.
              CONCATENATE wa_but000-name_first
                          wa_but000-name_last
              INTO wa_final-cust_name SEPARATED BY space.
              CONDENSE wa_final-cust_name.
            ELSE.
              wa_final-cust_name = wa_but000-name_org1.
            ENDIF.
            wa_final-gpart = wa_fkkvkp-gpart.
MODIFY it_final FROM wa_final TRANSPORTING cust_name gpart WHERE vertrag = wa_ever-vertrag.
          ENDIF.
        ENDLOOP.
      ENDLOOP.
LOOP AT it_isu_data.
    LOOP AT it_iflot WHERE tplnr = it_isu_data-tplnr.
      wa_final-s_o_code = it_iflot-zwst_wtr.
      MODIFY it_final FROM wa_final TRANSPORTING s_o_code
      WHERE vertrag = it_isu_data-vertrag.
      CLEAR wa_final-s_o_code.
    ENDLOOP.
LOOP AT it_final INTO wa_final.
    LOOP AT it_erch WHERE vertrag = wa_final-vertrag.
     IF it_erch-vertrag = wa_final-vertrag.
      SELECT SINGLE tariftyp
                    branche
      FROM eanlh
      INTO (l_tariftyp, l_branche)
      WHERE ab <= it_erch-erdat AND bis > it_erch-erdat
      AND anlage = wa_final-anlage.
      IF sy-subrc = 0.
        wa_final-t_type = l_tariftyp.
        IF l_tariftyp IS NOT INITIAL.
          SELECT SINGLE ttypbez
          FROM ettat
          INTO l_ttypbez
          WHERE spras = sy-langu
          AND   tariftyp = l_tariftyp.
          wa_final-c_description = l_ttypbez.
        ENDIF.
        MODIFY it_final FROM wa_final TRANSPORTING c_description t_type. "sic_code
      ENDIF.
      CLEAR it_erch.
    ENDLOOP.
    CLEAR: wa_final, l_tariftyp, l_ttypbez, l_branche.
  ENDLOOP.
DATA : it_egerh TYPE STANDARD TABLE OF ty_egerh,
         wa_egerh TYPE ty_egerh.
  LOOP AT it_final INTO wa_final.
    LOOP AT it_erch WHERE vertrag = wa_final-vertrag.
      wa_comb-equnr = wa_final-equnr.
      wa_comb-erdat = it_erch-erdat.
      APPEND wa_comb TO it_comb.
      CLEAR wa_comb.
      CLEAR it_erch.
    ENDLOOP.
    CLEAR wa_final.
  ENDLOOP.
  IF  it_final[] IS NOT INITIAL.
    SELECT anlage
           logikzw
           bis
           preiskla
    FROM easts
    INTO TABLE it_easts
    FOR ALL ENTRIES IN it_final
    WHERE anlage = it_final-anlage.
    IF sy-subrc = 0.
      LOOP AT it_final INTO wa_final.
        LOOP AT it_easts INTO wa_easts WHERE anlage = wa_final-anlage.
          wa_final-m_size = wa_easts-preiskla.
          MODIFY it_final FROM wa_final TRANSPORTING m_size WHERE anlage = wa_final-anlage.
        ENDLOOP.
      ENDLOOP.

Hi Indu,
if u got Nested Loops then use PARALLEL CURSOR METHOD .
The performance will be very good.
Nested Loops – This is one of the fear factors for all the ABAP developers as this consumes lot of program execution time. If the number of entries in the internal tables is huge, then the situation would be too worse. The solution for this is to use parallel cursor method whenever there is a need for Nested Loop.
Program using Normal Nested Loop:
REPORT  ZNORMAL_NESTEDLOOP.
TABLES:
  likp,
  lips.
Data:
  t_likp  type table of likp,
  t_lips  type TABLE OF lips.
data:
  W_RUNTIME1 TYPE I,
  W_RUNTIME2 TYPE I.
START-OF-SELECTION.
select *
  from likp
  into table t_likp.
select *
  from lips
  into table t_lips.
get RUN TIME FIELD w_runtime1.
loop at t_likp into likp.
  loop at t_lips into lips where vbeln eq likp-vbeln.
  endloop.
endloop.
get RUN TIME FIELD w_runtime2.
w_runtime2 = w_runtime2 - w_runtime1.
write w_runtime2.
Nested Loop using Parallel Cursor:
REPORT  zparallel_cursor2.
TABLES:
  likp,
  lips.
DATA:
  t_likp  TYPE TABLE OF likp,
  t_lips  TYPE TABLE OF lips.
DATA:
  w_runtime1 TYPE i,
  w_runtime2 TYPE i,
  w_index LIKE sy-index.
START-OF-SELECTION.
  SELECT *
    FROM likp
    INTO TABLE t_likp.
  SELECT *
    FROM lips
    INTO TABLE t_lips.
  GET RUN TIME FIELD w_runtime1.
  SORT t_likp BY vbeln.
  SORT t_lips BY vbeln.
  LOOP AT t_likp INTO likp.
    LOOP AT t_lips INTO lips FROM w_index.
      IF likp-vbeln NE lips-vbeln.
        w_index = sy-tabix.
        EXIT.
      ENDIF.
    ENDLOOP.
  ENDLOOP.
  GET RUN TIME FIELD w_runtime2.
  w_runtime2 = w_runtime2 - w_runtime1.
  WRITE w_runtime2.
Analysis report: Runtime in microseconds: 
Iteration No ...... Normal Nested Loop ..... Using Parallel Cursor
1...................... 34,796,147 .........................63,829
2 ..................... 38,534,583 ......................... 56,894
3 ..................... 34,103,426 ......................... 50,510
Please check this link
http://www.****************/Tutorials/ABAP/ParallelCursor.htm
reward if helpful
raam.

Similar Messages

  • Hello.I wanted to upgrade my iPad 1 to iOS 5.1 Over the Air.I was running iOS 5.0.1.It said it had an error connecting to server.It is already 5 hours i cant install this update.I also have an iPhone 4 with iOS 5.0.1 with the same issues.Help please!

    Hello.I wanted to upgrade my iPad 1 to iOS 5.1 Over the Air.I was running iOS 5.0.1.It said it had an error connecting to server.It is already 5 hours i cant install this update.I also have an iPhone 4 with iOS 5.0.1 with the same issues.Help please!

    You're probably running into the servers simply being swamped. Thousands of people are all going for the software update at the same time. Give it a try again and if that doesn't work, then try plugging it into your computer and trying it that way.
    I didn't get a notion of the size, it doesn't seem to be as big as the 700 meg 5.0 update, but it did take me 20+ minutes to download via cable internet so it's a large file. That in and of itself takes a while.
    If you're trying to download it directly to your iPhone, you'll need to be on wifi since I'm sure it's well over the 20 meg file size limit for 3G.

  • Recently i upgrade my iPad2 to 7.1(11D167) and now the wifi connection is very weak, I am not sure if it is a hardware or software issue, help please!

    Recently i upgrade my iPad2 to 7.1(11D167) and now the wifi connection is very weak, I am not sure if it is a hardware or software issue, help please!

    I am not sure, I have full signal on my iphone 5  and just 1 dot on my ipad, tomorrow I will test connection with other router and network, I thank you for your help and I will tell you the test result when done

  • CS4 Text Wrap issue - HELP!

    HELP!  I taught myself PageMaker 6.5 and I got REALLY good at the basics, but not so great at the in-depth things.  Consequently, when I upgraded to InDesign CS4, the same holds true, so please feel free to treat me like a 2-year-old in your explanations.  Now for my dilemma:
    I create a quarterly magazine.  Most of the pages are 2- or 3-column spreads.  Many times, a photograph (and its caption) will span more than just one column, but not necessarily the entire width of two.  In other words, my photo could span all of column 1 and 1/2 of column 2, with the text flowing to the right of the photograph, then expanding to fill all of column no. 2 beneath it.  In PageMaker, when I text-wrapped around the pic, leaving enough bottom text wrap to insert my captioning, the text would wrap perfectly, keeping the text in perfect alignment horizontally across the columns.  That, in turn, kept the bottom edge of all my columns exactly equal. 
    In InDesign, however, that's not the case. The text doesn't align equally horizontally across the columns, hence ruining my clean horizontal text margin at the bottom.  This happens any time I have a photo that spans all of one and part of one (or two, in the case of a centered photograph) column.  In fact, even if I place a photo that fits within just one column, the horizontal text alignment gets screwed up.  I'm attaching a .pdf of page 35 of the issue I'm working on to show you what I mean.
    I've tried choosing all three columns and clicking the "align top edges," but that just drags all three columns up to the 1/2 inch margin at the top of the page, and my text actually starts 1/4" beneath that (3/4" from the top page edge) because of the page numbering, and when I drag all three columns back down to the 3/4" mark, the wrapping gets all screwed up again.  So I tried "align bottom edges," and that didn't work either (it worked to a point... anything that actually had text flowing to the bottom of the column was fine, the same thing occurred then above the column with a photo spanning all of it.  Geez, I'm confused just trying to explain it.  Hopefully, the attached .pdf will help make sense of this.  
    Consequently, I'm moving columns manually for this issue (all 60 pages of it), because it has to be at the printers by the end of the weekend and I'm just plain out of time.  If anyone can give me some guidance so I don't have to do this again next time, I'd really appreciate it.
    You can email me at [email protected] if you have any ideas. Thanks for your help.
    Barb

    Thanks so much to both Peter and Bob.  I'm sure this will fix the problem.  At least I know it wasn't something I was doing wrong and it really is a glitch in the program.  I'll play with the baseline grid, since it seems that will be the best option. I have a few months to experiment with it before the next issue goes to press.
    Does setting a preference act like a default?  In other words, will it then apply to all pages in all new documents I create or is it specific to the document in which I'm working when I set it? If the latter, I'm guessing I can just include it when I set up my master page so it will apply throughout the issue?  Which, of course brings me to yet another question: how do I save my Master Pages so I don't have to redo them with each issue?
    I'm finding that the majority of InDesign is a lot more user-friendly and easier to navigate than the old PageMaker -- many fewer steps for the same end result.  I hope to take a class if I can find one in my area, because I'm certain I'm doing many things the "hard way."  Learning as you go is okay, but you miss a lot of the finer points along the way and spend entirely too much time trying to figure things out or bugging people like you in this forum.
    I apologize if some of what I ask seems rather elementary. 
    And Scott, sorry, but I've always felt that, out of all the fonts available, Comic Sans is the most readable.
    Barb

  • DVR/STB/Remote issues - Help Needed

    New to Verizon FIOS (Installed about 2 weeks ago).  Have a few issues. Any help is appreciated
    1) When im on the Home Media DVR and i fast forward through a program, when i stop or hit play, an extremely loud beep that lasts for 1-3 seconds comes from the speakers.  How do i get this to stop, what is causing it, etc?
    2) When i fast forward from one of the STB (regular HD box), if i hit FF once, it fast forwards pretty slow, if i hit it again, it goes somewhat faster.  The problem is.  When i hit it that 2nd time, it seems that 70-80% of the time, it jumps me back to an early portion of the program.  I.E.  Was watching the 2 hour episode of "24", was one hour and 20 min in, got to commercials, i hit FF twice and it jumped me back to 23 minutes in.  Tried again at next commercial break and it jumped me back to 11 minutes in.  What is the deal here?  How do i fix it?
    3) Are there only 2 fast forward speeds on STB?  I came from Brighthouse that had 4 speeds, im a little disappointed with only 2 speeds.  Can anyone verify?
    4) The remotes seem to take 2 seconds or so to register when performing any function other than changing channels.  When i hit FF or REW, DVR or Last, it seems to take a few seconds to kick in.  Is this a known issue, or possibly my box or remotes?
    Thanks for any and all help

    Sorry the ff speeds are the same. On the main MR-DVR there are 3 ff speeds, where the remote STB has 2 ff speeds. I think they did that because how the remote system works, it has slower responses being remote. But with the update you will not need to worry about the ff, because you will not get the hub error. I was one of the first people to get the update and I have not seen the hub error yet.
    As far as a time frame I don't believe there is any thing public about it, I think the only thing they have said is it is going to be rolled out per market, and one market a week. But nothing on the order of the markets.  

  • Officejet Pro 8600 Plus connection issue - HELP!

    I have a strange issue:  after some hours, the communication link is dropped between the computer and printer.  When this happens, IE becomes unusable and will not connect to anything.  This is replicated on three XP home machines.   The fourth, a vista ultimate machine, does not seem to be affected (yet).  I get the "scan to computer is disabled" error.  It cannot be re-enabled.  At this point I cannot print either.  I can reach the embedded web server on the printer via firefox and can still surf using firefox.  I can ping the printer, but again once the connection is dropped, no printing or scanning to the computer.  The only thing I've found that resolves the issue (temporarily) is to reboot the computer, which just starts the cycle again.
    last night I installed the software on an XP machine and the laptop to test when the connection dropped.  They lasted from 7pm Monday until I got home at 5pm Tues.  The machines were not used.  Once I started using them (firefox only), then they dropped the connection within a half hour of each other around 7pm.  The other XP machine lasted from 7pm Mon until 7am tues, when my wife started using it and then noticed it dropped sometime that tues between 7 and 9AM.  An 11am tues reboot ran OK until 10 pm tues when connection was lost again (and IE is now dead).   The Vista machine has been running since 7pm monday until now (930pm tues) and still seems to be holding.
    printer hardwired, to router, static IP, 100-full link speed (also tried 10-half)
    router dlink di-655
    two XP machines are hardwired, vista is hardwired, and last xp machine is a laptop on wireless.
    I've swapped cables rebooted and reinstalled multiple times.  I must have a file a mile long on the support phone line.  They were unable to fix it.  I asked this to be escalated, but who knows when I'll get a response.
    I've toggled firewalls - XP built in
    I've uninstalled anti virus software
    I've even put up with crazy suggestions from tech support like changing the router channel (uhh, it is wired!)
    one xp machine had an AIO 4215 hooked via USB and the others printed to it via network, but the printer has been deleted from the networked machines.
    I can ping 127.0.0.1 which is supposed to indicate the tcp service is OK.
    I have not reset winsock .. I can see one machine being bad, but three????
    malware / virus scan shows no issues.  Again one maybe, but three??
    The only thing I can think of is that there is something in the XP networking stack that conflicts with the new 8600 software as hours pass.  Perhaps there is some polling operation that goes on then dies after some time, then it kills IE as it dies.
    When the printer works it is great, but rebooting is not a permanent solution to this.
    any suggestions would be greatly appreciated!!!!!!  I am stumped and so is tech support.  They are sending it to engineering, but who knows when they will respond.
    thanks in advance.
    This question was solved.
    View Solution.

    well it looks like I have a working solution  ... I downloaded a freeware file called process.exe .  I made a cmd file via notepad with the following contents:
    rem this is to keep the HP network printer communicating with the desktops
    rem
    process -k "hpnetworkcommunicator.exe"
    rem
    process -k "scantopcactivationapp.exe"
    rem
    "C:\Program Files\HP\HP Officejet Pro 8600\Bin\HPNetworkcommunicator.exe"
    rem
    Start "" "C:\Program Files\HP\HP Officejet Pro 8600\Bin\ScanToPCActivationApp.exe" -deviceID CNXXXX:NW -scfn "HP Officejet Pro 8600 (Network)"
    the XXXX is your printer serial number with an extra character or two.  Pull that number from the port tab after you pull up "properties" for the 8600 printer.
    This cmd file basically restarts the printer link.  It opens a command window that launches the program to re-establish the link.. then it closes the command window.   The launched program shows that the communication link is dead (just for a few seconds), but then it makes the connection... THEN you hit the close button and coninue your work until it dies again. 
    I may have it autorun every X hours if I can narrow down a good time.  Until then I have a shortcut on the desktop to "FIX HP LINK"   ...   I only had to do this for my XP machines, as the vista one seemed OK.
    What ticks me off is that I shouldn't have to do all of this diagnosis. It would be nice if there is a fix in the pipeline so the link stays stable al the time.  I've spent hours trying to figure this crap out.
    Anyhow, I hope the time I spent helps someone.  PS, thanks to the OJ6500 thread that had the info for the scantopcactivationapp.exe program.
    PS  ...  I'm still waiting for an engineer to contact me, if any HP employees are reading this.
    PSS  I haven't tried this without killing and restarting the hpnetworkcommunicator stuff, but it works for now.

  • Authorization issue - help request

    Hi guys,
    One of the consultants is having an authorization issue ( He is not abele to run a t-code)
    I ask him to run a su53 report and i am not sure how to proceed with this.
    Please help.
    Here are the details from the SU53 report.
    DISPLAY AUTHORIZATION DATA FOR USER VYXXXX
    User : VYXXX                       profile parameter authorization buffering    4
    Authorization Object: F_KNA1_GRP
    Description
    Authorization check failed:
          + Authorization object F_KNA1_GRP Customer Account Group Authorization
                Activity                                08
                Customer Account Group     ZM01
    Users Authorization Data :
          +  Authorization object F_KNA1_GRP Customer Account Group Authorization
                   Authorization  T-PD19002300
                  Authorization  T-UG39000900
                  Authorization  T-UG39001000
    Please help me guys what need to  be performed.
    Regards,
    Vamsi.

    Hi Vamsi,
    SU53 shows us the last failed authorization for a user. However, it might not only be the failed authorization object failed.
    Hence, "just to learn" , you can use transaction ST01 to enable and run a trace for particular users. Be sure to use in a test environment first, and with proper filters. (for a particular user only).
    Then check-> which auth object is failing.
    RC=4 means a object value is failing.
    RC=12 means an object is missing!
    Check, which tcode is calling that object and this tcode is present in which role. Then.........proceed.
    You can check the SAP documentation on running traces on the help portal of SAP.  I think you will find the answer yourself by troubleshooting more and may be massaging some test roles here and there!
    Likewise, if you are new to security, I would encourage you to start by reading some books on SAP security. Authorizations made easy is a good book to start with.
    Let me know if you have any questions
    EOD for me :P . take care
    Abhishek

  • Hi I have copied over my iTunes to a new PC and now there are songs missing and when try to re download on iTunes it says play. When you hit play it sends you off to search for a file that doesn't exist. When syncing it says 100 issues Help please

    Hi,
    I have just put my iTunes on a new laptop by hard drive method and some songs are not there. When I go into iTunes it's doesn't say download or purchase it says play.
    So you press play and it opens a separate box saying search for file which isn't there.
    I have read tons of stuff re this but still not got it fixed. It's not a HD issue because iTunes won't let me download it why ?
    Hopefully someone can help
    Thanks David

    Hey Davidl678,
    Thanks for the question. It sounds like you are unable to download the purchases from your purchase history, because iTunes believes the songs to be in your library. It may be necessary to delete the items from your library, then re-download from your purchase history. Before doing so, you may want to take note of which song are available for re-download:
    iTunes 11 for Windows: Delete songs, playlists, or other items
    http://support.apple.com/kb/PH12359
    iTunes 11 for Windows: Download previous purchases from the iTunes Store
    http://support.apple.com/kb/PH12491
    Thanks,
    Matt M.

  • Ipod Touch: My Issues, help needed as fast as possible

    Well recently i got an Ipod Touch 2nd Generation for christmas, and i must say i love it. But i have got some serious problems. 1) all applications that were not standard on the itouch crash unexpectedly and the only way to rectify this issue is to download something from the app store and they work again :S. Yes that is as bizarre as it sounds. Sometimes it will work fine and i can use any of my apps whenever i like. But frequently(more frequently as time goes on) the applications dont open, i touch them they open the background for the app and they take me back to the main screen. I have tried the following: reseting the iPod, restoring it to factory settings, uninstalling apps and then re-installing and this issue is resolute. I also happen to know that some other 2nd Generation Touch owners at my school have the very same issue. I have seen some threads dotted about explaining their issues that are similar to this, meaning its fairly widespread.
    My second issue is really bugging me, i opened the itunes store for the first time on my iPod(i never get any of my music from itunes normally i detest the application.) and all of a sudden it downloaded a podcast without me telling it to. It was called Podhead: The DoorWhores Off to vegas. This is something i really do not wish to have on my iPod. So i synced it to my windows OS and tried to re-sync the iPod's podcasts with my library so that it would dissappear. But it didn't, i then tried setting it to manually putting files on my ipod and alas it doesnt show up in the podcasts sub section of the device. I tried playing the podcast and it takes me to the home screen of my ipod with the Play triangle flickering constantly in the top right of my ipod. I don't know what is going on with that but i havnt restored it to factory settings after this issue, mainly because my iPod refuses to accept that i own all of the apps i have backed up and i have no desire to manually re-download them to my ipod.
    3) That last scentence brings me nicely onto my final problem which is this: my computer tells me that i do not have the authority to put onto my ipod. Despite all of them being free and despite all of them having being backed up from my ipod.
    Any help with these issues would be much appreciated. I am in desperate need of assistance before i come to the end of my tether and resign myself to a long trip to the nearest apple store. thanks in advance

    Sanga wrote:
    1) all applications that were not standard on the itouch crash unexpectedly and the only way to rectify this issue is to download something from the app store and they work again
    Did you try to restore your iPod to factory settings and add your apps one by one to find out which app causes the crash? Try not to restore from a backup it may contain the corrupt parts you don't want to install again.
    3) That last scentence brings me nicely onto my final problem which is this: my computer tells me that i do not have the authority to put onto my ipod. Despite all of them being free and despite all of them having being backed up from my ipod.
    Deauthorize and authorize your computer in iTunes, here's how to:
    http://support.apple.com/kb/HT1420

  • Basic tiger server printing to network printer issues - HELP :)

    Hi everyone, Im after some help as im running out of ideas, here is my basic setup: (sorry i have rambled on a bit
    current 192.168.0.x network that has ADSL, PC's HP Laserjet 5Si network printer.
    Connected to that is my Tiger server with 2 lan ports, one is connected to that network and the other connected to a switch where I run all my macs - the server is a basic file and software update server.
    macs connected to the server get a 192.168.2.x address and can access the internet and each other etc - all is happy.
    now - I had my personal macbook pro connected directly to the first network to access the printer, works fine and fairly quickly but was unable to access the server (i imagine because the server thinks i was from the big bad internet from the .0.x range
    once i connected to the other network served by the mac server i could access all the files fine but printing would not work, so i thought I would have the server access the printer as it has access to both networks and just share it to the local macs.
    well when i add it and put in the 192.168.0.71 address it connects and loads the GIMP HP5si driver, but when it tried to print it takes up to 5 mins to show that its finished, but only sometimes does the printer actually fire up, and the times it did it never printed the whole page...
    The only thing i can think of is that the server is trying to print to the .0.x address'ed printer but using the .2.x address range, possibly confusing the systems.., im not too familiar with all the firewall/NAT settings ,i think i have everything turned off, but its still not working..
    If anyone can help it would be greatly appreciated, im not sure what else to do.
    Thank you for your time

    This sounds more like a protocol or a driver issue rather than an addressing issue. Which protocol is being used to connect to the printer? You mention the GIMP driver gets loaded, which I read that it's an automatic function rather than you having to manually browse to the driver.
    Also, I would look at trying the Gutenprint drivers from Sourceforge rather than the included GIMP-Print.
    The other thing would be to check the cups error log on the server. It could give some clues as to why the spool file is taking so long.

  • SQL query, IF ELSE issue - Help.

    I am trying to migrate data from one table to another, however I am having problems trying to figure out a small issue in my Query.
    I'm using Oracle 11g, SQL Developer 3.0
    here is my old table
    CREATE TABLE PROD.RELATED_OFFENDERS
         CREATED_DATETIME DATE ,
         LAST_UPD_DATETIME DATE ,
         LAST_UPD_ID VARCHAR2 (30 BYTE) ,
         CREATOR_ID VARCHAR2 (30 BYTE) ,
         USSC_ID NUMBER (10) ,
         REL_ORG_ID NUMBER (10)  NOT NULL ,
         REL_ORG_NAME VARCHAR2 (100 BYTE) ,
         REL_IND_NAMES VARCHAR2 (100 BYTE) ,
         REL_DOCKET_NUM VARCHAR2 (7 BYTE) ,
         REL_LEVEL_AUTH NUMBER (2) ,
         REL_LEVEL_AUTH_TEXT VARCHAR2 (240 BYTE) ,
         SENT_TYPE_CODE NUMBER (2) ,
         INDICATOR VARCHAR2 (1 BYTE)
    ALTER TABLE PROD.RELATED_OFFENDERS
        ADD CONSTRAINT RO_PK PRIMARY KEY ( REL_ORG_ID ) ;New table
    CREATE TABLE USSC_CASES.CORP_RELATED_OFFENDERS
         REL_ORG_ID NUMBER (10)  NOT NULL ,
         SENT_ID NUMBER (12)  NOT NULL ,
         DEF_TYPE_CODE NUMBER (1) ,
         DEF_TYPE_NAME VARCHAR2 (100 BYTE) ,
         REL_DOCKET_NUM VARCHAR2 (7 BYTE) ,
         REL_LVL_AUTH NUMBER (1) ,
         REL_LVL_AUTH_TEXT VARCHAR2 (240 BYTE)
    ALTER TABLE USSC_CASES.CORP_RELATED_OFFENDERS
        ADD CONSTRAINT CORP_REL_OFF_PK PRIMARY KEY ( REL_ORG_ID ) ;In the old table you will notice i have the following attributes:
    REL_ORG_NAME VARCHAR2 (100 BYTE) ,
    REL_IND_NAMES VARCHAR2 (100 BYTE) ,
    In my new table I have both columns as one called DEF_TYPE_NAME VARCHAR2 (100 BYTE).
    what I'm trying to do is use the INDICATOR column VALUE (old table) for each row and say the following in SQL code:
    (if INDICATOR = 'I' then DEF_TYPE_NAME = the value of REL IND_NAMES
    else if INDICATOR = 'O' then DEF_TYPE_NAME = the value of REL_ORG_NAME) AS DEF_TYPE_NAME
    here is my query
    INSERT INTO USSC_CASES.CORP_RELATED_OFFENDERS
    SELECT
              RO.REL_ORG_ID AS REL_ORG_ID,
              S.SENT_ID AS SENT_ID,
              DECODE(RO.INDICATOR, UPPER(TRIM('I')), 1, 2) AS DEF_TYPE_CODE,
              AS DEF_TYPE_NAME, -- here is where I'm having issues.
                    RO.REL_DOCKET_NUM AS REL_DOCKET_NUM,
              RO.REL_LVL_AUTH AS REL_LVL_AUTH,
              RO.REL_LVL_AUTH_TEXT AS REL_LVL_AUTH_TEXT
    FROM      PROD.RELATED_OFFENDERS RO,
              PROD.SENTENCES S
    WHERE     RO.USSC_ID = S.CORPSENT_USSC_ID
    AND      RO.SENT_TYPE_CODE = S.SENT_TYPE_CODE
    AND          RO.SENT_TYPE_CODE = 1
    ORDER BY REL_ORG_ID;Thanks in advance for your help.

    INSERT INTO USSC_CASES.CORP_RELATED_OFFENDERS
    SELECT  RO.REL_ORG_ID AS REL_ORG_ID,
            S.SENT_ID AS SENT_ID,
            CASE RO.INDICATOR
              WHEN 'I' THEN REL_IND_NAMES
              WHEN 'O' THEN REL_ORG_NAME
            END AS DEF_TYPE_NAME,
            RO.REL_DOCKET_NUM AS REL_DOCKET_NUM,
            RO.REL_LVL_AUTH AS REL_LVL_AUTH,
            RO.REL_LVL_AUTH_TEXT AS REL_LVL_AUTH_TEXT
      FROM  PROD.RELATED_OFFENDERS RO,
            PROD.SENTENCES S
      WHERE RO.USSC_ID = S.CORPSENT_USSC_ID
        AND RO.SENT_TYPE_CODE = S.SENT_TYPE_CODE
        AND RO.SENT_TYPE_CODE = 1
      ORDER BY REL_ORG_ID;SY.

  • Adobe Media Encoder Issue Help

    Hello all,
    I am having an issue with Adobe Media Encoder that I am hoping to receive some help with.  I am rendering out some videos from Premiere and every time I render something larger than 1 GB, I receive this error message:
    "Adobe Media Encoder
    Could not write XMP data in output file."
    It has only started since the last update about a month ago, so any help would be greatly appreciated!
    Thanks again!

    Any help please?! Thank you!

  • CS3 Wont Open in Windows 7--AMD Processor Issue--HELP!

    After much, much searching I've found there's been a common issue with AMD Processors on Windows 7 and getting CS3 to run correctly. Apparently a patch was created, that fixed the problem for users with similar issues. But the links to those patches are no longer valid.
    I have no phone right now, chat aint working--and I can't email Adobe of course, soooo someone please...
    The forum I found with those links and explanations is here:
    http://www.sevenforums.com/software/25313-adobe-cs3-64-bit-ultimate-3.html
    From there, this pretty much describes it:
    "Just bought an HP Pavillion Elite with Windows 7 Home Premium and AMD processor.  Photoshop CS3 would install but would hang when accessed. Some forums  suggested that Photoshop CS3 is incompatible with this AMD processor and  Windows 7 (64-bit). I called HP and was told the software is  incompatible. I was just about to return my computer when I found this  forum. I downloaded and installed the patch. I then opened Photoshop  (for the thousandth time) and voila--it FINALLY opened!!!"
    I've also found many other isntances of this complaint with AMD Processors--Photoshop gets a window open then goes into Not Responding. All other applications don't open at all (but are visible in my task manager). So it's not really a Photoshop specific complaint but I'm placing it here.
    I've updated graphics card, changed the desktop theme to Classic, not Aero, tried running the programs in different compatibility modes, all to no avail.
    This patch these guys are mentioning has GOT to be it. Someone help me get back to work!!
    thank you all in advance.

    I had not tried "run as administator." What the hell is that?! I see where to do it and all, but honestly, these permissions
    /security/owner/administrator issues on Windows 7 are nothing short of ridiculous.
    Every time I think Microsoft may have finally done something right...
    I'll try that again down the road. For the moment, looks like Adobe Acrobat 8 is completely incompatible with Windows 7 and almst impossible to delete from the system. SO first task--restoring factory setttings.
    In the meantime I'll speak to that patch for Licenseing:
    Solution 1: I ran it, but didn't seem to do anything. There was no confirmation of a successful "install," or what you might call it. Secondly, when running again, I was never prompted to enter 0.
    Solution 2: I believe those settings were already set as described and so I couldn't really make any changes.
    Solution 3: Those folders don't exist, so couldn't do that one.
    For various other reasons I wasn't having luck with the next couple thanks to stupid permissions. I'll try again once I've gotten back up to speed.
    But yea, someone out there seems to have found a CS3 patch. Am I at least to presume that CS5 would def. work on my comp, and therefore, CS6 is a shoe-in?

  • BG image issues, help plz

    I am using Macromedia DW MX. I am having some issues with the
    background tiling and not centering behind the nav buttons. If you
    look behind the top row of nav buttons you can see the BG issue.
    The problem is bad with IE but worse with Firefox. Anyone have a
    fix for both?
    Thx
    Anyone help? [email protected]
    http://www.huntbackcountry.com/backpacks.htm

    This is the background image:
    http://www.huntbackcountry.com/PixForWeb/MtnHeader1top.gif
    doesn't appear to be tiling to me. The widith is 700px as
    wide as your
    table.
    What exactly are you trying to achieve?
    Nadia
    Adobe� Community Expert : Dreamweaver
    http://www.csstemplates.com.au
    - CSS Templates | Free Templates
    http://www.perrelink.com.au
    - Web Dev
    http://www.DreamweaverResources.com
    - Dropdown Menu Templates|Tutorials
    http://www.adobe.com/devnet/dreamweaver/css.html
    "Wayne Newell" <[email protected]> wrote in
    message
    news:e8737p$e5o$[email protected]..
    >I am using Macromedia DW MX. I am having some issues with
    the background
    >tiling
    > and not centering behind the nav buttons. If you look
    behind the top row
    > of nav
    > buttons you can see the BG issue.
    > Thx
    >
    > Anyone help? [email protected]
    >
    >
    http://www.huntbackcountry.com/backpacks.htm
    >

  • Mavericks MAJOR Issues - HELP URGENT

    Dear Sir,
    First of all below is my Macbook Pro specifications: 
    Processor 2.2GHz Intel Core i7
    Memory 16GB 1333 MHz DDR3
    Graphics Intel HD Graphics 3000 512MB
    Hard Disk 750 GB
    Software OS X 10.9
    Second below are my issues after Upgrading to Mavericks:
    1 - A REALLY noisy FAN while working on my macbook editing a single picture with PS CC or Lightroom.
    2- Inactive Memory drains my Memory Usage and I Slows down my laptop.
    3- I cannot Preview my Picture folder "All at .TIF format" Like before thus i have to Open them Via Preview which is taking ALOT Of time or via "Preview" - Yes all my TIF files are opened via Preview as a Default program but yet the Thumbnails not showing the preview pictures even though i have the tick on "Show Icon preview" .
    My Macbook pro is only 1 year old and i am really annoyed with all this as i have spent a huge MONEY on it! please i need help regarding the 3 issues above!

    Dear Sir,
    First of all below is my Macbook Pro specifications: 
    Processor 2.2GHz Intel Core i7
    Memory 16GB 1333 MHz DDR3
    Graphics Intel HD Graphics 3000 512MB
    Hard Disk 750 GB
    Software OS X 10.9
    Second below are my issues after Upgrading to Mavericks:
    1 - A REALLY noisy FAN while working on my macbook editing a single picture with PS CC or Lightroom.
    2- Inactive Memory drains my Memory Usage and I Slows down my laptop.
    3- I cannot Preview my Picture folder "All at .TIF format" Like before thus i have to Open them Via Preview which is taking ALOT Of time or via "Preview" - Yes all my TIF files are opened via Preview as a Default program but yet the Thumbnails not showing the preview pictures even though i have the tick on "Show Icon preview" .
    My Macbook pro is only 1 year old and i am really annoyed with all this as i have spent a huge MONEY on it! please i need help regarding the 3 issues above!

Maybe you are looking for