How do i force a program to only in background

a zreport which is gives stock report and mrp and some data. It is IS retail so the materials are huge. i need to run this program on in background even if it is intended to run ionf oreground. pls suggest

Hi navid,
1. simple
2. sy-batch
3. Use this variable
    it will contain 'X'
   only if the program is run in background
4. START-OF-SELECTION.
  IF SY-BATCH IS INITIAL.
  MESSAGE 'CANNOT RUN IN FOREGROUND' TYPE 'I'.
  LEAVE LIST-PROCESSING.
  ENDIF.
regards,
amit m.

Similar Messages

  • How do I force smart mailbox to only show me mail from one mailbox while also showing multiple senders?

    How do I force smart mailbox to only show me mail from one mailbox while also showing multiple senders?

    It would help to post what you've tried. It does, indeed, appear that -h is the switch, and the man includes several examples, so if you've followed the examples and it's not working then that hints that you should pass it back to Apple.
    You also don't say how you're implementing your change. Are you invoking slapd manually, or are you editing /System/Library/LaunchDaemons/org.openldap.slapd.plist ?
    You should be doing the latter, and I'd expect to see something like this:
    <array>
      <string>/usr/libexec/slapd</string>
      <string>-d</string>
      <string>0</string>
      <string>-h</string>
      <string>ldap://x.x.x.20/ ldap://127.0.0.1/ ldapi://%2Fvar%2Frun%2Fldapi</string>
    </array>
    (note the inclusion of ldap://127.0.0.1/ as an entry - you'll need to run on localhost as well the .20 address since all the local services will look to localhost)
    You might also need an ldaps URL if you're using SSL but let's walk before we try to run

  • HT201365 how do i turn off programs running in the background?

    how do i turn off programs running in the background?

    i double tapped home button, swiped up and nothing happened. what is screen shot.  I even tried swiping up on each icon, still did not close app  cannoyt get anything on internet  too many apps running at once

  • How can I make a program run in the background?

    I'm working on a custom console program. I plan to have the commands as seperate applications and create a server/client relationship so they can communicate with each other. However whenever I call a command I don't want to have a console window pop up, flicker out, etc. I want it to look like it's one complete app. So I'm wondering how can I have the app run in the background?

    If you're using a unix system, use the "&" argument (or character, what is its name anyway?) at the end of the command line.
    I think you can use javaw in the MS-Windows world.

  • How can I force the program to start scanning a library, project, etc. fopr faces? Not on import, but AFTER import?

    I have a large library and sevearl Faces already in there. Each one has about 30 or so pics of people I have ID's. When I go to the Faces section for a given person, I dont see it generating very many (if any) new possible photos from the library. I KNOW I have more photos of these people - good clear shots of theeir faces. I want the proghram to do the work for me, in finding these possible faces. (That is waht it is supposed to do.).  I can then go through its suggestions and say yes or no.

    To clarify- I am not looking to ID unknown faces. I want to scan photos to find people I ALEADY have a Face-Name set up for.

  • How do I force Mini to use only minidisplayport?

    My problem is that latest two major OS X updates made my setup of an older VGA display and TV not working properly. I was able to switch between them with no problems before. But now, I am in situation where I need to place my Mini into another room. I get the picture ok when both displays are plugged in, but as soon as I unplug the HDMI-cable that goes to my TV, my VGA monitor will go black, it just stops displaying the desktop. When I reboot the Mini, it seems to start fine, it goes to the login screen. As soon as I log in, all I get is black screen. Is there a way to fix this, I have tried to adjust display settings with no luck. This is clearly a software problem, not an issue with hardware.

    I don't understand what you mean with first question.
    As for others, I don't have another VGA monitor I could try. When it comes to cables, same result if I switch those. But really I don't see why it would be the cables as I get the desktop visible in both as long as both monitor and TV are connected.

  • How to see if invisible program is running in background?

    Hello,
    I'm trying to help my friend who has an iMac running Snow Leopard (10.6.8). Her email and Facebook keep getting "hacked", and even though she changes the passwords to long and complex things that nobody could ever guess, someone is still able to figure out her passwords. The only way we think this could be happening is if someone broke into her home and put some type of "keystroke capture" program so that they could look at it while she's at work and get her passwords that way. We simply can not come up with any other way that her passwors are being discovered, and unfortunately we think it's a jealous ex-wife that is doing this.
    I seem to recall in Snow Leopard that there is a way to see what is running in order to see how much memory is being taken by each task or program on the computer, but I don't recall where to go on the computer to monitor that information. Can someone please point me to where that information is, and if you have any other advice on how to check to see if a program is running without her knowledge, I would sure appreciate any input.
    Thank you very much!

    Great---thank you very much. I actually do recognize everything there, so we are baffled as to what's going on.
    Thanks again!

  • How to make a java program run as a background process.

    </pre>
    writing a client server application.
    a program is supposed to run on a the client right from the time the client turns on the computer till the computer is turned off.
    the catch is the client should all the time be unaware of the program running in his computer, no dos prompt window, no icon on the taskbar,etc. can i convert it the class file into an exe file through software and put the exe filename in autoexec.bat. But then i think that the dosprompt window will open up on starting, but the client should see nothing.
    please help
    </pre>

    </pre>
    Thanks Daniel and jesper,
    could not really fully understand what you mean.
    creating a batch file is okay, but do you configure it
    to run in a an hidden mode.
    Also I have no idea of how to make a window
    service.can you please elaborate a bit
    </pre>

  • How do you shut off programs running in the background

    The programs you use keep running. You used to be able to totally close them. How do you now?  I hate ISO7!

    Tap the HOME button twice and then swipe up to delete each one. 
    I was sooooo frustrated until i learned this.

  • How to find whether a program is running in background

    Hi,
    I have a requirement to find out whether a program is being executed in background. If the same program is executed manually then it should not execute, the time when the same program is being executed in background.
    Please suggest.
    Thanks.
    Marked as a question
    Message was edited by: Rich Heilman

    You can put a lock on the program inside the program, so that when it is run it puts a lock entry in SM12, then anyone trying to run it will get a message saying that the program is locked.  USe the TRDIR lock object.
    report zrich_0001 .
    data: repid type sy-repid.
    repid = sy-repid
    call function 'ENQUEUE_E_TRDIR'
      EXPORTING
    *    MODE_TRDIR           = 'X'
        NAME                 = repid
    *   X_NAME               = ' '
    *   _SCOPE               = '2'
    *   _WAIT                = ' '
    *   _COLLECT             = ' '
    EXCEPTIONS
       FOREIGN_LOCK         = 1
       SYSTEM_FAILURE       = 2
       OTHERS               = 3
    if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    Welcome to SDN
    Regards,
    Rich Heilman

  • How can I delete any programs running in the background?

    When I try deleting any open programs in the background, I double click on the home button to bring them up. I hold the icon down, expecting to see the little red delete button and the icon wiggle but nothing is happening.

    Double-tap on the Home button. You will see an image of the app above the actual icon. Slide the image up to kill it.

  • How do I shut down programs running in the background on the new os for iphones

    Just uploaded the new ios 7 for my iphone 4s. 
    I have several apps running in the background, when I push the com butten twise it shows me the apps running in the background but I cant' get them to turn off.  I tryed holding my finger on it for several moments like the old ios but nothing works.  Help Please.
    fran.

    Double-click the home button. It will bring up the multitasking set up. Any apps you want to close just hold on the thumbnail and then swipe up.

  • How do I force all url links to open only in Firefox ?

    OS : WindowsXP-Prof_SP3
    FF version 18.0.2
    My default browser is FF, but not quite as expected.
    Url links appearing Outlook 2010 messages or appearing in website pages are mostly still opening another browser (AvantBrowser) instead of Firefox.
    How can I force links to access only FF ?
    In other words how do I prevent to open links in any other browser ?
    Most irritating are links appearing in Outlook 2010 messages.
    Those links always open in AvantBrowser, which I don't want to uninstall for the moment being.
    Despite the fact that I applied both procedures, according Mozilla HELP informations !
    1. Settings within FF itself
    2. Settings within Windows-XP (problem here)
    Windows-XP refuses to modify existent current settings to the choices which I want to remain permanent... (as NOT shown in a screenshot I made ; but apparently can't be uploaded here .
    After OK and closing all windows,including ControlPanel, nothing has been changed.
    Going back to [ControlPanel>...> same window] to check if the option has been changed, my choices are gone and old settings remain unchanged ! Why ???
    Like I wrote already procedure described in http://mzl.la/L8LwDs has already been done.

    This screenshot shows the settings being asked for, but they are not registered by Windows. Each attempt to 'modify' the settings to new choices fails.
    Do I have to restart system or is there some button to confirm the wanted choices ?
    After closing this window and coming back to the same window, the settings which were chosen are lost and back again... as they were before.

  • How do I turn off programs running in the back ground  for iOS7?

    How do i turn off programs running in the background using iOS 7?

    *iOS 7 closing running apps*
    Double-tapping the Home button will bring up the running apps icons along with an app screenshot "card" above the icon. Tap-drag the app's -card- (NOT the icon) up and off the screen.

  • How do you force DAQmx output to 0 at the end of program execution?

    I am using a 6713 to generate an arbitrary analog waveform on its output. However, once the labview vi has finished execution, the output voltage from the 6713 does not go back to 0 V. I have tried to force it back to 0 V by appending a 0 V amplitude waveform to the end of the analog waveform to mixed results (if I give it thousands of points, it goes to 0, but if I make it a more reasonable 100 points, it doesn't). How can I force the output back to 0 V. I tried stopping the task, clearing it, and stopping it and then clearing it. None of those worked.
    Any help would be greatly appreciated.
    Attachments:
    6713 Interface.vi ‏144 KB

    First, I have to ask, did you write this VI?
    It is very hard to follow and has a lot of confusing structures in it.  IN the middle area where a lot of the DAQmx functions are, the error wire loops around so much it is hard to tell what is happening in what order.  To the lower left, an array is converted to a cluster, the cluster is unbundled, the individual elements are fed to a compound addition to get a single value.  Why not just use a sum array function on the original array?
    The stop button is fed to the Stop Sign function.  This is Abort execution which is the same as hitting the red stop button at the top of the VI.  It ends the execution of the VI right then and there and doesn't allow anything else to happen.  Read the context help for that function.  As someone else has said on the forum,  "Using the Abort button is like using a tree to stop your car.  It will stop it, but there might be consequences."
    How is this VI being run?  Is the Run Continuous button being used?  My guess is yes because I don't see any While loops and the only thing the stop button does is end the program abruptly.
    You will need to rethink your whole architecture.  Stuff that needs to happen once should be set up before a while loop that has wires leading to the while loop or uses a flat sequence to make sure that it happens first.  This is you program initialization.
    Everything that happens repeatedly would be in the while loop.  The front panel Stop button is what ends this loop.
    Anything that has to happen before the program ends like closing out tasks happens after the while loop (either by wires for dataflow or in 3rd frame of a flat sequence structure.  With this, you should be able to reset your tasks so they output a zero voltage from the analog outputs before the tasks are closed and the program ends naturally.
    Appending a zero to the end of the waveform won't help because if the waveforms run continuously, it will restart back at the beginning.
    I would highly recommend looking at the example VI's for DAQmx functions and taking the tutorials for Labview that are available on the NI website.
    Message Edited by Ravens Fan on 02-23-2008 10:45 PM

Maybe you are looking for