How to control Jobs

Hi,
How can we restrict the jobs scheduling by users . i.e I wan to restrict for a particular user so that he can able to schedule certain no.of jobs ( 5 ) only. If he wants to schedule 6th job on his name, it should not be released... Once a job among the previoulsy scheduled jobs (5) will complete, then the 6th job should be released....
Thanks & Regards.
Srini.

Hi Srinivas,
Like this you can check  the no of jobs executed by user.
Based on the count u can do validation
tables: tbtco.
data: sj_count type i.
parameters: p_user like tbtco-reluname.
select count(*) from tbtco into sj_count where
                      reluname = p_user and
                      status  = 'R'.
if sj_count > 5.
    write:/ sj_count. "ur logic
  exit.
else.
  " perform validate
endif.
Hope it gives u hint.
thanks\
Mahesh

Similar Messages

  • How to control job created inside a procedure

    Scenario:+*
    I have a package which has 14 procedures which are interdependent and hence running in sequence. The entire process will take around 1.5 hrs to complete. So inorder to bring down time consumed to complete this process i have identified few procedures among this 14 which can be run in parallel. That lead to me to use DBMS_SCHEDULER and had successfully splitted these procedures and now these procedures are execute some in parallel then some in sequence, the starting of one depending on the ending of other with the help of programs, chains and chain rules.
    To achieve this i have a job at the end of my package, to execute the chain, for which the auto_drop attribute is set to TRUE as i dont want the job to be in the database sitting idle. Here job is created on the fly.
    Issue:_*
    As soon as the controll reaches DBMS_SCHEDULER.ENABLE ('job'), my chain starts running in the backend and the API gives the output procedure is completed.
    Here actually the procedure is not completed as the job is still running in the backend. But the java code which calls the procedure is receiving the message that procedure is completed.
    Question:*
    How can i stop the API sending the message "Procedure succesfully completed" before completing the job.
    Please advice

    DBMS_SCHEDULER package use to execute Procedure, Executable blocks etc..without manual intervention on specific timings. As soon as you submits the job it will reply you "Procedure successfully completed" that means successfully accepted.
    It does not know how many times that job needs to be executed in future. After completion of job how it will return successful message ( to which session?).
    You need to check the status of the job using various data dictionaries available in oracle to know the status of your job.
    In java code you interpret that, whenever you get such message that mean job submitted not completed.

  • How to schedule job V3 unserialised Update job for Inventory

    Hi gurus,
    How to schedule job V3 unserialised Update job for Inventory management
    What are the things need to be configured
    Thank you

    Hi,
    In R/3 go to SBIW > Settings for Application-Specific DataSources (PI) > Logistics > Managing Extract Structures > Logistics Extraction Structures Customizing Cockpit
    UIn this Screen you can define delta type, and the jog usign the control job option.
    Regards,
    Dani

  • How to control print over laps?

    We are printing several lists on the same printer from different users using different print jobs.
    For each page of the list, a file is generated which is picked up by the interface and sent to a printer. The files are numbered with date and time stamp.
    However the docs are getting over lapped when the jobs are released simultaneously.
    When Job A and Job B are released at the same time from different points:
    The first doc prints from Job A, second doc is from Job B - again 3rd and 4th will be from Job A etc.
    How to control this in such a way that the Job A completes and then Job B starts printing?
    {I am not sure if locking the printer helps - as this may lead to failure of subsequent jobs}.
    Thanks.

    no answer - closing

  • OEM job : How to force job status after a PLSQL job run?

    Hello,
    We are under 10gR2, using OEM with a lot of jobs that call PLSQL procedures.
    For some obscur reason, when a PLSQL procedure fails, the job status is always "Succeeded". This is not useful at all !!!
    So, as we don't kow why, I was thinking about setting the return job status in the PLSQL procedure itself ...
    Is it possible ?
    How can I do that ?
    I hope that my explanation is clear.
    Thanks for your help,
    Olivier

    Hi Olivier
    I dont understant the first time.
    Yes its very stange that the job appear like suceed and the PL procedure had failed.
    If you want more control to this situation, in my situation i had too much problems with jobs that executing SQL scripts.
    Then i change the SQL SCRIPT JOB for OS SCRIPTS JOB and in this scripts i can controlling the execution
    This an example
    Job Statistics.sh
    Gric Control --> Job --> Operating System Script
    /home/oracle/script.sh --> In the parameter line of the job
    # the script.sh
    ORACLE_HOME=/oracle/10.2
    ORACLE_SID=PROD
    $ORACLE_HOME/bin/sqlplus "/ as sysdba" << EOF
    execute dbms_mview.refresh('MVIEW_SALES','f');
    EOF
    res=$?
    if [ ${res -ne 0 }
    then
    mailx -s THE_JOB_HAD_ERRORS [email protected]
    else
    mailx -s ok_execution [email protected]
    fi
    In my enviroment was a solution to control the exact execution of the jobs
    Regards

  • HT204053 Is there any chart by which how itunes controls the iphone can be understood easily

    Is there any chart by which how itunes controls the iphone can be more understood easily

    Good idea. I've already used the feedback for my general suggestions to improve the way Apple handles bug reports (and tried sending it to Steve Jobs too), but I'll send a specific suggestion for a bug app on the iPhone.
    However, my question is whether there is a simple way to send bug reports from the iPhone now that I have overlooked.

  • HOW TO CONTROL ON CREATION OF SALES ORDER WITH REFERENCE TO EARLIER SO?

    Dear All,
    I want to contol on creation of Sales order with reference to earlier SO?  While creation of sales order our enduser are creating sales order with reference to earlier month SO which I want to restrict. Recently I made changes in sales order like payment terms is grayed, system will atomatically pick pay terms from customer master.Now I am getting correct data also but enduser is using old SO no while creating new SO and old payment data is reflecting in fbl5n.
    I want to restrict enduser while creating new SO with ref. to old SO. Only for returns they should be able to use Billing refrence. Pl. suggest how to control the with reference to ealier SO.
    Nikhil

    Nikhil Deshpande,
          If you dont want allow create a sales order in referent to other one, just delete the copy control between these sales order type, so when the user tries to create a SO in reference to other one a message is displayed that is not possible.
    Thanks,
    Mariano.

  • CRM Web UI :- How to Control number of session of Web UI for a user

    Hello Experts,
    We do have very specific requirement which SAP doesn`t recommend in terms of multi-sessioning for a user.So we are little worried upon the challeges.Could you please share your ideas/Experience on following?
    1.How to Control number of Internet explorer session for the web UI (may be 2 or 3).?
      Though SAP doesn`t recommned more than one but our client requires 2 or more than that but we need to fix it either 
      2 or 3.
      So we are looking for specific setting for this.
    2.What are the challenges we need to face if we implement option 1?
    3.Specially in interaction record management
        a. Is there chance of loosing the data if agent has opened more than two session.
        b. In which session interaction record data will get stored,the one on which agent picked up the call or in the latest 
            one?
    Please let me know if I am not clear enough on any point.
    Thanks in advance,
    Shailendra Tolambiya

    Hi Shailendra,
    The following wiki page might be useful in this respect:
    http://wiki.sdn.sap.com/wiki/x/gxdKDQ
    Best Regards,
    Shiromani

  • How to control my MacBook Pro with my iPhone ?

    I do wanna know how to control my Macbook pro just with my iPhone, please

    If you mean copy files from one to the other you can connect the two via firewire cable and boot one into Target Disk Mode.

  • How to control follow up doc for  Activities

    Hi...
    I have created 10 different types of Activitiy Doc. When I open any activity in crmd_order I'm getting all other activities as follow up docs(when I click on follow up icon). I dont want all of them, may be I need one or two out of those. How to control those can anyone have idea
    Regards,
    Ajay

    Hi,
    Check the copy control for transactions in
    spro-->Customer Relationship Management->Transactions->Basic Settings->Copying Control for Business Transactions->Define Copying Control for Transaction Types
    If the transactions are maintained as follow up for the transaction you have created then remove the entries which you dont want as follow up.
    Reward points if it helps.
    Shridhar

  • How to schedule Job for data uploading from source to BI

    Hi to all,
    How to schedule Job for data uploading from source to BI,
    Why we required and how we do it.
    As I am fresher in BI, I need to know from bottom.
    Regards
    Pavneet Rana

    Hi.
    You can create [process chain |http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/502b2998-1017-2d10-1c8a-a57a35d52bc8?quicklink=index&overridelayout=true]for data loading pocess and schedule start process to any time/date etc ...
    Regadrs.

  • How to control DE USB disk Automounts.

    Hi,
    Can someone please guide me as to how to 'control' Automounts by DE when we plug USB disk drives.
    I have KDE4 on my Arch system. When I connect a pen drive/USB HDD which is formatted as vfat/NTFS, the system(or KDE) 'Automounts' it in /media and I have read/write access to it. But if I use the same drive and format it as ext4, it wont be mounted as read/write for normal users but only for root.
    Now pen drives and USB HDD's are removable storage drives and hence are volatile and could not have a fixed mount point, so it cannot be mounted by putting an entry in fstab or could they?. And I need my USB HDD frequently, and manually mounting it through CLI everytime and working on it as root is a bad idea i guess.
    I am posting this because m confused as to how to control this Automount feature-What is the backend to it? Because I've read that HAL no longer takes care of it and that HAL will be deprecated soon, instead UDEV takes care of it. If that is the case then should I be concerned about polkit? Because that is what's the output provided by Dolphin(freedesktop.org policy prevented blah blah).
    Another thing is if HAL is still in use and Automounts my devices then is it independent or polkit is a part of it. Then, is using hal-easy an option or replacement to standard HAL. ??!!??
    I tried HAL archwiki and used the code to give a user permission to give rw access to automounted ext filesystems, but then nothing is mounted, it sings the same old freedesktop.org prevented bla blah song. And I think this is a question for all linuxes using Gnome and KDE in general.
    Any help is appreciated.

    If by 'ability to mount as user' you mean to mount it manually but read/write access to normal users then yes. But primarily I need automounting as user, also be able to give access to other users for read/write et filesystem automounts.
    Last edited by kapz (2009-11-17 01:12:56)

  • How to control a NI USB 6210 from a Lab View program?

    Hi,
    I started today with Lab View with some earlier experience long ago.
    While it took me only about half an hour to get my first program running (great), installation time nor included (of course), I meanwhile read documents for some hours and cannot find out how to control measurement hardware in Lab View.
    I want to use a USB 6210 to set a 1-bit digital port. But at the moment there is no USB6210 available so I wanted to write (or do you say draw ?) the program without it and if possible simulate the hardware.
    I drew DAQ Assistant into my block diagram and selected digital line output but get "No supported devices found". I don't know if the appropriate driver was installed during Lab View installation.
    Also I don't understand the mechanism between DAQmx, tasks and the real hardware. Now I have a "Digital Bool 1Line 1Point" Control in my block diagram. How do signals get from program flow to hardware pin? How can I create a simulation for not connected hardware?
    Any help is greatly welcome
    Thanks a lot
    Martin

    Okay here is some more tutorials if you get some free time, specifically the hardware stuff will be relavent.
    NI Learning Center
    NI Getting Started
    -Hardware Basics
    -LabVEW Basics
    -DAQ Application Tutorials
    3 Hour LabVIEW Introduction
    6 Hour LabVIEW Introduction
    Self Paced training for students
    Self Paced training beginner to advanced, SSP Required
    LabVIEW Wiki on Training
    Launch MAX, it was known as Measurement and Automation Explorer, there should be a shortcut in your start menu / desktop.  Under devices and interfaces you can find your hardware and open test panels to control it.  This is the first place to ensure your hardware is working.  If the device isn't seen you'll need to install the drivers and DAQmx software.  If it is there, great.
    Now launch LabVIEW.  The easiest way to control hardware is using the DAQ Assistant.  It has many limitations and isn't recommended for large applications.  But for something quick and dirty it works fine.  You'll find it under the Measurement I/O >> NI DAQmx palette on the block diagram.  If it isn't there you may need to reinstall the DAQmx drivers.  This can happen if you installed DAQmx before LabVIEW.
    Also you'll find under Help >> Find Examples on the toolbar, many examples on controlling hardware.  Feel free to post some code if  you are having problems.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • How to control the shared libs when creating an new OC4J  in AS 10.1.3.4

    Hi there
    I experience some wired behavior in AS 10.1.3.4!
    I Have 2 different installation of AS 10.,1.3.4 (Win 2003 server).
    When I create an OC4J instance (using the manager) at virtual server 1 I got 28 global libraries
    When I create an OC4J instance (using the manager) at virtual server 2 I got 30 global libraries, (+ apache.webservices & oracle.ifs.client )
    Why this difference ?
    And how to control it?
    Note the default instance "Home" has 28 libraries on both servers!!
    Why is it sometime possible possible to use <instance>applib for the jar, and sometime I need to create an <instance>\shared-lib\global.libraries\1.0 library ?
    Regards HAns

    Hi there
    I experience some wired behavior in AS 10.1.3.4!
    I Have 2 different installation of AS 10.,1.3.4 (Win 2003 server).
    When I create an OC4J instance (using the manager) at virtual server 1 I got 28 global libraries
    When I create an OC4J instance (using the manager) at virtual server 2 I got 30 global libraries, (+ apache.webservices & oracle.ifs.client )
    Why this difference ?
    And how to control it?
    Note the default instance "Home" has 28 libraries on both servers!!
    Why is it sometime possible possible to use <instance>applib for the jar, and sometime I need to create an <instance>\shared-lib\global.libraries\1.0 library ?
    Regards HAns

  • How to Control authorization for users with certain status for level 2 WBS Element

    Dear All,
    Is there any standard way or enhancement available to control authorization for users with certain status for WBS Element i.e. for example
    Pre-requisite:
    There is only 2 level of project i.e.
    Lev_ WBSE_______Description
    1___ 7-14.E_______summay outage controller
    2___ 7-14.E.2310__ Plant/unit # 2310
    2___ 7-14.E.2310__ Plant/unit # 2220
    Project Controller  (authorization role assigned "Z_PS_OP7_OTGCON_C") have all project level authorization
    Plant/Unit Controller (authorization role assigned "Z_PS_OP7_PLNTOTG_C_2310") have only level 2 authorization with enhancement that we did in system by Z table.
    User ID_ Plant #
    123345_ 2310
    122455_ 2220
    Issue:
    After System Status released and User Status approved the WBS basic date for Plant/Units should be restricted from updating/changing by Plant/Unit Controller level and only project controller should have this authority.
    Solution required: 
    Can any one tell how to control this scenario either by standard or enhancement available to control authorization
    BR
    Saqib Usman   

    Hi,
    Did you explore SAP Enhancement CNEX0002 Using Transaction CMOD?
    Thank you and regards,
    Varshal Kachole
    The SCN Rules of Engagement

Maybe you are looking for

  • Something is wrong with the bottom cover

    The bottom cover, I mean this one which protects sim card from water, is broken. I close it every single time but it still keep opening... Not completely but it comes off a little bit. What should I do? Should I give my Xperia for the warranty?

  • Why do keyboard shortcuts for menu items created in System Preferences appear in Firefox menus but not work?

    Given that Firefox does not obey the System Preferences custom keyboard shortcuts, why does it still display those shortcuts in the menus, thereby incorrectly telling users that they will work? This issue was raised 6 months ago, but the only posted

  • SOS: Problem with how to unlock or activate my iPhone4S

    I bought my 4S in Austrilia a couple of days ago. Full price 799!!!AUD, then, for some personal reason, I had to go to china with it unwrapped. To be honest , I want to give it to one of my friend as a gift. However, when I got here, I inserted local

  • NK1 for Samsung s4

    What did the change ng6 to nk1 update do for Samsung S4 phone?

  • AppleCare Registration in Progress, still?

    Hi all, I recently purchased an AppleCare for my Macbook Pro (1st year warranty expires on the 15th Aug), and I did the registration online and i seem to recall an error at the end of the registration asking me to try registering again at a later poi