Stop displaying a message when button is pressed more than one

Hi
I have a forms with button 'save' and when user pressed this button i do some checks and display a message, what i want is to display the message only the first time user presses the button, if user presses the button again and again, message should not be displayed...but i do not know how to fix this, has someone an idea? Thanks.

Take a look at About Global Variables. You might also want to bookmark the Oracle Forms Documentation web site.
Basically, you will use a Global Variable as a counter. In your button code, you check the value of the Global Var to see if it is greater than 1. If it is, you exit. If it is not (in other words the Global is equal to zero) then you add 1 to the variable and you display your message. Pretty basic stuff.
Craig B-)
If someone's response is helpful or correct, please mark it accordingly.

Similar Messages

  • Error messages when calling RSDRI_INFOPROV_READ for more than one time

    Hello all,
    I need to write a cube, however, before I do this I need to check whether there are already data in the target cube for a certain accounting period. This I do by reading the cube via FM RSDRI_INFOPROV_READ. The following coding is called from a running program after pushing a button on the screen.
    <i>* clear internal tables.
          CLEAR gt_range.
          CLEAR gt_sfc.
    *fill internal tables
          CLEAR ls_sfc.
          ls_sfc-chanm    = '0FISCPER'.
          ls_sfc-chaalias = '0FISCPER'.
          ls_sfc-orderby  = 0.
          INSERT ls_sfc INTO TABLE gt_sfc.
          CLEAR ls_range.
          ls_range-chanm    = '0FISCPER'.
          ls_range-sign     = rs_c_range_sign-including.
          ls_range-compop   = rs_c_range_opt-equal.
          ls_range-low      = '2007001'.
          APPEND ls_range TO gt_range.
    here I do not know what exactly to do with this flag
          lf_first_call = abap_true.
          CALL FUNCTION 'RSDRI_INFOPROV_READ'
            EXPORTING
              i_infoprov             = 'T01'
              i_th_sfc               = gt_sfc
              i_th_sfk               = gt_sfk
              i_t_range              = gt_range
              i_packagesize          = 1
            IMPORTING
              e_t_data               = lt_rd_cube
              e_end_of_data          = lf_eod
            CHANGING
              c_first_call           = lf_first_call
            EXCEPTIONS
              illegal_input          = 1
              illegal_input_sfc      = 2
              illegal_input_sfk      = 3
              illegal_input_range    = 4
              illegal_input_tablesel = 5
              no_authorization       = 6
              illegal_download       = 7
              illegal_tablename      = 8
              trans_no_write_mode    = 9
              inherited_error        = 10
              x_message              = 11
              OTHERS                 = 12.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
          lf_eod = abap_false.
          IF NOT lt_rd_cube IS INITIAL.
            RAISE target_data_found.
            EXIT.
          ENDIF.</i>
    When testing with a period for which data already exists, it runs through quite perfectly. The return table is filled and I know that data exists and I EXIT.
    However, if I press the button again (program is still running) I get an error message 'Nested call of RSDRI_INFOPROV_READ'. And this for each time I press the button.
    So I thought I should clear the flag lf_first_call. After having done so I get an error message 'SQL Error'. Funny is that I get this error only every second time the Function Module is processed. Every other time it works perfectly.
    How can I get rid of those error messages?
    PLEASE - can anybody help me?
    Many thanks in advance,
    Thomas

    Hi,
    you have something like:
    end_of_data = ' '.
    first_call  = 'X'.
      WHILE end_of_data = ' '.
            CALL FUNCTION 'RSDRI_INFOPROV_READ'
              EXPORTING  i_infoprov             = ....
                         i_th_sfc               = ...
                         i_th_sfk               = ...
                         i_t_range              = ...
                         i_reference_date       = ...
                         i_save_in_table        = ....
                         i_save_in_file         = ....
                         I_USE_DB_AGGREGATION   = ...
                         i_packagesize          = 100000
                         i_authority_check      = ...
              IMPORTING  e_t_data               = .....
                         e_end_of_data          = end_of_data
              CHANGING   c_first_call           = first_call
              EXCEPTIONS illegal_input          = 1
                         illegal_input_sfc      = 2
                         illegal_input_sfk      = 3
                         illegal_input_range    = 4
                         illegal_input_tablesel = 5
                         no_authorization       = 6
                         ncum_not_supported     = 7
                         illegal_download       = 8
                         illegal_tablename      = 9
                         OTHERS                 = 11.
      ENDWHILE.
    hope this helps...
    Olivier.

  • TS4123 This is not correct solution. I have fresh copy of Windows 7 64 bit and I have the same problem.  Autorun only shows the Bonjour service.  It started when try to sync more than one iphone.

    This is not correct solution. I have fresh/new copy of Windows 7 64 bit and I have the same problem. 
    Autorun only shows the Apple Bonjour service.  It started when try to sync more than one iphone over WiFi. I have two iphones and an iPad. I turned off syncing over WiFi and still has high CPU utilization. One of the CPU's is pegged at 100%.  It is the AppleMobileDeviceService.exe process.

    For the record, I then followed the suggestion of MarcDCMB in https://discussions.apple.com/thread/4291206 of just manually restarting the Apple Mobile Device service in Windows services.msc once each time after starting iTunes and the service no longer hogs CPU after that service restart.  Not too painful as a work-around, and apparently an effective one, but clearly not a solution to the problem.  Again, as above, all the other solutions didn't work for me and I have no conflicting software as far as I can tell. So you'd have to say this Apple's problem.
    Also FTR, I am still on the 5.2.0.6 version of the Apple Mobile Device Support MSI and I don't know if that is relevant to this work-around working but my sense is that it is NOT relevant.  I'll report back on this thread if I re-upgrade and the problem returns in spite of the service-restart approach.

  • How to add the rows formatted as table headings, Tables headings are repeated when a table spans more than one page.

    Hi all,
    i am facing problem while generating Test Result word document after successful execution of TestStand.
    The Problem is :
    i want to add rows Formatted as table headings, table headings are repeated when a table spans more than one page(marked as Red).
    Example:
    Page  No. 1
    |     Test case Number  |  Test Step number      |
    |      100                         |            100                   |
    Page  No. 2
    |     Test case Number  |  Test Step number      |
    |      200                         |            300                   |
    Test Result word document should generate with Table headings(marked as Red) in every pages of the document, but i am not getting as per above example.
    Please through light on this.
    Regards,
    Susa.

    Hi Santiago,
    Thank you very much for your valuable reply.
    i want to generate MS-word report for TestStand after successful testing using MS-word2000.
    Test report contains Actual values, Expected values and Pass/Fail status.
    In my program i have customized all  fields i can able to generate test report which contains Verification engineer name , test mode, test date, start time, end time Actual values, Expected values and Pass/Fail status.etc....
    To put all values of test case number, Test step number, Actual values, Expected values and Pass/Fail status in to table for each time, i will
    insert a row into table every time values arrives, once the table exceedes its page size it moves to the next page, next page should start with table row header  but it start with  values of above said parameters.
    so i'm not able to repeat table row header for each page.
    Please find the attached file for your reference.
    Attched file expected.doc  :   This file contains what i wanted to generate MS-word report. Here table row header "Test Case Number and Test Step Number " is repeated in second page.
    Attached file Actual output from source code.doc   :  This report generated from the source code. Here table row header "Test Case Number and Test Step Number" is not repeated in second page.
    Do you know any property to set "repeat as header row at the top of each page" using MS-word ActiveX in CVI/Labwindows.
    i think this information is sufficient for you,
    Still if you need some information please ask me.
    Thanks
    Susa.
    Attachments:
    Actual output from source code.doc ‏25 KB
    expected.doc ‏26 KB

  • When I update applications more than one account appears.  How do I delete second account

    when I update applications more than one account appears.  How do I delete second account?

    I'm wondering if you have to Apples IDs or iTunes IDs and have puchased apps on both accounts.I have the same issue, and must supply both accounts' passwords in order to update apps. From my research here, there's no way to merge the two accouts. It is aggrivating, indeed.

  • How to display(binding) values in the table from more than one node?

    Hi,
    I have two nodes (TRIPS & AMOUNTS)in the context. How to bind these values into the table control?
    When i bind second one, first one is getting replaced.

    Hi Mog,
    Of course it is possible to create a table from attributes of more than one node, and in some cases this is still necessary, but you have to do this the hard (manual) way.
    If you have a table control, have a look at the properties and the elements belonging to it.
    First of all, there is the property "dataSource", which binds to a multiple node (let's name it TableRootNode). This means that for each element of THIS node, one row is created. In each row the data of exactly one element of this TableRootNode is displayed.
    Then you have columns in this table. Inside of the columns there is a header and an editor. The editor is the interesting part.
    Normally the primary property of this editor is bound to an attribute of the TableRootNode. Then everything works as expected. If it binds to an attribute of a subnode (SUB) of TableRootNode, then in row i the data of the subnode of the i-th element of TableRootNode is displayed. There is no need for SUB to be a multiple node, but it must not be a singleton.
    If you bind a property of the editor to an attribute, which does not lie in the subtree of TableRootNode, then you will see the same value in each row.
    Now it depends on the structure of your context. Take the node, which is relevant for the change in each row (I assume it is TRIPS) and bind the table to the node as you are used to. Then for each additional column, you have to create a new column in the tree, create a new header element with a title and a new editor (e.g. textview or inputfield) and then bind the right property of the editor to the corresponding attribute in node AMOUNTS).
    If these 2 nodes do not have parent-child-relationship, the tip to create a new node, which consists of the attributes of both nodes is the only solution.
    Ciao, Regina

  • Some apps stay open when trying to close more than one app at a time in ios 7

    I tried closing down 2 or 3 app at a time in IOS7 and there's always one or two that stay open. The icon at the bottom is still there but I've already swiped it up to close it. When I go out of the closing function and come back I see that they are still open and I need to close them again. I tried this on many ipads, iPhones and ipod touch and they all act the same way.
    Chris

    I guess you didn't know, but yes you can close more than one app at a time. You can close up to 3 apps at a time in the new IOS7 on the iPhone. Try opening at least 3 apps and then double click the main button to see what apps are opened. Then swipe to the left to see the three of them on your screen. Your not gonna see the ones on the side entirely but you can still put all three fingers on them, then simply swipe them up and it closes them up.
    The thing is, when you have let say 10 apps open, and you start using this trick, some of them will stay open meaning you swiped them up to close them down but the bottom icon stays there. When you come back to your main IOS desktop and then go back to close the programs that you have opened, you can see that those apps are still opened. There is only like 2 or three out of all the 10 you had opened that stayed open, but none the less it's a bug in the system I presume.
    You also asked about the icon at the bottom. When you are seeing what apps are opened, there is always a small icon at the bottom and on top you have a representation of what you were working on, and that is the part you swipe up. But often time the bottom icon will stay opened after swiping 2 or 3 of the apps to close them.

  • Reader X shuts down when trying to open more than one pdf, or when clicking certain categories in settings

    Until a few weeks ago I have never had a problem opening more than one pdf at a time. Now Reader just shuts down when I try to do so. The same thing happens when I click on the yellow highlighted categories in settings. All the other categories open fine.
    Appreciate the help of anyone who can help me solve this.

    I guess you didn't know, but yes you can close more than one app at a time. You can close up to 3 apps at a time in the new IOS7 on the iPhone. Try opening at least 3 apps and then double click the main button to see what apps are opened. Then swipe to the left to see the three of them on your screen. Your not gonna see the ones on the side entirely but you can still put all three fingers on them, then simply swipe them up and it closes them up.
    The thing is, when you have let say 10 apps open, and you start using this trick, some of them will stay open meaning you swiped them up to close them down but the bottom icon stays there. When you come back to your main IOS desktop and then go back to close the programs that you have opened, you can see that those apps are still opened. There is only like 2 or three out of all the 10 you had opened that stayed open, but none the less it's a bug in the system I presume.
    You also asked about the icon at the bottom. When you are seeing what apps are opened, there is always a small icon at the bottom and on top you have a representation of what you were working on, and that is the part you swipe up. But often time the bottom icon will stay opened after swiping 2 or 3 of the apps to close them.

  • Lumia 520 SMS- when a contact has more than one nu...

    Hi- when calling a contact who has more than one phone number it is easy to choose which of the numbers for that contact to use, but when sending SMS there is no option to choose. How does the SMS system decide which of the available numbers to use?
    Solved!
    Go to Solution.

    If I do the following steps: Messaging > + >To + > Select contact > I see all numbers listed for the contact.
    If I do instead: People > Contact > SMS, the number entered as "mobile" is selected by default. If you want to change it to "mobile2", you need to go: ... > switch number and select from there.

  • Auto creation of child requests when parent request has more than one group

    Hi,
    I have created a request dataset which has a child form for AD Group. While raising a request, if I add more than one group, how to process the approval flow. Because I will be having different different approvers for different different groups. Is there any way to create child requests automatically when we submit a request with more than one group? I am using OIM 11.1.1.5.0.
    I know in OIM 11g, whenever user raises request for more than one beneficiary/target-resource then OIM breaks that request into Child Requests. But this is not happening when I add more than one group in the same resource. Do I need to write my own code for DataValidator to split parent request into child requests upon validating child form? If so, is it going to impact the existing feature which is creating child request when parent has more than one user/resource.
    Please let me know.

    No not possible OOTB in current version. Check {thread:id=2318652} for more information.
    -Bikash

  • Syncing Issues when trying too sync more than one thing

    since the 8.0.2 update syncing has been real glitchy for me lately when i try too sync my iphone and ipod. for whatever reason, i cant sync more than one thing at the same time. for example if i have my iphone still plugged in, then plug in my ipod too update it, soon after the itunes would give me a unknown error then lock up. specifically this error. http://img407.imageshack.us/my.php?image=unknownituneserrorjq3.jpg
    sometimes it would say iphone, sometimes it would say ipod.. that error would just depend on which was plugged in first.
    its just weird, windows detects both drives fine. and if i have them in one at a time itunes will be able to read and sync that device. unless this is a direct problem with my computer which i dont think, i dunno. both devices work in any usb port. it just doesnt like them both being in at the same time.
    this happening with anyone else?

    See this support doc, iPod for Windows: Only works with one iPod at a time. The title pretty much says it all. If it's worked for you before then it's more likely by luck than design.
    tt2

  • BAPI thorwing 3 different message when GR's being more than PO Qty

    I am using  BAPI(Goods_movement_create)
    This BAPI throws 3 different error messages when the scenario is the same.
    I could see all the 3 messages below are the result of GRu2019s being more than the PO qty.
    10128844     30     4     E     No goods receipt possible for purchase order 10128844 00030
    4500121287     10     12     E     PU Ordered quantity exceeded by 12 EA : 17650 0081 0018
    4500104731     10     1     E     Material document data and PO data do not match (Material)
    thanks
    Senthil

    you have referenced 3 different POs, hence you have to get 3 different messages, even they would have the same error reason. but the message has variables, like PO number and item number and even more.
    Do you just want a summary message like: 3 error occured?
    and what does the user then do? posting in SCN forum what the problem is?
    you will get the same messages if you use MIGO to post it online.

  • My Mail preview window stopped displaying full messages when I select a mail item (empty) on iMac. How do I get back the preview window?

    How do I get back the preview window so that I don't have to click open each message? Thanks in advance! --Cheryl

    Hi LeoLady!
    Having the preview window up to get a quick and good overview of your mail is very handy and I understand you would like to get that feature back!
    Have you tried to close the mail app using cmd+q and opening again? Have you tried taking your mouse the whole way to the right in the mail window and try to "drag" the preview window back out again?

  • How can I forward more than one message at a time. More than one is kicked out.

    I get an e-mail I want to share with several people. I put in first address but when I try to insert the second address. the first one is taken away. I tried BC and CC

    Hit 'Enter' after putting in the first address.

  • Issue on Hyperion Report when we are showing more than one pivot section on

    Hi All,
    I am showing two pivots on the report section.
    One pivot is having variable number of rows (let’s say P1) and other is having fixed number of rows (let’s say P2).
    While creating the report section we are showing P2 below P1. (for any particular selection of filter P1 was having 5 rows including Total and P2 is having fixed number of rows.)
    But while processing the report for any other filter selection the number of rows in P1 got increased and it got overlapped on P2 as P2 will not shift downwards when P1 expands.
    Pivot behaves as images on report section so we are not having properties like scroll bar or any other control on report section for pivot.
    Please suggest some action items to be done to overcome this problem.
    Thanks in Advance.
    Ujjawal

    Thanks Stuart,
    I am using Hyperion Interactive Reporting Studio version 9.3.1. I tried to get the functionality by the method described by you. But I was not able to get 'Position' from the property window. I am having 3 tabs in Properties window i.e. Border and Background, Picture and Alignment. In alignment i tried but it is only for text alignment.
    Can you please elaborate your answer?

Maybe you are looking for

  • ซื้อ line sticker ผ่านบัตร แต่ไม่ได้รับสินค้า

    ฉันซื้อ ไลน์ สติกเกอร์ ทางบัตรเคดิตการ์ดของ citibank ทาง itune ได้แจ้งรายละเอียดสินค้้ามาทางเมลล์ ตามรายละเอียดด้านล่าง แต่ขณะนี้ ยังไม่ได้รับสินค้า ใน อีเมลล์ มีดังนี้ Billed To: [email protected] surirat artnarongkorn 119/16 m.4 T.bamleam A.banleam

  • Hear audio with PC user but not video

    Hi, My boyfriend and I are very computer illiterate. He just purchased a webcam for his PC and it works fine on its own but when we get to AIM he sees a black screen and on my macbook I see myself. We both have audio though. My roommate has a macbook

  • Sd consultant in IS RETAIL

    What is the role of SD consultant in IS RETAIL project implementation

  • History of number of connected users

    Hello, Do you know how to have the history of the connected users (the number ) => The average of connected users, and why not the max number of users for a day. Thank's and regards Laurent

  • If WBS element deleted expenses entries will show

    Hi Gurus, In my office one Project is deleted and new project is created with all WBS element.  Before that new project creation some expenses are booked in old project now we have to delete all the expenses enteries which are all accounted in old pr