Formatted Search with DI  leads to a very slow performance - HELP....

Hello There
I have defined some formatted search in OPCH - everything is working fine.
I have added some logic to this form via the DI.(handlling 1 item press_event), and I get a very very slow performance - the ADDON-EXE jumps TO 230MEGA of memory, and entering values to each row in the tables/item in the form takes about 15 seconds.
Any suggestions?
RGDS
HAGAI

Hi Hagai,
Normally an addon written using the DI would take up 60-80MBs.
Are you filtering out all events except for the item press event for the form? If you are not filtering events then this can have quite a drastic affect on performance.
What logic have you got behind the press event? If the addon exe is ballooning out to 230MB then it suggests that there is either a problem with a memory leak or that an error is occuring in the code. I would recommend putting try/catch clauses at suitable places in the code and maybe specifically setting objects to null and calling the .NET garbage collector to try and minimise the potential for memory leaks.
Are you sure that it is the combination of the formatted search and the addon that is causing the problem, i.e. if you take away the formatted search but leave the addon do you still get poor performance or does everything speed up?
Hope this helps,
Owen

Similar Messages

  • Create a Formatted Search with SDK?

    Hi,
    Is it possible to create an Formatted Search with the SDK? With which API???
    Thanks for Help
    Thorsten

    Hi Thorsten,
    Nowadays, there is not any standar way to do this. An approach could be to search for the tables where Formatted Searches are stored which are some.
    If you are interested, we have developed a tool that is used to carry personalizations such us Literals, Formatted Searchs, Querys, Document Editings, User Reports, UDF and UDT. It has been very helpfull for us, and we are planning to sell it to other partners. If you are interested send me an email to [email protected]
    Regards,
    Ibai Peñ

  • Formatted search with Query auto update

    hi all,
    I have created 2 UDF's at title level in marketing document, and assigned Formatted search with query to it with auto refresh when posting date field changes. One UDF gets updated automatically and the other one doesnt.
    any one can guide me on this.
    regards
    salman
    Edited by: Rui Pereira on Aug 8, 2008 11:47 AM

    Hello Salman,
    I took the effort to understand you question but I am not quite sure if I have all the pieces of the puzzle yet.  I can see Jeyakanthan has already grilled you with questions and you have answered all of them.
    UDF1 - is this se to Auto Refresh - Refresh regularly - on Posting Date?
    UDF2 - On which field is this set to Auto refresh?
    UDF3 - On which field is this set to Auto refresh?
    One thing to note when you have two fields with FMS and the second one dependent on the value of the first, the second one does not auto refresh because it cannot detect the Field change on the First UDF.
    This is probably what you are experiencing.
    If you don't mind I would like to understand the business reason for the 3 UDF's and what each one is for. There might be other options to look at to achieve the same result.
    Let me know
    Suda

  • Formatted Search with like

    I'am tring to do a Formatted Search with this: SELECT     DISTINCT T0.Code, T0.Name
    FROM         T0 LEFT OUTER JOIN
                      ORDR ON T0.Name = ORDR.U_PDischar WHERE T0.Name Like '$[ORDR.U_PDISCHAR] %%' ORDER BY T0.Name
    but it not work any help... thanks
    Message was edited by: Juan F Vásquez

    Hi,
    This worked for me:
    SELECT DISTINCT T0.Code, T0.Name
    FROM T0 LEFT OUTER JOIN
    ORDR ON T0.Name = ORDR.U_PDischar WHERE T0.Name
    Like $[ORDR.U_PDISCHAR] + '%%'  ORDER BY T0.Name
    Not whit this same fields, but with others.
    Hope helps,
    Ibai Peñ

  • Have 2009 time capsule  with 6 month old iMac  very slow cox said i needed to replace with a new time machine with newer wifi ??

    have 2009 time capsule with 6 month old iMac  very slow  ...cox said to replace with new router or extreme with new wifi ???? confused

    Replace the Time Capsule with a new one or replace your router with an Airport Extreme Base Station that has faster Wi-Fi. Or you could just connect your old Time Capsule using an Ethernet connection from the Time Capsule to the computer's Ethernet port.

  • Since I've up-dated iPad 2 with IOS7, the typing is very slow. What should I do ?

    Since I've up-dated iPad 2 with IOS7, the typing is very slow. What should I do ?

    (A) Reset all settings
    Settings>General>Reset>Reset All Settings
    Note: Data will not be affected but settings will be reset.
    (B) Go to Settings>iCloud>Turn off Documents & Data>Restart your iPad.

  • Acrobat very Slow performance (50% CPU usage)

    My acrobat 9 PRO (9.3.2) has suddently started to use 50% of my CPU usage everytime a *.pdf document is opened.
    It is the task Acrobat.exe which is the problem. This results in VERY slow performance and I cannot use the review function without adobe is crashing!
    This has not always been a problem!
    Does anyone know why this is happening?
    I have tried to uninstall and reinstall acrobat, without any luck!
    Thanks
    Peder

    You probably have the same problem as I do. I use version 9.3.3 on a fairly powerful machine with Windows vista. In my case, the problem is related to the weblink.api (http://forums.adobe.com/thread/675941?tstart=0). I also uninstalled, reinstalled, repaired - nothing helps.

  • InDesign CC 2014 very slow performance when dragging images and changing text

    InDesign CC 2014 very slow performance when dragging images and changing text.
    Running on 2010 Macpro 2.4GHz. 8GB RAM. Any solutions? I've read through many forums on this and tried several fixes.

    Have exact same issue on  my Windows 7 machine. Resetting preferences is a workaround.
    So I start InDesign whilst holding down these keys.
    Ctrl + Alt + Shift (Windows) or Cmd + Ctrl + Opt + Shift (Mac)
    Whilst inDesign is usable again with this fix- I have to do it every time so it trashes all my preferences so NOT GOOD long term fix. Otherwise InDesign freezes and can only be stopped by forcing a quit.
    I have manually deleted the preference files and I have created a brand new admin account - but still no luck - will be onto support tomorrow

  • E50 very slow performance

    my E50 is giving very slow performance anyway to tune it up ?? dosn't hangs but its slow ?? any solution ps whats the best antivirus to install in E50 ?

    I don't use your same workflow, and I assume you're shooting RAW. However,  after I have built 1:1 previews in LR (which takes a LONG time), when I click on a file to decide if it's sharp or not, it still takes 5-10 seconds for each file to load. And my computer isn't slow, and I have the same issue on my laptop, which is new and fast. I haven't seen a satisfactory answer to this problem, nor much acknowledgement from Adobe. My files are from a Nikon D7100 with 24 megapixels, so the file size is likely a factor.
    If you are shooting the type of subjects where you use 1:1 previews primarily to determine sharpness, you could consider Photo Mechanic (unfortunately it costs $150) as the first step in your workflow. It uses the embedded jpg files in the RAW file, so it loads 1:1 jpg previews almost instantly. Sports and nature photographers use this product all the time, mostly to delete losers.

  • Very slow performance, need assistance

    I have a program that has very slow performance (and I mean SLOW).  I was hoping somebody could tell me how to improve the performance.  I know where it hangs up (at LOOP AT it_detail INTO wa_detail.) but I'm not sure what I need to do to make it quicker.  Any help would be appreciated.
    TABLES: vbak,
            vbpa,
            adrc.
    TYPES: BEGIN OF ty_detail,
             vbeln TYPE vbak-vbeln,
             erdat TYPE vbak-erdat,
             vdatu TYPE vbak-vdatu,
             adrnr TYPE vbpa-adrnr,
             sa_name TYPE adrc-name1,
             sa_street TYPE adrc-street,
             sa_city TYPE adrc-city1,
             sa_state TYPE adrc-region,
             sa_zip TYPE adrc-post_code1,
             sa_tel TYPE adrc-tel_number,
             kunnr TYPE vbpa-kunnr,
             ag_name TYPE kna1-name1,
             ag_street TYPE kna1-stras,
             ag_city TYPE kna1-ort01,
             ag_state TYPE kna1-regio,
             ag_zip TYPE kna1-pstlz,
             ag_tel TYPE kna1-telf1,
             vkbur TYPE knvv-vkbur,
             we_num TYPE likp-kunnr,
             we_name TYPE kna1-name1,
             we_name2 TYPE kna1-name2,
             we_street TYPE kna1-stras,
             we_city TYPE kna1-ort01,
             we_state TYPE kna1-regio,
             we_zip TYPE kna1-pstlz,
             we_tel TYPE kna1-telf1,
           END OF ty_detail.
    DATA: it_detail TYPE TABLE OF ty_detail WITH KEY vbeln adrnr kunnr we_num,
          wa_detail LIKE LINE OF it_detail.
    DATA: addressnum TYPE vbpa-adrnr,
          temp_kunnr TYPE likp-kunnr.
    * S E L E C T I O N - S C R E E N
    SELECTION-SCREEN BEGIN OF BLOCK required WITH FRAME TITLE text-002.
    SELECT-OPTIONS:  s_vdatu FOR vbak-vdatu OBLIGATORY.    "Req delivery date
    SELECTION-SCREEN END OF BLOCK required.
    SELECTION-SCREEN BEGIN OF BLOCK temp WITH FRAME TITLE text-001.
    SELECT-OPTIONS:  s_auart FOR vbak-auart OBLIGATORY.
    PARAMETER:  p_parfun TYPE vbpa-parvw DEFAULT 'Z5' OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK temp.
    *INITIALIZATION.
    *  REFRESH s_auart.
    *  CLEAR s_auart.
    *  s_auart-sign = 'I'.
    *  s_auart-option = 'EQ'.
    *  s_auart-low = 'OR'.
    *  APPEND s_auart.
    *  s_auart-low = 'ZDT'.
    *  APPEND s_auart.
    * END OF SELECTION SCREEN
    * M A I N - B O D Y
    *Main select statement.
    SELECT a~vbeln a~erdat a~vdatu c~adrnr c~kunnr
        INTO CORRESPONDING FIELDS OF TABLE it_detail
        FROM vbak AS a
          INNER JOIN vbap AS b
              ON b~vbeln = a~vbeln
          INNER JOIN vbpa AS c
              ON c~vbeln = b~vbeln
    *          AND c~posnr = b~posnr
                   WHERE a~auart IN s_auart
                   AND a~vdatu IN s_vdatu
                   AND c~parvw = p_parfun.
    LOOP AT it_detail INTO wa_detail.
      SELECT SINGLE name1 street city1 region post_code1 tel_number
          FROM adrc INTO (wa_detail-sa_name, wa_detail-sa_street, wa_detail-sa_city, wa_detail-sa_state,
                            wa_detail-sa_zip, wa_detail-sa_tel)
          WHERE addrnumber = wa_detail-adrnr.
      SELECT SINGLE name1 stras ort01 regio pstlz telf1
          FROM kna1 INTO (wa_detail-ag_name, wa_detail-ag_street, wa_detail-ag_city, wa_detail-ag_state,
                            wa_detail-ag_zip, wa_detail-ag_tel)
          WHERE kunnr = wa_detail-kunnr.
      SELECT SINGLE c~kunnr INTO temp_kunnr
          FROM vbpa AS a
              INNER JOIN lips AS b
                ON b~vgbel = a~vbeln
              INNER JOIN likp AS c
                ON c~vbeln = b~vbeln
                WHERE a~vbeln = wa_detail-vbeln.
      wa_detail-we_num = temp_kunnr.
      SELECT SINGLE name1 name2 stras ort01 regio pstlz telf1
          FROM kna1 INTO (wa_detail-we_name, wa_detail-we_name2, wa_detail-we_street, wa_detail-we_city, wa_detail-we_state,
                            wa_detail-we_zip, wa_detail-we_tel)
          WHERE kunnr = wa_detail-we_num.
      SELECT SINGLE vkbur FROM knvv INTO wa_detail-vkbur
          WHERE kunnr = wa_detail-kunnr.
      MODIFY it_detail FROM wa_detail.
    ENDLOOP.
    PERFORM display.
    INCLUDE zpartner_displayf01.
    Regards,
    Davis

    Hi Davis,
      The culprit is the select inside the loop.
    YOu should use for all entries instead .
    I will show for one select, you do similar thing for others:
      SELECT addrnumber name1 street city1 region post_code1 tel_number
          FROM adrc INTO table itab_adrc
    for all entries in it_detail
          WHERE addrnumber = it_detail-adrnr.
    sort itab-adrc by addrnumber.
    LOOP AT it_detail INTO wa_detail.
    read table it_adrc with key addrnumber = wa_detail-adrnr.
    if sy-subrc = 0.
    move fiedls of it_adrc into wa_detail.
    endif.
    ENDLOOP.

  • Very slow performance in Lightroom 3??

    I just upgraded to Lightroom  3.0 and I am very suprised how slow it is!?!  I don't have a very large library and I'm on two reasonably new computers yet the difference from Lightroom 2 (snappy performance) to Lightroom 3 (VERY sluggish) is quite suprising..
    I'm using it on a XP and a Vista system with the same results...
    Is anyone else experiencing this???
    Thanks,
    Ken

    I've noticed a slow down in performance with Lightroom 3 as well. As far a looking around the forum for older threads, ...found older lightroom 1 and 2 threads.
    Your Title "Very Slow Performance in Lightroom 3??" fits what I'm looking for just perfectly.
    Jim

  • Lion: very slow performance of my macbook pro

    very slow performance.
    went to terminal, did the top command, and got following results (mind you, ONLY have Safari and of course Terminal open):
    Processes: 96 total, 4 running, 9 stuck, 83 sleeping, 419 threads      19:07:17
    Load Avg: 1.99, 1.81, 1.59  CPU usage: 2.36% user, 5.21% sys, 92.41% idle
    SharedLibs: 1660K resident, 0B data, 0B linkedit.
    MemRegions: 15947 total, 2662M resident, 47M private, 209M shared.
    PhysMem: 695M wired, 2175M active, 1083M inactive, 3953M used, 13M free.
    VM: 250G vsize, 1093M framework vsize, 699065(68) pageins, 1724738(881) pageouts
    Networks: packets: 70104/55M in, 66648/10M out.
    Disks: 966630/9347M read, 327765/18G written.
    PID   COMMAND      %CPU  TIME     #TH  #WQ  #POR #MREG RPRVT  RSHRD  RSIZE
    4058  top          5.2   00:03.32 1/1  0    28   29    912K   216K   1620K
    4055  bash         0.0   00:00.02 1    0    20   23    356K   216K   1112K
    4052  CVMCompiler  0.0   00:00.30 1    0    30   69    7780K  220K   16M
    4051  login        0.0   00:00.08 2    1    33   63    928K   216K   2184K
    4049  Terminal     0.3   00:01.34 7    3    128+ 164+  7580K+ 13M    15M+
    4042  ocspd        0.0   00:00.02 1    0    26   33    420K+  276K   1376K+
    4041  WebProcess   0.0   00:04.35 7    3    119  201   16M-   10M    26M-
    4039  Safari       1.1   00:09.44 12   3    193  413   47M-   20M    81M-
    3958  spindump_age 0.0   00:00.02 2    2    38   55    356K   220K   1100K
    3956  spindump     1.3   00:42.93 16/1 13   228  145   46M+   15M    53M+
    3953  aosnotifyd   0.0   00:00.18 3    1    53   279   2064K  3532K  6156K
    3939  AddressBookM 6.8   06:59.11 4    1    68   4067+ 2131M- 3308K  1554M-
    3895  lsboxd       0.0   00:00.06 2    2    49   69    1156K  6820K  3292K
    3031  cookied      0.0   00:01.36 2    1    42   82    2028K  268K   3
    every minute or so the computer blocks, every 3 or 4 hours I have to restart etc.
    any suggestions?

    ok, stopped syncing in System preferences and even (horror) deleted the file which reappeared in seconds.
    now waiting to see if stopping the syncing helps - though computer is now working a bit better, the info on Activity Monitor would indicate it is not a real improvement
    473           AddressBookMobileMeSharingAgent          me          1,4          4          1.020,0 MB          Intel (64 bit)
    312           helpd          me          0,4          65          358,9 MB          Intel (64 bit)
    0           kernel_task          root          1,1          76          336,6 MB          Intel (64 bit)
    459           Mail          me          0,4          9          276,2 MB          Intel (64 bit)
    194           java          root          0,1          30          162,4 MB          Intel (64 bit)
    405           Safari          me          0,5          12          120,0 MB          Intel (64 bit)
    407           Safari Web Content          me          0,2          7          100,3 MB          Intel (64 bit)
    195           WindowServer          _windowserver          0,5          7          64,4 MB          Intel (64 bit)

  • Formatted search with UDF and syntax question

    Can you explain the syntax with when to use the dollar sign and negative in writing a query for a formatted search based on user entry?
    I now want to create a formatted search to pull values based on the user's entry into a UDF on the item master screen.
    User entry into UDF U_Customer Code
    to create Formatted search for UDF U_Rep01
    I tried the following, but it does not work.
    SELECT T0.U_REP01 FROM dbo.OCRD T0
    WHERE T0.CARDCODE = $http://$OITM.U_CUSTOMERCODE
    Thanks.
    Please advise.

    The right syntax would be like this:
    SELECT T0.U_REP01 FROM dbo.OCRD T0
    WHERE T0.CARDCODE = $[OITM.U_CUSTOMERCODE\]
    However, the logic of query may not be correct.  Select something must be already in the system and Where should also be locatable.
    Thanks,
    Gordon

  • Format search with operation (+ - * /)

    HI people, i have this format search working perfectly:
    SELECT DISTINCT
    CASE WHEN (T3.ITEMCODE= $[$38.1.0] AND T3.PRICE > $[$38.14.number] AND $[$38.14.number]>0)
    THEN '1'
    ELSE '0'
    END
    FROM OCRD T1
    INNER JOIN ITM1 T3
    ON T1.LISTNUM = T3.PRICELIST AND T3.ITEMCODE=$[$38.1.0]
    WHERE T1.CARDCODE= $[$4.0.0]
    But i need sum a % in $38.14, so i did the next:
    SELECT DISTINCT
    CASE WHEN (T3.ITEMCODE= $[$38.1.0] AND T3.PRICE > ($[$38.14.number]*1.20) AND $[$38.14.number]>0)
    THEN '1'
    ELSE '0'
    END
    FROM OCRD T1
    INNER JOIN ITM1 T3
    ON T1.LISTNUM = T3.PRICELIST AND T3.ITEMCODE=$[$38.1.0]
    WHERE T1.CARDCODE= $[$4.0.0]
    But this not work......how can i sum a % ???

    Ok, works with this:
    SELECT DISTINCT
    CASE WHEN (T3.ITEMCODE= $[$38.1.0] AND T3.PRICE > ($[$38.14.number]/(0.80)) AND $[$38.14.number]>0)
    THEN '1'
    ELSE '0'
    END
    FROM OCRD T1
    INNER JOIN ITM1 T3
    ON T1.LISTNUM = T3.PRICELIST AND T3.ITEMCODE=$[$38.1.0]
    WHERE T1.CARDCODE= $[$4.0.0]
    My problem was that no quit FS from field, i meaning i must quit and the put again the FS to take the changes.

  • Formatted Search with multiple conditions

    Hi experts,
    I am using a formatted search to update the Unit price in Sales Order. Query mentioned below.
    Select      T0.ItemCode,
                   T0.ItemPrice,
    From        ITM1 T0 inner join OPLN T1 on T0.PriceList = T1.ListNum
    Where      T0.ItemCode = '[$38.1.0]'
         and     T1.u_location = '$[$38.2000002049.0]'
    But while adding Item on Sales Order, it is showing error, Incorrect Syntax near  '$[$38.2000002049.0]'.
    Note: I have added an UDF named U_LOCATION( Alphanumeric, 10) in OPLN and selecting location in Price List through another FMS which is working perfectly.
    Please help in this regards.
    Thanks in Advance.
    Nabyendu

    Hi Nabyendu Saha..
    You said the u_location as alphanumeric the why you have given 0 for the field type in the FMS...
    Select      T0.ItemCode,
                   T0.ItemPrice,
    From        ITM1 T0 inner join OPLN T1 on T0.PriceList = T1.ListNum
    Where      T0.ItemCode = '[$38.1.0]'
         and     T1.u_location = '$[$38.2000002049]'
    or
    Select      T0.ItemCode,
                   T0.ItemPrice,
    From        ITM1 T0 inner join OPLN T1 on T0.PriceList = T1.ListNum
    Where      T0.ItemCode = [$38.1.0]
         and     T1.u_location = $[ordr.u_location]
    Try the above , hope helpful
    Regards,
    Kennedy

Maybe you are looking for

  • BAPI_SALESORDER_CREATEFROMDAT2 and FI/FM checks

    Hi, i am using BAPI_SALESORDER_CREATEFROMDAT2 to create sales orders.  I added field cost center to the item segment.  When i post  against a blocked cost center i do not get an error.  I should be getting an error that the cost center is blocked for

  • Horn section drops out in Garageband '11? (6.0.4)

    Some of the software instruments, such as pop horns, drop out after a measure or so, depending on how high a note its playing.  It seems like garageband was trying to make it sort of realistic but its very annoying.  Does anyone know how to stop it f

  • Pictures not showing up in iPhoto - though it says they are there

    I've got a roll that says it has 22 items in it - 5 movies and the rest photos. ONLY the movies show up. If I go into the actual folder in the Finder the photos are there. Any idea why they aren't visible in iPhoto? All of the other rolls are working

  • Mail attachment can't read

    Hello we have problem with mail after we got the new update Ios6 for Ipad3, Mail attachment can't read all info when receiving in xcl document dates show 0000.All IPad 3 don't work. Please any one have the same problem?Or any fix available.Thanks.Sac

  • DB2 Connect OTD problem in JCAPS 6

    Hi, I am getting the error "could not locate jdbc driver com.ibm.db2.jcc.db2driver" Where do i need to place the DB2 jar files?? Regards, Munaf