How to check in the program that whether it is running in background?

Hi,
Can i check in the program itself that whether it is executing in the foreground mode or background mode?

Check the value of system variable sy-batch. if value of it is 'X' that means program is running in background and if value is ' '(blank) that means prog. is executing in foreground mode.
Regards,
Joy.

Similar Messages

  • How do I change the programs that open upon startup?

    I am trying to figure out how to change the programs that open when I start my computer.

    To add or remove them, go to: Apple / System Preferences / Accounts / Login Items
    To add then without going to Login Items, right (control) click on the Dock Icon, choose Option and click Open at Login.

  • How do I find the program that is creating a debug file

    Hi,
    I have a bunch of debug files in /usr/tmp directory on a Unix box. I am using Oracle Apps 11i. How do I find which program is causing this file?
    There content of the debug files does not have much information to point to any particular program.
    Thanks
    Asgar

    Thanks for the update.
    The user is oracle and group is dba. I know from the name of the file that it is coming from oracle apps (somewhere in a custom program).
    Asgar

  • HT4623 help with iOS7 how do you kill the programs that you visit on your phone to save the battery life?

    how to kill programs with IOS7 that you visit on your iphone to save the battery?

    Double tap Home button, swipe the app UP to delete from multitask-list.

  • How to know the program that a user is running.

    Hello SAPients!
    Is there a programmatic way (FM or something else) to know what program is being executed by a specific user?
    Thanks in advance.

    My full requirement is in this post:
    I need to trigger a procedure when a program ends.
    If you could take some time and read it I would really, really appreciate it.
    Thank you so much for your kind help.

  • How to find the program that create trace

    Hi,
    my trace directory in the DB has a lot of traces that been generated .
    Mostly they look like as follow:
    erp_ora_26441_ANONYMOUS.trc
    I have run tkprof againt one of them and found :
    SQL ID: 4g2612tvbn0j8 Plan Hash: 0
    begin FND_TRACE.START_TRACE; end;
    call     count       cpu    elapsed       disk      query    current        rows
    Parse        0      0.00       0.00          0          0          0           0
    Execute      2      0.00       0.03          0          0          0           2
    Fetch        0      0.00       0.00          0          0          0           0
    total        2      0.00       0.03          0          0          0           2
    Misses in library cache during parse: 0
    Optimizer mode: ALL_ROWS
    Parsing user id: 57
    ......How can i found the program that creating those traces ?
    Thanks

    Hi,
    plz refer old thread:
    Concurrent program Level trace vs Request Level trace
    Regards
    Haafiz

  • Changing Computer, what with the programs that I rent?

    I am renting  for one year, Creative Cloud Student and Teacher Edition. But in a week I have a new computer, I mac.
    My question is, how do I get the program that I rent on this Computer?
    On the other one, I don't need it anymore, because he is already dammaged.
    Thank You,
    Katleen Claes
    Bart Van Zundert

    Moving this discussion to the Creative Cloud Download & Install forum.

  • I buy for mac app but not for the iPad, so how do I reinstall a program that has already purchased? I need help because I bought the imovie'11 but when he opened it only brought 8 movie trailer templates instead of the 15 it says on the program. How do I

    I buy for mac app but not for the iPad, so how do I reinstall a program that has already purchased? I need help because I bought the imovie'11 but when he opened it only brought 8 movie trailer templates instead of the 15 it says on the program. How do I solve this problem? Once paid for a program incomplete. I also liked that the AppStore itself had a button to reinstall programs already bought, because it is very hard to understand how to do this in the store, only option is to install and hide purchase, and how do I reinstall, attention'm talking about reinstalling a computer mac, not an ipad or iphone.
    Thank you.

    Prodesigntools.com , go ahead and download the software from there and use your serial number to serialize it.

  • A gap between letters started to show in my indesgn files. tried to undo with tracking, the paragraph settings. nothing helped. it ruins the fluent view of the document. how can i restore the program so that doesn't happen?

    a gap between letters started to show in my indesign files. tried to undo with tracking, then with the paragraph settings. nothing helped. it ruins the fluent view of the document. how can i restore the program so that doesn't happen?
    for example: say i write a paragraph. then, in a weird some sort of way an involuntary gap suddenly appears between different letters of random words(i did not recognize any pattern to the gap appearing) throughout the entire paragraph. once i've double clicked on that paragraph, and made a minor change, lets say tapped a 'space' key, and then clicked ctrl+z to undo, it has aligned(or fixed) the entire paragraph and made it look ok again. i've tried numerous ways to undo the entire thing, but cannot find the reason. i've been working for a few years and there's no reason why this thing all of a sudden should happen right now.
    if anyone has stumbled on something like that and can advise, i would welcome it.
    MNS-KG
    Vadim

    yep...i'm typing with hebrew. i'll make a printscreen with the settings you've asked for@:
    if you look closely you'll see that almost every line has a single letter apart. in hebrew there is no usually a singe letter structured words.

  • I never used this program before. I tapped on the "budget form" and decided I'd rather use the "expense form".  I can't figure out how to get to the page that you choose which form you want

    I never used this program before. I tapped on the "budget form" and decided I'd rather use the "expense form".  I can't figure out how to get to the page that you choose which form you want. How would I do that?

    Pct,
    In the Numbers spreadsheets window where all your documents are shown as icons, tap the Plus Sign.
    Choose Create Spreadsheet
    Select the template you want to use
    Jerry

  • How can I organise the program dashboard the way that it does not open automatically and very quickly other programs?

    How can I organise the program dashboard the way that it does not open automatically and very quickly other programs?
    Thanks for an answer
    Reinhard Voegele
    Switzerland

    If you hold down the option key while in dashboard you can close many of the programs.
    To disable it from opening automatically, or unintentionally:
    1) go to System preferences -> mission control.
    2) Deselect any mouse shortcuts
    3) Remove it from hot corners, if it is active.

  • I downloaded the free trial for Adobe XI Pro but now I cant find it on my computer or figure out how to use it. The only thing I see that downloaded is Adobe Download Assistant. How can I access the program?

    I downloaded the free trial for Adobe XI Pro but now I cant find it on my computer or figure out how to use it. The only thing I see that downloaded is Adobe Download Assistant. How can I access the program?

    Assistanttolindsey the Adobe Download Assistant will download the installation files for Adobe Acrobat Professional XI.  By default they are saved to your download folder.  You can begin the installation process from there.

  • How can i transfer the one that i check in a alv in the table

    hi i just want to ask how can i transfer the one that i check in a alv in the table.
    here is the scenario.
    ive created a alv with a checkbox, and if i click on some of the checkbox in the alv.
    then i need it to display in a table as x.

    sel TYPE char1.
    wa_fieldcat-checkbox   = 'X'.
    wa_layout-box_fieldname     = 'SEL'.
    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
          IMPORTING
            e_grid = ref_grid.
      IF NOT ref_grid IS INITIAL.
        CALL METHOD ref_grid->check_changed_data.
      ENDIF.
    Here u get data changed into an internal table u created with SEL as a field and SEL filled with X if line selected.
    U can modify the table u want from this internal table.
    Awrd Points if Useful
    Bhupal

  • So I downloaded the wrong Airplane Mode program for my operating system and I now have AppleScript Error message.  It will not allow me to quit the program.  Also, once that happens how do I remove the program from the computer?

    So I downloaded the wrong Airplane Mode program for my operating system and I now have AppleScript Error message.  It will not allow me to quit the program.  Also, once that happens how do I remove the program from the computer?

    What Airplane Mode program? To stop a running program launch Activity Monitor (in utilities folder) and quit the program from there. To remove the program drag it to the trash or better use the uninstaller that should have come with it.

  • How can I install a program that comes in a CD when the iMac does not come with a CD entrance?

    How can I install a program that comes in a CD when the iMac does not come with a CD entrance?

    Another option if you have access to a second Mac with a drive is to connect the two together with the iMac in Target Disk Mode,  Transferring files between two computers using FireWire, and installing from the Mac with the optical drive.
    OT

Maybe you are looking for