Event raising procedure
Dear Experts,
I need to raise an event soon after completion of a process chain. I have "and" process at the end of the process chain. Here is what I did:
1. SM62- create an event
2. SM64- triggered.
But the problem is the connection between event and the process chain end is missing. Can I do this using ABAP program or using SM36? but how do I know the job name of the "and" process? Please correct me if I am wrong. Does the ABAP program coe in between the SM62 and SM64? is it needed? how do I use it?
Thank you very much.
Hi venkat
you can rise the event using a pice of abap code with the function module "BP_EVENT_RAISE" and call this program at the end of your process chain. If you have further queries pls post.
P.S: Please search the forum before posting. This topic is discussed several times.
Sriram
Similar Messages
-
Issue regarding [Work Flow] Business Object Event Raise in ABAP Program
Hi All,
I have one issue regarding [Work Flow] Business Object Event Raise in ABAP Program.
Actual TDS is as below:
If E message type written, raise Business object BUS2005 (Production order) Event PickShortage for production order passing warehouse, transfer request
(BUS2065 Object key) in event container. Also include table of text version of error
messages for this set of Transfer
Request.
Can anybody tell me how can i write it technically in ABAP Code.
Can anybody solve this issue!
Thanks in advance.
Thanks,
Deep.Hi,
Can anybody solve above posted issue!
Thanks,
Deep. -
Payload for an exent & Source from where Event Raised
In Oracle Applications 11.5.10 I want to subscribe to "oracle.apps.ap.event.invoice.approval" event.
I want to add a custom "Rule Function", I require to know the payload for this event.
And I want to know from where is this event raised in the base product.
Thanks
AtulMany thanks Matt..
You are right.. The payload will be generated by the application raising the event. How do I come to know that from where is "oracle.apps.ap.event.invoice.approval" event raised. Is it raised from a form, workflow, pl/sql package, db trigger?
Secondly I agree it is of type WF_EVENT_T, but in addition to that I want to know what are the granular contents of the payload being passed to my rule function. What all data can I reference from this seeded Payload. What is the name of this payload.
Thanks
Atul -
Missing chain step name in events raised by the scheduler
I use events raised by the scheduler (SYS.SCHEDULER$_EVENT_QUEUE) to monitor scheduler chains processing.
For event_type = "JOB_STARTED" (chain step started in case of chains) in event message (sys.scheduler$_event_info) there is no log_id (log_id is null).
In user_scheduler_job_log view there is column job_subname that contains chain step name but this column is missing in the event message.
Is there any way to get chain step name for event_type = "JOB_STARTED"?
Job configuration:
dbms_scheduler.set_attribute(
name => job_name,
attribute => 'logging_level',
value => dbms_scheduler.logging_full
dbms_scheduler.set_attribute(
name => job_name,
attribute => 'raise_events',
value => dbms_scheduler.job_all_events
Database:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
OS:
CentOS - redhat-4
Regards
MariuszI want to track chain processing by dequeue messages from SCHEDULER$_EVENT_QUEUE.
Examples of messages automatically inserted by scheduler into SCHEDULER$_EVENT_QUEUE (user_data column from SCHEDULER$_EVENT_QTAB)
SYS.SCHEDULER$_EVENT_INFO('JOB_SUCCEEDED','CDWMAIN','JOB_NAME','2011-07-27 16:19:11.191969',0,NULL,0,340374,1,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL)
SYS.SCHEDULER$_EVENT_INFO('JOB_STARTED','CDWMAIN','JOB_NAME','2011-07-27 16:19:10.947994',0,NULL,1,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL)
SYS.SCHEDULER$_EVENT_INFO('JOB_CHAIN_STALLED','CDWMAIN','JOB_NAME','2011-07-27 15:45:13.727127',0,NULL,0,NULL,0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL)
For event JOB_SUCCEEDED there is log_id = 340374 so we can find job_subname (chain step name) in log table.
For JOB_STARTED and JOB_CHAIN_STALLED there is no log_id so we do not know wich chain step in this case was started and wich chain was stalled.
JOB_NAME is the same for all steps in case of chain processing -
Regarding [Work Flow] Business Object Event Raise in ABAP Program
Hi All,
I have one issue regarding [Work Flow] Business Object Event Raise in ABAP Program.
Actual TDS is as below:
If E message type written, raise Business object BUS2005 (Production order) Event PickShortage for production order passing warehouse, transfer request
(BUS2065 Object key) in event container. Also include table of text version of error
messages for this set of Transfer
Request.
Can anybody tell me how can i write it technically in ABAP Code.
Can anybody solve this issue!
Thanks in advance.
Thanks,
Deep.Hi,
Can anybody solve above posted issue!
Thanks,
Deep. -
I have an issue involving an event that is being raised in a user exit that is being called in update.
This works fine in dev and QA but simply will NOT work in production.
The code runs perfectly and the call to SWE_EVENT_CREATE looks to function identically in all three systems. THE ONLY DIFFERENCE IS THAT IN PRODUCTION THE EVENT NEVER GETS RAISED.
Can anyone suggest a possible cause for an event not raising in one system as opposed to another?
This is driving me seriously nuts!!Hi Thomas. I posted here as I am not triggering a workflow just a function module that creates an inbound idoc. I will leave it here for another day and then close and repost in workflow if nothing comes out of this.
Event type linkages are correctly configured for the object and event identically in all systems, those where the event is succesfully raised and that where it is not.
Debugging the process shows that the code is behaving identically in all systems
The only thing I can think of is that there is no "commit" taking place in the application transaction itself (VL32N) in production, but the article document for the goods receipt is being created so this cannot be true either. In fact if I go immediately to the create event manually facility in the workflow utilities and use the key that was visible during debug I then do get the event raised!! How wierd is that !
Ross -
List of Standard events raised by KM Repository?
Hi ,
I am looking for list of Standard Events raised by a KM Repository Framework.
I could able to get Event ids for moving, deleting , renaming and opening.
Actually I need to catch the event of new post in KM Repository.
If some body can direct me to a document which gives me the list of all events
and Event ids I would be thankful.
Thanks & Regards
MrutyunjayThe javadoc for ResourceEvent is located at: <a href="https://media.sdn.sap.com/javadocs/NW04s/SPS7/km/com/sapportals/wcm/repository/manager/ResourceEvent.html">https://media.sdn.sap.com/javadocs/NW04s/SPS7/km/com/sapportals/wcm/repository/manager/ResourceEvent.html</a>.
-
Hi,
Is there any event raised when we create customer/update customer with new sales data in transactio vd01.
Regards,
SharadhaHi,
1. Go to transaction SWELS and swich on the event.
2. Then go to vd01 and create customer.
3. Go to transaction SWELS and swich off the event.
4. Go to transaction SWEL. it will displays the events regarding your process.
Thanks,
Reward If Helpful. -
TCA Business Object Events: Raise Events Program
Hi,
We are integrating two ebiz instances using SOA and both the instances currently are on 11.5.10. We have back ported patches from ebiz 12i into these instances to use TCA Business Objects functionality(Business Object API's and events). I have a few questions realted to the concurrent program "TCA Business Object Events: Raise Events Program":
1) Do I need to schedule this concurrent program to raise business object events?
2) Is there an alternate way to raise these business object events(any profiles)?
Appreciate if someone can answer these questions.
Thanks,
SakHi,
We use AIA and TCA Business Object Events program to integrate from one Ebiz instance to another.
To achieve what you want I would not do anything in SOA.
In out integration TCA ends up putting messages into WF_BPEL_Q.
I would use the following process: (Assuming offline time is a possibility)
1. Retire the parts of AIA that dequeue from WF_BPEL_Q. (depending on how messages are picked up.)
2. Create a PLSQL script that dequeues all messages from WF_BPEL_Q but dosn't process them. Using relevant select statements you can dequeue by message ID and select only relevant messages
3. Run whatever process you need that puts fires the Raise Events Program
4. Run the script to dequeue the messages that does nothing with them.
5. Re-activate the parts of AIA that dequeue from WF_BPEL_Q
This should give you the desired effect. Just be careful you don't screen out messages that do need to be transfered.
Robert -
Hi mates,
How to Raise events in process chain, for example i want to raise a event like ( Data loaded in ODS) after ODS is loaded.
thanksHi,
Look at the threads below. There are very good discussions on this topic :
Re: Process Chains Events
events and process chains
Query on using EVENTS in process chains.
Cheers,
Kedar -
No event raised for BUS2209 Purchase order response
Hi Folks,
Have any of you experiensed that the SAVED event for POR is not raised?
I checked the event trace ( No restrictions) and there is no entry after the POR is saved.
Maybe I'm doing something wrong, but when I save a POR that is manually entered via transaction BBPPCO02 "Enter Purchase Order Response " and it has a variance as the message says, "position 1 price outside tolerance limit"
If I test the start condition i SWB_PROCUREMENT I get a TRUE on both WS14500019 and WS14500007.
Any ideas what could be wrong?
Thanks in advance,
ThomasHi
Which SRM version are you using ?
<b>Seems to be a bug in the System.</b>
<u>Please go through the related SAP OSS Notes below -></u>
Note 886529 Start conditions for BUS2209 incorrectly delivered
Note 1112833 Schedule lines deleted
Note875744 BOR BUS2209: Approver list is always empty
Note795107 Order response: No approval workflow found
Note1056889 BUS2209: The list of Approver is not filled correctly
Note1094538 Accept/Reject Response not working from PO Response POWL
Note1060944 SRM60SP02: Workflow various issues
Note 832886 WS79000002: Various errors at runtime
Do let me know.
Regards
- Atul -
640 - No event raised for Infotype 19 (SWEHR1/2/3)
G'day all,
I'm trying to raise events when Infotype 0019 is inserted/changed/deleted.
I've had a poke through SWEHR1/2/3 to find similar entries. Most of the Person related infotypes are linked to Objects with an ultimate parent object of EMPLOYEEI. As such I've tried as an initial test to get the CREATED event of this object raised.
In SWEHR1 I've created an entry as follows:
Ob - P
IT - 0019
Obj.Type - EMPLOYEEI
In SWEHR3 I've created entries as follows:
Ob - P
IT - 0019
Updat - INS
Obj.Type - EMPLOYEEI
Event - CREATED
Ob - P
IT - 0019
Updat - UPD
Obj.Type - EMPLOYEEI
Event - CREATED
(This second update entry was simply to see if my problems were related purely to insertion.)
When I create a 0019 record for an employee no event is getting raised.
I've debugged through the Function HR_EVENT_CREATE while executing PA30 and in the end it calls SWE_EVENT_CREATE with everything looking fine. However no event is raised.
We are on 640 basis supp.pk 15 now. OSS note 904851 was found and applied while we were still on 14.
I can't find anything else on OSS, this forum or WUG that seems applicable.
There aren't any ST22 Dumps, RFC issues or System Log entries.
Can anyone shed light onto what I may be missing??
Many thanks,
MarkG'day all,
Just a quick update. I received the following response from the MIT WUG which solved my issue. I've been waiting to see if I could get the same response from Alla here to be able to fully award points... oh well.
Have fun,
Mark
>>>>
You are right OSS note 904851 partially fixing the problem. It's required to have an active WF in order to publish an event.
We are having the same problem with HR events and I got a replay from SAP support.
Its an error in business workflow which has been corrected by the note no. 913330. Please implement it and the problem
should be solved."
I tested it and it's correcting the problem.
Thanks, Alla Ostrowsky.
<<<<< -
Error in event driven procedure
Dear Gurus...I created the following procedure to implement Event Driven Reporting:
CREATE OR REPLACE procedure ABC.eve_drv_rep as
myPlist system.SRW_PARAMLIST;
myIdent system.SRW.Job_Ident;
BEGIN
myPlist := system.SRW_PARAMLIST(system.SRW_PARAMETER('',''));
system.srw.add_parameter(myPlist,'GATEWAY','http://192.168.1.133/reports/rwservlet);
system.srw.add_parameter(myPlist,'SERVER','rep_appsrv_frhome1');
system.srw.add_parameter(myPlist,'REPORT','y:\02\02\Gry_02_01.rep');
system.srw.add_parameter(myPlist,'USERID','def/xyz@nml');
system.srw.add_parameter(myPlist,'DESTYPE','email');
system.srw.add_parameter(myPlist,'DESFORMAT','PDF');
system.srw.add_parameter(myPlist,'DESNAME','[email protected]');
myIdent := system.srw.run_report(myPlist);
EXCEPTION
when others then
raise_application_error(-20001,'Error sending email.Error: '||sqlerrm);
--Dbms_Put.Put_Line('Error sending email.Error: '||dbms_util.get_detailed_sqlerrm);
END;
Procedure is created successfully but when I execute this procedure, I get the following error:
ORA-20001'Error sending email.Error: ORA-20999
ORA-06512: at "Nml.Eve_Drv_Rep", line 17
ORA-06512: at line 1
Can u guess where is the problem?
2ndly I want to know that whether I should give IP address or Application Server Machine Name in GATEWAY parameter?
And in SERVER parameter either I should give the Application Server Machine Name or Report Server name installed on Application Server Machine?
Lastly from where I can get the complete list of Parameters to be added in SRW.Add_Parameter like SERVER, GATEWAY etc.
Please note that we r using Database 10g Rel.2 and Forms and Reports services on Application Server on Widows Server-2003 platform and the report being called was developed in Reports 10g.Hi,
Remove this (And never put it in again)
EXCEPTION
when others then
raise_application_error(-20001,'Error sending email.Error: '||sqlerrm);
--Dbms_Put.Put_Line('Error sending email.Error: '||dbms_util.get_detailed_sqlerrm);This will tell you more about what is going on, such as giving you the location of the error.
But 20999, is a user defined exception, are you putting objects into system schema?
Regards
Peter -
Capturing an event raised by a COM object
Hello,
Using ABAP, it's no trouble using a COM object's properties and methods, but how do you capture a raised event?
For example:
INCLUDE OLE2INCL.
DATA wf_test TYPE OLE2_OBJECT.
CREATE OBJECT wf_test 'Test.Test'.
SET PROPERTY OF wf_test 'TestID' = '123'.
CALL METHOD OF wf_test 'TestMe'.
Now as a result of calling the 'TestMe' method, the COM object will raise a 'Tested' event. How do I capture that in ABAP? I assume this will require somehow registering the event and maybe generating a proxy class but I don't know the details.
I would really appreciate the help. An example or link would be great.
Best Regards,
Ahmad ShonoHi,
You can look for the event triggered in table SWFREVTLOG for a specific time stamp or user or in fact any BOR object.
Ravi -
Event History SM62 - doesn't show the events raised
Hello,
I definded an event within SM64 and raised the event during a perodical job. Now I thought to see the events with SM62, but there are only old events listed. I checked the selection criteria and changed them that all events should be listed.
Has anyone an idea?
Regards GeertHi Juan.
I have the authorization and I'm also able to list "old" events. Could it have something to do that I raised the events with the report BTC_EVENT_RAISE?
Regards Geert
P.S. Thanks for the first reply
Maybe you are looking for
-
Error in the SMTP log of the mail service regarding "master.lock"
I am getting the following error in the SMTP log of the mail service, Anybody might have any suggestions: postfix/master[87670]: fatal: open lock file /var/lib/postfix/master.lock: cannot open file: Permission denied. The permissions of the master.lo
-
When will windows 8.1 be available for nokia phones
when will windows 8.1 be available for nokia phones?
-
2.0.1 upgrade toasts files
I have a problem with m2v files that when I try to look at them in Finder the window closes and DVD Studio is unable to use them. This happened after upgrading to FCP 5.04 and Compressor 2.0.1. I was able to change ONE m2v file to Quicktime in finder
-
Beginners errors with HelloWorldApp
Would much appreciate any help. Getting the following errors which I can't get to grips with. Written a basic beginners java text-the HelloWorldApp.java, saved in c:\Java. In there is also bin\javac.exe. When I type java\javac HelloWorldApp.java, get
-
Finding duplicates within a date range. SQL help please!!
I have a table of records and I am trying to query the duplicate emails that appear within a given date range but cant figure it out. There records that it returns are not all duplicates withing the given date range. HELP!! Here is my query. Thanks