How to control the opening form multiple times

Greetings to all,
I used Open_Form to open the form in my 'Menu.mmb'.
My Question is:
How we control the opening of a form from multiple times?
Ex:
In my menu.mmb I used OPEN_FORM.If we open the form,which was already opened ,I want to stop the form to open. How to do this?
Thanks,
Bhujendra

pls try with
FIND_FORM('EMPDETAILS1');
OPEN_FORM('C:\INH\EMPDETAILS1');
jeneesh                                                                                                                                                                                           

Similar Messages

  • Please:How to repeat the return values multiple times in sapscript

    Currently my subroutine is returning a value called TOQBSSHB single time and i am working with standard layout called RFFOUS_C.Please can anybody tell me if i want to show multiple times TOQBSSHB for different values of VBLNR .Is it possible if it is what are changes i should make on layout and subroutine.
    PERFORM EXTRACT IN PROGRAM Y_MIT_TEST2
    USING &REGUH-VBLNR&
    USING &REGUH-NAME1&
    CHANGING&TOTQBSHB&
    ENDPERFORM
    FORM EXTRACT TABLES IN_PAR STRUCTURE ITCSY OUT_PAR STRUCTURE ITCSY.
    TABLES : REGUP,BSEG,REGUH,REGUD.
      DATA : BILL_NO LIKE REGUH-VBLNR.
      DATA : ITAB LIKE REGUP OCCURS 0 WITH HEADER LINE.
      DATA : JTAB LIKE REGUP OCCURS 0 WITH HEADER LINE.
      DATA : BELNR1 LIKE ITAB-BELNR.
      DATA : QBSHB1 LIKE REGUD-SWNES.
      DATA : QBSHB2 LIKE REGUD-SWNES.
      DATA : TOTOQBSHB LIKE REGUD-SWNES.
      READ TABLE IN_PAR WITH KEY NAME = 'REGUH-VBLNR'.
      IF SY-SUBRC = 0.
       BILL_NO = IN_PAR-VALUE.
      ENDIF.
    SELECT * FROM REGUP INTO CORRESPONDING FIELDS OF TABLE ITAB WHERE VBLNR
    = BILL_NO.
      READ TABLE ITAB INDEX 1.
      IF SY-SUBRC = 0.
      MOVE ITAB-QBSHB TO QBSHB1.
      MOVE ITAB-BELNR TO BELNR1.
      ENDIF.
    SELECT * FROM BSEG INTO CORRESPONDING FIELDS OF TABLE JTAB WHERE BELNR
    = BELNR1.
      LOOP AT JTAB.
      READ TABLE JTAB INDEX SY-TABIX.
      IF SY-SUBRC = 0.
      QBSHB2 = QBSHB2 + JTAB-QBSHB.
      ENDIF.
      ENDLOOP.
      TOTOQBSHB = QBSHB1 + QBSHB2.
      READ TABLE OUT_PAR WITH KEY NAME = 'TOTQBSHB'.
      IF SY-SUBRC = 0.
      MOVE TOTOQBSHB TO OUT_PAR-VALUE.
      MODIFY OUT_PAR INDEX SY-TABIX.
      ENDIF.
    ENDFORM.

    I said :
    - A) you should copy the main program without to copy
         includes, so when the systems ask you which objects
         you want to copy: check all excluding INCLUDES.
    So you'll have a new program which uses the same includes of the standard program.
    - B) in your z-program you find the point where you should insert your code: you'll have two cases:
    - you should insert code in a point that is writen in z-program;
    - you should insert code in a point (for example a form) that isn't write in z-program, but in a standard include your z-program use.
    In first case you only write your code, in second one before you should copy the include, than insert it in your z-program and so insert your code in the include.
    For example:
    - A) Copy RFFOUS_C in ZRFFOUS_C
    - B) I should change the code of routine  
         SCHECKDATEN_EINGABE, it's defined in RFFORI01, so I copy it in ZRFFORI01, insert my code in it.
    - C) found where my z-program call include RFFORI01:
    subroutines for check print and prenumbered checks                  *
      INCLUDE RFFORI01.
    now replace this with the call to my new include:
      INCLUDE RFFORI01.
      INCLUDE ZRFFORI01.
    If you do in this way you copy only includes where you should change the code.
    Message was edited by: max bianchi
    Message was edited by: max bianchi

  • How to maximize the opening form in Access 2010

    We have a number of Access 2000 front end apps which use the autoexec macro to maximize the main form. When we migrate them to 2010 the options have changed and maximize is no longer one of them. This makes a cluttered user screen with windows popping
    up in various locations as the user works with the app. I would also like to hide the database window from the user but for now just getting a clean screen with only a single form or report would be nice.PGordini

    You can use the DoCmd.Maximize Method to maximize the form:
    http://msdn.microsoft.com/en-us/library/ff195449.aspx
    BR
    Mads
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • How to print the label in multiple times

    Hi,
            I wrote a program which will display the label. But  I want to display the labels according my input.
             Pleae Explain the process How can I get.
      Ex  If I give 4 as input number in  selection screen.  that should display 4 labels.
    Regards,
    Surya

    Hi,
           Thanks for your answer.  I used  SS-FUNCTION_MODULE_NAME  function module to call the smartform and I called  that generated function module.
    To which parametr I want to pass the number of copies to print Please explain clearly.
    Regards,
    surya

  • Avoid opening same Form Multiple times

    hi
    Can anyone help me , how to put restruction not to open the same form multiple times .
    regds/sanjay

    I'm not suggesting that the following is great idea but..
    You could start a timer and keep updating the row in the table with a timestamp and then have a job which checks if there are rows in the table that have timestamps older than the timer interval.
    I actually think that that is really bad idea.
    I think its more important to ask why this is a requirement? I currently write sytems for police officers and even they can grasp the concept that someone else might be updating the same data at the same time as them and can work multiple sessions. Its hard for them, and sometimes I think they may just be hitting their keyboards with a truncheon, but they do get it.

  • How to stop someone from filling out pdf form multiple times?

    My customers order my service by down loading a .pdf form. They then fill out the form and submit the form to my email. How do I stop a customer from submitting the form multiple times. I would like for the customer to submit the form only once filled out. If I need more info I could follow up to their order manually via email. Thanks for your help!

    One of the main reasons why you have a customer posting multiple submits would be because for some reason he/she doesn't know the first one was successful.
    Add a property your form to record whether or not a valid submit has already happened. Use script to set that property on submit. Check each time the submit operation is fired to see if the property is set. If it is display an error dialog and stop the submit from occurring.
    If someone wants to open multiple copies of your form and fill it out and send it to you, well there's nothing you can do about that.

  • How to stop someone from submitting a form multiple times?

    My customers order my service by down loading a .pdf form. They then fill out the form and submit the form by my email as a pdf form. How do I stop a customer from submitting the form multiple times. I would like for the customer to submit the form only once filled out. If I need more info I could follow up to their order manually via email. Thanks for your help!
    Sorry if a newbie question,
    Looking for a way to disable the form after the form is filled out then submitted through their email

    One of the main reasons why you have a customer posting multiple submits would be because for some reason he/she doesn't know the first one was successful.
    Add a property your form to record whether or not a valid submit has already happened. Use script to set that property on submit. Check each time the submit operation is fired to see if the property is set. If it is display an error dialog and stop the submit from occurring.
    If someone wants to open multiple copies of your form and fill it out and send it to you, well there's nothing you can do about that.

  • How to control the looping time of the for loop in 10 microseconds in labview?

    I need to create a +/- 9 volt square wave with period of 20us using a D/A card (Not NI card). I can write command to the card using outport provide by Labview. Right now, I can generate square wave with 4ms period which is limited by the resolution of the wait until next ms icon I used inside the for loop. Could anyone tell me how to control the execution time of the for loop to about 10 us? Your help would be much appreciated.

    I'm not sure if this will hep, but this answer seems to answer this question
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000029410000&UCATEGORY_0=_30_%24_12_&UCATEGORY_S=0&USEARCHCONTEXT_QUESTION_0=microsecond+resolution+1ms&USEARCHCONTEXT_QUESTION_S=0

  • TS3276 how do I get Mail to stop downloading the same email multiple times?

    My mail keeps downloading the same email multiple times.  I've had as many as 10 of the same emial.  How do I stop this?

    Me too - did you ever figure it out?
    You can't even delete from the server in mountain lion.... I did it from my old mac, but it didn't work. I keep having 11,000 new emails that can not even be deleted in blocks!!!
    Was it a gmail account? Mine is, and my other 2 are fine...

  • How to control the canvas of the ADF Read-Only Form

    Hi
    Could you give an idea of how to control the canvas of the fields in ADF Read-Only form. My requirements are as follows
    1) ALL the labels has to left justified irrelevant of their length
    2) ALL the values also has to left justified and should be wrapped if it exceeds some length.
    3) I want to show the results in more than one column with proper alignment as mentioned above.
    Thanks in advance.
    Sivaji.......

    Sivaji,
    There is a "rendered" attribute on the af:table component. You can write EL to pragmatically control the evaluated value of expression to set the visibility.
    Assuming you are using BC for your middle layer you can do something like the following:
    <af:table ...
    rendered = #{YourDetailViewObject.somestring.inputValue != null}
    ..>
    Z

  • Any ideas on how to control the amount of sustain pedal data that Logic Pro 9 records? Every time I press the sustain pedal down, it records 4 sustains. Same thing when I release the pedal. Thanks!

    Any ideas on how to control the amount of sustain pedal data that Logic Pro 9 records? Every time I press the sustain pedal down, it records 4 sustains. Same thing when I release the pedal. Thanks!

    This gets confusing, you have two Macs with different issues and two pedals with different issues? First let's sort out what's what. So, do the issues come from the pedals or from the Mac software? To find out, simply switch the pedals and note their behaviour. No change: it's the software, change: it's the pedals (imho the most likely scenario).
    Second, what kind of pedals are they? Can you name the type of pedal too? The Yamaha what and the Mgear which?
    Third, with the 4 fold data problem, are the doubled events simultaneous, or a few ticks apart, or more?
    Also, you have no MIDI keyboard? Are the pedals both "standalone"?
    I think you have to sort this problem at its' source, which are the pedals. You could, if push really comes to shove, perhaps create some sort of ingeneous/elaborate transformer setup in the environment to filter the extra messages, although with the 4/4 sustain events that may not even be possible. With the "stepped" events you could set up a filter to just block all events with values 20-110 or so.
    But much better would be to configure the pedal(s) correctly.

  • HT3180 When using my remote the cursor moves multiple times.  How can I fix this?

    When  using my remote the cursor moves multiple times.  How can I correct?

    Hi Freebyrd1999,
    In order to get your Apple TV working correctly you may need to restore it. Use the steps in this article -
    Apple TV (2nd and 3rd generation): Restoring your Apple TV
    http://support.apple.com/kb/HT4367
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • How to automate saving the same image multiple times?

    Hello. I wish to save the same image multiple times in a folder... is there a way to automate this function? I also need the flexibility of determining the starting number in this image sequence. Thanks.

    Good day!
    I would recommend asking for help over at
    Photoshop Scripting
    And going into more detail about what you want to achieve (maybe post a screenshot, diagram, mock-up to illustrate it).
    Regards,
    Pfaffenbichler

  • Printing form multiple times

    Hi Experts,
    how to print the form multiple times? . i have multiple shipto entries....for every new shipto entry form should be printed..can you please provide me with sample code..

    Hi,
    I cannot see if you are using sapscript or smartforms. I expect sapscript.
    You need an ABAP change. The program must as first determine the SHIP TO Addresses.
    Then a loop over these adresses and making the several forms (also using open and close form).
    If you use a smartform you have still a loop over the adresses. But  know you have also to change the smartform. You must give the addressnumber as parameter to the smartform. And the smartform must print that adressnumber,'
    If you need more info. Let me know
    Gr., Frank

  • How to debug the smart forms

    Hi All,
    Can any body guide me how to debug the smart forms.
    Thanks & Regards,
    Satish.

    Hi,
    The the best way to debug the form is to put a breakpoint in the function module generated by the smartform.
    Procedure:
    Open the smartform we want to debug.
    Goto Environment -> Function module name.
    Open the function module in SE37. From the menu GOTO -> main program. Open the last include.
    This incude contains the entire code ie the code we have written in initalization + form routines + program lines + sap generated code.
    Even we can search for the text nodes, folders, templates, tables, graphics, address nodes etc with their names.
    Put a breakpoint at any point you want.
    If we issue any doc which triggers this form, when the control reaches the break point it will stop.
    Please note that hard-coding the break points in the code ( Program lines ) is not recommended and it can´t be done unless if it is development server.
    So, always put a session break point in the related function module.
    We can use SFTRACE transaction to know the sequence of the control flow.
    If you want to break at each and every text that is printed on the output form put the break points in the forms.
    1. %write_text  to break at text element.
    2. %WRITE_TEXT_MODULE  to break at text module.
    3. %WRITE_INCLUDE_TEXT  to break at include text.
    Please put a break point at the first sy-subrc check.
    If the control reaches this point, you can find the name of the element in the varible NAME and the content in the text node in %TEXT.
    Its easy to understand the sequence of the printing if we put a breakpoint as stated above.
    Regards,
    Satish.

Maybe you are looking for

  • Mail moved from a different mailbox is not visible in my mailbox

    My  Partner has my Mailbox attached to his Outlook. He moves Mail in to my Inbox and he can see my mail and his moved mail. However I can not see the mail that he moved into my mailbox. I have tried to change the Permissions, but nothing has helped  

  • Sequence Update not working?

    Hi I've recently set up Sequence replication. This is what I did (I already had GG installed and everything configured) On source and target: SQL> @sequence.sql Please enter the name of a schema for the GoldenGate database objects: GGS_OWNER Setting

  • Multi-language report in XML publisher (This is urgent!!)

    Hi All, i am working on Multi-Language report. We have installed just 3 languages (English, Japaneese, Spanish) but my requirement is to display the reports in few more un-installed languages like Korea, chineese etc. I thought of doing the lables (a

  • Mini updates only a few songs and quits

    New computer... I tried to put the songs from my mini onto the pc but messed up. This cleared all the songs. I then put the songs on the pc through the network. Now I can't get all the songs back on the mini. It starts the update then stops after 2 o

  • Apps for touchscreen

    Hi guys, wondered if i could pick your brains with a little question. I have recently just bought the HP touchscreen monitor and love it to bits. Have been using it with a little pc as a media station. On that i have SONOS, Winamp, KMP, VLC etc etc.