Second user's background program in a queue

Hi SDN
If a user executes one zprogram in background and in the same time if another user executes this zprogram in the background  then how can we maintain programatically the second user's program in a queue and make it execute after completion of the first one rather than executing simultaneously.
Thanks in Advance.
Regards
Basha

Hi,
You can use the below function module:
open backgroundjob
********Declare parameters of function module accordingly
CALL FUNCTION 'JOB_OPEN'
EXPORTING
JOBNAME = JOBNAME
IMPORTING
JOBCOUNT = JOBNUMBER
EXCEPTIONS
CANT_CREATE_JOB = 01
INVALID_JOB_DATA = 02
JOBNAME_MISSING = 03
OTHERS = 99.
submit ranges table to program
SUBMIT REPORTNAME AND RETURN
with <select-options field of Z_REQUEST_BUSINESS_PARTNER_R3 program> in r_range
USER SY-UNAME " User for runtime authorizations
VIA JOB JOBNAME " Job name from job_open function module
NUMBER JOBNUMBER "job number from job_open
close the job so that it gets released
CALL FUNCTION 'JOB_CLOSE'
EXPORTING
JOBCOUNT = JOBNUMBER
JOBNAME = JOBNAME
strtimmed = 'X' " check this field
Hope this will help you.
Please reward if helpful.
Thank you.

Similar Messages

  • Can I transfer iTunes and other applications to second user on same Mac?

    I am hoping I can create a second user account with just iTunes and Traktor (music software) to help eliminate any problems with Traktor from other programs running in the background etc.
    Can I transfer my music to the second user's iTunes? Can I move Traktor to the second user, it is an instaled application? If so, how?
    Thanks.

    Move the iTunes library in the Music item of the Finder's sidebar to the /Users/Shared/ folder, launch iTunes with the Option key held down, and point it there.
    (64101)

  • InDesign CS3 will not open for second user

    I am running InDesing CS3 on a iMac 10.4.11.  InDesign, Photoshop and Illustrator all open for my admistrative user account.  I recently created a second user account  that is unable to open InDesign even though Photoshop and Illustrator open just fine.  I checked the permissions for all three programs and it appears that they are all set exactly the same.  Does anyone have any idea why I am only able open InDesign for my user account but not for this new user account.
      ~Thank You
    Andrew

    5.0.3 should not have installed after 5.0.4 (that's a problem with the installer), and it may have added problems. First things to try, though, before we get down to uninstalling and reinstalling again, are trashing the prefs (Replace Your Preferences), trying a new user account, and starting with extensions disabled (hold down the Shift key when you boot).
    If it comes to reinstalling again, you should probably also run the cleaner tool (CS Cleaner Tool for installation problems | CCM, CS6, CS5.5, CS5, CS4, CS3) before reinstalling, and make sure you have the correct update which you can download again from http://www.adobe.com/support/downloads/detail.jsp?ftpID=4029

  • SCCM 2007 - Uninstall user rights installed program

    We are facing some issue when we want to uninstall Programs in Windows 7 which have been installed with the logged on user’s rights.
    We are using SCCM 2007 and have packages installing “Only when a user is logged on” and “Run with user rights”. We did this way package to run with user rights due to the application functionality.
    But the problem comes when we try to Uninstall the current package, we run a vbs script with admin rights to uninstall the current version before the install of the upgraded version, the VBS scripts runs with admin rights and a result the can’t the application
    under programs and features on the system.
    When we run the .vbs script with user right it work for the only that user who had previously logged on to that pc, so if the second user logs on get error when uninstalling the pervious application as it was installed under his user rights.
    I know this is a very tricky situation but can please help.
    Regards,
    Sabi

    execute the un-install from SCCM by means of a package and run it under the system account
    https://technet.microsoft.com/en-sg/library/gg682013.aspx?f=255&MSPPError=-2147217396
    Blog: http://theinfraguys.com
    Follow me at Facebook
    The Infra Guys Facebook Page
    Please remember to click Mark as Answer on the answer if it helps you in anyway

  • Word, pdf, iPhoto email, don't work on one user account but work on second user account

    I have MacBook Pro running 10.7.  In my main user account I've recently had major issues with several applications.  Word quits on startup, pdf files quit on startup, the latest iPhoto application quits when attemping to send email with photos from iPhoto.
    I set up a second user account and all the issues went away.  Can anyone explain why such bugs are present in one user account by not the more recent one?
    Thanks

    In your wife's account:
    Try trash the com.apple.iPhoto.plist file from the HD/Users/ Your Name / library / preferences folder. (Remember you'll need to reset your User options afterwards. These include minor settings like the window colour and so on. Note: If you've moved your library you'll need to point iPhoto at it again.)
    *What's the plist file?*
    For new users: Every application on your Mac has an accompanying plist file. It records certain User choices. For instance, in your favourite Word Processor it remembers your choice of Default Font, on your Web Browser is remembers things like your choice of Home Page. It even recalls what windows you had open last if your app allows you to pick up from where you left off last. The iPhoto plist file remembers things like the location of the Library, your choice of background colour, whether you are running a Referenced or Managed Library, what preferences you have for autosplitting events and so on. Trashing the plist file forces the app to generate a new one on the next launch, and this restores things to the Factory Defaults. Hence, if you've changed any of these things you'll need to reset them. If you haven't, then no bother. Trashing the plist file is Mac troubleshooting 101.
    Regards
    TD

  • "Bad request" errors in Firefox with second user account

    Yesterday, I set up a second user account for my husband to use. Everything seems to work fine with one annoying exception. When Firefox 3 is used as the browser under the new user account, I get frequent "Bad Request" errors with various web mail programs (MobileMe, GMail, Earthlink's web mail).
    This does not happen when the same Firefox 3 is used under my original user account. It also does not happen when performing the same functions with Safari under the new user account. It also doesn't seem to matter whether Fast User Switching is enabled or disabled.
    I have tried clearing caches, deleting cookies, deleting preferences etc. in the second user's Firefox, all to no avail. Anyone have any other ideas?
    I guess one thing I'm a little unclear about... is the second user actually using the same Firefox app as the first user? If so, would there be a way to install a 2nd Firefox app that would only be for the second user? I'm just thinking maybe there is some kind of conflict going on?
    Any thoughts or help out there much appreciated!

    I think I figured it out. I found an article online that said if you have Parental Controls enabled on an account (which I did on the second user account), it will not allow Firefox to write cookies, thus causing the "bad request" errors.
    This is not exactly true, as Firefox under the new user DID seem to be writing cookies just fine. However, when I disabled Parental Controls on the account, suddenly the errors went away. So, it doesn't have to do with cookies, but there is something about having Parental Controls turned on that can cause these errors.

  • HT1349 I can not run the scanner in my main user, but only the second user and the same thing with updating apps! Why is this happening???

    I can not run the scanner in my main user, but only the second user and the same thing with updating apps! Why is this happening???

    Welcome to the Apple Community.
    Enter the details of her second account at system preferences> mail, contacts & calendars.

  • Why won't garageband work for second user account

    I have recently had new hard drive installed in my iMac, after a lot of time recovering everything I have my main (admin) user account working fine, including garageband 11 working fine after having to go through the unistall and delete all the library files work around. But now when I add a second user account for my kids, i get the same problem I had earlier. It shouldn't be the same thing because all of those files were deleted. I have cleared out the lirary files in the ~user library as well just in case but still the same issue. I get the warning that garageband needs to download files to work, it seemingly downloads all the files, then installs them, gets to 100% installed and then crashes.

    . I get the warning that garageband needs to download files to work, it seemingly downloads all the files, then installs them, gets to 100% installed and then crashes.
    This looks like GarageBand is trying to install the additional content - loops, instruments - for  the new users all over again as well. This should not happen. All loops and instruments should have been installed in the system library for all users and not in your user library for you alone. Or there may be a permissions problem with the system library. Did you install all additional contents from an administrator account or a regular user account without administrator privileges?

  • I bought Pages from App Store; can't get it to come up on second user account. Is there a way to share?

    I have 2 user accounts on my Macbook; I purchased Pages for one but can't get it recognized on second; is there a way to pull it up on second user account, or do I have to purchase it for each?

    Is Pages in the Apps folder or has it been moved? Apps in Mac HD/Applications should be available for every user account on the Mac unless you have enacted Parental Restrictions that make the app unavailable for a user to access.

  • File sharing: possible to warn second user of a file that it is already open?

    [I hope this forum is the best place for my question.]
    I run a small business: a medical practice. I use a Mac Mini to store all my documents, and we use two iMacs to access the documents through File Sharing. I do not run OSX Lion Server. All machines have OSX 10.7.5.
    I have a Numbers spreadsheet on the Mac Mini that is frequently opened and modified by the receptionist on one iMac, but also occasionally opened and modified by the doctor on the other iMac. (The vast majority of other files never need to be opened by more than one user.) Occasionally, the Numbers file will be opened by both users at the same time. If one user modifies the file, when s/he tries to close the file, a dialog pops up warning that there are two versions, and providing the choice to Revert or Duplicate & Save. This means a choice between losing changes, or subsequently checking two documents for differences.
    Note that it isn't possible to simply call out, "Hey, have you got that spreadsheet open?" when the doctor is seeing a patient.
    Also note that privacy is an issue, as the spreadsheet contains numerous patient names.
    Is there a way to: (a) Warn the second user opening the file that it is already open? Or (b) Make the file read-only when a second user tries to open it? (c) Inform the second user that the file is in use, and they can't open it at all. (There may be other solutions that I can't think of.)
    I am open to all ideas. I have tried dabbling with AppleScript, but can't find a solution with my emerging AppleScript skills. I have been trying to find out if installing OSX Lion Server on the Mac Mini would help, but I can't find the answer online. (I would have to pay someone to install OSX Lion Server, as I have medical software installed that may or may not fit well with Server.)
    Thanks in advance for any help.
    Peter

    hmm, then would there be any way to reproduce the effect of the 'delete' or 'backspace' keys? If I'm right, I think there was an ASCII code for the backspace character... Would it be possible to insert it to get a character deleted!? :/
    I really need to find a way to do all of these operations on a text file because I think it wouldn't be a good idea to completely re-write 30Mb+ large files each time some data has to be modified :P

  • Migration assistant added second user did not merge data: iTunes

    I set up my new mac at the store then came home and connected my OLD iMac to the new via Firewire. I used Migration Assistant, and the migration took about 90 minutes. When it was done I had two parallel usernames; my old username with the old desktop look and stuff and the new computer's username I set up with the clerk at the Mac Store. Now I have two separate users on my computer, complete with two separate iTunes. When I look in the finder under Macintosh HD/Users, I see an icon for the new user (the little house) and a folder labeled with the old username but it has a red "negative" circle over it (like a push icon on an iPhone, but with a minus sign in the middle), plus a Shared folder.
    The weird thing is that all the documents and stuff merged, but I have to go to the old user to use iTunes. My old computer did also have 2 users (why? I have no idea) and it brought the iTunes library I did not use in, but not the massive library I do use in. I teach a fitness class and have about 100 unique playlists and ALOT of music on that thing - but the wrong library was brought in. Now I have to switch back to the old user to use iTunes and that just seems silly. I have tried 'add to library" to try to bring the stuff over but it can't see into the other user I guess.
    Any suggestions? It is so frustrating that my whole library is there but I can't access it on the new user after spending all that money.
    Thanks!

    Read here on why a second user was added and how to remedy.
    http://web.me.com/pondini/AppleTips/SetupAsst.html
    Regards,
    Captfred

  • ITunes accounts can be accessed under one User but not a second User.

    Hi
    I'm having problems setting up iTunes on a new PC I've recently purchased. On my old PC - (Vista), myself (David) and my wife (Chris) had different Windows Users accounts, both with separate iTunes accounts which we could access with no problems.
    On my new Pc (Windows 7) I have downloaded iTunes and can access my iTunes account with my ID and password when the PC is logged in as 'David' as the User, as can my wife BUT when the PC the PC is logged in as my wife as the  User 'Chris' neither of us can access our iTunes account with our relative ID and passwords. We get the message.. "The iTunes Store is temporarily unavailable. Please try again later.".
    I have seen this sentence on Google and on various forums including this one but cannot find a solution which fits my problem which is our iTunes accounts can be accessed when the PC is logged in under one User but not a second User.
    Has anyone have ideas to attempt to resolve this issue?
    Thank you

    Hi DavidG56,
    If you are having issues connecting to the iTunes Store from one of the user accounts, you may find the following article helpful:
    Apple Support: Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Regards,
    - Brenden

  • Connection to iTunes fails with second user account

    Hi there!
    For some weeks now I am experiencing Problems connecting the iTunes of a Second User to Apple TV. I keep getting the error message that the connection failed and I should check if the iTunes is in the same network. Dumb message since one second before I selected the iTunes library of the second user in the list on Apple TV and before that I watched content from the iTunes library of the first user without any problems. So it is not the network connection.
    This error can be easily reproduced:
    Set up multiple user accounts on Mac
    Set up home sharing on Apple Tv and all iTunes of them user accounts
    Restart all to beginn test
    Open iTunes of any user
    Access content on Apple TV without problems
    Keep first user logged in and iTunes running while switching to second user on Mac
    Open iTunes of second user
    Second library will show up on Apple Tv
    Try access second users library - error message will be shown
    First iTunes library still works fine
    Close first users iTunes and error will stay
    Close all iTunes and restart Apple Tv
    First iTunes open will work - any second will not
    System:
    MacOS 10.7.5, iTunes 10.7 (21), Apple Tv 2 with OS 5.1 (5201), network via Ethernet cable to Time Capsule router
    Thanks for any tips to get rid of this error!
    Cheers!
    Gerd

    Hi all!
    Still the same, very reproduceable problem? No solution anyone?
    Upgraded to latest OS on ATV2 (5.2.1) and iMac and iTunes (11.0.2). No result. Obviously this issue is being ignored by apple techs or it is really just me having this problem.
    Thanks for any help!
    Gerd

  • Background program is not working properly,when i am using job_open ,submit

    hai ,
    i am using job_open ,submit and job_close for scheduling one program background and use submit to another program ,all are working properly but it is working as a forground program not as abackground program. i want to work it as a background program.
    plz give a solution.

    Hi,
    Please find a sample program format for executing a submit program in background.
    DATA: number           TYPE tbtcjob-jobcount,
          name             TYPE tbtcjob-jobname VALUE 'JOB_TEST',
          print_parameters TYPE pri_params.
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname          = name
      IMPORTING
        jobcount         = number
      EXCEPTIONS
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        OTHERS           = 4.
    IF sy-subrc = 0.
      SUBMIT submitable TO SAP-SPOOL
                        SPOOL PARAMETERS print_parameters
                        WITHOUT SPOOL DYNPRO
                        VIA JOB name NUMBER number
                        AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = number
            jobname              = name
            strtimmed            = 'X'
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF sy-subrc <> 0.
        ENDIF.
      ENDIF.
    ENDIF.
    Thanks & Regards,
    Harish

  • Multiple computer users sharing one library...second user doesn't show library

    I have a XP machine set up with 3 users. 
    On the master user, I installed Ituens and changed the library location to an external hard drive (for space reasons). 
    I closed Itunes, switched users, opened Itunes and pointed the library to the same shared folder / drive. 
    I have restared Itunes and the computer.  The second user does not see any music / apps / playlists from the main drive.  What did I do wrong or miss? 
    Thanks

    i use my files from a central hard drive and I don't check keep copies because I don't want it, needs it, require it...it wastes lots of hard drive space.

Maybe you are looking for

  • SC login and password for V490

    I have a new server V490. I am trying to setup the SC card with permanent IP address. I plugged laptop directly into SC card and requires a password and login. I have been unable to login not knowing what the default password is, assuming this is wha

  • 802.11n enabler not working

    I have the 2.16 Intel Duo Mac Book Pro. I researched the forums and, happy, happy, joy, joy, my dream machine should be able to run at the higher standard. I paid my buck 99 to Steve Jobs and Co., downloaded the enabler and I get a message saysing, "

  • Strange Battery and Startup goings on!

    Hi Ive got an old G4 667mhz laptop running 10.3.9. Recently Ive been experiencing some strange battery behaviour. I seem to get low battery warnings even though the % shows its above 50%. The most noticeable glitch is that I'm often unable to boot up

  • Firefox + web.show_document()

    Hi guys I'm developing an application in 10gR2, testing on firefox 1.5.0.7. The issue I am having is that web.show_document(<url>,'_blank') only works once in firefox. The next time it is called, no browser window pops up. I literally have to shut Fi

  • How to identify all the child tables referencing a master table

    Hi, How to identify all the child tables referencing a master table. Could you please help me... Thanks in advance...