Auto schedule + Periodic Invoker
Hi All,
I have a small problem for which i'm looking for some easy solution. The problem is that I have a java program that should be invoked by the cron scheduler once on a daily basis.
Now once the program is automatically invoked, i have a logic that tests if certain third-party activity has finished working or not (get a response flag). In-case, if that avtivity is finished then my program proceeds and do its main task. And in-case if that third-party activity is not finished then I want my program to wait until it is finihsed and then do its main task.
So could there be any solution through which my logic for invoking third-party activity is made periodic (in case if the first attempt to thrid-party activity returns not finished flag), without re-invoking the scheduler?
Once the thrid-party activity returns a finished flag, then the periodic invoker should break and my program should proceed with its rest of the work and then finally exit.
Any small mock code example shall be highlly appreciated.
thanks.
You are have understood it correctly, but a normal
loop (while) is not a good idea as the thrid-party
activity can take more than an hour to finish its
task and during that time i dont want my program to
constantly asking the thrid-party whether it has
finished its task or not. The calls to the third
party should be periodic e.g. after every 30 mins or
so.So put in a Thread.sleep(30 * 1000 * 60) call in the loop to make it sleep for 30 minutes before it checks again.
i want my program to be in the sleep mode until it
gets a flag (finished) from the thrd party.Unless you can tell the 3rd party app to notify you somehow, you're stuck with polling it.
Similar Messages
-
Delivery date calculation in auto scheduling
Dear All,
We have maintained planned delivery time , gr processing time in mm master as well infor records.
We are running MRP and auto scheduling and updating schedule lines through MRP.
System updating schedule lines and the delivery date also. what is calculation of delivery date in this case ?
also system updating 3 lines with different delivery date ..why ? why not one line ?
vijayno solution.
-
How to schedule perioding BG job after job
My requirement is i need to schedule periodic job on daily basis, suppose i have 2 jobs A and B...then i need to start job B only and only if job A is finished..
Can you please guide me..You cannot specify a job as "periodic" if it is scheduled to start after a job. Refer [http://help.sap.com/saphelp_nw04/helpdata/en/20/2d513897110872e10000009b38f889/content.htm]
You can achieve in 2 ways:
1. Create a single job & define 2 steps.
2. Use SAP Event to trigger the second job. At the end of the first job raise an event which will trigger the first job.
BR,
Suhas -
MRS Auto Scheduling Network Order
Has any one in the forum implemented or know how to achieve Automatic Scheduling of Demand (Network Order/ Network Activity ) created through PS (Project Systems) in the MRS tool. ? Using Service Orders, this is a configurable item, with a BAdI for changes if necessary. But this does not apply to Network Orders. I am considering various options, but would like to know if this could be done without modifying an SAP standard program. Options tried out include calling FM ; /MRSS/API_ASSIGNMENT_CRE, this however fails to assign the demand in the planning board, although it would assign demand in debug mode. I have equally tried Recoding and creating a BDC, but the Resource fields are not captured in the recording. Any hint would serve.
Regards
OppressHave you tried automatic scheduling on the network itself? In PS you can configure the network to auto schedule if the dates are changed. You may find that making changes to the dates in the network from MRS causes the network to reschedule itself.
mike -
Running a Batch File using Auto Scheduler in HFM?
Hi,
Can we execute a batch file or run a macro or execute a VB script using the auto scheduler in Task Automation in HFM??
Abhishek
Edited by: user10378700 on Sep 30, 2008 7:18 AMI'm having difficulty running a batch script the way you describe.
One line of code in c:\test.bat:
echo Hello >c:\test.log
This works just fine.
However, for the life of me I cannot get this to work through Task Automation.
I have the Application as Hub.
The Action as Execute.
The Command as c:\test.bat.
When I select the task and click on Run Now, I get a message that the taskflow has initiated successfully. However, nothing fires on the server. I cannot see this process in Running Tasks (it would run quickly).
Any hints?
I have not found this subject to be...overdocumented.
Regards,
Cameron Lackpour -
Hi Guys,
Auto Scheduling in PP, did any one came across this?Hi,
In scheduling, the system determines start and finish dates for the procurement elements of materials that are produced in-house and for materials that are procured externally.
Go thro this link .This may help u...
http://help.sap.com/saphelp_47x200/helpdata/en/f4/7d3f9344af11d182b40000e829fbfe/frameset.htm
- Thaila Shree -
Hi All
My scheduling period in maintenance plan is 365 days.
I have the monthly plan.
I am doing IP30, so that it generates 12 work orders.
I am not indending to change anything for the next 10 years in the maintenance plan.
My question is will the system stop generating work order after 365 days.
If yes, should i put 10 years in scheduling period of maintenance plan to generate work orders with IP30
or any other solution, your comments please..
Thanks
JainHi,
You do not need to put 10 years in the scheduling period. The scheduling period specifies how far in advance the maintenance calls are generated. You would not normally want to create the calls for the next 10 years.
The current setting of 365 days will ensure that every time you schedule the plan, all calls for the next year are generated. If you schedule the plan this month all calls due in next 365 days are called. If you schedule the plan in June 2012, all calls due up to June 2013 will be generated.
-Paul -
ICal server set auto schedule for users
Does anyone know how or if it's possible to set the auto accept state for a user?
Using calendarservermanageprincipals you can do it for locations for example and you can --get-auto-schedule for a user, but when you try to --set-auto-schedule for a user it says it's not allowed. Anyone know of a workaround or if it's possible?
--sysdevNevermind, figured it out. you can manually edit the database these values are set in. /CalendarServer/Data/resourceinfo.sqlite
-
Hi,
I am currently working in project where we need to migrate/point batch jobs to SQL server 2005. At this moment they are pointing to Sybase. Batch jobs are in .bat and .exe format. These jobs read in an external file, does some reformatting,
and then loads it into 2 sybase tables. These jobs are auto scheduled through Control-M application.
Any idea please ?
Thanks,
Chirag PatelChange your post to type 'Question' Chirag
You would need to at least change the connection strings, and how you access SQL Server, but typically code changes are necessary.
You unfortunately don't provide enough details. But it is not as trivial to just 'point' a bunch of jobs to a new target.
Arthur My Blog -
Scheduling Period mandatory in maintenance plan PM module
Dear Friends,
Please let me know,how scheduling period,maintenance activity categroy can be made mandatory in maintenance plans.
Thanxs in advance
Jyotish Kumar
9810170091hi
upto my knowledge i think it is not possible to have your fields mandatory in maintenance plan,you think of using Tcode SHD0 which is used for Transaction and screen variants
regards
thyagarajan -
Scheduling period in Maintenance plan
Hi
If I enter scheduling period 365 days & my cycle is 3 months.Once I schedule the maintenance plan, in IP10 I can see planned date only upto 365 days.How can I populate the planned date after crossing 365 days ?
rgds
rajibHello Rajib,
You are getting planned dates for one 365 days because you have entered 365 days as the scheduling period. If you want to have the same for say 5 years, then first change the unit of scheduling period to 'YR' and make scheduling period as '5'. Then schedule the plan and see the planned dates for next 5 years. Maximum you can do ti for 999 YR.
You may choose unit as Week or month also.
It is recommended to use IP19, setting With Further Dates. flag.
Hope this will help you. Please revert for any clarification.
Regards,
Vaibhav Mishra
Edited by: Mishra_Vaibhav on Apr 29, 2010 2:18 PM -
I want to revoke rights so users cannot schedule periodic jobs
We do encourage users to run reports in Background but we want to prevent them from scheduling periodic jobs.
We want to have more controll over periodic jobs as we observed that users schedule them and then forget about them.
Morover this has become our audit recommendation.
As far as I can see there is no standard way to do it.
Has anyone managed to achieve it?Hi..
while searching for the answer i have seen following interesting point.chk whether this will help you..
A job is eligible to start when both of the following are true:
The start condition specified for the job is met.
The job has been released to run.
No job can be run until it has been released, even those scheduled to start immediately. To monitor and control what jobs are submitted to run in background processing, the system can be configured so an administrator can check jobs before releasing them to run.
The release requirement can also be turned off on a per-user basis. Trusted users can be given a special authorization (authorization object S_BTCH_JOB (Batch Processing: Operations on Batch Jobs), value RELE) which will automatically and immediately release any job scheduled by that user.
http://help.sap.com/saphelp_nw2004s/helpdata/en/20/2d513897110872e10000009b38f889/content.htm
thank you
<b><removed_by_moderator></b> -
If you closely see ,The Auto scheduling for the ATO Models are not supported by oracle .
Once you configure the item using configurator and click on finish ,When it returns to OM ,I expected the Schedule ship dates populated ,But this did not happen
anyone faced the same issue ? have done workaround etc ?It is supported by Oracle.
Check if "OM: Autoschedule" profile option is set.
If not, check if the transaction type setup for auto-schedule or you have set the autoschedule selection to Yes or No via Tools > Autoschedule in the Order Management entry form.
Hope this helps,
Sandeep Gandhi -
Change billing date for first scheduling period in VA41
Hi,
Requirment: At the time of Contract creation, the first scheduling period amount will be compared to a fixed threshold value. If it is less than that threshold value then change its billing date to next schedule period's billing date.
I have tried so many user-exits but hey are not triggered at the required point of time.
As soon as we create the contract the dates will be changed accordinly.
Also do we have any function module to change date if we make a Z program.
bye
Divyahello,
SDAPO001 Activating Sourcing Subitem Quantity Propagation
SDTRM001 Reschedule schedule lines without a new ATP check
V45A0001 Determine alternative materials for product selection
V45A0002 Predefine sold-to party in sales document
V45A0003 Collector for customer function modulpool MV45A
V45A0004 Copy packing proposal
V45E0001 Update the purchase order from the sales order
V45E0002 Data transfer in procurement elements (PRreq., assembly)
V45L0001 SD component supplier processing (customer enhancements)
V45P0001 SD customer function for cross-company code sales
V45S0001 Update sales document from configuration
V45S0003 MRP-relevance for incomplete configuration
V45S0004 Effectivity type in sales order
V45W0001 SD Service Management: Forward Contract Data to Item
V46H0001 SD Customer functions for resource-related billing
V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
Badi's
BADI_SD_SCH_GETWAGFZ Scheduling Agreement: Read WAGFZ from S073
BADI_SD_V46H0001 SD Customer functions for resource-related billing
Thank u ,
santhosh
Edited by: santhosh kumar on Feb 9, 2009 7:59 AM -
How will i get next call if there is no scheduling period
How will i get next call if there is no scheduling period? My requirement is to get next call generated whether there is no scheduling period.
Also is it possible to get next call once the previous one is technically closed even though there is NO scheduling period and completion requirement checkbox unchecked ?Hi Priyanka,
For your conditions
1. No Scheduling period
2, No Completion Requirement
After initial scheduling (IP10), depending on the cycle period (1 Mon, 1Yr etc).,
Whenever you run IP30, one call will be generated, if the plan date falls in the past. If the Plan date falls in the future a Scheduled hold line item will be seen in IP30, further no impact of IP30 will be seen, until this Hold item is called.
Jogeswara Rao K
Maybe you are looking for
-
Need to send a an Outlook attachment with an Email
Hello everyone , I have a requirement in which I need to send an attachment in a mail as an Outlook attachment. I have used the following code and i am wondering what I would need to change so that the Outlook attachment works fine - public static vo
-
GCC Elite 21n+ Printer Stop working after Upgrade to Snow Leopard
GCC Elite 21n+ B&W Laser Printer no longer works after upgrading to Snow Leopard 10.6.2. A back-up HP 2015DN Printer works intermittently. It will not work with ethernet cable connected to Net Gear Ethernet Hub (model FS105). But will work most of th
-
I downloaded a trail version of Photoshop CS6 on 22 March 2012 (1.8GB) and installed it for the first time today (29 June 2012), but when I try and run it it tells me the License for this product has expired. After chatting online to an Adobe agent,
-
How to disable JTable Column Dragging?
cant figure out how to do this..thanks
-
Can't render out 1.44 pixel ratio for SD 16:9 UK TVC broadcast requirements ?
I'm prepping a TV advert for broacast in the UK and the station require an SD 16:9 1.44 pixel ratio 720x576 (1024x576), the problem is this just doesn't seem possible in after effects or any adobe porduct I can see ? The only thing I can do is render