LabVIEW 7.1 reports an applicatio​n error 'instructi​on adresses memory at 0x00000000 - ... could not be written' when finishing LabVIEW, even when not running any private code

Hi there,
I have found similar Qs here, but this one is _somehow_ different.
My quite large app (>600 VIs) uses some DLL calls to communicate with medical devices. It runs OK, AFAIK, even when started several times. BUT I get an error message each time I when finishing LabVIEW 7.1 (even when just having loaded the app!!!). The error message states that "The instruction at 0x778cca36 adresses memory at 0x00000000. The process 'written' could not be done on that memory. Click to close the app".
Any clues?
My system: Athlon64 3000+ with 1GB of RAM running W2k German with all availabel SPs, LabVIEW 7.1 English with all support files from the devellopr suite May05 edition. System was set up 2 days ago on a fresh PC. The old system showed the very same behavior.
My opinion is, that simply loading an app and than removing it should not cause such an error??!!
Greetings from Germany!
Uwe
Attachments:
Application_Error_LabVIEW_when_finishing.jpg ‏20 KB

I can't look at your code because I don't have LV 7.1, but I would recommend searching on the side of the DLL.
Do you have the source for the DLL? Can you be sure that the DLL doesn't somehow have a memory addressing bug? The DLL will be loadsd as soon as the program is loaded AFAIK, so maybe when unloading the DLL an error occurs because something isn't initialised properly. I've never programmed a DLL, so I may be way wrong, but my instinct tells me that the problem will most likely be with the DLL.
Hope this helps
Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)

Similar Messages

  • Why can I not attach a document to an email? Every time I want to send an email with a document attached to it, an error notice pops out. It tell me that the file is being used even when  it is not. How can I fix this issue?

    Why can I not attach a document to an email? Every time I want to send an email with a document attached to it, an error notice pops out. It tells me that the file is being used even when  iall other programs are closed. How can I fix this issue?

    Thanks Jeff, I was not aware that a template could be multi-page.  (All the existing templates were 1 page)
    But it worked, saving me some steps.  When I was finished I renamed the document, and locked it.
    Then tried to save it but  could not because it was locked.  I closed it, went to my Spread Sheet Folder ,
    to find it, it was not there.  The Finder could not find it either.
    So I start over again.
    I opened up Numbers and it showed my personal Numbers template folder, it contained both my new 
    original 4 page template and the vanished saved document!
    I tried to delete the template containing these document data and could not - I had to go to the Library/Application Support/Numbers to physically remove it from this folder. Then I started over again.  I Finally found out how to make it work: I can now "save as", and then lock, and it will go to place where I want it to be saved and locked.
    The secret is: Click on the document title in the menu bar, and it opens up  "Save as...", which works the same as in OS 10.4.11, and you can pick the place you want for saving.  Once done that, you can then lock the document in the same pull down menu, and then close it.
    I also found later that I can delete a template from its folder, by letting Numbers open the templates,
    clicking on the one I want to remove, then go to the "Numbers Menu/File/Move to...", select "Desktop"
    and from there the selected template can then be thrown into the Trash from there.
    It appears now that the real fault of the Numbers software is that the "Save as" command is not available in the "Edit" or "File" pull-down menus, but hidden behind the title of the document.

  • I tried to install the icloud to my windows 7. pop up said the insaller encountered errors before icloud control panel 3.1 could be configured. it also said my system has NOT been modified ? can anyone help?

    i tried to install icloud to my windows 7 pc. a pop up said the installer encountered errors before icloud control panel 3.1 could be configured. it also said my system has not been modified.Any advise how to modify my system?

    Well.
    I reinstalled Win7 64bit, same issue.
    I installed Win7 32bit, installer doesn't run correctly.
    Got a second new laptop, running Win7 Starter edition, 32bit, installer doesn't run correctly.
    By run correctly I mean when you double click it, you get the busy cursor and some disk IO then nothing happens.
    So....When's the next release of Itunes out?
    Because the current one is a steaming pile of unworking crap.

  • When I try to open Firefox I get: foxfire.exe application error Instruction 0x9a92819c referenced memory at 0x9a92819c Memory could not be written

    Downloaded Firefox but when trying to open I get: foxfire.exe Application error Instruction 0x9a92819c referenced memory at 0x9a92819c memory could not be written
    == This happened ==
    Every time Firefox opened
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; GTB6.4; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC 4.0; .NET CLR 2.0.50727)

    Hello Gayle.
    Try running Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] to disable all add-ons. It's possible that some is causing troubles. You can enable them one at a time to find the culprit.
    If that doesn't work, have you tried reinstalling Firefox?

  • Get error message "this "**" file cannot be attached until the files already attached are finished uploading" even when attaching 1 file

    I attached multiples .pdf files to an email. Tried to attach the next file before the previous 1 finished attaching. Got error message "this "**" file cannot be attached until the files already attached are finished uploading". Was never able to attach that 1 file to the email that I received the error message for; was able to attach subsequent files to that same email & send it. Now, I often get the same error message, even if I only attach 1 file & esp. when attaching .ai or .jpeg files. What can I do to fix this problem?

    It looks like nobody has an answer for this despite of the 80 something views!
    And here i thought Adobe admin would be monitoring the forum, but surprisingly, they don't even have the answer for this!!!

  • I frequently lose audio when in the middle of a call.  I am not certain whether it is a full disconnect or just an audio loss.  The person on the other end reports still being able to hear me, however, I suppose they could hear me speaking over another s

    I frequently lose audio when in the middle of a call.  I am not certain whether it is a full disconnect or just an audio loss.  The person on the other end reports still being able to hear me, however, I suppose they could hear me speaking over another source even if bluetooth disconnected. The loss of audio is always preceded by a quick shrill noise, so I can easily tell when it happens.  All I have to do to fix the problem is to select Audio Source on the call screen, temporarily switch audio back to the iPhone, and then switch back to the headset, and then it starts working again.
    My Iphone5 was replaced and having same Problem. Only does this when using bluetooth for talking.

    I have the exact same issue... I've been using a Jabra Extreme2 and just this weekend, bought a Plantronics Marque2 and today had the same issue, so it's clearly not the headset but the phone or OS.
    I might try a restore and see if it helps...

  • I get a nimax.exe- Applicatio​n Error every time I start labview

    every time I start a vi either by double clicking or by opening labview first I get an application error... "the instruction at "0x1ca12b96" referenced at "0x00000000", The memory could not be "read", click ok to terminate the program". when I click ok the program does not terminate and as long as I don't close labview completely I can close it and reopen the vi. I am unsure if the program malfuncions after that point but it is certainly an annoyance. Have you seen this problem before? Is there something that I should do to the vi to correct the problem? Thanks,
    David Long
    K.H. Controls

    I talked to NI about this issue, and tried the following WITH success (note that I am running W2k and Labview 6.0.2):
    1. Uninstall all NI components in the reverse order you installed them. For me, this was Ni-Daq, Ni-488.2, and finally Labview 6.0. If you have to, look at the modified or created dates of the folders to see what order you did it in.
    2. After this, I decided to go a bit further and delete the registry key for Ni-Daq under HKEY_LOCAL_MACHINE\SOFTWARE\National Instruments\NI-DAQ. Make sure you Export your registry key beforehand in case something goes wrong.
    3. Install Labview 6.0, custom installation. For this installation, DO NOT INSTALL the drivers, just Labview.
    4. After that, I installed the upgrade patch for Labview 6i -> 6.0.2, downloaded at ni.com.
    5. Next I downloaded the 2 files for NI-DAQ 6.9.3, uncompressed the files, and ran the setup. When the installation was done, I chose to not reboot now, but let me do it later. At one of these points, you can also Mass compile the VI's. I don't think it's necessary at this point, but I did it anyway.
    6. Finally, I downloaded NI-488.2 version 2.2 (which has a new version of MAX than NI-DAQ 6.9.3), uncompressed it and installed it.
    7. After this last step, I rebooted the computer and was able to finally get into MAX to configure my DAQ card.
    So far, this method has worked. Perhaps it can work for you.

  • Error 7 occurred at ABAPI Dist Report Read Link Info Error.vi - [.....] - RTBUIP_Build_Invoke.vi.ProxyCaller

    Hi all,
    I am on a field campaign with my Labview-controlled instrument. I wanted to make a small change to the code and build it again for uploading to a cFP-2020 Fieldpoint but the application builder stopped with the following error message:
    Error 7 occurred at ABAPI Dist Report Read Link Info Error.vi -> ABAPI Dist Cmp Settings to Disk Hier.vi -> ABAPI Get Settings From File2.vi -> ABAPI Get Settings From File.vi -> RTBEP_Invoke_Build_Engine.vi -> RTBUIP_Build_Invoke.vi -> RTBUIP_Build_Invoke.vi.ProxyCaller
    This is another computer than the one I used in the lab previously so might have forgotten to install something. I just copied the whole application folder with project file and subfolders
    to the Laptop I am using now. Labview version should be the same though (8.20).
    Any suggestions?
    Olaf

    Hello Olaf,
    This error is usually found when a subVI or a support file (DLL, custom control, etc)
    isn't able to be found by the application builder.  Possible reasons
    for this could include subVIs no longer located in their original
    paths and in need to be relinked, a DLL that isn't included in the build,
    and many other possibilities.
    You wrote that you copied the project from another PC, so it is very possible that some file went missing. Are all VIs in your project executable?
    You could try to mass compile all the VIs in your project and see if that helps.
    Regards,
    Johannes
    AE, NI Germany

  • Instrument reports: Input buffer overrun (Error -363)

    Hi all,
    I am currently trying to control an Ametek XG 12-240 DC power supply using LabVIEW 2013. I have downloaded all of the drivers from Ametek and can communicate with the device using NI MAX. When I run the "ametek simple example.vi" to set a current and voltage level and turn on the power output, I get
    "Error -363 occurred at Ametek XG Power Supply.lvlib:Error Query.vi 
    Possible reason(s):
    Instrument reports:
    Input buffer overrun;"
    I am new to LabVIEW and have not found any online solution to the problem. Any suggestions?
    Attachments:
    labview_error.JPG ‏107 KB
    labview_block_diagram.JPG ‏76 KB

    That's an IVI driver written by Ametek/Sorensen with a custom error code created by them. If you have CVI, you could perhaps debug the driver yourself. Otherwise, you might want to contact the vendor. Running I/O Trace would give you an idea of what commands are being sent.
    The last time I used one of their IVI drivers, ki had problems as well. Instead of doing any debug, I just spent a couple of hours writing a LabVIEW driver. A power supply is a simple instrument.

  • Labview VI is getting closed by Windows error

    Hello,
    I have an labview program that I am working on. When running the VI I get this message "LavVIEW 7.1 Development System has encountered a problem and needs to close. We are sorry for the inconvenience." It gives you the option to send the error report on not, and then is closes Labview. How do I go about troubleshooting this problem? How do I collect the error log?  My program had seemed to function OK for several days of debugging and then this error started to happen regularly. It seems to be happening in a subVI that is reading an INI file.
    Thanks for any help,
    Dan F.

    I believe that if you send the error report, the screen that come up says something liek "thank you for submitting your report" and then there will be a "Details" button that gives you the text of the log file.
    Chris Bakker
    National Instruments
    Applications Engineer
    Check out LabVIEW 2009 and the New X-series DAQ!

  • Memory Error when installing labview 6.1

    I had labview 6.0, 6.1 and RT installed on my PC (windows 2000). I tried to install application builder but I got Error that I have no labview installed, so I tired to uninstall RT, but I was abe to. Then I found out that I can't install or uninstall any of the Labview versions. So I went and deleted the whole NI directory, all the keys related to NI in the registry file, and Labview.ini. Now I'm trying to install labview 6.1, but I'm getting memory error and setup terminates. What can I do!
    Attachments:
    LB_Setup_Error.gif ‏36 KB

    First, I recommend contacting NI support at ni.com/ask and starting an incident report.
    Second, I recommend either restoring your registry from backup, or wiping your system and starting over. I know it doesn't sound like fun, and it isn't, but it is probably the only way now you can guarantee a good clean registry. Alternatively, go through the registry again and make sure all National Instruments and LabVIEW entries are deleted.
    In the future, and I make this recommendation to everyone, you should, as a safe practice, make a backup of your registry before you install anything, and also periodically. Archive these and label them with the list of programs installed, or with any new programs that have been installed.
    The Windows registry is obsolete,
    and complete hopeless when it comes to a stable system. There is no automated backup of the registry to my knowledge. The registry is the biggest source of problems with Windows, followed of course by DLLs (everyone has their own version, and noone's is alike, much less works right.) The registry can be backed up by using "Export" from the regedit program. Backups can be restored with the "Import" function in regedit of course.
    Good luck.

  • DLL causes error when quiting LabVIEW 2009 on WIN7

    Hello,
    I have reduced the problem in my EXE application to the following attached code (see attachment). Somehow the DLL (To User32.dll) calls are creating a problem when quiting Labview 2009. The Application stays resident in the Windows taskbar and after a while an error appears about that there was a problem closing the application and that it can be reported to Microsoft if desired. Then a second error message appears before the application dissapears from the taskbar. If I remove the DLL:calls from the code then the problems dissapear.
    Should I unload the DLL calls on a special manner before quiting LabVIEW?
    Solved!
    Go to Solution.
    Attachments:
    DLL-WIN7 problem.jpg ‏35 KB

    Another potential problem not mentioned in that article is that you have included your user32.dll explicitedly in your built application. Doing that creates 200% for sure trouble as the kernel32.dll, user32.dll and others are always residently loaded into memory anyhow and mapped into the system memory section of any process. If you tell an application to load this DLL again by explicit name, you end up having two copies of it mapped in your process memory space and that will cause very weird problems.
    To avoid this problem make sure the library name inside the Call Library Node only specifies the DLL name without any path information. Then close the dialog and save it. If you reopen the dialog it will show the full path but still save the name only until you make a modification in the path control at which time you can end up having a full path again.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • VISA - unable to queue operation & device reported an input protocol error.

    To summarise I have two main questions:
    How can I clear the VISA operation queue and what causes an input protocol error during transfer?
    I am using a Tektronix AFG3022B Function Generator with latest firmware connected via USB and LabVIEW 2013 SP1 patch 2 (13.0.1f2) 32bit with NI-VISA 5.4.1.
    If I have a small timeout, say 100ms, and perform a save operation and op complete query on the device (*SAV 1;OPC?), then do up to 10 VISA reads; the first few reads time out (as expected), but then I frequently get the following error:
    -1073807305 (0xBFFF0037) VI_ERROR_INP_PROT_VIOL. "Device reported an input protocol error during transfer."
    Once this occurs, the whole VISA session seems to become unstable and lots of the read operations fail returing this error code and not the timeout error (0xBFFF0015 (VI_ERROR_TMO)).
    This only seems to happen when I do save/recall operations (either internal or to a mass storage device connected to the instrument), all other commands/queries timeout for the first few reads (as expected) then return the value. Do you think this is probably down to poor instrument firmware/hardware? Or am I using the VISA incorrectly? I would have thought that attempting to read VISA data to soon should only generate a timeout error and not a protocol error.
    Reason for small timeouts:
    Instead of setting the timeout to 4 seconds and having no way of cancelling the read operation I set the timeout to 100ms and run a for loop up to 40 times ignoring timout errors unless it's the last loop iteration. This means I can the operation within ~100ms.
    What causes the VISA protocol error? I can't find much information on it.
    Once the protocol error occurs and I keep repeating the *SAV command, I get the following error:
    -1073807303 (0xBFFF0039) VI_ERROR_IN_PROGRESS. "Unable to queue the asynchronous operation because there is already an operation in progress."
    Once this error occurs, how can I force a clear on the VISA queue without unplugging/power cycling the instrument?
    Some NI I/O trace captures attached to show what happens and test VI.
    Using LV2014 SP1
    Attachments:
    VISA problems.zip ‏38 KB

    I thought I would try to duplicate your problems, but I only have a Tektronix TDS Scope that has USB.
    I am a big fan of using *OCP? to sync instruments control and your problem is of interest to me
    This very simple write/read returns the *OPC '1' return char consistently between 175-185 ms. No problem
    Trying your short timeout with a loop, I do not get what I or you expected.
    If I run this with an adequate timeout (something well longer than the needed 185 ms) it returns in between 175-185 ms with one time through the for loop. As expected. No problem.
    BUT! If I try setting the timeout to something below the needed 175 ms like your 100ms...
    Sometimes it works but it takes over 2000 ms to return but only goes though the for loop twice.
    But sometime it does not work at all, taking well over 10 sec to exit out of the for loop with a timeout error.
    I never see the queue error that you are seeing
    How long does it take to do a simple *SAV
    I don’t think the queue error is coming from the instrument. You would have to send the instruments the SYSTEM:ERROR? Request before the instrument would report any of the instruments errors. 
    Be sure to set your Termination Char setting. I prefer to turn it off for the Writes so I control when to send it. But turn it on for the Reads
    Also I noticed from your trace files that you use the *OPC? after a *IDN?. This is not needed as you will know the *IDN? is complete when your received the string back. In fact my Tektronix scope did not like it if I sent it "*IDN?;*OPC?\n". It would not send me anything back, not even the IDN.
    Is the SAV command on your instrument so long that you need to be able to break out of the loop?
    Omar

  • Row Selector Checkbox in Report throws "wwv_flow.accept" Error when checked

    Hello all,
    I ran into some time consuming trouble on
    a page of an assistant flow contains a report regions. Users shall select one or many rows from the report.
    The checkbox was added as a linked column and formatted as "Simple Checkbox".
    After submitting to the "NEXT" page an item :Px_MYEVENTS shall collect the ID column value of all selected rows.
    The page process "After Submit" shows:
    +:P2_Myevents := apex_util.table_to_string(apex_application.g_f01,';');+
    It is expected that only selected rows appear on the item, because we need this for further activities.
    On testing strange things happens:
    If no selection is done, the target page appears, the item :Px_Myevents contains the values of all rows
    When a selection is done, the branch error "wwv_flow.accept" appears, :Px_Myevents doesn't contain a value.
    This throws even when the code is used as a DA of type PLSQL - statement or function
    How do I get the expecte behaviour?
    Edited by: F Lan on 27.09.2012 13:18
    Apex Version is 4.1.1 on Oracle 11GR2 XE
    Remember the milk ;-)
    Regards

    Hi,
    Always state
    <ul>
    <li>Apex Version</li>
    <li>DB Version and edition</li>
    <li>Web server used.I.e. EPG, OHS, ApexListner Standalone or with J2EE container</li>
    <li>When asking about forms always state tabular form if it is a tabular form</li>
    <li>When asking about reports always state Classic / IR</li>
    <li><b>Always post code snippets enclosed in a pair of &#123;code&#125; tags as explained in FAQ</b></li>
    </ul>
    The following line ought to work they way you want it to , I have used this construct without issues
    :P2_Myevents := apex_util.table_to_string(apex_application.g_f01,';');
    If no selection is done, the target page appears, the item :Px_Myevents contains the <b>values of all rows</b>This suggests that all checkboxes are being treated as checked.
    You need to check why they are being treated as checked. Depends how they are rendered and if they are being manipulated in some way.
    The other point to consider is the Processing Point. The above process must run before ApplyMRU/ApplyMRD.
    You could try running the form in debug mode to see if it revealing anything in the Debug Report.
    The other way is to put it up on apex.oracle.com for someone to take a closer look at it.
    Cheers,

  • Performance issue in Report (getting time out error)

    Hi experts,
    I am doing Performance for a Report (getting time out error)
    Please see the code below and .
    while looping internal table IVBAP after 25 minutes its showing  time out error at this poit ->
    SELECT MAX( ERDAT ) .
    please send alternate code for this .
    Advance thanks
    from
    Nagendra
    Get Sales Order Details
    CLEAR IVBAP.
    REFRESH IVBAP.
    SELECT VBELN POSNR MATNR NETWR KWMENG WERKS FROM VBAP
       INTO CORRESPONDING FIELDS OF TABLE IVBAP
         FOR ALL ENTRIES IN IVBAK
           WHERE VBELN =  IVBAK-VBELN
           AND   MATNR IN Z_MATNR
           AND   WERKS IN Z_WERKS
           AND   ABGRU = ' '.
    Check for Obsolete Materials - Get Product Hierarhy/Mat'l Description
      SORT IVBAP BY MATNR WERKS.
      CLEAR: WK_MATNR, WK_WERKS, WK_PRDHA, WK_MAKTX,
             WK_BLOCK, WK_MMSTA, WK_MSTAE.
      LOOP AT IVBAP.
          CLEAR WK_INVDATE.                                   "I6677.sn
          SELECT MAX( ERDAT ) FROM VBRP INTO WK_INVDATE WHERE
          AUBEL EQ IVBAP-VBELN AND
          AUPOS EQ IVBAP-POSNR.
          IF SY-SUBRC = 0.
              MOVE WK_INVDATE TO IVBAP-INVDT.
              MODIFY IVBAP.
          ENDIF.                                               "I6677.e n
          SELECT SINGLE * FROM MBEW WHERE             "I6759.sn
          MATNR EQ IVBAP-MATNR AND
          BWKEY EQ IVBAP-WERKS AND
          BWTAR EQ SPACE.
          IF SY-SUBRC = 0.
             MOVE MBEW-STPRS TO IVBAP-STPRS.
             IVBAP-TOT = MBEW-STPRS * IVBAP-KWMENG.
             MODIFY IVBAP.
          ENDIF.                                      "I6759.en
        IF IVBAP-MATNR NE WK_MATNR OR IVBAP-WERKS NE WK_WERKS.
          CLEAR: WK_BLOCK, WK_MMSTA, WK_MSTAE, WK_PRDHA, WK_MAKTX.
          MOVE IVBAP-MATNR TO WK_MATNR.
          MOVE IVBAP-WERKS TO WK_WERKS.
          SELECT SINGLE MMSTA FROM MARC INTO MARC-MMSTA
            WHERE MATNR = WK_MATNR
            AND   WERKS = WK_WERKS.
          IF NOT MARC-MMSTA IS INITIAL.
            MOVE '*' TO WK_MMSTA.
          ENDIF.
          SELECT SINGLE LVORM PRDHA MSTAE MSTAV FROM MARA
            INTO (MARA-LVORM, MARA-PRDHA, MARA-MSTAE, MARA-MSTAV)
            WHERE MATNR = WK_MATNR.
          IF ( NOT MARA-MSTAE IS INITIAL ) OR
             ( NOT MARA-MSTAV IS INITIAL ) OR
             ( NOT MARA-LVORM IS INITIAL ).
             MOVE '*' TO WK_MSTAE.
          ENDIF.
          MOVE MARA-PRDHA TO WK_PRDHA.
          SELECT SINGLE MAKTX FROM MAKT INTO WK_MAKTX
            WHERE MATNR = WK_MATNR
              AND SPRAS = SY-LANGU.
        ENDIF.
        IF Z_BLOCK EQ 'B'.
          IF WK_MMSTA EQ ' ' AND WK_MSTAE EQ ' '.
            DELETE IVBAP.
            CONTINUE.
          ENDIF.
        ELSEIF Z_BLOCK EQ 'U'.
          IF WK_MMSTA EQ '' OR WK_MSTAE EQ ''.
            DELETE IVBAP.
            CONTINUE.
          ENDIF.
        ELSE.
          IF WK_MMSTA EQ '' OR WK_MSTAE EQ ''.
            MOVE '*' TO WK_BLOCK.
          ENDIF.
        ENDIF.
        IF WK_PRDHA IN Z_PRDHA.                                    "I4792
          MOVE WK_BLOCK TO IVBAP-BLOCK.
          MOVE WK_PRDHA TO IVBAP-PRDHA.
          MOVE WK_MAKTX TO IVBAP-MAKTX.
          MODIFY IVBAP.
        ELSE.                                                     "I4792
          DELETE IVBAP.                                           "I4792
        ENDIF.                                                    "I4792
        IF NOT Z_ALNUM[] IS INITIAL.                              "I9076
          SELECT SINGLE * FROM MAEX                               "I9076
            WHERE MATNR = IVBAP-MATNR                             "I9076
              AND ALNUM IN Z_ALNUM.                               "I9076
          IF SY-SUBRC <> 0.                                       "I9076
            DELETE IVBAP.                                         "I9076
          ENDIF.                                                  "I9076
        ENDIF.                                                    "I9076
      ENDLOOP.

    Hi Nagendra!
    Get Sales Order Details
    CLEAR IVBAP.
    REFRESH IVBAP.
    check ivbak is not initial
    SELECT VBELN POSNR MATNR NETWR KWMENG WERKS FROM VBAP
    INTO CORRESPONDING FIELDS OF TABLE IVBAP
    FOR ALL ENTRIES IN IVBAK
    WHERE VBELN = IVBAK-VBELN
    AND MATNR IN Z_MATNR
    AND WERKS IN Z_WERKS
    AND ABGRU = ' '.
    Check for Obsolete Materials - Get Product Hierarhy/Mat'l Description
    SORT IVBAP BY MATNR WERKS.
    CLEAR: WK_MATNR, WK_WERKS, WK_PRDHA, WK_MAKTX,
    WK_BLOCK, WK_MMSTA, WK_MSTAE.
    avoid select widin loop. instead do selection outside loop.u can use read statement......and then loop if required.
    LOOP AT IVBAP.
    CLEAR WK_INVDATE. "I6677.sn
    SELECT MAX( ERDAT ) FROM VBRP INTO WK_INVDATE WHERE
    AUBEL EQ IVBAP-VBELN AND
    AUPOS EQ IVBAP-POSNR.
    IF SY-SUBRC = 0.
    MOVE WK_INVDATE TO IVBAP-INVDT.
    MODIFY IVBAP.
    ENDIF. "I6677.e n
    SELECT SINGLE * FROM MBEW WHERE "I6759.sn
    MATNR EQ IVBAP-MATNR AND
    BWKEY EQ IVBAP-WERKS AND
    BWTAR EQ SPACE.
    IF SY-SUBRC = 0.
    MOVE MBEW-STPRS TO IVBAP-STPRS.
    IVBAP-TOT = MBEW-STPRS * IVBAP-KWMENG.
    MODIFY IVBAP.
    ENDIF. "I6759.en
    IF IVBAP-MATNR NE WK_MATNR OR IVBAP-WERKS NE WK_WERKS.
    CLEAR: WK_BLOCK, WK_MMSTA, WK_MSTAE, WK_PRDHA, WK_MAKTX.
    MOVE IVBAP-MATNR TO WK_MATNR.
    MOVE IVBAP-WERKS TO WK_WERKS.
    SELECT SINGLE MMSTA FROM MARC INTO MARC-MMSTA
    WHERE MATNR = WK_MATNR
    AND WERKS = WK_WERKS.
    IF NOT MARC-MMSTA IS INITIAL.
    MOVE '*' TO WK_MMSTA.
    ENDIF.
    SELECT SINGLE LVORM PRDHA MSTAE MSTAV FROM MARA
    INTO (MARA-LVORM, MARA-PRDHA, MARA-MSTAE, MARA-MSTAV)
    WHERE MATNR = WK_MATNR.
    IF ( NOT MARA-MSTAE IS INITIAL ) OR
    ( NOT MARA-MSTAV IS INITIAL ) OR
    ( NOT MARA-LVORM IS INITIAL ).
    MOVE '*' TO WK_MSTAE.
    ENDIF.
    MOVE MARA-PRDHA TO WK_PRDHA.
    SELECT SINGLE MAKTX FROM MAKT INTO WK_MAKTX
    WHERE MATNR = WK_MATNR
    AND SPRAS = SY-LANGU.
    ENDIF.
    IF Z_BLOCK EQ 'B'.
    IF WK_MMSTA EQ ' ' AND WK_MSTAE EQ ' '.
    DELETE IVBAP.
    CONTINUE.
    ENDIF.
    ELSEIF Z_BLOCK EQ 'U'.
    IF WK_MMSTA EQ '' OR WK_MSTAE EQ ''.
    DELETE IVBAP.
    CONTINUE.
    ENDIF.
    ELSE.
    IF WK_MMSTA EQ '' OR WK_MSTAE EQ ''.
    MOVE '*' TO WK_BLOCK.
    ENDIF.
    ENDIF.
    IF WK_PRDHA IN Z_PRDHA. "I4792
    MOVE WK_BLOCK TO IVBAP-BLOCK.
    MOVE WK_PRDHA TO IVBAP-PRDHA.
    MOVE WK_MAKTX TO IVBAP-MAKTX.
    MODIFY IVBAP.
    ELSE. "I4792
    DELETE IVBAP. "I4792
    ENDIF. "I4792
    IF NOT Z_ALNUM[] IS INITIAL. "I9076
    SELECT SINGLE * FROM MAEX "I9076
    WHERE MATNR = IVBAP-MATNR "I9076
    AND ALNUM IN Z_ALNUM. "I9076
    IF SY-SUBRC 0. "I9076
    DELETE IVBAP. "I9076
    ENDIF. "I9076
    ENDIF. "I9076
    endloop.
    U have used many select queries widin loop-endloop which is a big hindrance as far as performance is concerned.Avoid such practice.
    Thanks
    Deepika

Maybe you are looking for

  • All fields are not visible while creating transformation

    Hi experts, I am trying to create transformaion between a LO datasource  and DSO designed by me. In R3, in RSA6 I can see more than 45 fields but while creating transformation only 30 fields are available. I tried by replicating the datasource multip

  • Best practises for Hub and spoke Metro Etherent network

    Hi there, It is my first MAN deployment. I will use the 6513 as the core switch and the 3550 as the edge switches to the customer. The customer has 9 locations. The customer asked for interconnection between the 9 locations and his Data center in his

  • T-code CO01 to create Production order:error message "No routing found"?

    I use t-code CO01 to create Production order.At the first screen I select material 72 and plant HJW1 .At the Header creen,I input the data in the General tab and press return but the sap show the error message "No routing found".But I have create the

  • Docbook.xsl processing error on XSQL XML output

    Hi all, I've got an XSQL page query which returns a docbook-schema-valid document in XML. I've written a simple xsl stylesheet to test the output and the results are as expected. I now want to use the docbook.xsl designed by Norman Walsh but I'm gett

  • Windows Properties; checking Search Tab to show in output

    When I check the Search tab checkbox so the search tab will show in my chm output, it is not visible. Any idea why? Can someone help with this issue?