Job rescheduling under ASCP
Hello,
Has anyone try to reschedule job using ASCP and can help me to resolve my issue ?
I am trying to reschedule job using Gantt Chart in ASCP but I get to issue :
- First : I reschedule my job using Gantt chart. But I can't select my job for release because it has no action suggested (Action = None).
- Second : I made a reschedule on a job with action = 'Reschedule out'. And I select it for release. I release the plan.
The Wip load failed : in the WIP interface table, it appears that the rescheduling under Gantt chart has reschedule the Resource requirements, but it has not reschedule the job. So, since my new resource requirements are over the job completion date, the WIP load fails.
Thank in advance.
Hi Scott,
You could create a specific entry in table TVARV (or in a custom table whatever you prefer) containing date and time of the last run of your job. At the begining of your program, retrieve this value and extract all sales order created/modified since this date and time and then update the value in TVARV with current date and time.
This way, TVARV will always contain the date and time of the last extraction and you don't have to worry about production shut down.
If you have different jobs, you can always create different entries in TVARV.
Regards.
Nicolas
Similar Messages
-
Function Module for Job reschedule
Hello Experts,
Is there a function module for job rescheduling as i need to create a automation program where i need to select all jobs from excel sheet and reschedule at different time.
Thanks and Regards,
Nikhil Kanegaonkar.You could use the following FM
- [BP_JOB_READ|http://www.sdn.sap.com/irj/scn/advancedsearch?query=bp_job_read] (read first from TBTCO to fill field JOBCOUNT)
- [BP_JOB_CREATE|http://www.sdn.sap.com/irj/scn/advancedsearch?query=bp_job_create] (change schedule parameters first)
- for recent versions [BP_JOB_COPY|http://www.sdn.sap.com/irj/scn/advancedsearch?query=bp_job_copy]
You should take a look at FM of the FG BTCH and SAP documentation like [Programming with the Background Processing System (BC-CCM-BTC)|http://help.sap.com/saphelp_nwpi71/helpdata/en/fa/096c53543b11d1898e0000e8322d00/frameset.htm]
Regards,
Raymond -
Need query to link parent and child discrete job planned through ascp
Could you help me create a query that will show both the parent and child discrete jobs created through ascp run? I do not need entire query. I need to know the names of tables and understand the links or joins between tables. Then, I shall be able to write the sql on my own.
ThanksHi;
Please check below thread which could be helpful for your issue:
http://forums.oracle.com/forums/thread.jspa?messageID=9155702
Regard
Helios -
Need query linking parent and child discrete jobs created through ascp planning
Could you help me create a query that will show both the parent and child discrete jobs created through ascp run? I do not need entire query. I need to know the names of tables and understand the links or joins between tables. Then, I shall be able to write the sql on my own.
ThanksJust use a format like this:
http://<Server Name>:<port Number>/OpenDocument/opendoc/openDocument.jsp?sDocName=reportB&sType=wid&sRefresh=Y
&lsMObjectName=[test1],[test2]
Here in lsM[ObjectName] parameter [ObjectName] = the object name which you want to send data to ReportB
I can give you a idea of creating hyperlink for jumping another report (Here ReportB)
Just use a formula like that in any cell:
="<a href=http://<Server Name>:<port Number>/OpenDocument/opendoc/openDocument.jsp?sDocName=reportB&sType=wid&sRefresh=Y&lsMObjectName=[test1],[test2]&sWIndow=New> Click here to view </a>
Now from the property select Read cell content as "Hyperlink"...
thats it......
For more information please see the
"OpenDocument" artile
Hope you can get help from this
Edited by: Arif Arifuzzaman on Aug 20, 2009 7:24 AM -
Hello All,
Our Basis person scheduled a backgrpound job with his user id now I want to change the owner of this job,that is I want to run this job under ddic in 000 client..Please suggest.
Juan : Please let me know why this thread has been deleted..I really do not know how am I breaking the rules of SDN??Is this an Interview Question??I think any question can be interview question from sdn,it depends on the interviewer..This is a real problem I am facing at my dev server so I have taken the help of sdn.Hi,
-> Log into 000 Client.
-> Using SM37 search the required Job (which is in released status) and open it for change.
-> Open the Step section of that Job in change mode. Here you can change the User Name (with which the Job will be invoked).
-> Schedule it on your time and save the changes finally. It will be scheduled in 000 Client with the new user which u specified in the Step of that Job.
Regards,
Bhavik G. Shroff -
Logging Time issue with Job running under SYS.MAINTENANCE_WINDOW_GROUP
Hi,
We have configured a nightly job to run daily at 2:00 AM
And configured the Job to run under Sys,maintenance_window_group.
The nightly job is producing some log(trace) files in the format
<date-time> message
the <date-time> entry is made as
UTL_FILE.PUT_LINE (log_file, TO_CHAR(SYSDATE,'DD/MM/YYYY HH24:MI:SS') || ' ' || msg, TRUE);
the problem is the entry for date-time field in the log file is not correct.
06/02/2013 20:00:02 NIGHTLY_JOB Begin
It is using EST time ( e.g.- 20:00:00 PM ) but the job is running at timezone Europe/VIENNA
the file modifcation time is OK, when we check it with ls command ( it gives time near to 2:00 AM)
-rw-r--r-- 1 oracle asmadmin 3494 Feb 7 02:36 NIGHTLY_JOB.log
could you please suggest what could be wrong?
Oracle release is 11.2.0.2hi,
Can you , paste the o/p of
select * from NLS_DATABASE_PARAMETERS;Thanks,
Ajay More
http://www.moreajays.com -
Use of JOBS folder under root directory
Hi,
We have Backup, Binn, DATA, Install, JOBS, Log, repldata directories under the instance root directory, as of now I heard the JOBS directory is used for jobs information, but I never see any jobs related information is captured under JOBS, Can someone please
explain the purpose of this directory and what kind of jobs information stored here if any.
Thanks & Regards,
KasiIt is just a default directory that SQL installation creates. It is not being used in the latest SQL versions (you can rename it and restart SQLAgent without any problems). However, in SQL 2000, it used to maintain a registry key called working directory
for this path and SQLAgent was dependent on this folder even though it is just a default directory (I haven't seen any usage of it though)
Satish Kartan http://www.sqlfood.com/ -
How to find the quantity of items under WIP job and under PO?
Hi,
How can I find the quantity of the Items that are under:
1. WIP Jobs that are not yet completed?
2. PO that are not yet received?
Kindly help me. If you have proper query for it, let me know.
Regards,
KMselect e1.empno,
e1.ename,
e2.direct_managed_employee_count
from emp e1,
select mgr,
count(*) direct_managed_employee_count
from emp
group by mgr
) e2
where e2.mgr = e1.empno
EMPNO ENAME DIRECT_MANAGED_EMPLOYEE_COUNT
7566 JONES 2
7698 BLAKE 5
7782 CLARK 1
7788 SCOTT 1
7839 KING 3
7902 FORD 1
6 rows selected.
SQL> SY. -
How to find total jobs running under OEM.??
Hi,
Can anyone tell me, in OEM, how can we find out total jobs which are running or on-ice or scheduled etc.?? Is there any way to trace it out total jobs under OEM..??
Thanks in advance..
-Mahesh.HI,
Thanks for your reply, but actually in our project Human Intervention is nowhere considered. Administrator should get all info through mail, once a job is scheduled with specific requirements it will send mails about the job status (failure, success etc).
So this should be done using OEM provided tables or any SQL queries (I think so..) I have got following link, where it has FLAG EVENTS like "job_started, job_succeeded, job_failed" etc through which it may be possible to schedule a job using above flags.
http://www.psoug.org/reference/dbms_scheduler.html
But I am not getting how to use them as I am not a PL/SQL or shell script programmer.. :( Any idea how to use them..??
Thanks -
Jobs running under sys user name
Oracle 10.2.0.3 Enterprise
Win2k3
Just upgraded to 10.2.0.3 ee from 10.1.0.4 standard.
The jobs were entered via em and given the proper owner.
em was logged in as sys. All jobs are running as user name sys.
Can the user name be changed to the owner or do I have to drop and rebuild the jobs?
Thanks for any help
BobHi,
For jobs there are two users, the job_owner and the job_creator.
The job_owner is the schema the job is created in. The job runs as the job owner and with the privileges of the job owner.
The job_creator is the user that creates the job (even if he creates it in another schema). When a job runs it sets its logged-in-user to be the job creator, so any actions will be audited as having been done by the job creator.
Neither the job_owner nor the job_creator can be modified after the job has been created.
But you may be able to use the copy_job command or the create_like EM button to save you some trouble.
Hope this helps,
Ravi. -
Why are bonjour print jobs 'disappearing' under Lion?
I have a iMac running Lion. It has a Canon printer attached via USB. I share that over the network.
For work, I have a Win7 (64) machine. It connects to my home network (wireless). I installed Bonjour for Windows from Apple onto that machine.
It seems the shared printers, no problem. I installed the Canon printer driver on Windows.
Using the Bonjour wizard, I created a printer on WIndows and pointed it (via Have Disk) to the printer driver.
When I print, the Win7 device sends the job to the Mac. I see the job in the Printer Control panel, showing all jobs.
It shows as completed BUT never gets sent to the printer.
If I look in the System Information, Printer Error log, I see one message around the time I sent THREE jobs:
E [08/Feb/2012:08:50:56 -0500] Missing printer-uri, job-uri, or ppd-name attribute
E [08/Feb/2012:08:50:56 -0500] Returning IPP client-error-bad-request for windows-ext (no URI) from [v1.fe80::79b5:d75c:5f0e:797d+en1]
Anyone know how to get this to work?
Seems like it is all Apple Software at work here... I hope I can get this to work.FWIW, I've had similar issues with Lion and have finally just turned everything related to Spam off, so that all my emails go into my inboxes.
My guess was that there was some behind the scenes process deciding that some mail I wated to keep was spam on one of my comptuers, but not on another. Since all the the email accounts are IMAP, when i do delete an email from one comptuer, it gets deleted from all of them, but at least now I get to decide what gets deleted and what doesn't. More work for me, yes, but at least emails don't go missing anymore..
Mail in Lion is not problem free. -
Internal Transfer, BOD, Planning Time Fence and ASCP Reschedule suggestion
Hi,
we've an ASCP plan with 5 ORG. We've many items with BOD like this one:
BOD of ITEM X:
ORG 1 BUY
ORG 2 TRANSFER FROM ORG 1
ORG 3 TRANSFER FROM ORG 1
Using this rule, we set PLANNING TIME FENCE for Buy items, at about 0,7 * LEAD TIME (from the approved supplier list) in BUY ORG (S01 in this example)
and PLANNING TIME FENCE = 0 in TRANSFER ORGANIZATION.
Sometimes, we release Internal Requisition to transfer item in excess from other organization to organization S01 to avoid Purchase Order not needed. In this case, the plan will suggest to reschedule OUT the internal requisition and if the planning time fence is large, people at the internal shipping department, will not see this Internal Req because they work in short range date.
Furthermore the ASCP plan will reschedule out all the Discrete job and planned order pegged to this suply.
This problem originate because we implement the reschedule out suggestion from ASCP over internal req ( we've a custom for this). How can ve avoid the Plan suggest to reschedule out this Internal Req? Maybe we can use the Profile "FIRM INTERNAL REQ INSIDE PLANNING TIME FENCE?".
Someone know if there are other ways?
Thanks in Adnvance.
GiacomoGiacomo,
Usually, clients use "MRP: Firm Internal Req Transferred to OE" to keep internal requisitions from being rescheduled by ASCP. This would mean that any IR that has created an ISO would be treated as frim by ASCP. The intent is that since standard ASCP cannot reachedule ISO/IR orders, that you prevent these reschedule recommendations.
Since you have intentionally implemented a customization to cancel/reschedule these orders, this may not work for you.
The other profile option that you suggested; "MSO: Firm Requisitions Within Time Fence" was intended for purchase requisitions. It may work for internal requisitions, but you'll have to test. If it did, it would only work for the organization that is recieving the IR. You had set the PTF to zero (0) in that organization.
I suggest you try the combination of this last profile option with a PTF value that you do not want to see any reschedules.
regards,
Kevin -
InfoPackage Group reschedule ...!
We have the nightly loads set up to run under username SAPBatch. When a load fails, we either have to rerun each of the InfoPackages individually (a painful tedious process) or cancel the SAPBatch job so we can reschedule the InfoPackage Group (which means the Basis Team has
to reschedule it under SAPBatch). An obvious third alternative is to create duplicate InfoPackage Groups for use when we need to rerun a job (but that means duplicate maintenance and I can't find any easy way to (create a copy).
My questions:
1. Why do we do it that way? What are the benefits of running under SAPBatch? What are the disadvantages of running under a real user's name?
2. Is there another alternative? Some way of rerunning the InfoPackage Group without stopping the SAPBatch job? Or some other way of getting the job done?
3. Is there any way other than building one from scratch (which takes forever)?
4. What do other BW users do? Is there anything that is considered a "best practice"?1. Why do we do it that way? What are the benefits of running under SAPBatch? What are the disadvantages of running under a real user's name?
<i>It is good to use a common Batch ID which has maximum auth coz,
1> No need to worry abt individual user auth who will run that job
2> Users might change frequently, so jobs scheduled under their name will suffer if their ids are removed.</i>
2. Is there another alternative? Some way of rerunning the InfoPackage Group without stopping the SAPBatch job? Or some other way of getting the job done?
<i>If you have your jobs are scheduled based on events, it is very easy just to trigger that event to start the job.</i>
3. Is there any way other than building one from scratch (which takes forever)?
<i>Instead consider swithcing all stuff to Process Chains. INfopPack groups are no longer supported by SAP I guess.</i>
4. What do other BW users do? Is there anything that is considered a "best practice"?
<i>Process Chains!</i>
Regards,
Sree -
Hi,
I am scheduling a report to run in background.
In this report it is creating background jobs automatically for different company codes.
It submits the 1st background job and waits until it finishes.
Then 2nd job starts in background and continues with other jobs.
At end it finishes all the jobs and closes.
Now my problem is.
1. Whether is it possible for us to submit all the jobs at 1 time. And execute at same time. Ie., 1st, 2nd job will start at same time.
2. If possible how can we do that.
What I have written is
loop at companycode.
Create job name.
call fun 'Job_Open'.
submit xxxx user sy-uname via job job_name numer job_count
to sap-spool
spool parameters l_spool_parameter
without spool dynpro
with companycode
with ......
and return.
endloop.
Please help ASAP, urgent.hi praveen,
Job Scheduling Explained
Definition
Before any background processing can actually begin, background jobs must be defined and scheduled. The scheduled time for when a job runs is one part of the jobs definition. There are several ways to schedule jobs:
From Transaction SM36 (Define Background Job)
With the "start program in the background" option of either Transaction SA38 (ABAP: Execute Program) or Transaction SE38 (the ABAP editor)
Through the background processing systems own programming interface. (Many SAP applications use the internal programming interface to schedule long-running reports for background processing.)
Through an external interface.
Scheduling Background Jobs
Use
You can define and schedule background jobs in two ways from the Job Overview:
· Directly from Transaction SM36. This is best for users already familiar with background job scheduling.
· The Job Scheduling Wizard. This is best for users unfamiliar with SAP background job scheduling. To use the Job Wizard, start from Transaction SM36, and either select Goto ® Wizard version or simply use the Job Wizard button.
Procedure
1. Call Transaction SM36 or choose CCMS ® Jobs ® Definition.
2. Assign a job name. Decide on a name for the job you are defining and enter it in the Job Name field.
3. Set the jobs priority, or Job Class:
· High priority: Class A
· Medium priority: Class B
· Low priority: Class C
4. In the Target server field, indicate whether to use system load balancing.
· For the system to use system load balancing to automatically select the most efficient application server to use at the moment, leave this field empty.
· To use a particular application server to run the job, enter a specific target server.
5. If spool requests generated by this job are to be sent to someone as email, specify the email address. Choose the Spool list recipient button.
6. Define when the job is to start by choosing Start Condition and completing the appropriate selections. If the job is to repeat, or be periodic, check the box at the bottom of this screen.
7. Define the jobs steps by choosing Step, then specify the ABAP program, external command, or external program to be used for each step.
8. Save the fully defined job to submit it to the background processing system.
9. When you need to modify, reschedule, or otherwise manipulate a job after you've scheduled it the first time, you'll manage jobs from the Job Overview.
Note: Release the job so that it can run. No job, even those scheduled for immediate processing, can run without first being released.
Specifying Job Start Conditions
Use
When scheduling a background job (either from Transaction SM36, Define Background Job or CCMS ® Jobs ® Definition), you must specify conditions that will trigger the job to start.
Procedure
Choose the Start condition button at the top of the Define Background Job screen.
Choose the button at the top of the Start Time screen for the type of start condition you want to use (Immediate, Date/Time, After job, After event, or At operation mode) and complete the start time definition in the screen that appears.
For the job to repeat, check the Periodic job box at the bottom of the Start Time screen and choose the Period values button below it to define the frequency of repetition (hourly, daily, weekly, monthly, or another specific time-related period). Then choose the Save button in the Period values screen to accept the periodicity and return to the Start Time screen.
Once youve completed specifying the job start conditions, choose the Save button at the bottom of the Start Time screen to return to the Define Background Job screen.
No job can be started until it is released, including jobs scheduled to start immediately. Since releasing jobs can be done only by a system administrator from the job management screen (Transaction SM37) or by other users who have been granted the appropriate Authorizations for Background Processing, no unauthorized user can start a job without explicit permission
Managing Jobs from the Job Overview
Use
The Job Overview, or Job Maintenance, screen is the single, central area for completing a wide range of tasks related to monitoring and managing jobs, including defining jobs; scheduling, rescheduling, and copying existing jobs; rescheduling and editing jobs and job steps; repeating a job; debugging an active job; reviewing information about a job; canceling a job's release status; canceling and deleting jobs; comparing the specifications of several jobs; checking the status of jobs; reviewing job logs; and releasing a job so it can run.
Procedures
To display the Job Overview screen, choose CCMS ® Jobs ® Maintenance or call Transaction SM37. Before entering the Job Overview screen, the system first displays the Select Background Jobs screen. You'll need to complete this Job Selection screen to define the criteria for the jobs you want to manage. Once you've selected jobs to manage, you can choose from a wide range of management tasks:
To copy a single existing job, choose Job ® Copy.
To reschedule or edit job steps or attributes of a single job, choose Job ® Change. A job step is an independent unit of work within a background job. Each job step can execute an ABAP or external program. Other variants or authorizations may be used for each job step. The system allows you to display ABAP programs and variants. You can scan a program for syntax errors. You can also display the authorizations for an authorized user of an ABAP job step.
To repeat a single job, choose Job ® Repeat scheduling.
To debug an active job, choose Job ® Capture: active job. Only a single selection is allowed. If an active job seems to be running incorrectly (e.g., running for an excessively long time), you can interrupt and analyze it in debugging mode in a background process, and then either release it again or stop it altogether.
You will be able to capture a background job only if you are logged on to the SAP server on which the job is running. To find server information in the Job Overview, select and mark the job, then choose Job ® Job details.
To review information about a job, choose Job ® Job details. Details displayed can include:
current job status
periodicity, or the repetition interval
other jobs linked to the current job, either as previous or subsequent jobs
defined job steps
spool requests generated by the current job
To cancel a job's "Released" status, select the job or jobs from the Job Overview list and choose Job ® Release -> Scheduled.
To cancel a job from running but keep the job definition available, select the job or jobs from the Job Overview list and choose Job ® Cancel active job.
To delete a job entirely, select the job or jobs from the Job Overview list and choose Job ® Delete. Jobs with the status of Ready or Running cannot be deleted.
To compare the specifications of more than one job, select the jobs from the Job Overview list and choose Job ® Compare jobs.
To check the status of jobs, select the job or jobs from the Overview Job list and choose Job ® Check status. This allows you to either change the job status back to Planned or cancel the job altogether. This is especially useful when a job has malfunctioned.
To review job logs, select a job or jobs with the status Completed or Canceled from the Job Overview list and
regards
karthik
reward me points if helpfull -
Schedule background job with different user
hi ,
i want to schedule a background job under a different user
i have used the parameter AUTHCKNAM of 'job_submit'
it is giving sy-subrc = 0 .
but it is not working
i have also used the FM 'bp_job_create' in place of 'job_open'
it is giving sy-subrc = 0 .
but not working as needed
kindly help
regards...hi
Try this
We can do that via SUBMIT statement:
Go through the documentation os SUBMIT statement with addition:
... USER user VIA JOB job NUMBER n
Schedules the specified report in the job specified by the job name job and the job number n. The job runs under the user name user and you can omit the addition USER user. The assignment of the job number occurs via the function module JOB_OPEN (see also the documentation for the function modules JOB_CLOSE and JOB_SUBMIT). This addition can only be used with the addition ...AND RETURN.
OR
go through this link , i hope this ll help you to solve your problem
http://help.sap.com/saphelp_nw2004s/helpdata/en/5f/ff2138faeb3807e10000009b38f889/content.htm
Hope this helps.
Thanks
Tushar
Maybe you are looking for
-
When i disconnect my iPod 2nd Gen from my laptop, its display goes off and working freezes. Please help me.
-
Audio Glitch in Apple DVD player when at the end of a story
Hi Could anyone shine a light on why when I build and open up my dvd project in Apple dvd player there is an audio glitch. But on the original mpeg there is no audio glitch there. I have chapter markered my project in fcp. I have ten storys and one c
-
Hi Experts Team, My scenario is IDoc to File interface. I need to create 12 different files based on the Plant code (WERKS). At the end of the day, i need to ftp the file to different locations. How can I do the design and is there any need for BPM h
-
How can I save an image into iPhoto?
My goal is to save some pictures from Facebook into iPhoto. I have an "event" or album or whatever in iPhoto that I want to add these pictures to. When I save the picture iPhoto is not an option; I tried to copy and paste, that didn't work. Any sugge
-
i need help!!!