Sometimes closeRecordStore() takes a lot of time while executing.

I simply delete a record from the recordStore and close it, but sometime recordstore cloosed in fraction of second and sometimes it takes a lot of time(1-2 min).

RecordStore rsImageData = null;
          try {
rsImageData =
a =
RecordStore.openRecordStore(RSIConst.RS_IMAGE_DATA,
                         false);this means if recordstore doesn't exists don't create it
               if (rsImageData.getNumRecords() == 1) {
                    rsImageData.closeRecordStore();
                    RecordStore.deleteRecordStore(RSIConst.RS_IMAGE_DA
TA);//and here you are deleteing it !
                    Const.htOfflineDataTable.clear();
                    Const.htOfflineDataTable = null;
               } else {
                    rsImageData.deleteRecord(p_offlineDataIndex);
                    rsImageData.closeRecordStore();
          } catch (Exception e) {
Thanks,
Ashishso either pass true in ur parameter while creating it
or don't delete it

Similar Messages

  • How to debug a background task that takes a lot of time to execute

    My workflow consists of a background task which takes a significant amount of time to execute completely. I have executed the BO method from SWO1 and it works fine.. takes just few secs to execute.
    But when this method is executed through workflow as a background task, it takes more than 20 mins to execute.
    What can be the possible causes and how do I debug this.

    Dear Tiyasha,
    You can debug your task even if it is a back ground task.
    The process is as follows :
    The place where want to place your break point put an infinite while loop just before your actual code.Now execute your workflow , now go to sm54 there u will find your entry and from here you can go to the debugger .In the debugger make the value of the while loop to be true so that u can proceed.
    Here u will able to debug it properly.
    Regards,
    Geet

  • Table switch procedure takes a lot of time to execute

    Hi Experts,
    We have over 50,00,000 entries in SXMSPMAST table. When the archive and delete jobs completed, the number of entries in this table did not reduce much. So, I tried activating the switch procedure. The job that copies the content from SXMSPMAST to SXMSPMAST2 executed for about 4 days and then cancelled with the error.
    Now the situation is that SXMSPMAST table contains around 50,00,000 entries and SXMSPMAST2 contains around 8,00,000 entries. In SXMB_MONI -> Job Overview, I clicked on the button "Reschedule Terminated Copy Job" to start the cancelled job again. The copy job was restarted, it copied around 8,00,000 entries to SXMSPMAST2 table and terminated again with the error.
    Now we have around 50,00,000 entries in SXMSPMAST and around 16,00,000 entires in SXMSPMAST2.
    Please let me know how can I handle this situation? If it goes on like this, SXMSPMAST will never be cleared and SXMSPMAST2 will keep on growing. Please help.
    (SXMSPMAST2 is the current active table)
    - Netrey

    I think the first thing to do at this point is to try and complete the switch procedure. To help with this you can implement the parameter MOVE_INSTEAD_OF_COPY as per the note #1056749. This will ensure that after each message is copied to SXMSPMAST2 it will then be deleted from SXMSPMAST. Without this parameter messages are only deleted from SXMSPMAST after the switch procedure completes and the table is dropped.
    Alternatively you can flag the messages as logically deleted as per the note #1568401 'Flag messages as logically deleted during switch run'.
    After this you would need to look at why the delete procedure did not delete many messages from the system, the switch procedure will not delete any more messages than the delete procedure.
    You can run the report RSXMB_SHOW_REORG_STATUS, this details the number of messages that are eligible for archiving and deletion, i.e outside of retention period.
    You can also run the report RSXMB_SHOW_STATUS, this shows the number of messages assigned to each message and adapter status. Please note that only messages with a final message and adapter status. See section 5.k of the note #872388 '  Troubleshooting Archiving and Deletion in PI'.
    You can check the what each message status means by checking the table SXMSMSTATT.

  • Script Logic taking a lot of time to execute

    Hi,
       I have a script logic which does the currency translation
    But it takes a lot of time to execute the same. can anyone suggest me to write a effective script logic to reduce the
    performance .
    I am using the input schedule that uses the script logic to execute with 6000 records.
    below is the script logic
    *LOOKUP RATE
       *DIM R_ACCT=[ACCOUNT].RATETYPE
       *DIM FX_LC1:R_CURRENCY ="LC1"
       *DIM FX_LC2:R_CURRENCY ="LC2"
       *DIM FX_LC3:R_CURRENCY ="LC3"
       *DIM FX_LC4:R_CURRENCY ="LC4"
       *DIM FX_LRC:R_CURRENCY ="LRC"
       *DIM R_ENTITY                     =GLOBAL
       *DIM SCENARIO                   =[SCENARIO]
       *DIM TIME                            =[TIME]
    *ENDLOOKUP
    *WHEN ACCOUNT.RATETYPE
    *IS "AVG","END"
       //TRANSLATE
       *WHEN CURRENCY
       *IS LC1
           *WHEN COMPANY.LC1
           *IS <> "NUL"
                *REC(FACTOR=LOOKUP(FX_LC1),CURRENCY=USD)
                *REC(FACTOR=LOOKUP(FX_LC1)/LOOKUP(FX_LRC),CURRENCY=LRC)
           *ENDWHEN
       *IS LC2
           *WHEN COMPANY.LC2
           *IS <> "NUL"
                *REC(FACTOR=LOOKUP(FX_LC2),CURRENCY=USD)
                *REC(FACTOR=LOOKUP(FX_LC2)/LOOKUP(FX_LRC),CURRENCY=LRC)
           *ENDWHEN
       *IS LC3
            *WHEN COMPANY.LC3
            *IS <> "NUL"
                *REC(FACTOR=LOOKUP(FX_LC3),CURRENCY=USD)
                *REC(FACTOR=LOOKUP(FX_LC3)/LOOKUP(FX_LRC),CURRENCY=LRC)
            *ENDWHEN
       *IS LC4
            *WHEN COMPANY.LC4
            *IS <> "NUL"
                 *REC(FACTOR=LOOKUP(FX_LC4),CURRENCY=USD)
                 *REC(FACTOR=LOOKUP(FX_LC4)/LOOKUP(FX_LRC),CURRENCY=LRC)
            *ENDWHEN
       *IS LC_USD
          *REC(FACTOR=1,CURRENCY=USD)
          *REC(FACTOR=1/LOOKUP(FX_LRC),CURRENCY=LRC)
       *ENDWHEN
    *ENDWHEN
    *COMMIT
    Kindly help as soon as possbile
    Edited by: Deepak_Hegde on Feb 2, 2012 4:58 PM

    Why wouldn't you use standard functionality with *RUN_PROGRAM CURR_CONVERSION?
    You'll have to call it multiple times since you want to translate into different currencies, but I think it will still be faster than this script.

  • It takes a lot of time to start up the imac. Sometimes more than 5 minutes.

    Hi people, sometimes my imac 21" (late 2011), takes a lot of time to startup the whole operation system, sometimes it takes more than 5 minutes. I really don´t know if it´s linked to the fact that since I got this imac, I´ve never updated it.
    What can It be? Thanks.

    this won't answer the slowness of your mac but i would like to suggest something for you if i may. i was also frustrated at how slow my late 2012 21.5" imac was from the box, this is what i did.
    didnt want to tear my mac apart to swap the int. hdd so i purchased a lacie rugged ssd and connected via thunderbolt, the difference was amazing, from powering up to surfing the net.......8 seconds!
    from the "gong" to desktop 4 seconds!  there is no cog while it loads!
    my advice, get an external thunderbolt enclosure, it doesnt have to be lacie, there are loads out there, and bang a ssd in it.  

  • WHY IT TAKES LOT OF TIME WHILE STARTING MAC, WHY IT TAKES LOT OF TIME WHILE STARTING MAC

    wht it takes lot of time while starting mavbook pro???

    abhishek138,
    not knowing anything about your MacBook Pro, no one can say. Please provide additional information about it — which model it is, which version of OS X is installed on it, how much RAM it has, what capacity internal disk it has, and how much free space it currently has.

  • Quicktime takes a lot of time to open after last Quicktime or iTunes update

    I have actually no big problems, but its a bit annoying that Quicktime Player takes a lot of time (maybe twice as before) for opening a Quicktime file (mp3 or video file, it doesnt matter).. I think this situation arised after the last Quicktime update or the update before this I dont know for sure. I think the last Quicktime update.. I am using the latest Quicktime which is 7.6 and its Tiger (10.4.11). When Quicktime Player is not opened, and its getting opened for the first time by clicking for instance on a mp3 file, it takes more then 10 seconds to open up, when I click the file Quicktime Player bounces normally as always but then the spinning rainbow beachball is shown for more then 10 seconds before the player window appears. There is no delay when I go open a mp3 from another mp3. The delay occurs only when Quicktime Player is not opened yet (quit/closed) and you click on a Quicktime file then the delay happens during the opening of the player.. Sometimes it doesnt even open the file I clicked, but only Quicktime Player so I have to click the same file again..
    What I tried is :
    deleted all Quicktime player preference files.. Didnt help
    removed all plugins from the Quicktime library.. Didnt help either
    What could the problem possibly be? What can I do to recover it except for installing my system all over again? Will Apple fix this problem with the next update?
    PS: I dont exclude that the latest iTunes update (8.1) can be a cause of this problem. Do you know if the iTunes update also changed/updated something regards Quicktime (Player)?

    Why is an Archive & Install not an option for you? It does NOT delete your applications or your settings, and is NOT the same as an Erase & Install which does.
    In my opinion it will be the only way to get your old G3 working properly again.
    How to Archive & Install:
    http://docs.info.apple.com/article.html?artnum=107120
    This document explains how to correctly reinstall a prior version of Mac OS X in the event that other troubleshooting does not resolve an issue:
    http://docs.info.apple.com/article.html?artnum=25404
    BUT: Don't install older versions of Mac OS than what comes with your computer:
    http://support.apple.com/kb/HT2186?viewlocale=en_US
    Will Apple fix this problem with the next update?
    For 99.9% of users there is no problem to fix.
    But before doing your archive and install, when did you last perform a bit of maintenance?
    Repairing permissions is important, and should always be carried out both before and after any software installation or update.
    Go to Disk Utility (this is in your Utilities Folder in your Application folder) and click on the icon of your hard disk (not the one with all the numbers).
    In First Aid, click on Repair Permissions.
    This only takes a minute or two in Tiger, but much longer in Leopard.
    Background information here:
    http://docs.info.apple.com/article.html?artnum=25751
    and here:
    http://docs.info.apple.com/article.html?artnum=302672
    An article on troubleshooting Permissions can be found here:
    http://support.apple.com/kb/HT2963
    By the way, you can ignore any messages about SUID or ACL file permissions, as explained here:
    http://support.apple.com/kb/TS1448?viewlocale=en_US
    If you were having any serious problems with your Mac you might as well complete the exercise by repairing your hard disk as well. You cannot do this from the same start-up disk. Reboot from your install disk (holding down the C key). Once it opens, select your language, and then go to Disk Utility from the Utilities menu. Select your hard disk as before and click Repair.
    Once that is complete reboot again from your usual start-up disk.
    More useful reading here:
    Resolve startup issues and perform disk maintenance with Disk Utility and fsck
    http://support.apple.com/kb/TS1417?viewlocale=en_US

  • New ImageIcon(path) takes a lot of time

    Hi.
    I do "new ImageIcon(path)" in while loop (the path is changes) and it takes a lot of time, why? It happens only when the path is different.
    If the path will be always the same it work good and quick
    Thnaks in advance.

    You're right that the preloading will also take time, but it will attempt to load all the images asynchronously. Several images may be loaded simultaneously, thereby shortening the overall time taken.
    // Start the images loading
    Image[] images = new Image[paths.length];
    for(int idx = 0; idx < paths.length; idx++) {
      images[idx] = Toolkit.getDefaultToolkit().getImage(paths[idx]);
    // Images might not have been loaded at this point - but are loading in the background
    // Create icons for our images
    for(int idx = 0; idx < images.length; idx++) {
      // This will wait for the image to finish loading but the other images will continue to load at the same time
      icons[idx] = new ImageIcon(images[idx]);
    }While the first icon is waiting for its image to finish loading the other images may also be getting downloaded, thereby shortening the time taken for the operation.
    There's no guarantee this will be any faster since the image loading could be bottlenecked elsewhere (such as on your file system) but it may be worth a try.
    Hope this helps.

  • Transport Studio import takes a lot of time...Please help

    Hello All,
    Using the Tranport Studio when I import the 3 .sca files into Development, it takes a lot of time from the 'Import Running' status to change to 'Import Finished' status
    This period varies between 20 mins or 30 mins or 2 hrs as well.....
    Question:
    1. What is the ideal or acepted time for such an execution?
    2. What can I do to make this process a little faster?
    3. At times when I check the details one import process failes....Why is this?
    Awaiting Reply.
    Thanks & Warm Regards,
    Ritu

    Hi Ritu,
    1. That heavily depends on what you do, i.e. what is contained in the SCAs and what already exists in your track.
    As you can see from the details importing an SCA means you import sources into DTR (if the SCA contains sources), then everything is built and finally deployed (if there is a runtime system).
    Import into DTR can involve some heavy database operations. This step alone may take a few hours (e.g. SAP_ESS). Building depends on how much is changed and what was imported. If you import SAP_BUILDT usually everything is rebuild. If you import an SCA from another development track maybe only a few DCs are built. And then some DC builds only take a few seconds while others require several minutes (e.g. those tra/tre/tr* components in ESS.)
    2. Optimize DTR & CBS performance. Check database for performance bottlenecks, put CBS temporary build space on a fast harddisk, make sure the threadPoolSize fits your hardware, etc.
    3. You mean the import fails because you check details? I somehow doubt that, but I've seen in the past that the CMS request "fails" because of a timeout while CBS is still busy building things. I consider that a bug in CMS, but you have to restart the import to get deployment...
    Can you elaborate what you mean?
    Regards,
    Marc

  • TS1398 I have recently updated my iphone 5 to ios 6.0.2 but wi-fi is still slow. It takes a lot of time to download the files. But web browsing is OK. I have downloaded an app size 8 MB but it take around 15 minutes on my wifi. Please help Apple.

    I have recently updated my iphone 5 to ios 6.0.2 but wi-fi is still slow. It takes a lot of time to download the files. But web browsing is OK. I have downloaded an app size 8 MB but it take around 15 minutes on my wifi. Please help Apple.

    I couldn't find the edit button on my original post so I am posting an update here.
    I have gone through more apps and have had good luck on all but one more.  And it's not that the app doesn't work, I am talking about the Yahoo Weather app, It works fine, but when you swipe between cities the screen lags a bit and it sometimes doesn't move between pages the way it should.  On iOS 7.1.2 it was smooth as butter but on iOS 8.0, not so much.  I will post a note in the app store to let them know.  I really like the Yahoo app better than the new stock app.
    I have been going through my games and they all work fine. Angry Birds (Original and Stella), Canabalt, Minecraft, Bejeweled 2, Silly Walks, PopWords, Doodle Jump, Deep Green all seem to work just fine. 
    Starbucks app works as it should. 
    I will stop back again next week after I have had the weekend to play with it in detail and post my thoughts again.

  • Server boot takes a lot of time due to JMS persistence file store

    Hi,
    We're using WebLogic 9.2 on a windows machine.
    Recently, we enhanced our application to work with JMS.
    We're using 2 JMS servers on 2 different servers in a cluster, and working with distributed destinations.
    We're using file store as our persistence store.
    Lately, we found that server boot takes a lot of time due to actions which are performed on the file-store.
    Analyzing this problem, we saw that the file size is ~2GB.
    We understand that the file size does not shrink (unless manually compacted), and its size is matching the highest number ever of pending messages in the queues (like a high water-mark).
    We also turned store debug on, using weblogic.Debug.DebugStoreIOPhysical, and we saw a lot of recovery logs after the file-store is opened.
    We've checked and verified that our JMS transactions are completed successfully. We also verified that the number of pending and current messages is 0.
    We've stopped the server gracefully, verifying there are no pending messages.
    However, server boot repeatedly takes ~30 minutes due to heavy work done on the persistence store.
    Compacting or removing the file store eliminates the delay.
    However, we want to avoid manual operations every time we want to boot the server.
    Please share your ideas.
    Thanks,
    Itsik

    The only suggestions I have off the top of my head are:
    * Ensure (1) the host system has at least 2GB (file store size) of free physical memory in addition to the memory used by current processes, and (2) the host system is not rebooted between each WebLogic restart. If you make sure of these two items, then the operating system will implicitly cache the store's file contents in memory even between boots -- when WebLogic subsequently boots the file store, the O/S should serve the file contents up much more quickly.
    * Consider moving to a JDBC store. JDBC store runtime performance is lower, but since you have a typically only have a small amount of records to recover, boot performance should be higher in this case.
    * Not that it helps your particular case, but it happens that we have boot performance enhancements in process for a future release (hopefully a near future release).
    Tom

  • My JSP page takes a lot of time to go to next JSP

    Hi All,
    I have a JSP page which loads dynamically depending on what the user enters. This page works fine for items upto 20-30 but as the number of items increases, my JSP page takes a lot of time to go to the next one. Heres what my JSP looks like:
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <%@ taglib uri="/WEB-INF/struts-form.tld" prefix="form" %>
    <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
    <%@ taglib uri="/WEB-INF/rswtags.tld" prefix="rsw" %>
    <jsp:useBean id="dateFormatIntl" scope="session" type="java.lang.String"/>
    <html>
    <head>
    <title><bean:message key="title.application"/> - <bean:message key='header.return_to_vendor_detail'/></title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <%@ include file="rsw_functions.jsp" %>
    <%@ include file="shipment_rtv_functions.jsp" %>
    <script language="JavaScript" type="text/javascript">
    var page = "<bean:message key='header.return_to_vendor_detail'/>"
    var rtvEntryArray = new Array();
    var totalAmtString;
    function setFormValues()
    var rtvEntriesString = "";
    for (var v = 0; v < rtvEntryArray.length; v++)
    var rtvEntryString = rtvEntryArray[v].itemNumber + "~"
    + rtvEntryArray[v].itemQty + "~"
    <rsw:display displayElementName="rtv_reason">
    + rtvEntryArray[v].inventoryStatusCode + "~"
    + rtvEntryArray[v].inventoryStatusName + "~"
    + rtvEntryArray[v].reasonCodeId + "~"
    + rtvEntryArray[v].reasonCodeName + "~" +
    </rsw:display>
    <rsw:display_false displayElementName="rtv_reason">
    + " " + "~"
    + " " + "~"
    + " " + "~"
    + " " + "~" +
    </rsw:display_false>
    rtvEntryArray[v].valid;
    rtvEntriesString = rtvEntriesString + rtvEntryString + ";";
    document.rtvVsatShipmentForm.rtvEntriesString.value = rtvEntriesString;
    function writeItem(itemNumber, itemQty, inventoryStatusCode, inventoryStatusName,
    reasonCodeId, reasonCodeName)
    if(!acquireFakeLock()) return;
    if (!arrayContainsItem(itemNumber, reasonCodeId))
    addEntry(itemNumber, itemQty, inventoryStatusCode, inventoryStatusName,
    reasonCodeId, reasonCodeName, "true");
    else
    setItemQtyReasonArray(itemNumber, itemQty, reasonCodeId, reasonCodeName);
    writeTable(false);
         releaseFakeLock();
    function handleApply()
    <%-- change this if 'please select...' value changes to something other than a space --%>
    if (document.rtvVsatShipmentForm.applyReasonCode.value == " ")
    alert('<bean:message key="error.must_enter_a_reason" />');
    return;
    if (checkQuantityGreaterThenZero(document.rtvVsatShipmentForm.applyQty))
    formatQuantity(document.rtvVsatShipmentForm.applyQty);
    if (document.rtvVsatShipmentForm.applyId.value == '')
    alert("<bean:message key='error.no_dsd_order_entries' />");
    document.rtvVsatShipmentForm.applyId.focus();
    return;
    writeItem(document.rtvVsatShipmentForm.applyId.value,
    document.rtvVsatShipmentForm.applyQty.value
    <rsw:display displayElementName="rtv_reason">,
    document.rtvVsatShipmentForm.selectedInventoryStatus.options[document.rtvVsatShipmentForm.selectedInventoryStatus.selectedIndex].value,
    document.rtvVsatShipmentForm.selectedInventoryStatus.options[document.rtvVsatShipmentForm.selectedInventoryStatus.selectedIndex].text,
    document.rtvVsatShipmentForm.applyReasonCode.options[document.rtvVsatShipmentForm.applyReasonCode.selectedIndex].value,
    document.rtvVsatShipmentForm.applyReasonCode.options[document.rtvVsatShipmentForm.applyReasonCode.selectedIndex].text
    </rsw:display>
    document.rtvVsatShipmentForm.applyId.value = '';
    document.rtvVsatShipmentForm.applyQty.value = 1;
    document.rtvVsatShipmentForm.applyId.focus();
    <rsw:display displayElementName="rtv_reason">
    document.rtvVsatShipmentForm.selectedInventoryStatus.value
    = document.rtvVsatShipmentForm.selectedInventoryStatus.options[0].value;
    selectFromInvStatus();
    </rsw:display>
    totalAmounts();
    function clearFields()
    document.rtvVsatShipmentForm.returnAuth.value = "";
    document.rtvVsatShipmentForm.applyId.value = "";
    document.rtvVsatShipmentForm.applyQty.value = "1";
    document.rtvVsatShipmentForm.applyId.focus();
    document.rtvVsatShipmentForm.selectedInventoryStatus.value = document.rtvVsatShipmentForm.selectedInventoryStatus.options[0].value;
    selectFromInvStatus();
    function getCurrentOptions()
    if (document.rtvVsatShipmentForm.selectedInventoryStatus.value == "AVAILABLE")
    return availableOptions;
    return unavailableOptions;
    function populateDropDown(dropdownField)
         var currentOptions;
    currentOptions = getCurrentOptions();     
    dropdownField.options.length = 0;
    var oPleaseSelectOption = document.createElement("OPTION");
    oPleaseSelectOption.value = " ";
    oPleaseSelectOption.text = "<bean:message key="label.please_select"/>";
    dropdownField.options.add(oPleaseSelectOption);
    for (var i = 0; i < currentOptions.length; i++)
    dropdownField.options.add(currentOptions);
    function selectFromInvStatus()
    populateDropDown(document.rtvVsatShipmentForm.applyReasonCode);
    function initialize()
    document.rtvVsatShipmentForm.applyId.focus();
    createReasonOptionObjects();
    selectFromInvStatus();
    <logic:equal name="rtvVsatShipmentForm" property="returnAuthRequired" value="true">
    if (document.rtvVsatShipmentForm.returnAuth.value == '')
    document.rtvVsatShipmentForm.returnAuth.focus();
    </logic:equal>
    createEntryArray(document.rtvVsatShipmentForm.rtvEntriesString.value, false);
    <rsw:display displayElementName="rtv_reason">
    </rsw:display>
    totalAmounts();
    function next()
    setFormValues();
    if (document.rtvVsatShipmentForm.rtvEntriesString.value == '')
    alert("<bean:message key='error.no_dsd_order_entries' />");
    document.rtvVsatShipmentForm.applyId.focus();
    return;
    <logic:equal name="rtvVsatShipmentForm" property="returnAuthRequired" value="true">
    if (document.rtvVsatShipmentForm.returnAuth.value == '')
    alert("<bean:message key='error.return_auth_required' />");
    document.rtvVsatShipmentForm.returnAuth.focus();
    return;
    </logic:equal>
    if (!validateTextAreaLength(document.rtvVsatShipmentForm.comments,
    "<bean:message key='label.comments'/>", 255))
    return false;
    document.rtvVsatShipmentForm.submit();
    function doBack()
    backLink.href = "<bean:write name='rtvVsatShipmentForm' property='previousAction' />";
    document.rtvVsatShipmentForm.action=backLink.href;
    document.rtvVsatShipmentForm.submit();
    function handleItemLookup()
    window.open(itemLookupLink.href + "?actionToReturnTo=shipment_rtv_vsat_create&fieldToPopulateUponReturn=applyId","RSWLookupWindow");
    </script>
    <jsp:include page="/elements/top_banner2.jsp" flush="true"/>
    <!-- Beginning of Page Body -->
    <body onload="initialize();displayErrors();">
    <form:form action="shipment_rtv_vsat_to_summary.do" style="margin-top:0">
    <input type="hidden" name="fieldToPopulateUponReturn" value="applyId">
    <span style="display:none">
    <html:link styleId="itemLookupLink" href="item_lookup_start.do"></html:link>
    <html:link styleId="backLink" href="dummyLink"></html:link>
    </span>
    <html:hidden property="rtvEntriesString"/>
    <form:hidden property="fromLocationId" />
    <table width="700" class="bgColor" cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell" rowspan="3"></td>
    <td class="bodymd" width="125">
    <bean:message key="label.rtv_number" />:
    </td>
    <td class="bodymd">
    <bean:write name="rtvVsatShipmentForm" property="rtvNumber" />
    </td>
    <td class="bodymd">
    </td>
    <td class="bodymd">
    <bean:message key= "label.date" />: 
    </td>
    <td class="bodymd" align="left">
    <bean:write name="rtvVsatShipmentForm" property="createDate"/>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    <td colspan="3"></td>
    <logic:equal name="dateFormatIntl" value="true">
    <td align="left" valign="top" class="bodymd">
    <span class="bodyxsm">(<bean:message key="label.date_format_string_intl"/>)</span>
    </td>
    </logic:equal>
    <logic:notEqual name="dateFormatIntl" value="true">
    <td>
    <span class="bodyxsm">(<bean:message key="label.date_format_string_us"/>)</span>
    </td>
    </logic:notEqual>
    </tr>
    <tr>
    <td class="bodymd">
    <bean:message key="label.status" />: 
    <td class="bodymd">
    <rsw:display displayElementName="rtv_status">
    <form:select property="selectedStatusCode" >
    <form:options name="rtvVsatShipmentForm" property="statusIds"
    labelProperty="statusNames" />
    </form:select>
    </rsw:display>
    <rsw:display_false displayElementName="rtv_status">
    <bean:write name="rtvNonVsatShipmentForm" property="selectedStatus.description" />
    </rsw:display_false>
    </td>
    </td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell"></td>
    <td class="bodymd">
    <bean:message key="label.ship_from_location" />:
    </td>
    <td class="bodymd" colspan="5">
    <bean:write name="rtvVsatShipmentForm" property="fromLocationId" />
    </td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell">
    <td class="bodymd">
    <bean:message key="label.supplier_name" />:
    </td>
    <td class="bodymd">
    <bean:write name="rtvVsatShipmentForm" property="supplierName" />
    </td>
    <td class="bodymd" width="125">
    <bean:message key="label.supplier_number" />: 
    </td>
    <td class="bodymd" colspan="3">
    <bean:write name="rtvVsatShipmentForm" property="supplierId" />
    </td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell">
    <td class="bodymd">
    <bean:message key="label.rtv_paid" />: 
    </td>
    <td class="bodymd" align="left">
    <form:select property="selectedPaymentStatusCode" >
    <form:options name="rtvVsatShipmentForm" property="paymentStatusIds"
    labelProperty="paymentStatusNames" />
    </form:select>
    </td>
    <td class="leadSpacerCell">
    </td>
    </tr>
    <%-- <tr>
    <td class="bodymd">
    <bean:message key="label.check_number" />: 
    </td>
    <td class="bodymd" align="left">
    <form:text name="rtvVsatShipmentForm" property="checkNumber" maxlength="12"/>
    </td>
    </tr>
    --%>
    </table>
    <table width="700" class="bgColor" cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td class="spacerCell">
    </td>
    <tr>
    <td class="leadSpacerCell">
    </td>
    <td colspan="3">
    <table border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td class="bodymd">
    <bean:message key="label.return_authorization_no" />: 
    </td>
    <td class="bodymd" align="left">
    <form:text name="rtvVsatShipmentForm" property="returnAuth" maxlength="12"/>
    </td>
    <td class="leadSpacerCell">
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell">
    </td>
    <td class="bodymd" valign="top">
    <bean:message key="label.supplier_address" />
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell">
    </td>
    <td colspan="6">
    <table border="0">
    <tr>
    <td width="10" rowspan="4">
    </td>
    <td class="bodymd">
    <form:text property="addressLine1" style="width:200" />
    </td>
    <td width="5">
    </td>
    <td class="bodymd">
    <bean:message key="label.city" />: 
    </td>
    <td colspan="3" class="bodymd">
    <form:text property="addressCity" style="width:200" />
    </td>
    </tr>
    <tr>
    <td class="bodymd">
    <form:text property="addressLine2" style="width:200" />
    </td>
    <td width="5">
    </td>
    <td class="bodymd">
    <bean:message key="label.state_or_province" />: 
    </td>
    <td class="bodymd">
    <form:text property="addressStateOrProvince" style="width:80" />
    </td>
    <td class="bodymd">
    <bean:message key="label.postal_code" />: 
    </td>
    <td class="bodymd">
    <form:text property="addressPostalCode" style="width:80" />
    </td>
    </tr>
    <tr>
    <td class="bodymd">
    <form:text property="addressLine3" style="width:200" />
    </td>
    <td width="5">
    </td>
    <td class="bodymd">
    <bean:message key="label.country" />: 
    </td>
    <td colspan="3" class="bodymd">
    <form:text property="addressCountry" style="width:200" />
    </td>
    </tr>
    </table>
    </td>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell">
    </td>
    <td class="bodymd" valign="top">
    <bean:message key="label.comments" />: 
    </td>
    <td>
    <form:textarea property="comments" cols="65" rows="3" onkeypress="limitKeyPress(this, 255)"/>
    </td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td colspan="3" class="horizontalLine">
    </td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    </table>
    <table width="700" cellpadding="0" cellspacing="0" border="0" class="bgColor">
    <tr>
    <td class="leadSpacerCell"></td>
    <td class="bodymdbold"><bean:message key='label.item'/>: </td>
    <td><form:text size="15" property="applyId"/>  </td>
    <td class="bodymdbold"><bean:message key='label.quantity'/>: </td>
    <td><form:text size="8" maxlength="8" property="applyQty" />  </td>
    <rsw:display displayElementName="rtv_reason">
    <td style="display:none" class="bodymdbold"><bean:message key='label.inventory_status'/>: </td>
    <td style="display:none">
    <form:select property="selectedInventoryStatus" onchange="selectFromInvStatus();">
    <form:options name="rtvVsatShipmentForm" property="inventoryStatusCodes"
    labelProperty="inventoryStatusDescriptions" />
    </form:select>
    </td>
    <td class="bodymdbold"><bean:message key='label.reason_code'/>: </td>
    <td>
    <select name="applyReasonCode">
    <%-- <logic:iterate name="rtvVsatShipmentForm" property="rtvReasons" id="reason">
    <option value="<bean:write name="reason" property="code"/>">
    <bean:write name="reason" property="description"/>
    </option>
    </logic:iterate>
    --%>
    </select>
    </td>
    </rsw:display>
    </tr>
    <tr>
    <td class="leadSpacerCell"></td>
    <td class=bodymd>
    <a class="genericLink" href="" onClick="handleItemLookup(); return false"><bean:message key='link.item'/></a>
    </td>
    </tr>
    <tr>
    <td class="leadSpacerCell"></td>
    <td colspan="9" align="left">
    <br>
    <input type="submit"
    value="<bean:message key='button.apply'/>"
    onClick="handleApply();return false;">  
    <input type="button" value="Clear" onclick="clearFields()";></td>
    </tr>
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td class="horizontalWhiteLine" colspan="10"></td>
    </tr>
    </table>
    <table class="bgColor" width="700" cellpadding="0" cellspacing="0" border="0">
    <tr>
    <td class="spacerCell">
    </td>
    </tr>
    <tr>
    <td><rsw:errors/></td>
    </tr>
    </table>
    <div id="item_list_div">
    </div>
    <table width="700" cellpadding="0" cellspacing="0" border="0" class="bgColor">
    <tr>
    <td class="spacerCell"></td>
    </tr>
    <tr>
    <td>
    <table width="700" cellpadding="0" cellspacing="0" border="0" class="bgColor">
    <tr>
    <td class="bodymdbold" align="right" nowrap><div id="total_amt_div"></div></td>
    </tr>
    </table>
    </td>
    </tr>
    <tr>
    <td class="spacerCell"></td>
    </tr>
    <tr>
    <td class="horizontalLine" colspan="3"></td>
    </tr>
    </table>
    <table cellpadding="0" cellspacing="0" border="0" width="700">
    <tr>
    <td class="spacerCell"></td>
    </tr>
    <tr>
    <td class="leadSpacerCell">
    </td>
    <td align="left">
    <input type="button" value="<bean:message key='button.next'/>"
    onclick="next();">
    <input type=button value="<bean:message key='button.back'/>"
    onclick="doBack();">
    <input type=button value="<bean:message key='button.cancel'/>"
    onclick="doSubmit('main', 'main.do');">
    </td>
    </tr>
    </table>
    </form:form>
    <div id="log"></div>
    </body>
    <!-- End of Page Body -->
    <jsp:include page="/elements/bottom_banner2.jsp" flush="true"/>
    <script language="JavaScript" type="text/javascript">
    function handleAction(retVal,position)
    if (retVal != null)
    var command = retVal["command"];
    if (command == "OK")
    updateArray(retVal["id"],
    formatQuantityFromVar(retVal["qty"]), true,
    <rsw:display displayElementName="rtv_reason">
    retVal["inventoryStatusCode"],
    retVal["inventoryStatusName"],
    retVal["reasonCode"],
    retVal["reasonDescription"],
    </rsw:display>
    <rsw:display_false displayElementName="rtv_reason">
    null, null, null, null,
    </rsw:display_false>
    position);
    totalAmounts();
    if (command == "Remove")
    deleteRow(position);
    writeTable(false);
    totalAmounts();
    function showEditWindow(sku, qty,
    <rsw:display displayElementName="rtv_reason">
    inventoryStatusCode, reasonCode,
    </rsw:display>
    position)
    if(!acquireFakeLock()) return;
    var elements = editWindowDiv.document.all;
    elements("editWindowId").value=sku;
    elements("editWindowQty").value = qty;
    <rsw:display displayElementName="rtv_reason">
    elements("editWindowInventoryStatusCode").value = inventoryStatusCode;
    elements("hiddenReasonCode").value = reasonCode;
    </rsw:display>
    var retVal;
    // if (IE6)
    retVal = window.showModalDialog("popup.jsp", editWindowDiv,
    "dialogWidth:335px;dialogHeight:230px;scroll:no;status:no;unadorned:no");
    else
    retVal = window.showModalDialog("javascript:document.write(window.dialogArguments.innerHTML);editWindowInit();",editWindowDiv,
    "dialogWidth:335px;dialogHeight:230px;scroll:no;status:no;unadorned:no");
    handleAction(retVal,position);
         releaseFakeLock();
    function updateArray(itemNumber, itemQty, fromEditWindow,
    inventoryStatusCode, inventoryStatusName,
    reasonCodeId, reasonCodeName, position, supplierCost)
    if (((rtvEntryArray[position].reasonCodeId != reasonCodeId)
    && arrayContainsItem(itemNumber, reasonCodeId))
         ||
         ((rtvEntryArray[position].itemNumber != itemNumber)
         && arrayContainsItemsExceptPos(itemNumber, reasonCodeId, position)))
    deleteRow(position);
    setItemQtyReasonArray(itemNumber, itemQty, reasonCodeId, reasonCodeName, supplierCost);
    else
    var rtvEntry = new Object();
    rtvEntry.itemNumber = itemNumber;
    rtvEntry.itemQty = itemQty;
    rtvEntry.inventoryStatusCode = inventoryStatusCode;
    rtvEntry.inventoryStatusName = inventoryStatusName;
    rtvEntry.reasonCodeId = reasonCodeId;
    rtvEntry.reasonCodeName = reasonCodeName;
    rtvEntry.supplierCost = supplierCost;
    rtvEntry.valid = rtvEntryArray[position].valid;
    rtvEntryArray[position] = rtvEntry;
    writeTable();
    </script>
    <div id="editWindowDiv" style="display:none">
    <html>
    <head>
    <style type="text/css">
    .titleTxt { font-size: 12 ; font-style: italic ; font-weight: bold; color: white ; font-family: arial }
    .bodymd {color: #000000; font-family: arial; font-size: 10pt; text-decoration: none}
    .bodymdbold {color: #000000; font-family: arial; font-size: 10pt; text-decoration: none; font-weight: bold}
    .bgColor { background-color: #efefef }
    </style>
    <title><bean:message key="title.edit_window" /></title>
    <script language="JavaScript">
    function handleOk()
    if (checkQuantityGreaterThenZero(document.editPopupForm.editWindowQty))
    var returnArray = new Array();
    returnArray["id"] = document.editPopupForm.editWindowId.value;
    returnArray["qty"] = document.editPopupForm.editWindowQty.value;
    <rsw:display displayElementName="rtv_reason">
    returnArray["inventoryStatusCode"] = document.editPopupForm.editWindowInventoryStatusCode.options[document.editPopupForm.editWindowInventoryStatusCode.selectedIndex].value;
    returnArray["inventoryStatusName"] = document.editPopupForm.editWindowInventoryStatusCode.options[document.editPopupForm.editWindowInventoryStatusCode.selectedIndex].text;
    returnArray["reasonCode"] = document.editPopupForm.editWindowReasonCode.options[document.editPopupForm.editWindowReasonCode.selectedIndex].value;
    returnArray["reasonDescription"] = document.editPopupForm.editWindowReasonCode.options[document.editPopupForm.editWindowReasonCode.selectedIndex].text;
    </rsw:display>
    returnArray["command"] = "OK";
    window.returnValue = returnArray;
    window.close();
    function handleCancel()
    window.close();
    function handleRemove()
    var returnArray = new Array();
    returnArray["command"] = "Remove";
    window.returnValue = returnArray;
    window.close();
    function init()
    document.title = "<bean:message key="title.edit_window" />";
    document.editPopupForm.editWindowQty.focus();
    <rsw:display displayElementName="rtv_reason">
    createReasonOptionObjects();
    setReasonOptions();
    document.editPopupForm.editWindowReasonCode.value = document.editPopupForm.hiddenReasonCode.value;
    </rsw:display>
    <rsw:display displayElementName="rtv_reason">
    function setReasonOptions()
    var currentOptions;
    document.editPopupForm.editWindowReasonCode.options.length = 0;
    if (document.editPopupForm.editWindowInventoryStatusCode.value == "AVAILABLE")
    currentOptions = availableOptions;
    else
    currentOptions = unavailableOptions;
    for (var i = 0; i < currentOptions.length; i++)
    document.editPopupForm.editWindowReasonCode.options.add(currentOptions[i]);
    </rsw:display>
    var availableOptions = new Array();
    var unavailableOptions = new Array();
    <rsw:display displayElementName="rtv_reason">
    function createReasonOptionObjects()
    var oOption;
    <logic:iterate name="rtvVsatShipmentForm" property="availableInventoryStatusReasons" id="reason">
    oOption = document.createElement("OPTION");
    oOption.value = "<bean:write name="reason" property="code"/>";
    oOption.text = "<bean:write name="reason" property="description"/>";
    availableOptions[availableOptions.length] = oOption;
    </logic:iterate>
    <logic:iterate name="rtvVsatShipmentForm" property="unavailableInventoryStatusReasons" id="reason">
    oOption = document.createElement("OPTION");
    oOption.value = "<bean:write name="reason" property="code"/>";
    oOption.text = "<bean:write name="reason" property="description"/>";
    unavailableOptions[unavailableOptions.length] = oOption;
    </logic:iterate>
    </rsw:display>
    </script>
    <%@ include file="rsw_functions.jsp" %>
    </head>
    <body leftmargin="0" topmargin="0" style="border:4px ridge lightgrey">
    <span style="margin-top:0;margin-left:0,margin-bottom:0;margin-right:0">
    <table cellspacing="0" cellpadding="0" border="0" bordercolor="#000000" width="330">
    <tr>
    <td bgcolor="#ff9999" width="100%" height="1" colspan="2"></td>
    </tr>
    <tr>
    <td bgcolor="#ff0000" height="15" align="left"><span
    class=titleTxt>  <bean:message key="label.edit" /> </span></td>
    <td bgcolor="#ff0000" height="15" align="right"><span
    class="titleTxt"><bean:message key="label.application_title" />   </span></td>
    </tr>
    <tr>
    <td bgcolor="#000000" width="100%" height="1" colspan="2"></td>
    </tr>
    </table>
    </span>
    <form name="editPopupForm" style="margin-top:0;margin-left:0,margin-bottom:0;margin-right:0"
    onsubmit="handleOk();return false;">
    <input type="hidden" name="editWindowPosition" value="">
    <input type="hidden" name="hiddenReasonCode" value="">
    <table cellspacing='0' class='bgColor' cellpadding='0' border='0' width='330'>
    <tr><td> </td></tr>
    <tr>
    <td class='bodymd'>  <bean:message key='label.item'/>:</td>
    <td class='bodymd'><input type="text" name="editWindowId" value="[id]" ></td>
    </tr>
    <tr>
    <!--Start RQST 34502 SIR 61007-->
    <!--td class='bodymd'--><!--  --><!--bean:message key='label.count_quantity'/--><!--:--><!--/td-->
    <td class='bodymd'>  <bean:message key='label.return_quantity'/>:</td>
    <!--End RQST 34502 SIR 61007-->
    <td class='bodymd'><input type="text" maxlength="8" name="editWindowQty" value="[qty]"></td>
    </tr>
    <rsw:display displayElementName="rtv_reason">
    <tr>
    <td style="display:none" class='bodymd'>  <bean:message key='label.inventory_status'/>:</td>
    <td style="display:none" class='bodymd'><select name="editWindowInventoryStatusCode" onchange="setReasonOptions();">
    <option value="AVAILABLE"><bean:message key="label.available"/></option>
    <option value="UNAVAILABLE"><bean:message key="label.unavailable"/></option>
    </select></td>
    </tr>
    <tr>
    <td class='bodymd'>  <bean:message key='label.reason_code'/>:</td>
    <td class='bodymd'><select name="editWindowReasonCode">
    <logic:iterate name="rtvVsatShipmentForm" property="rtvReasons" id="editWindowReason">
    <option value="<bean:write name="editWindowReason" property="code"/>">
    <bean:write name="editWindowReason"

    God Lord! Does anyone else here write JSPs that look like that?
    If I had to maintain that I would shoot myself straight in the temple.
    Sorry, I don't have answer to your question, I just had to say that.
    Do you like your job?

  • Minus takes a lot of time

    Hi all,
    My problem is as follows.
    I made a mapping that in less then a minute populated on of my tables. Then I change it to, before inserting, make a minus with target table, it works fine and takes almost the same time to populate the table, except when the target table is empty, in this case it takes four hours.
    If I take the minus it runes ok!
    What could be the problem?
    Owb 9.2
    Oracle database 9.2
    Thanks,
    Vitor.

    I have a splitter control that makes some records to be inserted in a table and some other's to be updated (complex condition to update needed), after the splitter on the flow that will insert i'm making a Minus between this records and the target table (selection MINUS target). When target table is empty it takes a lot of time.
    I edited the mapping PL/SQL and try to execute the cursor created to this same flow and it takes the same time. I guess my problem is that the original select is made just for the records that doesn't exist in target table (that's for insert, uses all record's for update). When the target table has most of the records it will select few on the source (to insert) and minus run much faster.
    What is odd is that just Original select goes in a few seconds and the minus takes all the time, but i just got 20000 records with 4 small columns, two of them numbers. And target table is empty!!!
    I have made several other MINUS instruction in some other databases much more heavy to the system and worked real fast.
    Could it be database configuration?
    Thanks,
    Vitor

  • Import process takes a lot of time to connect to schemas in the RPD

    Hi Gurus,
    I am facing this problem where when I start to import tables from my database into the rpd, it takes hours to load/display the schemas. Once I select tables, the import process takes another hour.
    Does this look like a setting issue on OBIEE end or database connectivity? I can connect to the database through SQL developer within seconds with the same credentials. Its eating a lot into my dev time. Please suggest at the earliest. Much appreciated.
    Thanks,
    Dan

    tried it. It keeps saying connection failed. My problem is my connection is fine. I can connect without the localhost:port/sid. The next step of choosing Tables,views.. that screen too loads within a second. Once I hit next on that screen, it takes a lot of time for my schema to show up.
    My setup here is I hv downloaded the admin tool only, created a dsn connection and trying to import tables in online mode. All connections work fine but they take a lot of time.
    I just need to validate if its a database connecticity issue or obiee connectivity.

  • Select of database takes a lot of time

    Dear all,
    myabe its a simple question but it is not for me. I do select the FAGLFLEXA table (standard table) and it takes a lot of time.
    here my selection:
    select * from faglflexa into table gt_flexa
       where    docnr  in   s_belnr
        and     rbukrs eq   p_bukrs
        and     ryear  eq   p_gjahr.
    Maybe its better to select all keyfields YES it is, but I need all data of the selected data . Now my question is: It is also possible to active a indices for this standard table ? when yes how it is the best way to do this ?
    best regards
    Moderator message: this has been discussed many times, please search in the ABAP performance sub-forum.
    Please Read before Posting in the Performance and Tuning Forum
    locked by: Thomas Zloch on Aug 12, 2010 3:13 PM

    Of course you can add an index - the best fields depends on your WHERE clause and field usage.  How broad is the doc number selection?  Have you traced the selection?  It doesn't really make sense that you'd need a secondary index with those fields unless you're not using the DOCNR specification or it's very broad.

Maybe you are looking for

  • Error while generating WSDL

    Hi, I am creating a web service which has a method that communicates with the Data access layer (classes that have database connectivity). While generating WSDL, I am getting the following error in IBM WSAD: "IWAB0132W Boolean property accessor getBo

  • Calling Webservice defined in SAP R/3  in Flex builder using mx:Webservice

    Hi All, I am calling R/3 webservices in Flex builder using <mx:webservice> tag. but the wsdl is not accepting additional parameters like &, =  .... when I try to run this code Flex builder is generating an error <mx:WebService id="ws" wsdl="http://lo

  • Extensions are all greyed out

    All extensions that I have are all greyed out.  I can navigate to them to install, but obviously I can't click on ANY of them.  Never had this before. Using all CC products on Mac ver 10.8.4 Thank you for any help!!!

  • Disable closing lid sleep

    Is there a way of disabling sleeping on close lid? I am using my macbook primarily as a workstation with external display keyboard and mouse. So its a bit anoying that it sleeps when i close the lid ... Further more if i want to play itunes with it a

  • Mobile phone directory

    Hi all, I have a corporate directory for our internal numbers (Extensions) which is working fine. I have CCM 4.1 integrated with AD. Now I would like to create a similar corporate directory for Mobile phones numbers, is there any way that I can easil