How to trigger the start of an APO job at the end of the R/3 CIF job? You can use events that have already been defined, or you can create new events for scheduling background jobs. If you wish to use new events, do the following to implement the event scheduling: 1. Define and transport the event as a user event with transaction SM62. You must define only event IDs; event arguments are not defined in the R/3 System. Instead, you specify event arguments when you schedule a job to wait for an event and when you trigger the event. If you define a new event, you must also transport it to your production systems. The event transaction does not have a connection to the transport system. Instead, you must create a transport request for the event yourself. Do this to transport an event: a. Create a transport request. b. Start the editor in the transport request and enter
the following:
c. Press F2 with the cursor on the table name to call up the screen for specifying the table entries to transport. In this screen, enter the event ID's that you have created. d. Save and release the transport request. Ensure that it is imported into your production system(s). 2. To trigger an event, add: – the function module BP_EVENT_RAISE to your ABAP program, or – the program SAPEVT to your external script, batch file, or program. When your programs execute these keywords, an event will be triggered in the R/3 background processing system. The event-based scheduler is started immediately. It in turn starts all jobs that were waiting upon the event, subject to normal background processing restrictions, such as the requirement that the job has been released to start. 3. Schedule the jobs that are to run when your events are triggered. You can schedule jobs for one-time start or to be started whenever an event is triggered
Get help for your SAP APO problems
SAP Books
SAP APO Tips
Best regards,
All the site contents are Copyright © www.erpgreat.com
and the content authors. All rights reserved.
|