Jobs with in 7 days time

hiya ,
in the program i should output all the jobs with in 7 days time...
this is my logic but it aint working....plz advise
gc_strt_dt_new = p_date-low.
**First loop date for high is always correct.
    lv_orig_end_dt = p_date-high.
    lv_orig_str_dt = p_date-low.
**Loop while endate > startdate
  WHILE p_date-high > p_date-low.
    lv_orig_str_dt = lv_orig_end_dt - 6.
    IF p_date-low < lv_orig_str_dt.
      p_date-low = lv_orig_str_dt.
    ENDIF.
*Create Job step*
    SUBMIT zdjstest_activity_driver VIA JOB gv_jobname
                                    NUMBER gv_job_number
                                    WITH p_date
                                    BETWEEN  p_date-low AND
                                               p_date-high
                                    SIGN 'I'
                                    AND RETURN.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
**Otherwise high and low range should be reduced to new value
    p_date-high = p_date-high - 7.
    p_date-low = p_date-low - 6.
    IF p_date-low LE gc_strt_dt_new.  "contains input p date low !!!
      EXIT.
    ENDIF.
  ENDWHILE.
thanks
Edited by: Alvaro Tejada Galindo on Feb 18, 2008 2:11 PM

TThis is definitely and issue that no one here can help with. You must take this up with ATT. If you paid the original bill with a credit card call your credit card company and dispute the charge. Otherwise keep talking to ATT.

Similar Messages

  • Setup job with max instances

    Hi,
    I wanted to know how to configure a job so that it will have max n instances running all the time. I have tried running my job every 5 mins and job option is set to "run anyway" but that schedules lot of job in parallel.
    Regards,
    Gurmeet

    You can set up a job with only the beginning time, let's say midnight - no end time then in Repeats you can select Rerun same occurrence and Repeat every n minutes (do not specify # of times). This will run starting at midnight, every 5 minutes, n times until 11:59 pm. I hope this is what you're looking for.

  • Job with Multiple Schedule of same time & only one is executed, Why

    Hi ALL,
    I've Created a package to notify report in email  as excel, which is using a path to render report and save it as excel.
    This package was need to be schedule every first day of month and on every Friday even at morning 7 AM.
    So logically these are two events.
    But if we see on 1 May 2015 we have Friday and plus first day of month
    So technically this should fail.
    either for IO operation for render &
    storing data over same location with same file name.
    To replicate this i created two three schedule
    Below is the job history, job is invoked by only one schedule
    Question-
    1) Why one one schedule execute?
    2) why "sched2" only , it could be "sched3" only or "DentalOperationStackAndRank-Sched1" Only?
    Another this i result into error if different job executing same package at same schedule.
    FYI- package is deployed at database level
    HS

    Hi HS,
    As described in this
    article, more than one job can run on the same schedule, and more than one schedule can apply to the same job.
    And I make a test about your scenario, when configuring a SQL Server job with three schedules that reference same dates and times, my job behaves as yours that only one schedule is executed, but the job is invoked by schedule2 or schedule 3 in my environment.
    It is a normal behavior of SQL Server job in my opinion. For more details about such scenario, you can track the job following this
    blog.
    However, when I configure three jobs that run on the same schedule, everything works well and the three jobs all run successfully.
     I recommend you configure three different jobs that execute same package at same schedule .
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • Schedule job with JOB_CLOSE until a certain time

    Hello all,
    I'd like to schedule a background job with JOB_CLOSE until a certain time, i.e. first start time at 10 a.m., repitition period 15 min., last start time 1 p.m.
    I tried this using parameter LASTSTRTTM, e.g.:
    i_startdate = sy-datum.
    i_starttime = '100000'.
    i_prdmins = '15'.
    i_laststrtdt = sy-datum.
    i_laststrttm = '130000'.
    CALL FUNCTION 'JOB_CLOSE'
        EXPORTING
          jobcount             = l_jobcount
          jobname              = 'MY_JOB'
          sdlstrtdt            = i_startdate
          sdlstrttm            = i_starttime
          laststrtdt           = i_laststrtdt
          laststrttm           = i_laststrttm
          prdmins              = i_prdmins
        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.
    but I didn't succeed - the job didn't stop at 1 p.m. Any hints?
    Best regards
    Martin Lehmann

    Hi Martin,
    i_startdate = sy-datum.  " 1st time Job Start Date
    i_starttime = '100000'.
    i_prdmins = '15'.
    i_laststrtdt = sy-datum.  " If Job is not started by this date, then it wont be started once this date is completed
    i_laststrttm = '130000'.
    What it means is, if i want to start a job by 10th Oct.. & expect that it should be started maximum by 20th Oct.. If its 20th Oct & still the job is not started,... then terminate the job & do not start it..
    If the job is already started, then it wont stop.
    Hope its clear.
    Best regards,
    Prashant

  • Syncing with Day-Timer

    I've been using Day-Timer Organizer as my address book/calendar for many years. Under Windows XP, it syncs perfectly with my Tungsten T5 over the cable.
    I have needed to replace my XP machine with a Windows 7 computer, and have run into an obstacle.
    The process of setting up Day-Timer with HotSync goes like this:
    1) Tell Day-Timer I want to sync with a Palm Handheld.
    2) Tell Day-Timer what I want to sync (addresses, contacts, tasks)
    3) Adjust conduits in HotSYnc - tuyrn off the Palm Desktop conduitrs for Datebooik, etc. and check off the new Day-Timer conduits.
    As I said, that worked fine in Windows XP. Under WIndows 7, I've downloaded the latest Palm Desktop software (even though I don't use it) to get the current version of HotSync.
    ANd here's the problem: In HotSync, the Day-Timer conduits don't appear in the conduit list like they do under Windows XP. How can I fix this? Do I need to reinstall an older version of HotSync? Would that work in Windows 7?

    Well Windows 7 hasn't been tested by Palm with any version of Palm desktop to see what will work and what will not work although lots of people have been having success with palm desktop 6.2 (which is the latest version available).
    Without knowing the software you are using very well have you checked to see if they support palm desktop 6.2? It could be that they only support up to a certain version that does not include 6.2.
    You may have to do testing to see what works if information is not available this would include likely uninstalling 6.2 and experimenting with an older version.

  • Requested start time during job scheduling population in local time.

    Hello Experts,
    Could you please help on the issue.
    Requested start time during job scheduling populated with local time even though we have assigned the GMT time zone.
    Could you please help , how to change the settings of request start time calender icon to populate the GMT time.
    thanks,
    Suresh.

    Hello Gerben,
    Thanks for the reply, even though the default time zone set as GMT in user settings, the requested start time calender pop up the local time instead of GMT time.
    Previously requested start time poped up  the GMT time, we have observed this change once we have ran the redwood script for time window elements change and imported some of the job definitions, applications & time windows from other system.
    Below is the script we have ran thought shell script
    Script Fuctionality
    1. Take the mentioned time window
    2. iteratate thought the time window elements and add 1 hour to the "time to day from" & "time to day to" parameters.
    3. set the changed parametes to time window and persist the changes.
    // Variable Declarations
    String timewindow = null;
    String query = null;
    TimeWindow tw = null;
    TimeWindowElement twe = null;
    long otdvalue = 3600000;
    long l1 = 0;
    long l2 = 0;
    long threshold = 0 ;
    long expvalue = 82800000;
    long expvalue1 = 85500000;
    long indto1 = 0;
    long indfrom1 = 300999;
    long indto2 = 2700000;
    long indfrom2 =  3000999;
    Job job = null;
    //Declare all the time windows in array
    String[] timewindows = {"XX_TIMEWINDOW_01_GMT"};
              for( int i = 0 ; i < timewindows.length; i++)
              timewindow =  timewindows<i>;
              jcsOut.println("TimeWindow"i":"+timewindows<i>);
              tw = jcsSession.getTimeWindowByName(timewindow);
              for (Iterator it1 = tw.getTimeWindowElements(); it1.hasNext();)
                   twe = (TimeWindowElement) it1.next();
                   Long otd = new Long(otdvalue);
                   jcsOut.println("************************");
                   jcsOut.println(twe.getTimeOfDayFrom());
                   jcsOut.println(twe.getTimeOfDayTo());
                   jcsOut.println("************************");
                   Long todf = (Long) twe.getTimeOfDayFrom();
                   Long todt = (Long) twe.getTimeOfDayTo();
                                      threshold = todf.longValue();
                            // if timeday from equal to 23 GMT assign the 0 GMT
                                      if(threshold == expvalue )
                    jcsOut.println("timewindow with 23 GMT");
                   l1 = indto1;
                   l2 = indfrom1;
                            //if timedayfrom equal to 23:45 GMT assign 0:45 GMT
                   else if(threshold == expvalue1)
                   jcsOut.println("timewindow with 23:45 GMT");
                   l1 = indto2;
                   l2 = indfrom2;
                            // Add 1 hour for current time of day from 
                   else
                   l1 = todf.longValue() + otdvalue;
                   l2 = todt.longValue() +  otdvalue;
                   Long ll1 = new Long(l1);
                   Long ll2 = new Long(l2);
                   twe.setTimeOfDayFrom(ll1);
                   twe.setTimeOfDayTo(ll2);
                   jcsOut.println("After Change:"+ twe.getTimeOfDayFrom());
                   jcsSession.persist();
    Once after the script competetion the time window time zone remains in GMT.
    Could you please check script once and  help us  the time zone change caused  the by script or not?
    Thanks,
    Suresh

  • Rules are not allowed for jobs with set 'archive edited messages only' flag.

    Hi,
    We are on AEX 7.4 and have enabled user defined search and also setup archiving. Even though the retention period has expired but still the messages are not being
    archived.
    We see following issues:
    1. Unable to setup archiving rule in Runtime Work Bench, we are getting following error:
    Rules are not allowed for jobs with set 'archive edited messages only flag.
    2. Unable to set the expiration of messages using the following link.Each time we specify the number days it shows the same number of
    messages expired.
    http://XXXXX:50000/MessagingSystem/job/reorgdb.jsp
    3. However if we click on "remove messages" button the messages are getting deleted which tells me that the messages are not matching any
    archiving rule hence are being removed.
    Any pointers to the above issue are appreciated!!!
    Thanks,
    Rajeev

    Hi,
    Please check the [link|http://www.****************/Tutorials/XI/Archiving/Index.htm]
    Also check this
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/402fae48-0601-0010-3088-85c46a236f50?quicklink=index&overridelayout=true
    http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=147266890
    Regards,
    Naveen.

  • Jobs with a startevent and starttime

    hello,
    I'd like to plan a job in an abap program which is started when an event is raised or a certain timespan
    has passed.
    When planing the job by using the functionmodules job_open, job_submit and and job_close I can supply an event and a startdate but the implementation of the functionmodules ignores the event when the startdate parameter is supplied.
    Is there a workaround to enable event triggered jobs with a startdate which is used if the event is not raised within a certain timespan or do I really hav to use 2 jobs?
    thanks
    Roman

    Hello Roman
    I think you have to use 2 jobs, but if you use 2 jobs with the same program the program may run twice.
    You could create 1 job with your program that is started by event and 1 job with a startdate/time that runs a program that raise the event.
    best regards
    Thomas Madsen Nielsen

  • Day timer format calendar

    Does anyone know of software that can create what you can do with Calendar but in a week at a glance day timer format? IE - a 5 x 7 size with photos on the left and a week calendar on the right?
    Thanks!

    No I do not - but it sounds like a good suggestion for Apple - iPhoto menu ==> provide iPhoto feedback
    LN

  • Schedule Job with Job_close after successful job doesn't work

    Hi guys,
    I'm using FM CLOSE_JOB with parameters : 
                JOBCOUNT             = w_JobId
                JOBNAME              = w_JobName
                PREDJOB_CHECKSTAT    = 'X'
                PRED_JOBCOUNT        = w_oldJobId
                PRED_JOBNAME         = w_oldJobName
    I have about 9 jobs wich must run the one after the others. The first start without PRED* parameters, but the 8 others one are filled with CHECKSTAT, and previous job name and id.
    It works fine for the side "the one after the others", BUT, wathever the previous job give as result (cancelled or finished), the next one starts whereas I pass the parameter CHECKSTAT to X.
    Any ideas of the problem and how to solve it?
    Thanks in advance for your answers.

    Here my code with explanation :
    REPORT  YCOMJ023.
    start-of-selection.
    "Initialization of my vars
    w_StepCount = 0. >> number of steps maxi in a job
    w_jobCount = 1.  >> number to see easier in SM37 the job order
    CONCATENATE pe_name '_STEPS' w_jobCountC INTO w_JobName. (example : TOTO_STEP1)
    CONDENSE w_JobName NO-GAPS.
    "I open my first job
      CALL FUNCTION 'JOB_OPEN' (OPEN job TOTO_STEP1)
        EXPORTING
          jobname          = w_JobName
        IMPORTING
          jobcount         = w_JobID
        EXCEPTIONS
          cant_create_job  = 1
          invalid_job_data = 2
          jobname_missing  = 3
          OTHERS           = 4.
    "We keep in memory first job IDs to close it at the end of the prg
      w_firstjobName = w_JobName.
      w_firstjobID = w_JobID.
    "imagine you do the bellow code in a loop and it makes several jobs TOTO_STEP2 TOTO_STEP3 TOTO_STEP4...
    ADD 1 TO w_StepCount.
    IF w_StepCount GT 250.
        "I call close job eatch time I reach 250 steps
         PERFORM fx_jobclose.
    ENDIF.
    submit RKGALKEUB to sap-spool and return
                                       without spool dynpro
                                       spool parameters print_parameters
                                            VIA JOB w_JobName NUMBER w_JobID
    "End of the programmI close the current Job and the first one :
    "Current
            CALL FUNCTION 'JOB_CLOSE'
              EXPORTING
                JOBCOUNT             = w_JobId
                JOBNAME              = w_JobName
                PREDJOB_CHECKSTAT    = 'X'
                PRED_JOBCOUNT        = w_oldJobId
                PRED_JOBNAME         = w_oldJobName.
    "First one + launch with STRIMMED
            CALL FUNCTION 'JOB_CLOSE'
            EXPORTING
              JOBCOUNT             = w_firstjobId
              JOBNAME              = w_firstjobName
              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.
    *&      Form  fx_jobclose
    *       text
    FORM fx_jobclose.
      "Step to zero to do a new loop after this form
      w_StepCount = 0.
      DATA : w_job_released TYPE CHAR1.
      "If the flag IsFirst, we don't do nothing, because it's the first JOb, and it should not be closed
      IF w_IsFirst = 'X'.
        "Flag is set to blank
        w_IsFirst = ''.
      ELSE.
          "Else it mean we are closing a job with predecessor :
          CALL FUNCTION 'JOB_CLOSE'
            EXPORTING
              JOBCOUNT             = w_JobId
              JOBNAME              = w_JobName
              PREDJOB_CHECKSTAT    = 'X'
              PRED_JOBCOUNT        = w_oldJobId
              PRED_JOBNAME         = w_oldJobName
              "SDLSTRTDT            = sy-datum
              "SDLSTRTTM            = sy-timlo
            IMPORTING
              JOB_WAS_RELEASED = w_job_released.
      ENDIF.
      "Vars get the value of current job, witch will become the older one
      w_oldJobId = w_jobID.
      w_oldJobName = w_JobName.
    "I make the new TOTO_STEPX job name
      ADD 1 TO w_jobCount.
      w_jobCountC = w_jobCount.
      CONCATENATE pe_name '_STEPS' w_jobCountC INTO w_JobName.
      CONDENSE w_JobName NO-GAPS.
      "I open the new job
      CALL FUNCTION 'JOB_OPEN'
        EXPORTING
          jobname          = w_JobName
        IMPORTING
          jobcount         = w_JobId
        EXCEPTIONS
          cant_create_job  = 1
          invalid_job_data = 2
          jobname_missing  = 3
          OTHERS           = 4.
    ENDFORM.                    "fx_jobclose
    I hope my code is clear enought, I tried to delete the superfluities code.

  • Creating Job with CmdExe Step failed with error Reason : 5

    Hi, I setup a job with Type = Operating System (CmdExec) and Run as 'SQL Server Agent Service Account' , it failed to run with Message below :
    Message
    Executed as user: PROD\sqlserveragent. The process could not be created for step 4 of job 0x5A83AE4A12AEF649888E85F4072604F6 (reason: 5).  The step failed.
    1. I couldn't find what is meaning of Reason 5 here.
    2. This step used to work previously and it 'not working' suddenly these few days. I wondering anyone make the changes but I am not able to trace it. Any guide to troubleshoot would be helpful.
    Thanks .

     Operating System ... (reason: 5).  The step failed.
    Operating System Error code 5 = Access denied, seems to be a permission issue.
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Background job getting failed every day

    Hi,
    This background job getting failed every day.But this job was running fine initial periord.Please help me out this issue.
    SAP_REORG_UPDATERECORDS
    SAP_WP_CACHE_RELOAD_FULL
    SLCA_LCK_SYNCHOWNERS
    Regards
    Naanas.

    If this is R/3, then none of the above jobs should exist in the system, if scheduled by default with other standard jobs, then these should be removed
    Note 1034532 - Changes for standard jobs
    Note 931436 - SLCA_LCK_SYNCHOWNERS standard job terminates

  • Not able to run the job with user id - is

    Hello experts,
    We have problem.
    Every day we run the job.
    ( the job contians two programs called  ZTIBCOPRG  and J_5HJSTP  )).
    I would like to know why the above job is running with the user ID TIBCOADM.  Because this user has German settings for the size conversion in program ZTIBCOPRG and we are having some issues.
    We changed the user to TIBCOUSA and the job would not run. 
    We have changed the user back to TIBCOADM.  It is running.
    KINDLY HELP ME WITH YOUR VALUABLE inputs.   YOUR HELP WILL BE HIGHLY APPRECIATED.
    I have checked for both users in AGR_USERS  table.
    The AGR_USERS is the old user and have many roles compared to userid TIBCOUSA.
    WHERE WE NEED TO SEE . IS it authorisation problem or the other user with whom unable to run the job ?
    or is this the error in the program ZTIBCOPRG which is not able to do size conversion and causing some issues.
    Thanks and Regards,

    Hi,
         after running the job with user id TIBCOUSA, it should be in cancelled state as per your comments.
    you just select the cancelled job and type JDBG in command box and enter it takes you to Debug mode.
    There you may get some information where it is failing.
    Sudheer. A

  • How can you get the schedule of a single reoccurring job with Restart ability in Redwood to pause when it has failed...?

    We need the Request Restart ability when scheduling a single reoccurring job in Redwood. Most of our jobs are scheduled in CHAINs which offers the Final Status Handler on Step level, and the schedule is "paused" when a job in the CHAIN has failed ( the next instance does not populate until the OP MSG has been Replied to) , and once the OPERATOR message is replied to, the CHAIN can resume running again ( desired ) . But we need this same ability when scheduling a single job not in a CHAIN. In our testing, we set up a job with Request Restart chosen on the Error , Killed and Unknown selections on the Restart Behavior Tab. But we found when a job is scheduled say once a day at 8AM, and when it fails, an OPERATOR msg appears allowing a Restart choice ( desired), but the next day's schedule also populates ( undesired) and we do NOT want the schedule to continue on yet because we need a chance to fix the error before the next insance runs for business reasons. So how can you get the schedule of a single reoccurring job with Restart ability in Redwood to pause when it has failed...?

    Hello Fran,
    You can wrap the job chain in a master job chain in the first step and set the final status handler there.
    You can also set the Restart Behavior to 'Stop Submit Frame', in that case you will have to resubmit the job once you are finished troubleshooting.
    Regards Gerben

  • How do I find out what purchases were made on a particular day/time?  My credit card has a charge and I didn't purchase anything from APL*APPLE ITUNES?

    My credit card has a charge on it for a particular day/time from APL *APPLE ITUNES.  The charged amount and date/time of the charge do not ring any bells with me and I don't have kiddos that would be charging downloads or whatever.  How do I find out what the charges were actually for?  I've tried to figure it out in the iTunes store, but not having much luck.  I'm new to this iPhone 'thing".  Please help.

    Sign into your Account > Click on your account name > Click on Account > Purchase History
    iTunes Store & Mac App Store: Seeing your purchase history and order numbers - http://support.apple.com/kb/HT2727
    Direct link - https://phobos.apple.com/WebObjects/MZFinance.woa/wa/purchaseHistory

Maybe you are looking for

  • Burn a data DVD

    I have tried to burn a smart playlist to a DVD to listen to my music at work. The DVD does burn, but all the music that I have purchased from iTunes is missing. It is selected in the playlist but it doesn't burn to the DVD. Any suggestions?

  • Update JV then the window is frozen

    Dear All, When we open the JV and update the posting date, the system asked if 'update posting date for each line?' and 'update values according to new value', . After we said yes, the window is frozen. The JV has 120+ lines. I've tested this from th

  • Access to SAP Netweaver 2004s --- ECC 6.0

    Good evening.... The question is: Must I install the java engine in my sap ECC 6.0 to access via web to SAP or isn't necessary ??? I've read in the marketplace and I think isn't necessary but I need to be sure. I'll can access via web (internet explo

  • File adapter number of threads exceeded

    HI, i have a problem with the file adapter. the file adapter has assigned 20 threads and all threads are currently working. so the processing of other files except this ones currently being processed (and blocked) is not possible. in the rwb there is

  • Encore CS4 won't open!

    Hey, I cannot open Encore CS4. I have used the CS5 Clean-up tool and I have re-installed the whole Production Premium package as well as Encore individually. Whenever I try to open the application or open a saved project, nothing happens. I get the h