Events and event chains
Hi,
can anyone mail me screenshots as to how event creation(sm62) and job creation looks like (sm36) at
[email protected]
Hi Karthik
When in doubt, visit help.sap.com and all your questions would be answered!
anywayz, for SM36, visit
http://help.sap.com/saphelp_erp2005vp/helpdata/en/c4/3a7ede505211d189550000e829fbbd/frameset.htm
this should set u up
Prakash
Assigning points is a way of saying thanks on SDN!!
Similar Messages
-
Retrieve event and event parameter in event based background job
Hi,
I think it must be possible but I cannot find documentation of it:
When a batchjob is triggered via an event (defined in SM62) how can I retrieve the event and event parameter from within the triggered job itself. We want to use the event parameter to trigger other batchjobs, but first we must be able to retrieve them...
Thanks
TomStandard SAP triggers can be found in TCODE SM64, Background Processing events.
-
Time-zone independent events and events that span timezones
Hi.
I use Calendar rather heavily. In fact, I have events in my calendar that date back from 1995 or so that have migrated forward from my Newton through Palms and Blackberries and now to iPhones - some migration or coexistence between the Mac and these devices was painful, to say the least. But, I digress...
For the record, I have Time Zone Support off on my iPhone and iPad. It's also off in Calendar on my Mac; the Mac is my 'authoritative' source of calendar (and address book) info. When I move, it changes timezones. For the most part, the iPhone and iPad do the right thing for events that have actual real times to them such as meetings. If I'm supposed to be on a phone call at 7AM Seattle time, when I go to Boston, I need to be on at 10AM and it does all the devices do the right thing with those events.
But, I want to create a recurring (daily) calendar event that happens at the same local time every day, regardless of what timezone I'm in. For example, I create such an event in Seattle for 9AM Seattle time (PT). When I go to Boston, I want it to happen there at 9AM ET; and the same if I went to India - 9AM IST.
Any thoughts? I live with this inconvenience for other things working quite well.
My other desire is when, for example, putting airplane trips into the calendar. I'm in Seattle and putting in Alaska Airlines Flight 12 which departs Seattle at 9:05AM PT and arrives at 5:34PM in Boston (ET). It would be wonderful, if for the the start and end times for event scheduling, there was a pull-down or scroll-wheel from which one could select the time zone. Now, I have to do the calculation and do 9:05AM departure and 2:34PM arrival. It's gets a little more difficult when one is going to places where daylight savings is not observed or if you are unfamiliar with the time differences (as when flying direct from the US to India).
Any thoughts on this problem??
aps.Hey Armando Stettner,
Thanks for the question, and what a great question it is!
With time zone support on, you can edit an individual event and change the time zone for that event. This list will include options for your default time zones, UTC, and "floating" - the latter of which is what you are looking for. Floating changes the event to occur at the specified time, local time.
For information on changing an event's time zone, see the following resource:
Calendar: Change an event’s time zone
http://support.apple.com/kb/PH11531
I look forward to hearing how this works for you.
Cheers!
Matt M. -
How to write events and event handlers?
Any samples?
ThanksYou can generate your custom events and it is very easy.
You will have to extend the EventObject class in order to make an class representing the event.
Iam giving a brief eg:
class MyEvent extends EventObject
MyEvent(Object source)
super(source);//source which generated the event.
//your own code
interface MyEventListener
public void myEventPerformed(MyEvent e);
class abc
java.util.ArrayList arr;
abc
arr = new java.util.ArrayList();
public synchronized void addMyEventListener (MyEventListener l)
arr.add(l);
public synchronized void removeMyEventListener (MyEventListener l)
arr.remove(arr.indexOf(l));
protected void notifyTransEvent(Object source)
MyEvent tEvent = new MyEvent(source);
Iterator itr = arr.iterator();
Iterator itr = arr.iterator();
while(itr.hasNext())
((MyEventListener)itr.next()).myEventPerformed(tEvent);
Now anyone implementing the MyEventListener inetrface can be added in the ArrayList.The ArrayList is the list representing the interesting parties who want to receive the event.When registered they will receive the event.
This class abc is just like an component which on certain situations generate event.You can call notifyEvent in any case where you want the event to be generated.
You will then add this class to your main class as this
class xyz implements MyEventListener
abc obj;
xyz()
obj.addMyEventListener(this);
public void myEventPerformed(MyEvent e)
//your handling code
Hope this example will suffice. -
Query about event and event handling
hi,
how exactly events are bieng generated. And how they are transmitted and how they
are caught and handled at low level. I want to trigger my own event whcih can be listen
by my own listener or some existing listener (obviously implemented from some java listener).
so help me out.
TIA
bhupsWell, first you create an interface such as FooListener where you define methods, such as foo().
Now you can make classes that have the method addFooListener(FooListener foo). Then in that class, you can for example decide that doing a certain thing (or based on the time of day or whatever) the class calls all the foo()'s of it's FooListeners and there you go.
Example code:
public interface FooListener {
public void foo(FooEvent evt);
public class FooEvent {
private String reason;
public FooEvent(String reason) {
this.reason = reason;
public String getReason() {
return reason;
public class Bar {
List listeners = new LinkedList();
public void addFooListener(FooListener foo) {
listeners.add(foo);
protected void fireFooEvent(String reason) {
Iterator itr = listeners.iterator();
FooEvent evt = new FooEvent(reason);
while(itr.hasNext())
((FooListener)itr.next()).foo(evt);
public void doBar() {
// code omitted
fireFooEvent("Bar done");
}Howzat? -
Hi,
I need to get the index of a specific line in a table. Selection mode is set to none. The first column contains a menu with two menuActionItems. When I choose an actionitem my event handler is called with parameter WDEVENT TYPE CL_WD_CUSTOM_EVENT. As I understand you have to use this parameter to get the index from the table line.
I have tryed with the following code in my event handler method:
DATA:
node_lines TYPE REF TO if_wd_context_node,
elem_lines TYPE REF TO if_wd_context_element,
l_index TYPE i.
elem_lines = wdevent->get_context_element( name = 'LINES' ).
l_index = elem_lines->get_index( ).
This does not work. The elem_lines is initial after I try to get it.
Hope that someone can guide me in the right direction.
Thanks,
Mortenhi ;
this will work
DATA: mod_cell TYPE salv_wd_t_table_mod_cell,
wa_mod_cell TYPE LINE OF salv_wd_t_table_mod_cell,
msg TYPE string.
mod_cell = r_param->t_modified_cells.
wd_comp_controller->set_material_dtl( ).
LOOP AT mod_cell INTO wa_mod_cell.
msg = wa_mod_cell-index .
msg = mod_cell-index .
l_message_manager->report_success( msg ).
Or else try this.
wd_event is return parameter
data: index type i.
index = wd_event->get_context_elementget_index->get_index( ). -
URGENT:Process Chains And events Related
Hi All,
I have created a new process chain which is a normal ODS Process Chain.For that I started with the start Process and then created event in sm62 to trigger the start of process chain.Similarly,I have at the end of the process chain ,I have added 2 ABAP Programs ,one to mark the successful completion of process chain and another to mark the Error or Unsuccessful completion.For these programs,I maintaines Processvariants and here, we have utility Programs.So used the relevant utility program and created a program variant and Events ,One for successful completion of process chain and another to mark the Error or Unsuccessful completion.
But ,Now ,I find that when I trigger the eventin sm64,I find that the process chain is not being run.Is that any problem with the events I created.This is the first i am involved with creation of events in SM62.Can anyone help me in this regard.
Can anyone,tell me thatdo we need to do anything else apart from Creating events .Imean like assigning jobs and then Programs in the Step of that Job.
Please Kindly help me in this regard.It is very very urgent for me.Thank you.Points will be assigned.
Regards,
SamirHi,
I have tried in the same way you have said .I have maintained as after event and activated and scheduled.after that i triggered the event insm64.But still,I am not able to see the Load in RSMO.
I have just checked out in sm37.And found that some jobs have failed.I think this might be the reason for the Process chain to not run.
I am just pasting the error msg and solution.
Job BI_PROCESS_ABAP, waiting for event RSPROCESS 489W6WH6I7OHV7BL3N9909F7F, has no predecessor
Message no. RSPC003
Diagnosis
Although job BI_PROCESS_ABAP has been started by event RSPROCESS 489W6WH6I7OHV7BL3N9909F7F and is recognized in the process chain, the current run for this process has no job preceding it.
This is why the system was unable to determine a log ID, and the chain is broken.
System response
The job has been terminated.
Procedure
With the exception of the start process, each process must have a process that precedes it.
Then Another error for the another cancelled job is
Job BI_PROCESS_OR, waiting for event RSPROCESS 489WC2QYBC4AJSYILQ10TWABF, has no predecessor
Message no. RSPC003
Diagnosis
Although job BI_PROCESS_OR has been started by event RSPROCESS 489WC2QYBC4AJSYILQ10TWABF and is recognized in the process chain, the current run for this process has no job preceding it.
This is why the system was unable to determine a log ID, and the chain is broken.
System response
The job has been terminated.
Procedure
With the exception of the start process, each process must have a process that precedes it.
Please kindly help me if you understand the problem.
Thanks,
Samir -
Difference between process chain and event collector
what is the difference between process chain and event collector and also plz explain about metachain.In what scenarios they are used.
Many Thanks,hi,
have a look at these help docs
Process Chain:
http://help.sap.com/saphelp_nw04/helpdata/en/8f/c08b3baaa59649e10000000a11402f/content.htm
Event Collector:
http://help.sap.com/saphelp_bw30b/helpdata/en/c1/6c0538c7cb583ae10000009b38f8cf/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/6e/192756029db54192427cf6853c77a7/content.htm
Creating an event colector:
http://help.sap.com/saphelp_bw30b/helpdata/en/45/253d3873130057e10000009b38f842/content.htm
regards
sham'm -
Process chains and event collectors
Hi All,
I need help in Process chains and event collectors.I joined in new project and this client using process chains and event collectors and they ask me to work on these areas.I didnt work on this as of now So please send any docs on this area and explain the procedure and technology methods behind this concept.I would really appreciate If someone can send me the full documentation on this concept as I couldnt find any any docs on this.
Thanks,
RasHi Ras,
Process chains are a sequence of processes to be performed. The are put together in a chain with the necessary dependancies (process A needs to finish before B can start) and conditions (if A and B are successful then C else send an email), and then scheduled. They usually revolve around processes related to data loading: Load, activate, roll up, compress etc.
Please take a look at this links/threads for more info:
http://help.sap.com/saphelp_nw04/helpdata/en/8f/c08b3baaa59649e10000000a11402f/content.htm
process chains
process chains
Process chains
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8da0cd90-0201-0010-2d9a-abab69f10045
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/19683495-0501-0010-4381-b31db6ece1e9
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/36693695-0501-0010-698a-a015c6aac9e1
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9936e790-0201-0010-f185-89d0377639db
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3507aa90-0201-0010-6891-d7df8c4722f7
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/263de690-0201-0010-bc9f-b65b3e7ba11c
Process Chains
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8da0cd90-0201-0010-2d9a-abab69f10045
http://help.sap.com/saphelp_nw2004s/helpdata/en/8f/c08b3baaa59649e10000000a11402f/frameset.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/19683495-0501-0010-4381-b31db6ece1e9
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/36693695-0501-0010-698a-a015c6aac9e1
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9936e790-0201-0010-f185-89d0377639db
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3507aa90-0201-0010-6891-d7df8c4722f7
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/263de690-0201-0010-bc9f-b65b3e7ba11c
Re: Ho to make a variable mandatory or optional?
There are lot of threads available in the SDN....go through them.....hope it really helps you in getting understand what are process chains and Events included in that.
Assign points if it helps you.
Regards,
Sreedhar -
How to find Process chain for event and parameter
Hi,
I have Event and parameter for the process, I wanted to know the which process chain does that process belons to.
Is there any table where I can see those.Hi,
Try these tables.
RSEVENTCHAIN Event Chain Processing Event Table
RSEVENTHEAD Header for the event chain
RSEVENTHEADT Header for the event chain
RSPCCHAIN Process chain details
RSPCCHAINATTR Attributes for a Process Chain
RSPCCHAINEVENTS Multiple Events with Process Chains
RSPCCHAINT Texts for Chain
RSPCCOMMANDLOG System Command Execution Logs (Process Chains)
RSPCLOGCHAIN Cross-Table Log ID / Chain ID
RSPCLOGS Application Logs for the Process Chains
RSPCPROCESSLOG Logs for the Chain Runs
RSPCRUNVARIABLES Variables for Process Chains for Runtime
RSPC_MONITOR Monitor individual process chains
Hope this helps.
Thanks,
JituK -
How to create event based process chains
Hi All,
I would like to know about event based process chains. In connection to this, could you please answer the following queries,
1. How to create events
2. How to link created event to the process chain in the same BI or BW system and as well as from
externel BI system.
3. How link one process chain with other process chain (i.e, After completion of one process chain, it
should trigger other dependent process chain)
Thanks and Regards,
Kotesh.1). Doubt regarding first question.
For example, i would like to create time based event (it should be trigger daily at specified time),
where we have to maintain scheduling options while creating event.
When i checked SM62 there i found only two options a). Event name and b). Description.
Could please send any doucument link if you have.
Ans : You can use function modules like "BP_EVENT_RAISE" in a program and schedule the program to trigger.
2). For externel BIW system also same procedure we need to follow or any difference.
Ans : Externally you need to trigger the same event.
3). i found dependent process chain also had scheduling options as direct scheduling insted of start using meta chain or API. As you said dependent process chain should be mata chain. it seems dependent process chain may be Meta chain or Direct scheduilg.
Ans : Its your choice how you want to schedule it.You can either make that dependent chain a metachain or schedule it separately.
I found at the end of first process chain they kept one process like Raise event and second process chain connected with the help of raise event process event name. If you have any idea about this process could explain a bit more.
Ans : May be they are raising the event in the main chain and triggering the dependent chain using this event.
But Metachain is preferred for such thing.Though it does similar thing.
Hope this helps. -
Hi All,
I have below scenario:
Now we are using event collecter and subsequent event in event collector .
I am going to convert my loads into Process chain from Infopackage groups. My problem is I can use event1 directly in Start of process chain but how to trigger event2 using this chain. I need to trigger event2 once my PC is completed successfully. The even2 will trigger a background job to execute one ABAP program. This ABAP program triggers event1 again if it meets certain requirement.
Hope you understood my problem.
Thanks in advance
VaniHi,
If I have understood properly,
Event1(Start) --> Sequence of PC steps --> ABAP Program Process Type (To trigger Event2) --> Event2 triggers again Event1( If meets requirement)
What is your End of the Process Chain if it triggers again Event1?
Why do you want to trigger events in a cyclic way?
Regards,
Suman -
How to trigger Process event in Process Chain
We have a Process chain in which the Event is seen in Yellow ,but it is finished. Down the below Event is not trigerring. How to do that. Please suggest.
ThanksHi Annapurna,
Goto SE38 run the function module RSPC_PROCESS_FINISH by providing the entries in LOGID, TYPE, VARIENT, INSTANCE and STATE.
These entries can be get in the table RSPCPROCESSLOG. To execute the table entries go to SE16 and give table name RSPCPROCESSLOG and press enter. Then in the processchain where the chain got stuck, double click on the varient and goto chain tab and you will get VARIENT and INSTANCE.
Copy and paste these in the table RSPCPROCESSLOG selection screen and execute. Here you will get LOGID, TYPE, VARIENT, INSTANCE.
Enter all these field in function module RSPC_PROCESS_FINISH by providing the STATE as G and execute.
Your stuck process chain will move further.
Thanks and regards
Koushik
Steps same as described by AP.
Hope it helps.
Edited by: koushik gowda on Jul 16, 2009 11:40 AM -
Use of events in process chains
Hi All,
Could some one help me in givving me detailed information about the use of events in process chains with some examples .How are they used and what are they performed in background .I am going to start,creating process chains according to the requirements which are based on event scheduling before ..
Your detailed information is really appreciated..
Thanks & RegardsHi,
Suppose your process chain needs to be started after certain activity is finished, then you can create an event to be triggered when that activity is done. The process chain will start once it gets that triggered event.
This is one use in using events in Process Chains.
Thanks,
Raj -
Difference between wait event and timed event
Hi,
Anyone has idea that what is the difference between wait events and timed events in Statspack report. I couldn't find it over google.
Thanks.It's 10.2.0.1 on Linux
(Couldn't do a query, because Linux is inside VM Ware. And it is not being accessed from Base windows machine.)
Top 5 Timed Events Avg %Total
~~~~~~~~~~~~~~~~~~ wait Call
Event Waits Time (s) (ms) Time
db file scattered read 9,750,617 34,611 4 44.7
CPU time 14,248 18.4
read by other session 1,532,282 8,984 6 11.6
db file sequential read 4,514,494 5,588 1 7.2
latch: cache buffers lru chain 277,245 4,823 17 6.2
Wait Events DB/Inst: ABCD/ABCD Snaps: 1-2
-> s - second, cs - centisecond, ms - millisecond, us - microsecond
-> %Timeouts: value of 0 indicates value was < .5%. Value of null is truly 0
-> Only events with Total Wait Time (s) >= .001 are shown
-> ordered by Total Wait Time desc, Waits desc (idle events last)
Avg
%Time Total Wait wait Waits
Event Waits -outs Time (s) (ms) /txn
db file scattered read 9,750,617 0 34,611 4 24.2
read by other session 1,532,282 0 8,984 6 3.8
db file sequential read 4,514,494 0 5,588 1 11.2
latch: cache buffers lru chain 277,245 0 4,823 17 0.7
latch free 121,466 0 3,291 27 0.3
----------------------------------------------------------------------------------------------------
Maybe you are looking for
-
How to display unicode values in file to corresponding characters
Hello Java-ians ! Could you please calrify my doubt ! I am able to generate unicode values for arbic, russian characters. I did it by generating a UTF-8 format file and I used native2ascii tool to generate unicode values. No I am unable to dispaly th
-
Limiting no. of messages per day
Dear All, Can we control the no. of messages a user can send per day? I know that we can limit the no. of conn. per min and the number of emails per conn. But you cannot use this method to limit the number of messages per day effectively. Marwan,
-
I can't pass the icloud terms and conditions page after updating ios7
Hi, I need urgent help! I can't pass the icloud terms and conditions page after updating ios7 I've tried agree disagree and every other button i could press but it just wouldn't go pass the page Is there anyone who can help me with it?
-
I'm currently running Shockwave 10 and have noticed a "Shockwave Helper" icon in my system tray lately. Exactly what is the Shockwave Helper that resides in my Shockwave 10 folder under Windows\System32\Macromed folder? I haven't had this with any pr
-
CS3 - "Unable to locate or parse the XML source"
Hello, When I try and attach a remote XML source to my XSL fragment, Dreamweaver CS3 tells me "Unable to locate or parse the XML source". This happens irrespective of where the remote XML file is located, and for all the remote XML files that I have