Home > Basis challenge #1: Triggering jobs inside and outside SAP
Checklist:
EMAIL THIS

Basis challenge #1: Triggering jobs inside and outside SAP

06 Jan 2006 | SearchSAP.com

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   

First things first … transaction SM62 is used to create SAP events, transaction SM64 is used to trigger SAP events within the application, and SAPEVT.exe is used to trigger SAP events while outside the application. Transaction SM36 is used to create background jobs and transaction SM37 is used to monitor and manage background jobs.

Transaction SM62 -- Define events
You can create and display "User Event Names" via SM62. Although user event names don't have to start with the letter "Z", I recommend you use it to quickly differentiate between pre-delivered SAP events and your own.

Example:

An event by itself doesn't do anything. A background job needs to be defined and configured to wait for the event. Therefore, you create the background job via SM36 and specify the new event name as the "Start Condition".

Example:

Notice that the new background job can be defined as a periodic job. This allows you to trigger the job in the future as opposed to one time only.

Transaction SM64 -- Trigger events within SAP
To trigger an event, run transaction SM64 and specify the event name.

Example:

Executable SAPEVT
SAPEVT.exe is part of the R/3 Kernel and located under the usrsapsysexerun directory on the central instance.

The syntax is as follows:

sapevt <EventName> pf=<Path_to_Default_Profile>

Example:
C:>sapevt ZFI_LOAD_INVOICES pf=sapprdsapmntPRDsysprofiledefault.pfl

SAPEVT is a stand-alone executable that can be copied into remote computers. That's right! You can execute an event right from your laptop or desktop computer.

So, is there anything else required on the remote computer besides the executable? Yes. You need to have an entry in the "services" file with the TCP port for the SAP messenger of the SAP instance. You can edit the file with Notepad or any plain-text editor and add the necessary entry at the end. The file is located under the %systemroot%system32driversetc directory.

Example:
C:>notepad windowssystem32driversetcservices

Add the line below and save the file:
sapmsPRD 3600/tcp

Also, please notice that you need to have read access to the "default.pfl" file on the SAP instance.

Now that you know how to trigger events to kick off SAP jobs you can smile every time an interface job is needed.


Overcoming Basis challenges inside and outside the box

 Home: Introduction
 Basis challenge #1: Triggering jobs inside and outside SAP
 Basis challenge #2: Reaching outside the application
 Basis challenge #3: Obtaining the SAPGUI version of all computers
 Review: Conclusion and more resources


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary




SAP Exchange Infrastructure (XI) Research Papers
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
SearchSAP.com is a search service provided by TechTarget and is completely
independent of and not affiliated with SAP AG.
  TechTarget - The IT Media ROI Experts