MB_DOCUMENT_BADI can not show error message  URGENT

hi all:
now i have a badi problem.
I use t-code migo to  post a purchase oder to complete goods receipt.
I need to  control the stock when user click the 'post' button, then maybe  I WILL give a error message and then stop the migo program.
for example, i wirte the code 'show message e398(00) with 'error message'' in the badi implementation ZMB_DOCUMENT_BADI,method 'MB_DOCUMENT_BEFORE_UPDATE' and active it. it will come to a  runtime error 'MESSAGE_TYPE_X'.
I debug the programe I found when the progamm come to
'show message e398(00) with 'error message'' ,next it will return sy-subrc = 4.
if I MODIFY the e398(00) with i398(00) then it will be OK
but I can not stop the program migo.

Hi all,
Try using the BADI "MB_MIGO_BADI" it has an POST_DOCUMENT where you can do the validations.
Reward if helpful plz.
Fran

Similar Messages

  • af:message sometimes does not show error message

    Have a page that has a popup to show some information.
    In page, used this to show error message that occured during save.
              <af:messages globalOnly="true" inline="true"  inlineStyle="padding:10px;" id="m4"/>
    In popup, used this to show error messages that occurred while performing some action.
              <af:messages globalOnly="true" inline="true" id="m2"/>
    Whenever any error occurs while performing some action in page, error message is shown.
    Then open the popup
    Whenever any error occurs while performing some action in popup, error message is shown properly in popup
    But after closing popup, not able to show any error message in page. In bean error message is added to FacesContext, but not shown in UI.
    What would be the problem here?
    JDev version: 11.1.1.6.0
    Thanks,
    Bhaskar Pola

    Thanks Vinay for the link. However still facing the issue.
    This method will be invoked from page.
        public void onDelete(ActionEvent actionEvent) {
            RowKeySet rksSelectedRows = table.getSelectedRowKeys();
            int count = rksSelectedRows.getSize();
            if(count == 0){
                FacesContext facesContext = FacesContext.getCurrentInstance();
                facesContext.addMessage(null,
                                        new FacesMessage(FacesMessage.SEVERITY_ERROR,"Atleast one row should be selected.",null));
                facesContext.renderResponse();
            } else {
               ADFUtils.showPopup(deletePopup);
    This method will be invoked from popup withing same page.
        public void multipleSelListner(ActionEvent actionEvent) {
            List<String> list = (ArrayList<String>)ADFUtils.getPageFlowValue("selList");
            try {
                if(list != null && list.size() > 0){
                    if(list.size() > 25){
                        error = true;
                        FacesContext facesContext = FacesContext.getCurrentInstance();
                        facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR,
                                                "Maximum 25 items can be selected.", null));
          facesContext.renderResponse();                                           
                        return;
            } catch (SQLException e) {
                System.err.println(e.getMessage());
                e.printStackTrace();
    I have removed some extra code...
    Looks like problem is with 2 af:message tags. When popup shown with error message second af:message within popup gets preference. Subsequent messages are pointed to that one.
    May be related to unloading popup content from document. Not sure though.
    Thanks,
    Bhaskar

  • IMOVIE - can not export, error message

    I can not export or finalize my project.  It keeps giving me an error message everytime I try to do it.  PLEASE HELP!!
    Ive done other projects in the past with no problem.  I just cant get this one to work

    I can not export or finalize my project.  It keeps giving me an error message everytime I try to do it.  PLEASE HELP!!
    Ive done other projects in the past with no problem.  I just cant get this one to work

  • Can not start - error message not enough storage

    This morning - when I push the start button there is an error message - Not enough storage .....  But the close abd settings button will not work. The bottom slider button will not work. I cannot shutdown to restart either

    Reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.

  • Update Itunes now can not access, error message

    updated Itunes, now cannot open the itunes, getting error message

    See Troubleshooting issues with iTunes for Windows updates.
    tt2

  • While trying to run it show error message : "The application or DLL C:\Program Files\Mozilla Firefox\sqlite3.dll is not a valid Windows image. Please check this against your installation diskette

    Just updated firefox. While trying to run it show error message : "The application or DLL C:\Program Files\Mozilla Firefox\sqlite3.dll is not a valid Windows image. Please check this against your installation diskette." Tried to download and install new firefox, but it alway show that the file is corrupt
    == Today ==
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2)

    Do a clean reinstall and download a fresh Firefox copy from http://www.mozilla.com/firefox/all.html and save the file to the desktop.
    Uninstall your current Firefox version and remove the Firefox program folder before installing that copy of the Firefox installer.
    It is important to delete the Firefox program folder to remove all the files and make sure that there are no problems with files that were leftover after uninstalling.
    You can skip the step to create a new profile, that is not necessary for this issue.
    See http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • Advanced action: jump to next slide if all text entry boxes are filled out. If not, pause project and show error message

    Hi there
    Working with captivate 4 and advanced actions, which is a great new feature, I encounter the following problem:
    I have a sign-in slide, where the user has to insert his name and several other data. For user-friendly handling, I have the text entry boxes appearing one after another, so when the user confirms his entry, the next text entry box appears and has the focus.
    The button for jumping to the next slide works with an advanced action:
    Only if the user has filled out all the text entry boxes, the action "jump to the next slide" is performed.
    If not, an error message is shown.
    It works well so far.
    Now, I want the project to pause there, and not to jump back to the beginning of the slide (as suggested in another Thread in this forum), because then the text entry boxes dissappear again.
    I tried to set the movie control variable rdcmndPause to 1 in order to make the movie pause, but nothing happens.
    I tried it with an external playback control bar and without, it didn't work in either case.
    I found the hint:
    To control the project through the skin file, add the prefix cpSkinLoader_mc to the variables. This might be the solution.(?)
    But how can I change the name of a MovieControl Variable?
    If anyone knows, how this is supposed to work or has another suggestion to solve the problem, please let me now.
    Thanks a lot.
    Petra

    Hi Petra,
    I believe I can help you, but from a completely different angle than anything you've tried yet.  I try to find simple solutions to complex problems.  No advanced actions will be needed, just a little creative timing.  First, I need to be sure I correctly understand what it is you're hoping to accomplish.
    If I understand you correctly, you've got a single welcome slide.  On this slide you've got several TEB's (text entry boxes), set up with variables to make your project more personal or gather some required information.  These TEB's have no right or wrong answers, they simply require an entry: such as an address which begins with a numeric key.  The TEB's are set to appear one after another, as one is completed the next one appears.  Once all have been completed a next button, set to "jump to next slide" takes them  to the next slide and on through your course.  You want the project to pause until the user clicks this button, and only proceed if all TEB's have been entered.  If not, you wish an error message to appear.
    If the above description is correct, I'd do the following:
    Leave your TEB's to show up one at a time as the previous is submitted, as you've described. (each one pauses the slide till info is submitted, then "continues" the slide and the next TEB displays)
    Set each TEB to "display for rest of slide".
    For the next button:  In the properties dialog box, options tab, name the button "Next_button" and uncheck the visibility box.
    Open the properties for the final TEB that students will fill in and set the on success property to "show" then choose the Next_button by clicking the drop down arrow beside the "show" field.  This will hide the Next button until all TEB's have been filled in.
    There is no error message, because there is no possibility of error.  Why tell a student they've messed up, just eliminate that possibility!    All TEB's only display after the previous is entered, and the Next button is hidden until the last TEB is entered.
    I've tested this in a simple 3 slide project and it all worked fine, including some variables.  If you need more detailed info, or would like to see the sample proj. I created let me know.
    Hope this helps.
    randy

  • TS3638 i have an internet connection but when i open app store it shows error message "cannot connect to app store".when i try to sign in with my valid apple ID and password it says "connection failed".i tried keychain access settings but it did not help.

    i have an internet connection but when i open app store it shows error message "cannot connect to app store".when i try to sign in with my valid apple ID and password it says "connection failed".i tried keychain access settings but it did not help.please help me!!

    Open Sysem Preferences from your Apple () menu top left in your screen then select the Firewall tab.
    Make sure the Firewall is turned off.

  • When re installing iTunes on window it shows error message: Service Apple mobil divice does not start

    When re installing iTunes on window it shows error message: Service Apple mobil divice does not start

    Try the following user tip:
    Troubleshooting issues with iTunes for Windows updates

  • TS4585 When I am restoring backup data for my iPhone 4 in the end of back up restore it show error message " back up can't be restored" , please advice what I can do to restore my backup

    When I am restoring backup data for my iPhone 4 in the end of back up restore it show error message " back up can't be restored" , please advice what I can do to restore my backup

    That usually means that there is something wrong with the backup and it cannot be used.  You can try restoring the backup again, but if you continue to get the same message all you can do is restore to a different backup, if you have one.

  • Idoc- can we sent already sended idoc if status is showing error message

    hi
    Idoc- can we sent already sended idoc if status is showing error message
    without making any changes.
    Thanks in advance.

    Hi raja,
    IN BD87.
    give the idoc number,its status,messagetype and partner system and resend it.
    Regards,
    nagaraj

  • When trying to install nwds tool , showing error message not properly insta

    hi ,
    when i am trying to install nwds in system, it showing error message at the end stage.
    The following program files could not be registered:
    *     c:\windows\sapwksta\setup\splash.dll*
    *     c:\program files\common files\sap shared\wdadobecontrol.dll*
    *     c:\windows\system32\librfc32.dll*
    *     c:\program files\common files\sap shared\sapchart.ocx*
    The installed applications may not function correctly until all program files are successfully installed.
    what is the problem. when i am click on nwds icon on desktop, it showing error message
    c:\program files\sap\ide\ide7.0\eclipse\sapide.exe is not valid wid 32 applicaiton.
    i installed java and gave environment variables settings . it is not a problem.
    please give reply

    Hi Sujana,
    I am also faced the same issue when I install the NWDS softward.
    Reason: Maybe you have install higher version NWDS.Beside that SAPGUI will also use librfc32.dll.
    Solution: Please delete librfc32.dll in c:\windows\system32 and install again
    I have did the same thing, itsh installed successfully.
    Hope it shold works fine.
    Regards,
    Venkata Ramireddy

  • Can't download mountain lion from app store, shows error message: retry/cancel and starts from begining

    can't download mountain lion from app store, shows error message: retry/cancel and starts from begining,
    I alreasy paid for it
    Can I get a direct download link other than from app store

    Try opening the Terminal utility in your system and running the following command to open the system's caches folder:
    open $TMPDIR../C
    Then locate and remove the folder called "com.apple.appstore" and then try relaunching the App Store and downloading the installer again.

  • HT3204 when accessing the itunes store it is showing error message not connected to internet.   But computer is connected to internet

    when accessing the itunes store it is showing error message not connected to internet.   But computer is connected to internet. Plz I need  help

    Naomi Blewit wrote:
    Hi,
    I am going on iTunes and it is saying that I am not connected to the internet but I am. I was on iTunes last a few days ago. Please help...
    iTunes is a program on your computer, it is not "the Internet".  The fact that the program runs has no bearing on Internet connectivity.
    Maybe if a little more information was supplied, like version of the Operating system on the computer and version of iTunes, then a little more assistance could be provided.

  • Can I go back to the old look of the 'server not found' error messages?

    After updating to Firefox 32, I noticed that the 'server not found' error messages now look differently. I don't like the new look, so I wonder if you know about an add-on that restores the old look. I've tried searching for it, but I don't know the proper name of these error messages, so I'm not sure what search phrase I should use.

    To recall what it looked like before, I did a search: [https://www.google.com/search?q=server+not+found+picture+firefox&client=firefox-beta&hs=wiy&rls=org.mozilla:en-US:official&channel=fflb&tbm=isch&tbo=u&source=univ&sa=X&ei=QUIXVPz7Eou7ogSl8YD4Bg&ved=0CB8QsAQ&biw=1036&bih=554#facrc=_&imgdii=_&imgrc=dFf2lmJRgVlgyM%253A%3BS3EdEuvyajjWqM%3Bhttp%253A%252F%252Fi.stack.imgur.com%252F2ZJR2.jpg%3Bhttp%253A%252F%252Fsuperuser.com%252Fquestions%252F584305%252Ffirefox-says-server-not-found-because-its-adding-www-how-do-i-stop-this%3B851%3B455 Images of Server not found in Firefox]
    I did not find an addon, but I did find an old hack for the profile folder in this thread: [http://forums.mozillazine.org/viewtopic.php?f=7&t=492177&start=0]
    EDIT:
    There was also [https://addons.mozilla.org/en-US/firefox/addon/errorzilla-mod/ ErrorZilla addon]

Maybe you are looking for