Deletion indicator not working after user exit error

Hi Gurus,
I had one requirement in Purchase Requisition. If the number of items increase by 36 , there should be an error saying that maximum items reached but once that item is deleted that error should disappear.
I have written the coding in an Exit: EXIT_SAPLMEREQ_010.
And the coding is :
IF gs_eban-bsart = gcz902.
LOOP AT gt_eban INTO gs_eban
where loekz is initial.
LOOP AT gt_ebkn INTO gwa_ebkn WHERE banfn = gs_eban-banfn
and bnfpo IN r_bnfpo.
recherche division- ordre interne
LOOP AT ot_div into gwa_div WHERE ot = gwa_ebkn-aufnr AND div = gwa_ebkn-bnfpo.
ENDLOOP.
IF sy-subrc NE 0.
gwa_div-ot = gwa_ebkn-aufnr.
gwa_div-div = gwa_ebkn-bnfpo.
APPEND gwa_div TO ot_div.
ENDIF.
ENDLOOP.
ENDLOOP.
DESCRIBE TABLE ot_div LINES n.
IF n >= 37.
case sy-ucomm.
WHEN 'MESAVE'.
MESSAGE e111(zpfr) with n.
exit.
ENDCASE.
ENDIF.
ENDIF.
So now the exit is working fine......but when i go to delete that extra item it is not getting deleted , so while saving the information message comes that no data changed.
So ho wto delete that extra item.
Do anyone have reply....
thanks in advance.

Hello.
If you insert 37 lines you get your error message. But if you delete 1 row, you get error message again, right?
I think that's because you are not refreshing internal table ot_div. Shouldn't you refresh it before LOOP AT gt_eban INTO gs_eban?
Regards.
Valter Oliveira.

Similar Messages

  • Default Dashboard not working after user login

    Hi All,
    We have one issue in 11.1.1.7.1 where PORTALPATH is not working for users. As a result, user lands on home page/recent page instead of the default dashboard after login.
    I followed Doc ID 1576576.1 and Bug 17071629 - PORTALPATH SESSION VARIABLE IS INEFFECTIVE is reported. I applied patch 17071629 on top of 7.1. I have tried and verified that
    ·     The URL we are using to login is “http://machinename:9704/analytics/saw.dll?bieehome&startPage=1”
    ·         There is no Start Page set  in user’s My Account other than Default.
    ·         In Answers, the PORTALPATH session variable fetches correct dashboard path.
    ·         I removed space in the dashboard name and tried with following path “/shared/Dashboard/_portal/PortalPathTest”. Also, assigned same default value to the session variable. I also tried “/Shared Folders/Dashboard/Dashboards/PortalPathTest” and “%2fshared%2fDashboard%2f_portal%2fPortalPathTest” but nothing works.
    ·         lsinventory shows the patch got applied successfully.
    One thing to notice -
    1.       Login url is: "http://machinename:9704/analytics/saw.dll?bieehome&startPage=1"
    2.       After login, browser URL gets changed to "http://http://scoreboard-sit.wellsfargo.com:9704/analytics/saw.dll?bieehomemachinename:9704/analytics/saw.dll?bieehome" and shows Home Page instead of default dashboard.
    3.       Now at this stage, if I append "&startPage=1" to the above step 2 URL in browser, it automatically navigates to correct default dashboard.
    Also, This patch has fixed default dashboard in Act As. That means, If I act as a User, I land on correct default dashboard. But if same user actually logs in, s/he lands on home page.
    I suspect if URL redirection after login is the actual issue. Please suggest if anyone has an idea.
    Thanks,
    Akshat

    I think this was the issue -
    There was a java script error related to an undefined object, "accessMode" in logon.js.  This is related to Accessibility or Section 508 (checked by Developer Tools of IE).  We may have removed this code from the logon page which was causing the error. We had customized the page quite a bit previously. When I ignore the error and step through, I go to the correct portal path page. So we are going to replace the logon.js file with backup and hopefully it will fix the issue.
    Cheers!
    Akshat

  • HR_INFOTYPE_OPERATION is not working in user exit ZXPADU02

    Hi frndz,
      i want to delimit/modify record in infotype 0014 after checking some condition when user clicks on SAVE in infotype 0008.
    For this i'm using the code like below.
    In Include ZXPADU02.
    when '0008'.
    IF sy-ucomm = 'UPD'.
    chek <condition>
    if sysubrc = 0.
    Lock employee.
    Delimti(LIS9) record in IT0014 using HR_READ_INFOTYPE_OPERATION.
    Unlock employee.
    endif.
    Here every thing working fine but record is not getting delimitted.
    Could anybody please help me any other possibilities to solve it.
    Thanks and Regards,
    Venkat

    Hi,
    I tried to use the FM HR_INFOTYPE_OPERATION in ZXPADU02 but I found that it will
    not update data in the real DB table(PAXXXX).I found that in FM 'HR_MAINTAIN_MASTERDATA' from FM 'HR_INFOTYPE_OPERATION' will set the field 'PSPAR-PBPFL' as 'X'.
    In standard program, it looks like if this field is set it will not do the logic to update the DB table. So I put the code in other report and then call in the ZXPADU02. I think it's about LUW.
    Code as follows to understand.
    data:
          lw_p0008      LIKE p0008,
          lw_pskey      LIKE pskey,
          lv_option,
              EXPORT lw_p0008 lw_pskey lv_option
                to memory id 'ZXPADU02_0008'.
              submit ZHRR_PA_ZXPADU02_0008
                     and return.
    Inside program ZHRR_PA_ZXPADU02_0008
    IMPORT w_p0008 lw_pskey lv_option
        FROM MEMORY ID 'ZXPADU02_0008'.
      CALL FUNCTION 'ENQUEUE_EPPRELE'
            EXPORTING
              pernr          = lw_p0008-pernr
            EXCEPTIONS
              foreign_lock   = 1
              system_failure = 2
              OTHERS         = 3.
      CALL FUNCTION 'HR_INFOTYPE_OPERATION'
        EXPORTING
          infty                  = '0008'
          number                 = lw_p0008-pernr
          subtype                = lw_pskey-subty
          objectid               = lw_pskey-objps
          lockindicator          = lw_pskey-sprps
          validityend            = lw_pskey-endda
          validitybegin          = lw_pskey-begda
          recordnumber           = lw_pskey-seqnr
          record                 = lw_p0008
          operation              = lv_opera
    *      TCLAS                  = 'A'
    *      DIALOG_MODE            = '1'
    *      nocommit               = 'X'
    *     VIEW_IDENTIFIER        =
    *     SECONDARY_RECORD       =
        IMPORTING
          return                 = lw_return
    *      KEY                    =
      IF NOT lw_return IS INITIAL AND
         lw_return-type EQ 'E'.
        MESSAGE e000(38) WITH lw_return-message.
      ENDIF.
      CALL FUNCTION 'DEQUEUE_EPPRELE'
        EXPORTING
          pernr = lw_p0008-pernr.
    If this not works, then go for dynamic action from V_T588Z as suggested by Suresh.
    Regards
    Eswar

  • ME52N: Determine if restore delete indicator is set from user exit

    Hi all,
    My most recent dilemma involves tcode ME52n. I want to restore a line item that has been deleted on a purchase requisition. When I drop into my user exit I want to test to see if the user is attempting to restore the deleted line item...how do I do that? It seems if I use the okcode for the screen I am picking up the save...
    As always...thanks in advance,
    Mat

    Hi all,
    My most recent dilemma involves tcode ME52n. I want to restore a line item that has been deleted on a purchase requisition. When I drop into my user exit I want to test to see if the user is attempting to restore the deleted line item...how do I do that? It seems if I use the okcode for the screen I am picking up the save...
    As always...thanks in advance,
    Mat

  • My app store is not working after installing mavericks. When I open app store it repeatedly asking me to login with apple ID and to provide User name and Password for proxy authentication in a loop.I am a newbie to mac,Please help me.

    My app store is not working after installing mavericks. When I open app store it repeatedly asking me to login with apple ID and to provide User name and Password for proxy authentication in a loop.I am a newbie to mac,Please help me.

    Hmmmm... would appear that you need to be actually logged in to enable the additional menu features.
    Have you tried deletting the plists for MAS?
    This page might help you out...
    http://www.macobserver.com/tmo/answers/how_to_identify_and_fix_problems_with_the _mac_app_store
    Failing that, I will have to throw this back to the forum to see if anyone else can advise further.
    Let me know how you get on?
    Thanks.

  • Upgrade of our 10.4.11 laptop to 10.5 is accomplished and we now need to upgrade Quicktime and iTunes; however, the user name and password is now not working after the upgrade to 10.5.

    Object is to sync address and calendar between laptop with Max OS 10.4.11 and iPhone. Upgrade of our 10.4.11 laptop to 10.5 is accomplished and we now need to upgrade Quicktime and iTunes; however, the user name and password for the laptop is now not working after the upgrade to 10.5., though it was working prior to the upgrade, for file sharing.

    @ BDAqua > I tried your suggestion but no luck. holding opt+command just gave me a blue screen and it rebotted, pushing the disk out of the drive. Yes, the macbook has 1 gb of ram. I realize that the min req. call for 2 gb of ram so i've got an order in for another dimm to put into the machine. Thanks for your suggestions.
    @ a_brody > Yes. The machine was plugged into a power source. The disk promts you to do that and i recall aspect this form other installs. Thanks for the reminder tho! ( btw your second post is like greek to me man!) 
    @ Kuncklesmac > You're right about Snow Leopard being an upgrade from Leopard. I'm aware of this. And yes previously i've been told by Apple that I needed the Box Set (not the family pack.  i am using the family pack for OS Snow Leopard) to upgrade my 10.4.11 mac - they never mentioned adding ram but i figured that out on my own and an apple specialist recommended it when i purchased Snow Leopard and confirmed that I coul duse the Snow Leopard to upgarde from Tiger (10.4.11). I've also read extensively (as i said above) that it isn't necessary (always) to buy the box set. Several 10.4.11 users report having upgraded using the Snow Leopard upgrade disk only (not the Box Set) without trouble on intel macs (also see the apple link i posted). So i'm just ondering how they did it and i cannot. 
    Thanks fo rall yor help!

  • I am trying to setup my new time capsule but it is not working. after entering the airport utility and locating the TC, after I tell the program to continue, the unit just disappear and the setup menu says there is an error. Any idea of what is happening?

    I am trying to setup my new time capsule but it is not working. after entering the airport utility and locating the TC, after I tell the program to continue, the unit just disappear from the menu and the setup menu says there is an error. I tried using the wireless connection, and also the cable, but none worked. Any idea of what could be happening?

    What are you setting it up as.. join wireless network .. the very worst setup, it will disappear.. reboot the whole network in order modem. router TC.. clients and it will likely reappear.
    Tell us what network setup you are using..
    If you setup with cable to a computer completely isolated from the network with TC also isolated.. finish the setup of everything you want. .before update.. then plug it into the network. .then restart everything in correct order.. it will work most of the time.

  • Wireless net does not work after installing SP1 for Vista - Error code 10

    After installing Vista SP1 on my computer (T61 - Vista Business 32 bit) my intel 82566mm wireless net does not work.
    Windows says "Error code 10" and suggests that I update the driver. I have downloaded the newest driver via another computer, but it does not help. Still error code 10.
    Any one else has the same problem?

    I fixed the problem. Uninstall iTunes and then reinstall it clean. Looks like upgrading is problematic.

  • Keyboard delete and caps lock keys not working after update

    Shortly after a windows update two keys, delete and caps lock do not work. I have tried the following
    1. system restore..it says it cannot restore as a file is missing. I have used this function before without any problem.
    2. Update key board driver (standard PS/2)..it says latest version is installed.
    3. Uninstall and reinstall.
    4. Reset using the remove batteryt hold down power key option.
    The caps lock and delete does not work in Notepad or MS Word.
    It seems unlikely that the two keys themselves are damaged as it is unlikely that they would both fail at the same time and the problem after the windows undate is suspicious.
    I am using Windows 7 Home premium on a 64 bit HP G62.
    help appreciated as ever
    thanks
    matyiii

    matyiii wrote:
    Thanks I am beginning to suspect the same thing. I will try keyboard replacement as a last resort.....no fun to buy a new key board and have the problem persist...
    regards
    Matyiii
    Here's another test...since your laptop has USB ports get or borrow a USB keyboard and try it and if all those keys work and test then the results would mean your laptop keyboard has stop functioning as least you narrow done the problem.
    I am a Volunteer to help others on here-not a HP employee.
    Replies aren't online 24/7 because of Time Zone differences.
    Remember in this Day and Age of Computing the Internet is Knowledge at your fingertips if you choose understand it. -2015-

  • Xcode 3.2.3 is not working after installing on Mac 10.6.3?As when I start Xcode it is giving error"An unknown installation error occurred"

    Xcode 3.2.3 is not working after installing on Mac 10.6.3?As when I start Xcode it is giving error"An unknown installation error occurred"
    provide solution.

    Well I didn't enter a hostname from my ISP, but I did need to enter as a Host Domain the sub-domain (CNAME) that we use for our server. Don't know all the proper terminology, but I hope that's clear enough to someone to help. As soon as I did that, it worked again.
    Thanks for the tip,
    W

  • My itunes not working after it tried to download the new version. it keep giving error 7

    my Itunes not working after it tried to download the new version. it give me message: erro 7 or window error 193. need help. thank

    What worked for me was to uninstall from the control panel in this order: Thanks to another post on this board... this worked... link to the discussion here: https://discussions.apple.com/thread/5817584?tstart=0
    ITunes
    Apple Software Update
    Apple Mobile Support
    Bonjour
    Apple Application Support
    I had problems uninstalling Apple Mobile Support, I had to repair it first before I could uninstall it. You will have to restart the computer after all the uninstalls, and before reinstalling ITunes. I reinstalled ITunes from the Apple website afterwards (fresh download) ... everything works for me now that I have done this.

  • Microsoft Excel 2013 add-in not working after update

    I have originally posted this question at answers.microsoft.com and have been re-directed to post here. (http://answers.microsoft.com/en-us/office/forum/office_2013_release-excel/microsoft-excel-2013-add-in-not-working-after/298aff03-c90a-4a2a-b67b-07b6f3c7648c)
    We are an organization with over 200 users and are currently using Microsoft Office 2013 (Click-to-run install via Office 365 portal), we have noticed that in Excel when we apply the monthly Office update, the add-in (e.g. Analysis Toolpak) would stop working
    with the following error message displayed.
    I tried updating from 15.0.4631.1004 to 15.0.4641.1003,
    15.0.4641.1003 to 15.0.4649.1004, they all gave the same results.
    I have checked the captioned file path and it is indeed missing, I think the update mechanism messed up the add-in somehow, a full re-install would fix it as quick or online repair is not doing the trick.  This is not the only add-in it is affecting
    as there are some 3rd party add-ins are affected as well.
    Please advise how we can fix this without needing to re-install Microsoft Office.  Thank you!

    I don't have 365 or C2R so I can't address your main question, so just a few thoughts which may not be applicable in your setup.
    Check the addin manager to see if your addins are listed and ticked. If listed (ticked or not) check the registry to see where the location is written, if ticked look here
    HKEY_CURRENT_USER\Software\Microsoft\Office\15.0\Excel\Options
    and look for keys named OPENx, where x is the order number the addin is loaded
    if not "ticked" instead of \Options look in \Add-in-Manager
    With a VBA macro or in the VBE's immediate window return
    Application.LibraryPath 
    Assuming you found a listing in the registry do the paths match, if not look in the .LibraryPath to see if the addins got unloaded there into the subfolder \Analysis
    If you find the file(s) try un-installing and reinstalling the addins, but browse to the actual folder don't simply tick. If you can't find the files, copy them (from a different system) to the folder indicated by .LibraryPath. In the addin manager uninstall
    them if installed, close the manager, open it again and the addins should be listed, tick to re-install.
    You say your other addins don't work, I wonder if some mixup has occurred with what Excel thinks is the default path, but note for other addins the default addins path is returned by app.UserLibraryPath
    Are you using a Chinese system?

  • Internet not working after installing "StarTech Thunderbolt Docking Station" driver

    My Internet is not working after installing "StarTech Thunderbolt Docking Station" driver although "Ethernet" and "wireless" say they're connected, still there is no internet.
    I have bought a "StarTech Thunderbolt Docking Station" as I need to use 2 thunderbolt based pieces of equipment on my "MacBook Pro"; which are a 2nd monitor as well as a Thunderbolt driven Audio Interface.
    When I first plugged all my equipment to the "StarTech Thunderbolt Docking Station" everything was working fine, all pieces of equipment worked as well as Ethernet from both the computer and the docking station were working perfectly.
    However, when I inserted the "StarTech Thunderbolt Docking Station driver CD" and installed the drivers, the internet on my computer has stopped working. Although the Ethernet says it is "connected" (same goes for "Thunderbolt Ethernet" when cable is connected to it) still the internet does not work. Even my wireless internet is not working anymore. Furthermore, also after installing the Docking Station drivers, my iTunes is crashing whenever started.
    Please help, this is really urgent.
    I've been looking for answers all around but can't seem to find any.
    I'm using OSX Mavericks 10.9.2
    I've tried fixing stuff with Network preferences, like changing IP address, renewing DHCP leace.
    I also tried typing IP address, Subnet Mask, Router and DNS Sever manually... Nothing seems to be working.
    Note: I know someone could suggest to "uninstall" the Thunderbolt Station driver, however, I can't find an "uninstallation file", even the CD that came with the docking station does not have it.

    I had exactly the same problem today, and I was lucky enough to solve it.
    Here's what helped me:
    First, I found a hint to Suspicious Package in this thread.
    With Suspicious Package installed, I was able to identify the script in StarTech's installer pkg. It' called "postflight".
    Amongst other things, postflight runs this command:
    sudo mv usr/share/sandbox/mDNSResponder.sb usr/share/sandbox/_mDNSResponder.sb
    A quick check in Apple's knowledge base revealed, that the mDNSResponder is essential to use DNS (i.e. to resolve server names like www.apple.com) and bonjour.
    I moved th mDNSResponder back to where it belongs:
    sudo mv usr/share/sandbox/_mDNSResponder.sb usr/share/sandbox/mDNSResponder.sb
    After a reboot, everything worked fine again.
    I have no idea, why StarTeck disables an essential tool. Let's assume it's an error ...
    But after this experience, I didn't want the StarTech ethernet driver on my machine (I had installed it just for curiosity, anyway - yes, I know, I shouldn't have ...), so I removed the kext the installer had copied to my system:
    sudo mv /System/Library/Extensions/IONetworkingFamily.kext/Contents/PlugIns/AppleIntel8 2580.kext /Users/myusername
    (You see I didn't delete the kext directly, I just moved it away and tried another reboot. Now everything works fine, so I'm going to delete the kext entirely and paint a big red cross on StarTech's installer disk.
    Hope this helps.

  • Card slot does not work after update (14/10/2011)

    Card slot does not work after yesterday update (14/10/2011)! It works with my SD card month ago, but now it dosn't!!!
    MacBook Pro 13 OS ver. 10.6.8

    Thanks for your suggestion. I downloaded OnyX and ran the cleaning function. After restarting, I opened Help and once again the first screen appeared fine. But again most of the links did not work, though those under the "What's New" heading did work. I might add that I had previously tried a variety of suggestions posted in another thread, which included deleting from the caches folder in Home>Library several files such as com.apple.helpui and help.plist in the Preferences folder. (As noted in my previous post this evening, I also created another user but that also did not have any effect.) Any other ideas? Thanks

  • Content query web part is not working after chaning the DNS entry

    Hi all,
    We have a content query web part in the sharepoint site but it is not working after changing the DNS Entry for the web site ipaddress from one server to other . But it is working fine on the server, if we try to access the site from other system content
    quey server its not working fine and its giving error message as bellow.
    Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator.
    Can anyone help me to fix this issue please.

    I have custom XSLT . But it is working fine before changing the dns entry as soon as we change the DNS entry the content quey web part is not working. I tried to delete the content query web part and add it once again to the page, As soon as content query
    web part is added to the page the fallowing error message is displayed.
    Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator.
    Can anyone help me to fix this issue please.

Maybe you are looking for

  • Apex Report Very Slow And Aborts

    Hello All. I am using Apex 2.2.1 and have created a report region in which I retrieve upto 1500 rows in a report. The underlying report query is a function returning a SELECT statement in which search criteria are made part of the SELECT only if the

  • I can't make updates from SQL Developer

    I've been using SQL Navigator from Quest software to make some updates to data. I just run a select query with the updateable button selected and i can type in my updates and hit commit to make changes. I can't figure out how to do this in SQL Develo

  • Best practice to NOT transport reports?

    Hi, I was once told that it was best practice NOT to transport reports, templates, process chains and packages. (BW 3.5). These objects changed so often that you would spend to much time transporting. Now I have heard from others that it is usual to

  • DI Server Error

    Interop.SBODI_server.ddl  i s not working for windows server R2 I am getting Following Error System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Runtime.InteropServices.COMException (0x800706BE): The remote

  • Product planning and backing data to users computer

    Hi, I'm learning to program on the mac and have a quick question that has popped into my head. One of the most important features in having software on the iPhone is a strong back-up process of the users data. I am struggling with different types of