Generate an error when a user presses a button

I want to be able to give the user the option of exiting the program when ever he wants. I was thinking of having a button that would generate an error. The error number must be unique because i want to read it later. Is that possible? Any help will be appreciated

You cannot exit from a for loop until it is done. Use a while loop instead. Also, using the event structure in this case causes all kinds of exit problems. Try it and you will see what I mean. Instead, use the abort button itself. Put a case statement at the end to give the error output if the abort button was pressed. See attached vi.
- tbob
Inventor of the WORM Global
Attachments:
abortTesting.vi ‏45 KB

Similar Messages

  • When the user press the button Calculate Tax (see attached doc) and click on Tax details then this should be updated automatically. But it does not work it is empty and the user has to update manually.

    When the user press the button Calculate Tax  and click on Tax details then this should be updated automatically. But it does not work it is empty and the user has to update manually.
    All setup looks fine.
    Please let me know what can be done on this?
    Regards,
    Peu

    HarryAustralia wrote:
    I recently updated my ipad wifi only to the new ios 6.1.2 and initially I had the auto cover lock option which can be seen in the Generals tab, but then it stoped working!! Before the update, the auto cover lock worked fine. So after trying all the options, I then did a complete reset on the ipad and now its gone all together from the General tab!! I can no longer see the "auto cover lock" option.
    The iPad cover lock is for when you use a cover with magnets in it to lock and unlock the iPad when you close the cover or open it. Try running a refrigerator magnet along the sides of the iPad and see if that trips the iPad Cover Lock back into the settings.
    That is not the same thing as the iPad Auto Lock setting which allows you to set an allotted time before the iPad goes to sleep.
    You can try resetting all settings to see if the Auto Lock feature retinrs to the iPad.
    Settings>General>Reset>Reset All Settings. You will have to enter all of your device settings again.... All of the settings in the settings app will have to be re-entered. This can be a little time consuming re-entering all of the device settings again.

  • Avoid the deletion of delivery when the user press the delete button

    Hi guys,
    In VL02N transaction, when the user press the button for delete the delivery (trash button) i have to send an idoc to an external system in order to inform about. Im using IF_EX_LE_SHP_DELIVERY_PROC~DELIVERY_DELETION for this and it works fine.
    After send the idoc i have to stop the deletion process. So How i can avoid the delivery deletion? I can change some flag in this BADI or maybe i can do something in userexit_delete_document? I dont find the way.
    Thank you,
    Manel

    HI,
    In the method SAVE_DOCUMENT_PREPARE; try to pass some error messages in the parameter CT_LOG.
    This should raise some messages before saving and the data will not be saved and hence delivery will not be deleted.
    Check the same.
    Regards,
    Ankur Parab

  • Triggering POPUP to SAVE when user Presses BACK  Button

    h4.
    Hi Friends,
    h4.
    When the User Presses BACK Button in the PF Status, it should trigger POPUP_TO_CONFIRM  whether to SAVE or not.
    h4.
    Suppose if the user doesn't change any thing in the Screen, it should not ask the User.
    h4.
    How can i know whether the user changes something in the Screen.
    h4.
    Screen mean Table Control..
    h4.
    How can i track this.
    h4.
    Regards:.
    h4.
    Sridhar.J

    Hi Sridhar,
    Within the table control loop, create a chain of all the fields in the structure of line type. call a PAI module with addition ON CHAIN-REQUEST. This is a conditional module call which will be triggered ONLY when user changes something on the screen. In this module you can set a global variable DATA_CHANGED to say 'X'. When user chooses BACK function, check this global variable to decide on the confirmation popup.
    One small caution. If you have the ROW SELECTION field also included in the line type of your internal table associated with the table control, you need to exclude that from the CHAIN of fields above; otherwise even when user selects a line or de-selects, this module will be triggered.
    Read ON CHAIN-REQUEST and ON REQUEST online ABAP help for more clarity.
    Regards
    Suresh
    Edited by: Suresh Radhakrishnan on Sep 28, 2009 4:29 PM

  • Error when opening User and Group Preferences

    After upgrading to Lion there is an error when opening User and Group Preferences.
    I´ve repaired permissions but the problem is still there...
    Thanks...

    Hi,
    Double click on ur webdynpro application.Go to application properties tab.create new application property,select predefined property->browse->it will open a popup->select expiration time->give the value for expiration time.
    or
    Refer the note : [842635|https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=842635&nlang=EN&smpsrv=https%3a%2f%2fwebsmp206%2esap-ag%2ede]
    Hope it helps,
    Reward points if helpful.
    Regards,
    Shailesh Nagar

  • At selection-screen when user presses back button

    Experts,
    I have two radio buttons and two relative checkboxes ( one checkbox related to other ).
    Now when user selects one radio button and executes teh program, there is a summary page. When user presses back button from there, I return to the selection screen, however the selections are still there.
    Ideally I want a blank screen, as in nothing selected( similar screen when program is executed first ). Is it possible ?
    Kindly advise,
    Gols

    Hi,
    Try clearing radio buttons and check boxes at PBO of selection screen using AT SELECTION-SCREEN OUTPUT statement.
    PARAMETERS:
      p_rad1 TYPE c RADIOBUTTON GROUP rd1,
      p_rad2 TYPE c RADIOBUTTON GROUP rd1.
    PARAMETERS:
      p_chk1 TYPE c AS CHECKBOX,
      p_chk2 TYPE c AS CHECKBOX.
    AT SELECTION-SCREEN OUTPUT.
      CLEAR: p_rad1, p_rad2, p_chk1, p_chk2.
    Hope this helps.
    Regards,
    txhughes

  • Preventing app exiting when user presses cross button

    Hello,
    I can't seem to prevent the whole application closing down when the user presses the cross button at the top of any of the forms. For example I have a menu form which I want to keep running whilst the user closes other forms which are shown from it.
    Any suggestions?
    Thankyou,
    Karsten

    I could be wrong, but I thought that the default
    behavior of a JDialog is to not close the whole app
    when it closes. Is that not correct?You are correct, sir. The only way an application closes is by explicitly telling it to do so by EXIT_ON_CLOSE.

  • It generates an error when trying to import a version apex 4.0 production.

    It generates an error when trying to import a version 4 application to production. The copy was made as an apex 4 EA 2, (I have backups of different times in July). The error:
    ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-06550: line 4, column 1: PLS-00306: wrong number or types of arguments in call to 'CREATE_PAGE_ITEM' ORA-06550: line 4, column 1: PL/SQL: Statement ignored <pre>declare h varchar2(32767) := null; begin wwv_flow_api.create_page_item( p_id=>298101103038895115 + wwv_flow_api.g_id_offset, p_flow_id=> wwv_flow.g_flow_id, p_flow_step_id=> 45, p_name=>'P45_PRODUCTBACKLOG'

    This is the response that sends the team apex.
    Production is very different than our EA versions. On our EA site, we explicitly stated that an export from there may not work against 4.0. From your error, it looks as if the create_page_item procedure changed between EA2 and production. The only recommendation is to take an export from production and compare the statements used for create_page_item. If you can update your EA export to match the new format, you might be able to import but again, that action is unsupported.
    -- APEX Support Team

  • How to Unload the form when the user presses Escape Key

    Hi all
    I have tried several triggers for unloading the form when the user presses escape key,but none of them worked. Could any body give the trigger name and the code that unloads or closes the form when the user presses escape key.

    Hello,
    Change the EXIT entry of you ressource file:
    27   : 0 : "F4"             : 32 : "Exit"Francois

  • Apply my own formula when user presses sum button in a report

    Hi all,
    I have this requirement that when user presses SUM button for a particular field in a report instead of Summing it up and displaying I can apply my own formula and display its value. 
    For Ex :  When we press sum button for field efficiency :
    EFFICIENCY
    10
    11
    05
    26 - It would sum it up and display 26 , where as i don't want it to display 26 i want to apply a separate formula and display that value

    Suggest to add another custom button to the ALV toolbar and write the desired logic you want.
    Also to avoid confusion, disable the standard summation button. (you can add the same icon for the custom button if you wish)
    Thanks,

  • I dont want to commit master-detail form untill user press save button

    We have department-employee kind of master detail form.
    1) We click on any record on department block.
    2) Then we change / insert /delete record in employee block.
    3) then we move to anothe department.
    4) now it ask for saving the changes. THIS WE DO NOT WANT.
    5) WE WANT TO SAVE CHANGES WHEN USER CLICK ON SAVE BUTTON.
    6) If user make changes to various employees of various department,
    we want user to cancel changes when ever user wants.
    IN SHORT WHAT WE WANT IS
    No record should be saved untill user press save button below.
    and If user press cancel all changes made must be undo.
    PLEASE DO NOT SUGGEST DO_COMMIT in clear block details,
    We know that and we dont want that option.
    Regards
    Upendra

    Hi URTRIVEDI
    but it gives "could not reserve record (x tries), keep trying?" error.The problem is not within the code given by Francois but in sessions u opened.
    pls make sure u r not running more than one instance of ur form with in one session.
    e.g. FireFox is opening more than one tab at a time every modification u made > compile > Generate , Save & Run only one Form instance
    Hope this helps...
    Regards,
    Amatu Allah

  • Open a new window when a user clicks a button

    Hello!!
    I have the following problem, I have a table with a button, and when the user clicks the button, I want to open a new window, I don't know how to set the button so that it opens another window...
    Does anybody have an idea of how to do this??
    thank you in advance

    Hi,
    Following thread may help you
    http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=53654
    MJ

  • Track in historical reporting when a user press a option

    I am trying to figure how to track and what report to pull that will show me say how many times a when the script is called that a say option 1 was pushed and they were transfered out either to a queue or to another phone number? I have some users requesting this data.
    Thank you!

    Hi David
    The cheap and cheerful way is to do this:
    1) In your script, when a user selects an option, use a 'Set Enterprise Data' step to set either one of custom variable 1-10, caller entered digits, or account number (entered digits or a custom var would make most sense) to a value that indicates the choice that was made. For example, write the string 'Option 1' if one is pressed, or 'Technical Support' if 2 is pressed and the option is 'technical support'
    2) Run the Historical Reports Client and generate a 'Call Custom Variables' report. That can then be exported to Excel and filtered or pivot-tabled to find the counts of each option.
    Regards
    Aaron

  • How to show old value in webui when user press NO button on popup button.

    Hi Experts,
    As per requirement I have created custom field with dropbox and with popup box to cofirm user decision if value from field changes.
    Now on Popup when user press Yes then its Ok as no need to change the current value in the field.
    but when user press the NO button I want to display the old value on Web UI so now I am able to catch the old value and pass it into the field at backend but I am not able to make the change on the web page.
    Please reply if anyone have solution for it.
    BR
    Gaurav    

    Hi Gaurav,
    First of all when all this is happening in UI why you need to pass the selected value to backend. I didnt get this.
    I believe, this is only ui related and the old value which you got can be set in the IMPL class global variable and  trigger method set_on_close_event, say here 'CONFIRM_POPUP_CLOSED' as shown below:
      gr_popup->set_on_close_event( iv_event_name = 'CONFIRM_POPUP_CLOSED'
                                        iv_view = me ).
    Retrive the answer as per selection from popup in method 'CONFIRM_POPUP_CLOSED'
    by using:
      lv_answer = gr_popup->get_fired_outbound_plug( ).
    if lv_answer is NO, then put back the globally stored old value back to dropdown attribute, using:
    set_property_by_value method(   iv_attr_name = 'dropdown attr' iv_value = 'old value' )
    Thats it. No need to do anything.
    Regards,
    Bhushan

  • How to generate a notification when a user changes his password?

    Hi all,
    I have OIM 11.1.1.5.0 BP02 installed. When an administrator resets a user's password, the following email is sent to the user:
    Password has been reset for user <Firstname> <Lastname> . You will be required to change your password on next login.
    First Name: <Firstname>
    Last Name: <Lastname>
    Password: passW0rd
    +For any issues, please contact [admin email or phone]+
    My requirement is to generate a similar email when a user changes his/her own password. How would I go about doing this?
    Thanks in advance.

    You can use an event handler for this.
    Write your own code as a plugin for the event handler (refer to the developers guide for details on event handlers) then you can reference this from your custom event handler XML configuration with operation "CHANGE_PASSWORD"
    e.g.
    <action-handler class="<CLASS NAME>" entity-type="User" operation="CHANGE_PASSWORD" name="<EVENT HANDLER NAME>" stage="postprocess" sync="TRUE" order="2000" />
    The action "RESET_PASSWORD" is also available for administrator change.

Maybe you are looking for

  • HOW TO GET VALUE OF A PARTICULAR CELL IN ALV GRID

    I HAVE 2 ALV GRID. IWANT WHEN I DOUBLE CLICK ON ANY PARTICULAR CELL OF FIRST GRID I WILL GET THE VALUE DISPLAYED ON THAT PARTICULAR CELL. THANKS IN ADVANCE

  • ITunes 7.6 and Windows Vista - Buying Ringones

    I have bought and downloaded a Song to my Itunes library. I click on the song and from the "store" menu I click on "Create a Ringtone" it prompts me to login into my account if I am not already logined in and then it tells me that I have not agreed t

  • RV082 Unable to see or change settings in web interface

    I have just purchased an RV082. I am using a Mac with Safari and Firefox to access the web interface through http://192.168.1.1 I was able to log in to the web interface using admin/admin, but the system summary page is blank. The category choices we

  • 1 apple id, 2 people, and 3 devices

    My boyfriend and I each have an iphone, and he has an iPad as well. All 3 devices are using the same apple id. What is the best way to switch to 2 apple id's, without losing anything if possible, music, apps, etc. Thanks.

  • Jakarta TLD in sun 1.3 ?

    i'm trying to experiment with tld's. But i can't get jakarta (EA3) stuff running in sun's 1.3 container, there is an AccessControlException. I don't find any information in the jakarta docs.