To Trigger The Start of an APO Job

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: 
R3TR TABU <table name>
where table name is BTCSEV for a system event ID, BTCUEV for a user event ID. 

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 APO Forum - Do you have a SAP APO Question?

SAP Books
SAP APO Books  - Certification, Interview Questions and Configuration

SAP APO Tips
SAP APO Tips and SAP Advanced Planner/Optimizer Discussion Forum

Best regards,
SAP Basis, ABAP Programming and Other IMG Stuff
http://www.erpgreat.com

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.  The site www.erpgreat.com is in no way affiliated with SAP AG.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
 The content on this site may not be reproduced or redistributed without the express written permission of
www.erpgreat.com or the content authors.