In Pre-Exit, prevent method from being called

I have created an enhancment for a webdynpro component. Then, I have defined a pre-exit for a method in the component controller. Inside the pre-exit, I do a couple of checks, and depending on them, I would like to skip the processing of the method for which I have define the pre-exit. Is this possible?
I thought of the RETURN statement, but this won't help. RETURN will jump out of the pre-exit, but not out of the method.
my-pre-exit-of-method-SET_MY_VALUE.
  IF some_condition = some_value.
    "prevent the method SET_MY_VALUE from being called. but how??
  ENDIF.
end-of-pre-exit.

I just find out how to circumvent this...
The trick is to use "Overwrite exit".  Add your own codes.  Depending on your conditions, you can call back the original method.  But when you call the original method, you need to use the syntax:
me->original_method(...)
Do not use:
wd_this->original_method(...)
Using "me" will only call the original method; using "wd_this" will trigger your overwrite exit which means this will jump to a recursive call to your own exit; This will certainly drain the resources of your system indefinitely until it dumps.
Brian H.

Similar Messages

  • In Pre-Exit, pervent method from being called

    I have created an enhancment for a webdynpro component. Then, I have defined a pre-exit for a method in the component controller. Inside the pre-exit, I do a couple of checks, and depending on them, I would like to skip the processing of the method for which I have define the pre-exit. Is this possible?
    I thought of the RETURN statement, but this won't help. RETURN will jump out of the pre-exit, but not out of the method.
    my-pre-exit-of-method-SET_MY_VALUE.
      IF some_condition = some_value.
        "prevent the method SET_MY_VALUE from being called. but how??
      ENDIF.
    end-of-pre-exit.

    this is probably not possible. i have to close this message because i can not have more than 10 open questions anyway.

  • Inheritance: Keeping a supers method from being called

    Lets say I have the following situation:
    public class SuperClass
        public void methodOne(){/* Do Stuff */}
        public void methodTwo(){/* Do Stuff */}
    public class FooBar extends SuperClass
        public void methodThree(){/* Do Stuff */}
    }My question is, is there any tidy way of making it so that the programmer can't do something like the following:
    FooBar fooBar = new FooBar();
    fooBar.methodOne();In other words, I want to basically disable the programmer from being able to call FooBars methodOne() that was derived from its super class.
    Thank you for your time,
    Brandon Murphy

    Make it private.
    If it needs to be public then I have to wonder if the child class is a true child class as you desire that it shouldn't have all of the public behaviors of the parent. Perhaps you will need to extend by composition rather than by inheritance.
    Edited by: Encephalopathic on Jun 5, 2010 3:04 PM

  • How to stop the std SUS method from being called

    Hi
    I am working on SRM - EDI integration for NON SUS vendor.I am using a custom mapping and custom method call in this case.i have placed the logic in the std. mapping BADI - BBP_SAPXML1_OUT_BADI.i am triggering my custom method call in this method only.but i am unable to stop the control flow here after as i need not to trigger the Std. process.
    Regards,
    Durgaprasad Kare.

    Hi Durga,
    The BADI BBP_SAPXML1_OUT_BADI is meant for mapping purposes in the outbound proxy object and cannot be used to control the message flow.
    What I would suggest you to code the custom logic in the BBP_DOC_SAVE_BADI where is you can check the vendor and determine the custom message needs to be trigerred. Besides you have a check at XI level to block those mesages that are not needed.
    Regards
    Kathirvel

  • How do I prevent files from being backed up to iCloud and iTunes?

    I have created the ios app using adobe AIR16 and flash cc. After submission of my aap into aapstore, I received a message from Apple with the following message –
    From Apple
    2.23 - Apps must follow the iOS Data Storage Guidelines or they will be rejected.
    By using xcode we can prevent files from being backed up to icloud and itunes, but i want to know that  what is the way to achieve this by using AIR. While creating an explicit app id from apple developer account , i am not enabling icloud support.

    Within AIR you can set the File.preventBackup property to true on a directory or file to prohibit that content from being backed up to the cloud:
    File - Adobe ActionScript® 3 (AS3 ) API Reference
    This is all you need to call when you first create the folder or file to have it work with iOS backup guidelines.

  • Prevent batches from being changed in MB1A

    Hi,
        I am looking to prevent batches from being changed by the material handler during the MB1A transaction. Does anyone know of any user exit or BADI in the MB1A tcode to acomplish this or any other way to do it ? The batches determined during production order batch determination are the ones which should be issued out and if for some reason the batch needs to be changed, they should get back to their supervisor to issue a different batch. Is all of this even possible ?
    Thanks
    GS

    Hi GS,
    Please check  Enhancement MBCFC010  Propose batch number on Inventory Management item screen or MB_CHECK_LINE_BADI - BAdI.
    Regards,
    R.Brahmankar

  • Is there a way to send an email and prevent it from being forwarded

    Is there a way to send an email and prevent it from being forwarded

    Not with the most common email systems - webmail, POP, SMTP or IMAP. 
    The only email system I know of that can prevent forwarding (or copying or printing) is Lotus Notes (now called IBM Notes).  I believe it can technically be done within an MS Exchange environment, but I have never actually seen it implemented in one.

  • Search has encountered a problem that prevents results from being returned. If the issue persists, please contact your administrator.

    Hello Guys,
    I am creating resultsource from central admin. If I create it from central admin it works fine. But if I am creating result source from power shell scripts it shows me following error message.
    An exception of type 'Microsoft.Office.Server.Search.Query.InternalQueryErrorException' occurred in Microsoft.Office.Server.Search.dll but was not handled in user code
    Additional information: Search has encountered a problem that prevents results from being returned.  If the issue persists, please contact your administrator.
    Any suggestion ?
    Thanks in Advance.

    Hi,
    Please provide more specific information about the issue. What type of content source you tried creating via powershell?
    Make sure you are using the approproate permission and search service application.
    Here is the reference for creating content resource via script:
    http://technet.microsoft.com/en-us/library/ff607867(v=office.15).aspx
    Regards,
    Rebecca Tu
    TechNet Community Support

  • I receive numerous messages in "Bulk Mail". Where do they come from and how can I prevent them from being received? Thanks

    I receive numerous messages in "Bulk Mail". Where do they come from and how can I prevent them from being received? Thanks

    Once you're on a spammer's list, there's nothing you can do to stop the flood of e-mail messages. You can either control it, using spam filtering (which is what files those messages in the Junk Mail folder), or you can throw out your e-mail address and get a new one.
    It's sad, but spam is simply a fact of life at this point, and there's nothing to be done about it. Legislation has been tried, with zero success, since most spam either comes from countries with no legislation or from personal computers that have been infected with malware and are part of a "botnet."

  • The application detected an error that prevents changes from being saved.

    Hi. I'm having this problem almost all the time when I do some color correction.
    "The application detected an error that prevents changes from being saved. To avoid losing your work, quit Final Cut Pro."
    Any ideas why this is happening?
    I'm on a 2010 Mac Pro running latest Mavericks and latest FCP X.
    I already removed FCP X, and all the effects I have installed. But still the issue persists.
    Thanks.

    That could have happened. I can't remember though.
    Is there any work around?
    I currently only have 1 open library and 1 event on it. If I move or copy that event into a new library, would that in theory work?
    Thanks for the help so far.

  • Is there any way to prevent fields from being overwritten when importing data via xdp-file?

    In an pdf-form designed with LCD everytime the form gets merged with an xdp-datafile content of all fields get overwritten, regardless which data-binding (normal, global, none) is assigned to the fields and regardless if the fields are exluded in the xdp-datafile. Is this normal behavior and is there any way to prevent fields from being overwritten?

    The xdp-file is first exported from Acrobat Professional 8 (export data as *.xdp) to get the complete structure. Then in the xdp-file some fields are removed manually and other fields are filled with data. When the modified xdp-file is opened again with Acrobat Professional 8 it grabs the original pdf-form and merges the manually filled fields into the form. With the merge all other fields in the form are overwritten, even if they are not defined in the xdp-file. And that is what I want to avoid. I want to merge the xdp-file into the form and keep the data in fields not defined in the xdp-file.

  • Is there a way to prevent HTML from being displayed in forum?

    Is there a way to prevent HTML from being displayed in forum in BC to avoid linking to other sites on an eCommerce site?

    Thank you for your post!
    Unfortunately there isn't a way to restrict customers to post on your forums links to other sites.
    However what I suggest here is to choose to moderate each forum post and this way you can choose to approve or remove links from the posts sent by customers.
    I hope this helps!
    Andrei

  • Can I maually check for updates but prevent them from being automatically installed if it turns out one is available?

    Can I maually check for updates but prevent them from being automatically installed if it turns out one is available?
    Background:
    In options I have "check for updates, but let me choose whether to install them" ticked. This works fine, in that I periodically receive a notice of an available update, and it will ask me whether I want to I want to install it.
    But there are certain times -- for reasons I won't go into here (unless requested as part of seeking a solution) -- where I want to manually check for new versions, but RETAIN the ability to decide whether or not to install it. But if I click Help/About Firefox/Check for Updates, and it finds an update, it will immediately proceed to install it without asking for permission. While that seems quite inconsistent with my update preferences in Options, it is apparently normal behavior as described in https://support.mozilla.org/en-US/kb/update-firefox-latest-version#w_how-do-i-manually-check-for-updates.
    So is there any way I can manually check for new-update availability but then refuse the update if I so choose? Once an unwanted install begins, I'm concerned that if I click cancel I could end up with a partial installation or some "messed up," duplicated or corrupted FF files (e.g., multiple versions appended with (1), (2) etc, similar to what sometimes confusingly happens when I do an XP System Restore).
    Thanks.

    I think what needs to be made very clear here is that when a user clicks on "check for updates" the software should bloody well CHECK for updates and most certainly SHOULD NOT proceed to download and apply any updates. this is misleading and intrusive.
    I just wanted to check if there was an updated version but I DID NOT want to actually update at that moment. the software downloaded data, costing me money and tried to apply the update which could have potentially messed up my settings if I had not checked everything was ok first.
    I actually discovered how to prevent the update by searching through windows and manually deleting the files but why should anyone have to go to such lengths?
    the software should simply do as it is asked, not do things that have most certainly not been asked.

  • DoFilter() method is being called only at the second request

    Hi,
    I have implemented a simple Filter class
    Here is the code
    public class BasicFilter implements Filter
    FilterConfig config;
    public void init(FilterConfig config)
    System.out.println("Filter Initialised");
    this.config = config;
    public void doFilter(ServletRequest request,ServletResponse response,FilterChain chain) throws ServletException,
    IOException
    System.out.println("In The doFilter() method");
    ServletContext sc = config.getServletContext();
    sc.setAttribute("Hello","Hell");
    chain.doFilter(request,response);
    public void destroy()
    System.out.println("In the destroy method");
    and a simple servlet
    public class FilteredServlet extends HttpServlet
    public void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException,IOException
    response.setContentType("text/html");
    PrintWriter out = response.getWriter();
    out.println("<HTML>");
    out.println("<HEAD><TITLE>Filter Demo</TITLE></HEAD>");
    out.println("<BODY>");
    out.println(getServletContext().getAttribute("Hello"));
    out.println("</BODY>");
    out.println("</HTML>");
    Now when i start the server (Tomcat 4.0) i find that the filter's init() method is being called which is fine. But when i request the servlet (FilteredServlet) the doFilter() method is not called and only when i "refresh" it or call it a second time that the doFilter() method is actually called. What could be the reason for this.
    Help will be greatly appreciated.
    Thank You,
    Phani Kanuri

    Hi jleech,
    Thanks for the reply. But deleting all the temporary internet files as also the history files does not seem to have an effect. the doFilter is being called only at the second request. or did i miss anything??
    Please help. unable to complete the assignment because of this.
    Thank You,
    Phani Kanuri

  • How do i prevent history from being cleared? prevent privacy browsing?

    How do I prevent privacy browsing and/ or prevent history from being deleted from son's computer?

    Note that removing or disabling "Private Browsing" will not make it impossible to delete private data like visited websites (history) or cache.
    There are a lot of ways to clear such data, either via [[Clear Recent History]] or directly by deleting the History in the Library or sidebar.
    Private Browsing makes it easier because all data is kept in memory and nothing is saved to disk, so nothing needs to be removed.
    If you want to see which sites have been visited then you should look at others means outside Firefox like a router or firewall with a password protected logging feature that can't be bypassed or a program like [http://www.wireshark.org/download.html Wireshark].
    See also http://kb.mozillazine.org/Parental_controls

Maybe you are looking for

  • Multiple instances of Mail.app must be possible

    I've seen many questions regarding the possibility of running multiple instances of Mail.app as separate processes. There seems to be much good reason to be able to do so, i.e. separating work and private mail, and very little bad reason to do so (ma

  • HP Laser Jet P2055 slow when printing Excel documents or from databases.

    I work for a company that is deploying 100s of this model of printer and for some reason Excel documents and print jobs sent from databases print out extremely slowly. It takes 2 to 7 seconds per page depending on what is being printed. The way we ar

  • Is there any standard variable to calculate previous and current month

    hi, Is there any standar variable to calculate previous month and current month which will calcualte from system date (sy-date). I found standard SAP Delivered variable - 0CMONTH to calculate current month. But i want both current month and previous

  • When / where to render - workflow question.

    Hello. I did try a couple of searches but did not seem to hit what I am looking for. I am a relativly new convert to Premiere Pro, came over from the Sony world. Purchased a EVGA GTX560 last week (used to be radeon based) and I am in awe. Loving thin

  • Query efficiency

    I have a table I'd like to report on based on ten or so LOV values stored as check boxes. In the past I've used substr to join my filtered key stored in the LOV, separated with colons with the key sandwiched between colons on the table I am querying.