Problem in code and improvement suggestion

Hi
I need to have improvement in below program but not sure if there is any major issue in performance of this program.
as the date being selected is huge ,but need to know how much we can imrove this program as far as performance is concerned.
select 1
SELECT matnr INTO (lt_zmatloc-/bic/zcmatloc)
FROM /sapapo/matkey
WHERE matnr IN prod_sel.
itotal-mat_no = lt_zmatloc-/bic/zcmatloc.
APPEND itotal.
ENDSELECT.
SORT itotal ASCENDING.
DELETE ADJACENT DUPLICATES FROM itotal COMPARING mat_no.
select 2
LOOP AT itotal into lw_itotal.
SELECT SINGLE * INTO lw_matkey FROM /sapapo/matkey WHERE matnr = lw_itotal.
PERFORM get_lanes.
PERFORM compute_attr.
ENDLOOP.
form get lanes is as below
SELECT locfr locto matid INTO (lt_trprod-locfr, lt_trprod-locto, lt_trprod-matid)
FROM /sapapo/trprod
WHERE matid = lw_matkey-matid AND estkz = 'S'.
ilanes-locfr = lt_trprod-locfr.
ilanes-locto = lt_trprod-locto.
ilanes-matid = lt_trprod-matid.
APPEND ilanes.
ENDSELECT.
FORM compute_attr is as below
LOOP AT ilanes.
SELECT locno INTO lw_locparent FROM /sapapo/loc WHERE locid = ilanes-locfr.
ENDSELECT.
SELECT SINGLE matnr INTO lw_matnr FROM /sapapo/matkey WHERE matid = ilanes-matid.
SELECT locno INTO lw_locchild FROM /sapapo/loc WHERE locid = ilanes-locto.
ENDSELECT.
iattr-version = '000'.
iattr-zclocno = lw_locchild.
iattr-zcmatnr = lw_matnr.
iattr-zbod_lvl = low_lvl.
iattr-zbod_prnt = lw_locparent.
APPEND iattr.
MODIFY /lgc/ssbod_attr FROM iattr.
iattr-version = '000'.
iattr-zclocno = lw_locparent.
iattr-zcmatnr = lw_matnr.
iattr-zbod_lvl = high_lvl.
APPEND iattr.
ENDLOOP.
SORT iattr ASCENDING.
DELETE ADJACENT DUPLICATES FROM iattr COMPARING ALL FIELDS.
MODIFY /lgc/ssbod_attr FROM iattr.
please suggest what more performance impr can be done on this and how much will it can improve the selection or fetching from database.. by %wise
regards
Arora

Moderator message - Please see Please Read before Posting in the Performance and Tuning Forum before posting - post locked
You should do some analysis and post the results
Total Posts:  891 
Total Questions:  279 (127 unresolved) 
And please clean up your old posts
Rob

Similar Messages

  • Ios 6 orientation doesn't work and boot time increases. How to solve these issues for dummy? I don't understand code and strings suggested by others.

    I just upgraded from ios 5 to ios 6 on my ipad2. Now orientation doesn't work properly. Boot time increase, it takes longer time to boot. Is there any configuration to solve these issues? I can't understand the explanation with code and strings found on google to solve the orientation issue. Any easy configuration for dummy ?

    It supports well for ios 5. I couldn't remember (5.x.x) exactly but I always keeps update for ios5 and the abnormality starts when I upgraded to ios 6.

  • Problem with code and design view

    When I try to have both the code and design view
    side by side in Dreamweaver CS4 on a PC -- I get the html code in both sections.
    How  do I see the layout while looking at the code?
    Thanks for help.
    Library Friend

    You've probably got View > Split Code checked.
    Click View > Code and Design

  • Problems with CVS and improvements required

    Developing with JDeveloper 9.0.3 preview we have found some bugs and some improvements that would be very useful.
    Problems
    1)     Overlay icons on versioned files dont show the real state of the file as described in the Using Concurrent Versions System (CVS) With JDeveloper section of the Using Support for Team Based Development help manual (this issue was solved with a patch for the 9.0.2 release but it cant be applied for the 9.0.3 preview).
    2)     When CVS finds revision conflicts on the project file (.jpr) or on the descriptors of BC4J objects and packages, it overwrites (properly) the source file with the <<<<<< and >>>>>> comments to denote the conflict, and the warning for the conflict is signaled in the CVS log; but it would be nice (because it is annoying to check everytime the CVS log especially for a critical message like a conflict) having a message box reporting these critical messages.
    3)     During the import module function to import the project files into the CVS server, the image files (such as .GIF and .JPG) ought to be automatically added as binary files, or better still, it would be useful a configuration fuction to enumerate the extensions to be added as binary files.
    4)     After some types of CVS commands the CVS editors and CVS watchers windows becomes suddenly closed.
    Required Improvements
    1)     It would be useful a function showing all the files to be added to source control in a list and in a more general case, the versioning status of all the project files, without having to expand all the nodes of the project tree.
    2)     Its uncomfortable the current behaviour for the check out/edit on the project file (jpr) that automatically selects all files included within it. It would be useful to explicitly select to operate only on the project file or to include also the files within it; or at least to place the project file at the top of the list.
    3)     The Edit Files command for the CVS source control ought to support the cvs edit option -c (to check that working files are unedited) and an option to execute an update command before the edit one, to have the most recent revision of that file.
    4)     The opportunity to treat every type of BC4J object as a single CVS entity, taking all the files required by the single BC4J object grouped together and then checked-in, checked-out, etc. in a simple one-click operation.

    1) Overlay icons [cut] Has the problem returned in 9.0.3 and if so can you give me details of your cvs client version i.e CVSNT 1.0.11.1.3 etc.. It would be really helpful in tracking this down. The CVS version in use is (from the cvs --version command output): Concurrent Versions System (CVSNT) 1.11.1.3  (Build 57a) (client/server). The JDeveloper version is 9.0.3.988 preview.This is the client version we test against and recommend. We have seen no problems here and can't reproduce this. Could you help us track this down by supplying the answers to the following questions?
    1, What OS and CVS version is the server using?
    2, For a file that is showing the incorrect overlay could you check the timestamp in the CVS\entries file and post that and the timestamp on the actual file system file?
    3, What timezone are you currently working in and is daylight savings time in operation?
    and finally
    4, Is the CVS server in the same timezone?
    Hopefully this will give us a good start on where the problem is.
    [cut]
    We have already configured cvswrappers to properly handle binary files, but the cvs import function seems to ignore these settings, while cvs add uses it. If you try to import a project with some gif files using jdev, having configured cvs as described, these files will be corrupted. After this, if you add another gif file using cvs add function (not add binary) the settings will be used and the file are correctly stored.
    It seems that to make the import command work properly, file types have to be explicitly specified for each binary file (-kb option) on the cvs command line. To verify this we have tried the same operations using wincvs client. Inspecting the log window, we see that the client explicitly force the file types (they use an internal filtering to recognize binary files instead of file extension):
    cvs import -I ! -I CVS -W "*.gif -k 'b'" -m "no message" testmodule avendor areleaseRight, I'll add this information to the bug and make sure it gets evaluated.
    4) After some types of CVS commands the CVS editors and CVS watchers windows becomes suddenly closed. Could yet tell me what these operations are so I can log a bug? We dont know if its effectively a bug, but the window becomes closed when automating layout switching occurs (if its enabled in preferences), for example: Im in the ide without any open editors (current layout Editing), I get the editors list, then I open an uiXML file (the layout switch to Web Editing) and the list disappears. Even if the layout switch back to Editing (automatically or manually) the list is not re-shown (its not saved in the layout).This is an issue with JDevs layout in that the SCM windows are not default in any layout and so they are closed when the switch occurs. This is being looked at for a future release.
    3) The Edit Files command for the CVS source control ought to support the cvs edit option -c (to check that working files are unedited) and an option to execute an update command before the edit one, to have the most recent revision of that file. I'll add enhancement requests for these I especially like the update before edit suggestion. For team based development the reserved edit functionality (the -c option) would be very useful, especially for working with business components.I'll add your use case to the enhancement, as this is a very good reason to have "-c". Hopefully if we can implement 4) and integrate source control and BC4J better in a future release.
    4) The opportunity to treat every type of BC4J object as a single CVS entity, taking all the files required by the single BC4J object grouped together and then checked-in, checked-out, etc. in a simple one-click operation. We would also like to have support for this in source control and it is a feature that is currently under investigation.It would be -very- useful if, while trying to edit a generic component under source control, jdev suggested (in the edit dialog window, for example) which other files are likely to be modified, giving the chance to edit them also (if not already). For example, trying to edit a ViewObject component, it will be probably needed also to edit the .jpx, the project, the business package descriptor, in addition to the component implementation and descriptor.Agreed.
    We also have some doubts on the meaning of the dialog that often appears after a checkout or a folder update, asking New checked out files were detected; how would you like them to be dealt with?. Can you explain whats the behavior of each choice?The three choices breakdown as follows
    1. Open checked out files in the active project
    This adds all files to the project that is active in the IDE, if all files were already in the project no change will appear to occur. If new files have been downloaded they will now appear in the project
    2. Create a New project for the checked out files
    Generate a completely new fresh project from the checked out files, similar to the default behaviour of checkout module in JDev
    3. Do not open a new checked out files.
    Perform no action with the files, lets the user add them if they so wish.
    Thanks for the replies,
    Geoff Waymark
    JDev SCM Team

  • String problem..See and pls suggest the solution

    Hi all,
    suppose There is a string
    suppose
    Error Value does not EXIST or is not active. Value in Frame Field [$1] MUST Exist in Table [$2]..
    Now [$1] will be replaced by paramArray[l_param_counter]
    and [$2] will be replaced by paramArray[l_param_counter + 1]
    and message in the start which is "Error " will be removed
    Can you help me like how should i proceed.

    see http://java.sun.com/docs/books/tutorial/i18n/format/messageFormat.html for lots of usefull explanation

  • I have HP Compaq dc7600 , beep codes and red light !

    I have HP Compaq dc7600 and when i push the start button , i get Beep 4 times  than again 4 times , than again than again , 4 beeps , 5 times  = 20 beeps , and the red light with the beeps , the fan of powersupply and the other fans at the begining start then after 1 second it will stop , what should i do !

    Hi:
    Please see the troubleshooting guide at the link below.
    http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c00368814/c00368814.pdf
    There is a section that explains the beep codes and the suggested course of action to repair.

  • Good Morning.  I'm having a problem using both my Photoshop elements and premiere programs.  I've installed the programs, redeemed my code and entered the serial numbers, and created the adobe log-in.  I am able to open up the organizer without problems,

    Good Morning.  I'm having a problem using both my Photoshop elements and premiere programs.  I've installed the programs, redeemed my code and entered the serial numbers, and created the adobe log-in.  I am able to open up the organizer without problems, but when I try to open up the photo editor (either by trying to open up the program from the main menu, or right-clicking on a photo in the organizer to edit in elements), the program asks me to sign in to adobe (which I can do and it doesn't give an an "incorrect password" or log-in ID error) then accept the terms and conditions.  When I click to accept the terms and conditions, nothing happens and the editor fails to open.  Everytime I click on the program, I get this same "loop" of signing in and accepting T&C's, but the program fails to open.  Any advice?

      Premiere Elements 10 is now 64 bit, but not PSE10.
    Take a look at your scratch disk set-up and if you have a spare volume, allocate that first before the C drive. Elements use scratch disks when it gets low on RAM.
    Click image to enlarge
    Turn off face recognition and the auto-analyzer to improve performance.
    When editing photos or videos check the task manager to see what background processes may be running and end them temporarily if not needed.

  • HT1338 On AOL Get a 420 error code and cannot get to my account. Any suggestions?

    Yesterday I could not get on my aol account and I get an error code of 420. Problem persists today. Any suggestions? Bob

    Get in touch with AOL tech support. 

  • Tp ended with error code 0247 - addtobuffer has problems with data- and/or

    Hello Experts,
    If you give some idea, it will be greatly appreciated.
    This transported issue started coming after power outage, sap system went hard shutdown.
    Then we brought up the system. Before that , we do not have this transport issue.
    our TMS landscape is
    DEV QA-PRD
    SED-SEQSEP
    DEV is having the TMS domain controller.
    FYI:
    *At OS level, when we do scp command using root user, it is fine for any TR.
    In STMS, while adding TR in SEQ(QA system), we  are getting error like this.
    Error:
    Transport control program tp ended with error code 0247
         Message no. XT200
    Diagnosis
         An error occurred when executing a tp command.
           Command:        ADDTOBUFFER SEDK906339 SEQ client010 pf=/us
           Return code:    0247
           Error text:     addtobuffer has problems with data- and/or
           Request:        SEDK906339
    System Response
         The function terminates.
    Procedure
         Correct the error and execute the command again if necessary.
    This is tp version 372.04.71 (release 700, unicode enabled)
    Addtobuffer failed for SEDK906339.
      Neither datafile nor cofile exist (cofile may also be corrupted).
    standard output from tp and from tools called by tp:
    tp returncode summary:
    TOOLS: Highest return code of single steps was: 0
    ERRORS: Highest tp internal error was: 0247

    when we do scp using sm69,
    SEDADM@DEVSYS:/usr/sap/trans/cofiles/K906339.SED SEQADM@QASYS:/usr/sap/trans/cofiles/.
    it throws the error like below,
    Host key verification failed.
                                                                                    External program terminated with exit code 1
    Thanks
    Praba

  • Problem Getting Error Code and Description in Alerts

    We are having trouble getting the Error code and Error description in the Alerts and we're having trouble getting a alert for message mapping exceptions.  I have read through the BLOGs and the help on SAP.  I'm not sure it is something to do with the configuration or SP14.  We did not have these problems with SP12 at our other customer XI implementations.
    Background -
    We have setup an "XI Alert" classification with three Alert categories -"XI_Mapping_Error", "XI_Adapter_Error", "XI_Runtime_Error". 
    For the "XI_Mapping_Error" alert category, we have setup a rule so that any Integration Engine Application Mapping.* Error code will create an alert.  However, when we have a mapping error in XI which we can see in MONI, we do not get an alert.  The checkbox for "Suppress Multiple Alerts of this Rule" is not selected.  I am not sure why we're not getting the alert.
    For the "XI_Adapter_Error" alert category, we have setup a rule so that any Adapter Engine * adapter type will create an alert.  The alert gets created - however, some of the container variables do not get poulated in the email.  We have defined Container variables pointing to the corresponding ABAP data dictionary elements - i have double checked these definitions.
    Here is an alert email - the Error Code (SXMS_ERROR_CODE -  SXMSERRTX) and Error Category (SXMS_ERROR_CAT - SXMSERRCAT) are not being extracted:
    Alert ID: ##23896##
    Error Code =
    Error Category =
    Message ID = 1506eab0-6125-11da-9ba2-00505685 Time = 14:26:12 Date = 29.11.2005
    Sender Party =
    Sender Service = BS_CPI
    Sender Interface = MI_CPI_INV_RFC_REQ_ABS
    Receiver Party =
    Receiver Service = BS_CPI
    Receiver Interface =
    We are not able to figure out why the Alert framework is not working correctly.  We are running XI 3.0 SP 14 on Win2K, SQL 2000.
    Anyone encounter these problems?  Any help would be appreciated.
    Regards,
    Jay Malla

    >> There are some problems with SP 14 and the alert framework.
    Very true! Join the team!
    >> We applied Note 876546 which triggered certain alerts that were not getting triggered. However, we're not getting the Error code and Error Description in some of the alerts.
    Jay, This note is specifically for a situation where the 'where did the error occur' set to No Restriction. I don't think anything else is included in this fix .01 to patch 0.9 of SPS 12 of XI 3.0!!!
    My problem is that even the messageID variable is not getting replaced!!! In SP12 everything was perfect. After SP14, the errors are coming almost instantaneously to the inbox, but without any variable replacement.
    Best of luck,
    Kannan

  • E52 - problem with lock code and bluetooth connect...

    I have an E52 as my work phone, and due to company security policy, a lock code and autolock (30 minutes max) is mandatory. This is giving me problems when using bluetooth headsets, regardless of the make (Plantronics, my Garmin GPS, and latest the built in Fiscon in my car). As long as the phone is not locked, everything works fine, I can make and receive calls. But, when the phone locks, I am no longer able to make calls. In the car (both on the GPS, and on the built in connection) I can still browse the phone book and select a number, but when I attempt to dial, nothing happens.
    If I enter my lock code, I can make calls without problems. However, it sort of defies the purpose of having a rather expensive hands free kit in my car, if I can only make calls the first 30 minutes of my ride.
    Is this a known problem, and is there a solution?

    This is not a problem as such, more of a design flaw.  It is not possible to make a call when the phone is locked, I guess the only way around the issue is just to press a button on the phone every now and then.  Say every 15 to 20 mins just push the menu button or any button randomly, that should reset the timer back to 30 minutes until it is locked next.
    Hope this helps.
    Everything should be made as simple as possible, but not simpler.
    Nokia E7-00
    Click the white star if you think I helped you please

  • Suggest Values(Auto Fill) for code and description in WD ABAP

    Greetings everyone,
                     I have one ABAP webdynpro application which has to provide the auto fill (Suggest Values) option for one of the field for Eg:Material No.The requirement is the user will have only one field where he/she should be able to search the material either by its name or material number in the same field.Please let me know how we can achieve this.As of now i am able to search by material number using suggest values using my own custom search help.But how can i include the material description also as search option for the material number field.Any help will be appreciated.
    Material No:[____________]      <- - -   i should be able to search both by material number and description in suggest values(Autofill)
    Thanks,
    Vignesh

    Hi Thomas,
       You are right. I have exactly thought the same way and i implemented the code as well in the search help exit which will give my own search result to the searching criteria with both number and description. I have able to achieve this for one application and now i am able to search with both number and description in the same field.But when i am trying to get the same functionality for another field ,it is showing a auto fill values but only for code and not for description of the code.I have mentioned below the code i have written in the search help exit and i am passing the list to the source tab and getting the search help result in record_tab.When i test this from normal SAP GUI using F4 functionality it works perfect.But when i try to use this search help via Autofill(Suggest values) in WD ABAP,it is not working the same way what i want.I mean it only searches with the code but not with the description in teh autofill.
    Any help will be appreciated.
      IF callcontrol-step = 'SELECT'.
        DATA:lwa_selopt TYPE  ddshselopt,
             lit_selopt_rsfnr TYPE RANGE OF tn39t-rsfnr,
             lwa_selopt_rsfnr LIKE LINE OF lit_selopt_rsfnr ,
             lit_selopt_desc TYPE RANGE OF stnd_rsfna,"rsfna, "nkdi-stdtext,
             lwa_selopt_desc LIKE LINE OF lit_selopt_desc,
             lwa_tn39t TYPE tn39t,
             lit_tn39t TYPE STANDARD TABLE OF tn39t,
             lv_sel_val TYPE ddshselopt-low.
        READ TABLE shlp-selopt INTO lwa_selopt WITH KEY shlpfield = 'RSFNR'."'DKEY'.
        IF sy-subrc EQ 0.
          MOVE-CORRESPONDING  lwa_selopt TO lwa_selopt_rsfnr.
          APPEND  lwa_selopt_rsfnr TO lit_selopt_rsfnr.
          lwa_selopt-option = 'CP'.
          CONCATENATE '' lwa_selopt-low '' INTO lwa_selopt-low.
          MOVE-CORRESPONDING  lwa_selopt TO lwa_selopt_desc.
          APPEND  lwa_selopt_desc TO lit_selopt_desc.
          CLEAR:lit_tn39t[],record_tab[].
          SELECT * FROM tn39t INTO TABLE lit_tn39t
             WHERE spras = sy-langu AND ( rsfnr IN lit_selopt_rsfnr
             OR rsfsn IN lit_selopt_desc ).
          CALL FUNCTION 'F4UT_RESULTS_MAP'
            EXPORTING
              source_structure  = 'TN39T'
            TABLES
              shlp_tab          = shlp_tab
              record_tab        = record_tab        " <--- I am getting the result correctlyin record_Tab ..but it is not coming in the output/
              source_tab        = lit_tn39t
            CHANGING
              shlp              = shlp
              callcontrol       = callcontrol
            EXCEPTIONS
              illegal_structure = 1
              OTHERS            = 2.
          callcontrol-step = 'DISP'.
        ENDIF.
        EXIT. "Don't process STEP DISP additionally in this call.
      ENDIF.
    Thanks,
    Vignesh

  • I cannot reactivate my e-reader with my existing Adobe ID and password which are both correct. I alwayss get the message "activation server error, Code: E_AUTH_NOT_READY" What kind of problem is this and what is most important, how can I solve it quickly.

    I cannot reactivate my e-reader with my existing Adobe ID and password which are both correct. I alwayss get the message "activation server error, Code: E_AUTH_NOT_READY" What kind of problem is this and what is most important, how can I solve it quickly. I am on holiday and want to read. Thanks for speedy reply.

    Yes, actually I talk about Digital editions. Do you know how to solve the problem as described in my first mail for Digital Editions? Thanks for your  kind assistance.

  • I keep getting an error message that I have an invalid security code when trying to make purchased in itunes.  But my security code and billing info are valid.  How do I rectify this problem?

    I keep getting an error message that I have an invalid security code when trying to make purchased in itunes.  But my security code and billing info are valid.  How do I rectify this problem?

    Did you ever get an answer to this? Im having same issue now! So frustrating!

  • TS3694 My iPad2 has repeatedly refused to update to iOS7, whether connected to a PC or not.  The error message indicates an unknown error has occurred, with error code 6.  Does anyone have any idea what the problem might be and how to solve it?  Many than

    My iPad2 has repeatedly refused to update to iOS7, whether connected to a PC or not.  The error message indicates an unknown error has occurred, with error code 6.  Does anyone have any idea what the problem might be and how to solve it?  Many thanks.

    Hi
    I followed this guy's instructions and it worked:
    http://evsiphone.blogspot.com/2009/05/iphone-iphone-could-not-be-restored.html
    I did disable the security (AVG and Zone Alarm) when I tried on my own PC. My wife's laptop which eventually got it working also uses AVG and Zone Alarm but on an XP O/S whereas my PC is Vista - maybe this is why.
    Cheers for you help.
    Andy
    Message was edited by: bigbadandy

Maybe you are looking for