User exit - stop processing with error message displayed

Hi guys,
My scenario is like this
Whil doing migo for the same batch number more than 3 times i should not allow to post the document.
I have the material number and batch number in a seperate ztable
for checking this found out there is an exit.
Enhacmenet - MBCF0002
EXIT_SAPMM07M_001
I have written code in the above exit as
select count(*) from ztable
    into t_charg
     where matnr eq i_mseg-matnr
    and charg eq i_mseg-charg.
if t_charg gt 3.
  call function 'POPUP_DISPLAY_MESSAGE'
    exporting
      titel = 'Error Message'
      msgid = 'BD'
      msgty = 'E'
      msgno = '899'
      msgv1 = 'Batch Already Received 3 Times'.
if sy-ucomm = 'OKAY'.
elseif sy-ucomm = 'RW'.
else.
endif.
endif.
The program works fine and gives a pop up message and when i post the document
it still gets posted.
I should not allow to post the document
Help me on this issue?
Regards
Senthil

thanx for the reply
Ihave created a message class z001 and maintained a message(001)
but when i am trying to activate it says
Field "Z001" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement . . . . . . . . . .          
whether i need to include anything  in the program for message class
senthil

Similar Messages

  • TS1368 I was downloading some movies, (2 successful) and the 3rd movie- Adventures of Rin Tin, has stopped download with error message -.50???

    I was downloading some movies, (2 successful) and the 3rd movie- Adventures of Rin Tin, has stopped download with error message -.50???

    Perhaps try the "Error -50," "-5000," "8003," "8008," or "-42023" section in the Specific Conditions and Alert Messages: (Mac OS X / Windows) section of the following document:
    iTunes: Advanced iTunes Store troubleshooting

  • Error message display for PO creation with reference to internal orders

    Sir,
    While creating PO with Tcode ME21N (item category I) with reference to ' Internal Order with Funds provided (Tcode KO12), system displaying error message  when Budget is exceeded.
    But when Funds provision is not mentioned (Funds value is initial in KO12) , error message is not being given by the system during Po creation with ME21N.
    Where should I configure in img(Tcode SPRO) , so that system will throw error mesage while creating PO without Budget Provision (Funds not mentioned ) in Internal Orders.
    Regards,
    Srinivasa Murthy

    Hi Anupam,
    The error message display as follows. (when the PO Price exceeds the Planned Funds kept for internal order)
    This error comes during PO creation Process and PO can not be saved. This error message display is correct.
    Item 001 Order 600643 budget exceeded
    Message no. BP604
    Diagnosis
    In document item 001 Order 600643, budget  for fiscal year 2009 was exceeded by 99,960,000.00 INR.
    But  my question is 'when funds have not at all been mentioned for the internal order' then system has to throw the same error as mentioned above. But it is not happening. System is allowing the PO to save which is not correct.
    Regards,
    Srinivasa Murthy

  • BADI or User Exit validation of operations tab and displaying an error mess

    Hello,
    Could you please let me know the BADI or User Exit validation of operations tab and displaying an error message in iw32
    Thanks,
    Suresh Mgl

    Hi ..
    I tried that user-exit...but i need to block the changes for purchase requisition which is in released stutus..
    .i hope i need to do implicite enchancement spot.....could you please help me to do that..
    Thanks,
    Suresh Mgl

  • Process error message: Display on the same page

    When I create a before header process and that has an error, the error message shows up on a page by itself with the OK button. This takes away the context of the error
    Similar to how validations have the option of displaying inline on the same page, is there a way to have the process error message display on the same page?
    Thanks

    I just want to display the error message on the same page, thats all. I dont want a error page with just the error since it takes away all the context.
    Well what do you want to do, you can set a item to
    hold a message and display that item in a region
    when this_exception then
    :P20_ERROR_MESSGE := 'Something went wrong here';So, P20_ERROR_MESSAGE would be a hidden item on the page?
    Then display the item in a region.How can I display that hidden item in the region? So the region would just have this read-only text box in it? But then it wont be hidden? I guess I can conditionally display the region only if the error message is not null?

  • I tunes trys to sync and comes up with error message I tunes has stopped working, I tunes trys to sync and comes up with error message I tunes has stopped working

    Hi guys, Please help
    Just upgraded computer to Windows 7.  Installed latest version of ITunes. It installed and uploaded all my items in my library.
    Connected IPad2 and updated latest version.  However whenever it trys to sync my contents either to my IPad, my wifes IPad or my new Iphone4S, it simply comes up with error message.  I TUNES has stopped working.  Windows is checking for a solution to the problem... Windows will close the program and notify you if a solution is found.  Urggh,  can anyone help

    This is similar to my dilemma I just posted:
    itunes has stopped working error msg after software updates?                                                                                        50 minutes ago                       
    I have removed Bonjour as well.
    I've had this happen other times when I've updated iTunes software on other systems too, to the extent that now I'm reluctant to ever Accept when it suggests I do so.  But I went ahead this time and sure enough I think I'll have to do a total reinstall.
    LOL, I don't think Windows has EVER found a solution to ANY system problem I've had which makes it mildly amusing when it acts like it's helping!

  • HT204406 When downloading albums some songs stop with error messages..

    Hi, I was trying to download Armin van Buuren "A State of Trance 2011". The individual songs downloaded fine but both continuous dj mixes failed to download, they get right to the end and then stop with error messages. This is the 2nd Armin van Buuren album this has happened to! Please help!
    Dave.

    The 2nd mix still won't play, it just skips to the next track on the album. In my purchases it says it's downloaded, it just won't seem to play.
    It sounds damaged.
    If your country's iTunes Store allows you to redownload purchased tracks, I'd delete your current copy of the track and try redownloading a fresh one. See the following document for instructions:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    If you get another -50 on the redownload, perhaps try the "Error -50," "-5000," "8003," "8008," or "-42023"section in the Specific Conditions and Alert Messages: (Mac OS X / Windows) section of the following document:
    iTunes: Advanced iTunes Store troubleshooting

  • ITunes - When launched comes up with error message - User at wits end

    Hi - When launched ITunes comes up with error message below
    "iTunes has encountered a problem and needs to close. We are sorry for the inconvenience" - and then wants to send an error report off to Microsoft
    I have so far been through the bulletins and - deleted high and low filters using regedit , disabled virtual drives (which bought me CD drive back to life hurrah), reinstalled several times both Quick Time and I Tunes (seperately and together) including using Windows Install Clean up and the methodical Uninstalling and full deletion of Files - HELP - any ideas !! - forgot also disabled Norton through these steps

    Try this, it took me 5 days but I eventually got it to work.
    1. Scanned my hard drive for viruses. 1 was found & fixed, Spybot search and destroy, this is a freebee of the internet. Reboot PC
    2. Removed all software having to do with quick
    player & itunes - including ipod updates. Reboot PC
    3. Downloaded Quick player via the stand alone, you can get this from http://www.apple.com/quicktime/download/standalone.html. Reboot PC
    4. Dowloaded Itunes from the itunes support site.
    Then when you are asked to update say no. Reboot PC
    This should then work.

  • IDOC_INPUT_ORDERS with error message RV45A-VBAP_SELKZ (2) is not input fiel

    Hi
    I am creating a multiple line sales order from Idoc and using the FM IDOC_INPUT_ORDERS. The idoc is processed with status 51 with error message RV45A-VBAP_SELKZ (2) is not input field.
    It only happens for Idocs that are processed 1st time (re-processing is succesfull) and only in the background (if processed first time in foreground - it is ok).
    Have you ever seen this message?
    Thanks,
    Magda

    Hi Joy
    Thanks for an idea of creating a BDC from bdcdata before calling VA01 from an IDoc. I could analyze it and to correct an error I added some code in the user exit ZXVEDU04. I simply replaced all concurrencies of RV45A-VBAP_SELKZ (2) with RV45A-VBAP_SELKZ (1) and it worked:
    * MW Replace RV45A-VBAP_SELKZ(2) with RV45A-VBAP_SELKZ(1)
    move dxvbak to i_dxvbak.
    if i_dxvbak-bsark = 'WINT' and dxbdcdata-fval eq 'SICH'.
      dxbdcdata-fnam = 'RV45A-VBAP_SELKZ(1)'.
      modify dxbdcdata transporting fnam
       where fnam = 'RV45A-VBAP_SELKZ(2)'.
      exit.
    endif.
    This is called only once when dxbdcdata-fval = 'SICH'.
    Hope it helps.
    Magda

  • User exit for 0INFOPROV with InfoCube in BWA

    Hello Everyone,
    We recently added few InfoCubes into BWA and due to the reporting requirements and the way the reports were designed we had to create a user exit for 0INFOPROV in order to populate the InfoCube name based on the selection criteria for the report.
    But when we run the report, the report is ending up with an error message and we are not able to execute any queries on top of that multiprovider with the user exit embedded.
    If we remove the user exit and hard code the value for 0INFOPROV it works fine.
    Can anyone please let me know how you guys have dealt with the user exit for BWA.
    Let me know if additional details are to be provided.
    Thanks
    Dharma.

    Hello Vitalty,
    Thanks for looking into the message.
    The issue is, when we have a restricted keyfigure which has selection on 0INFOPROV to populate the InfoCube name through user exit the query is ending up with error messages.
    The error messages state
    "Error Error while reading data; navigation is possible
    Error Errors occurred during parallel processing of query 21, RC: 3
    Error The following errors occurred during parallel processing of query 22
    Error Error reading the data of InfoProvider ZCSLSMR10$X
    Error Inconsistent input parameter (parameter: <unknown>,  value <unknown>)
    Thanks for your time.
    Any help would be really appreciated.
    Thanks
    Dharma.

  • The way I deal with error message 1417, 1418 and 1428

    Firstly, sorry for my poor English, but I would like to share with you my experience, and hope that it may helps you.
    Since the release and update of iTunes 7, I have not faced any problem, but I heard a lot of articles from this forum about the errors 1417, 1418, 1428 and 50 etc. I could not make any suggestion and find a solution about it, all I could do is to copy some threads from some successful cases mentioned on this forum.
    Until yesterday, I finally received a 4th Gen 20GB iPod (around 2 years old)from a friend and asked me whether I could fix it for him, which has been left untouched as a paper-weight for almost 2 months.
    I tried to turn it on, and the screen was completed blank and the device looked dead. Before doing anything I prepared the following:-
    1. A window based PC
    2. A Mac computer
    3. An USB iPod cable
    4. A Firewire iPod cable
    5. An iPod AC charger
    As the iPod was previously formatted on a PC, therefore I tried to plug it with a PC via USB cable, it did not response and not able to get recognized by the PC. I ejected the iPod and connected with an AC charger, after a few minutes, I did a Reset for the iPod
    How to reset iPod
    http://docs.info.apple.com/article.html?artnum=61705
    The iPod showed an Apple sign, it stuck there for almost a minute, the screen then showed a battery with an exclamation mark sign, and after a minute, the iPod turned off itself. I was sure that the iPod carried very low battery, and could not be charged by connecting it with any computer (both Mac and PC).
    I decided to let it have a charge with an AC charger for a bit longer, after 10 minute I did the Reset again, this time a sign of folder with exclamation mark showed up after the Apple sign, and again could not get recognized by a computer.
    I changed my mind, and put the iPod into disk mode
    Putting iPod into disk mode
    http://docs.info.apple.com/article.html?artnum=93651
    Instead of connecting with a PC, I plug it with my Mac using a Firewire cable, it did not response, so I switched the cable to an USB, interestingly, the iPod got recognized and a window pop up indicating that the iPod needed to do a Restore. Therefore I clicked “Restore”, after a few seconds, an Error message pop-up with Error Message 1417, the sign that I have been waiting for quite sometime.
    I ejected the iPod and the screen immediately showed a folder exclamation mark (a sign indicating a corrupted or a failure iPod OS). I am forced to put the iPod into disk mode again, connected with the Mac computer and open the Disk Utility
    1. Open the disk utility, hope your iPod appears there (left hand side), highlight it
    2. Go to Tab “Partition”, click either “Delete” or “Partition”, if fails, skip this step and go to 3
    3. Go to Tab “Erase” , choose Volume Format as “MAC OS Extended (Journaled), and click Erase, again if fails, skip it and go to 4
    4. Same as step 3, but open the “Security Options....” and choose “Zero Out Data” before click Erase. It will take 1 to 2 hours to complete.
    5. Eject your iPod and do a Reset
    6. Open the iTunes 7 and click “Restore”
    It managed to complete the Restore process, and started to sync with the iTunes. However, it got stuck at the song no.238 from the total of 2000. I left it for an hour, but with no process, instead the iPod became “Hot” and the iTunes showed an Error message of 1428. I ejected the iPod from my Mac computer, the iPod’s screen turn to show the famous killer icon;“The Sad iPod“.
    This time it was totally dead, even failed to put it into Disk Mode and non of the computer could recognize it. Sigh, I hated to do it but I knew that I must did the following:-
    Holding the iPod in my Palm, and hitting it on a surface of a Sofa with 5 attempts.
    Did not surprise me, the iPod turned on and it showed the Language Menu on the screen. So, I put it into Disk Mode and connected with my window PC.
    The PC showed a sign and indicated that an USB device had been connected with it. I opened the iTunes and did a Restore there.
    However, an Error Message 50 showed up, but I were not worried about it, connected it back with my Mac computer with it in Disk Mode. As expected the iTunes opened and allowed me to do a Restore there.
    This time it managed to complete the process and a window of register pop up. After the completed the process, the iPod started to sync with the iTunes again, which finally managed to complete the process.
    I left it connecting with the AC charger overnight. In the next morning, I switched it on and have a play with it, I am so glad as it is working like a charm.
    From the above experience, I would like to share it with the user the following:-
    1. It always better to charge with an ac charger instead of the computer, as when an iPod carrying with very low battery, it may not able to get charge from a computer
    2. Try to connect the iPod with a computer, switching between USB and Firewire
    3. Try to format an iPod with HD problem, with a different kind of computer e.g. Mac or PC, as the formats are totally different, the way it formats may able to solve the bad sectors on the HD
    4. It may get better chance to get your iPod recognized, if you put it in Disk Mode
    I hope the following works in your case as I did.

    a pop up error message says itunes couldnt be configured
    I'd like to have a closer look at that error message please.
    Generate the error message again. While the error message box is open, hold down the Alt key and hit the PrtSc key. Paste the screenshot into an image file (using a program like Paint), and save the file.
    Start a reply here and click the wee camera icon at the top of the reply window. Click "Choose file", browse to the image file, select the file and click "Open". Now click "Insert file" to insert the screenshot into the reply.

  • HT1925 After failed update of itunes yesterday, now will not run with error message "MSVCR80.dll can't be found, APSDaemon.exe not running".  Windows 7.

    After failed update of itunes yesterday, now will not run with error message "MSVCR80.dll not found" APSDaemon.exe will not run.  itunes will not now run.

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features (later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (if this won't uninstall move on to the next item)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    The uninstall and reinstall process will preserve your iTunes library and settings, but ideally you would back up the library and your other important personal documents and data on a regular basis. See this user tip for a suggested technique.
    Please note:
    Some users may need to follow all the steps in whichever of the following support documents applies to their system. These include some additional manual file and folder deletions not mentioned above.
    HT1925: Removing and Reinstalling iTunes for Windows XP
    HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    tt2

  • Check_ntlm_password:  Authentication for user ['name'] - ['name'] FAILED with error NT_STATUS_LOGON_FAILURE

    Hi,
    We are running a Mountain Lion Server with Open Directory / LDAPv3, as far as I can tell.  My responsibility is to get my CentOS 6.3 box running Samba v. 3.5.10-125.el6 to authenticate users against the ML / OD box.  I can ssh to the CentOS box OK and I can get Guest access to the Samba share to go OK too.  Also, the OD passwords on the LDAP server are set to 'Open Directory' so I guess that means that they are encrypted and the Samba server is set to send encrypted passwords.  But when a user tries to properly authenticate using either say via a Mac client Finder [Command-K], or smbclient, the Samba server will generate this message:
    check_ntlm_password:  Authentication for user ['name'] -> ['name'] FAILED with error NT_STATUS_LOGON_FAILURE
    (I am blanking out the user name on purpose).
    Of course there is more to the story, but those are the basics.
    Here are the relevant parts of my smb.conf.  FWIW, the CentOS / Samba box is called Jupiter.
    Thank you,
    NickZ
    [smb.conf]
    [global]
              display charset = UTF-8
              realm = SATURN.MCLEAN.HARVARD.EDU
              netbios aliases = ANL
              server string = Welcome To The Jupiter Samba Server Version 3.5.10-125.el6
              interfaces = lo, em1
              security = SERVER
              update encrypted = Yes
              password server = saturn.mclean.harvard.edu
              smb passwd file = /var/lib/samba/private/secrets.tdb
              passdb backend = ldapsam:ldap://saturn.mclean.harvard.edu
              passwd program = /usr/bin/passwd %u
              unix password sync = Yes
              lanman auth = Yes
              client NTLMv2 auth = Yes
              client use spnego principal = Yes
              kerberos method = system keytab
              log level = 2
              syslog = 3
              log file = /var/log/samba/log.%m
              max log size = 50
              name resolve order = host lmhosts wins bcast
              server signing = auto
              preferred master = Auto
              ldap admin dn = uid=DirAdmin,cn=users,dc=saturn,dc=mclean,dc=harvard,dc=edu
              ldap group suffix = cn=groups
              ldap passwd sync = yes
              ldap suffix = dc=saturn,dc=mclean,dc=harvard,dc=edu
              ldap ssl = no
              ldap user suffix = cn=users
              usershare allow guests = Yes
              idmap backend = ldap:ldap://saturn.mclean.harvard.edu
              idmap uid = 10000-20000
              idmap gid = 30000-40000
              cups options = raw
    [homes]
              comment = Home Directories
              read only = No
    [printers]
              comment = All Printers
              path = /var/spool/samba
              printable = Yes
              browseable = No
    [anl]
              comment = Main ANL Share
              path = /anl
              read only = No
              guest ok = Yes
              hide dot files = No

    Turns out a printer driver installed on an XP (even W2K(?)) was (apparently?) flooding the OS X SMB server to the point of collapse. Uninstalling the "HP Tools" part of the driver cleared it up. The printer is an HP LJ1300. I had downloaded the full driver from HP.com. I don't know if any/all these conditions need to be matched, but: the printer was on the network using an HP print server JetDirect EX Plus, and the computer(s) in question were connecting directly to it (not via a print server). It's been too long ago, but there were always several errors in the System Log (Win XP Event Viewer) that correlated with the errors on the OS X server.
    Proud to say that since that day (10+ months ago) I've not seen it happen again. whew.

  • User Exit at process order release or save

    Dear experts,
    Can any one help me which user exit will be useful at the time of process order release or save (t code COR1/COR2).
    My requirement is to stop the process order release if there is any maintenance order is already released on that date.
    Process order should not get released in between the start and finish date of PM order for the same equipment.
    I could acheive this for PM side by using a user exit IWO10002, here if any process order is released for an equipment PM order cannot be released for the same equipment in between start n finish date of the process order.
    Please help me out in finding the user exit for process order release / save.
    Thanks in advence,
    Regards,
    Praveen.

    Hi,
    The following enhancements are available for process order management:
    For order maintenance:
    o   PPCO0006 to predefine entries for order header fields when creating
        an order
    o   PPCO0001 to provide information at the time of saving (for
        production orders and process orders)
    o   PPCO0007 to check or change header data when saving
    o   PPCO0002 to add additional checks that are to take place when
        setting the deletion flag or deletion indicator
    o   PPCO0003 to prevent changes in sales order items that would cause
        changes in the process order for static assembly processing
    o   STATTEXT to format the status line
    o   PPCO0008 to check components that have been changed or added
    o   PPCO0005 to change the storage location and the 'backflush'
        indicator in the reservation
    o   PPCO0013 to change the priority of the selection criteria for batch
        determination in production orders or process orders
    o   PPCO0014 to restrict the selection of process orders that are
        offered when creating external relationships
    o   PPCO0020 to display additional information for another tab page in
        the process order header
    Regards,
    Dhaval

  • Loading and with error message :COLLECTION in SOURCE SYSTEM ENDED

    Hi,
    Facing problem with master data object while loading and with error message :COLLECTION in SOURCE SYSTEM ENDED
    This load is getting failed every day. It is a full load and records are getting transferered and added.
    when we check in details tab in RSMO all data packets in processing is green but in extraction some of the data selection scheduled are in yellow.We are changing QM status to green as records are added.
    Version i am using is BW 3.5
    Please let me know what will be the problem???
    Thanks,
    Edited by: lokesh thonsyd on Feb 18, 2009 8:55 AM

    First try to find out the reason for the load failure. Once you fix this, do a manual run of the infopackage and when successful you can continue with the rest of process chain.
    Sometimes, it doesn't help to just set a request to green status in order to run the process chain from that step on to the end.
    You need to set the failed request/step to green in the database as well as you need to raise the event that will force the process chain to run to the end from the next request/step on.
    Therefore you need to open the messages of a failed step by right clicking on it and selecting 'display messages'.
    In the opened popup click on the tab 'Chain'.
    In a parallel session goto transaction se16 for table rspcprocesslog and display the entries with the following selections:
    1. copy the variant from the popup to the variante of table rspcprocesslog
    2. copy the instance from the popup to the instance of table rspcprocesslog
    3. copy the start date from the popup to the batchdate of table rspcprocesslog
    Press F8 to display the entries of table rspcprocesslog.
    Now open another session and goto transaction se37. Enter RSPC_PROCESS_FINISH as the name of the function module and run the fm in test mode.
    Now copy the entries of table rspcprocesslog to the input parameters of the function module like described as follows:
    1. rspcprocesslog-log_id -> i_logid
    2. rspcprocesslog-type -> i_type
    3. rspcprocesslog-variante -> i_variant
    4. rspcprocesslog-instance -> i_instance
    5. enter 'G' for parameter i_state (sets the status to green).
    Now press F8 to run the fm.
    Now the actual process will be set to green and the following process in the chain will be started and the chain can run to the end.

Maybe you are looking for