Creation of Event
Hi Experts,
Plz Explain in details about the creation of Event in SWO1 for any Object.
For BUS2012, there are eventsbut the programs corresponding to that is not written. then how it works ?
Plz Explain....for Custom Events Creation also..
Reply
Regards
You can trigger an even via a function module:
CALL FUNCTION 'SWE_EVENT_CREATE'
EXPORTING
OBJTYPE = '<BusinessObject>'
OBJKEY = <TheKey>
EVENT = '<TheEvent>'
TABLES
EVENT_CONTAINER = Z_CONTAINER
EXCEPTIONS
OBJTYPE_NOT_FOUND = 1
OTHERS = 2.
IF SY-SUBRC = 0.
ELSE.
ENDIF.
You can also trigger the event with change documents. See transaction SWEC. You can also add field restrictions
EXAMPLE:
EINKBELEG BUS2012 RELEASESTEPCREATED
Also have a look at Transaction SWETYPV.
Similar Messages
-
Sales order creation, standard event trigger is taking long time .
We have a requirement where we are sending data to CRM system using RFC function module. This data is sent while sales order creation or change. We have used standard event BUS2032.CREATED to trigger CRM FM in sales order creation mode. In sales order change mode, we are using custom event. In production system, our custom change event is getting triggered fine and data is sent to CRM system with small time lag of around 1 minute. But, while sales order creation, standard event trigger is taking long time ( sometimes about 20 minutes) in production system.
We tried triggering same custom event at the time of sales order creation using FM u2018SWE_EVENT_CREATE_IN_UPD_TASKu2019 as well but, still we are not able to improve performance of the event trigger at sales order creation.
Regards,
Sushee JoshiHI,
we have written SWE_EVENT_CREATE in update task
I think instead of calling in update task simply call to function module CALL FUNCTION "SWE_EVENT_CREATE" might trigger the event immediately.. Did you try to check in this way..
OR
And I also suggest you to check the entry in SWE2 txn with respect to your workflow tempalte, may be you have enable the option ENABLE EVENT QUEUE, this could be one of the reasons.. If it is enabled please disable it (uncheck)
Please check..
Regards
Pavan -
Log DNS record Creation / deletion events on DC's security event viwer
hi,
I have configured the DNS record creation and deletion auditing as per below microsoft blog
http://blogs.technet.com/b/networking/archive/2011/08/17/tracking-dns-record-deletion.aspx on one of my DC.
All setting are done correctly and events for DNS creation and deletion is generated in security event logs. BUT THESE EVENTS ARE ONLY GENERATED ON ONE DC. We have 3 other DC, i checked the security events on other 2 DC but there is no event logs. Only one
DC has that events.
Is there any way so that whenever DNS record is created / deleted the events SHOULD CREATED ON ALL DCs. This will save time else i have to check on all DCs security events.
Please suggestGreetings!
It is by design. When you want to create a record in on of the DNS servers, you open the DNS console and connect to a server. Record creation/deletion is a single server process, and after that it is replicated to all the DNS servers using Zone Transfers
or AD Integrated Zones. Since this is a single server process the audit is generated in the server's event viewer itself.
So he best thing you can do is to collect all the events regarding "DNS Auditing" from your DNS servers and store them in a server. More information on:
Configure Computers to Forward and Collect Events
Regards.
Mahdi Tehrani |
|
www.mahditehrani.ir
Please click on Propose As Answer or to mark this post as
and helpful for other people.
This posting is provided AS-IS with no warranties, and confers no rights.
How to query members of 'Local Administrators' group in all computers? -
Creation of Event Parameters With Event Creation
Hi all,
I'm triggering an event via change documents. This works very well. Now I need the old and the new value from the field, which triggers the event.
So I found a very good doucumentation on the sap help:
http://help.sap.com/saphelp_webas610/helpdata/en/72/11386ce58a11d1951f0000e82dec10/frameset.htm
I implemented all step's and I sent the event container via email to my user.
But unfortunately it dose'nt work. I never get the values in my event container.
Please help!
Regards, StephanHi Mikko,
thanks for your answer. With you help I could debug the container processing. And I found my problem.
Now I get the values in my event container.
It's a little bit strange, the change documents based on the structure CRMA_CUSTOMER_H not on the data base table CRMD_CUSTOMER_H. So I defined my object attributes for this structure and not for the data base itself.
But unfortunatly I get the next problem. When I use the event to start my workflow, the values never transferred to my workflow. I checkt the event - workflow binding again and again, but I can't find the problem.
If I send the event container to my user via the FB SWE_EVENT_MAIL the container is filled.
Any thoughts?
Regards, Stephan -
Plugin registraion error during creation of event ahndler
Hii,
I'm creating a event handler in oim 11 gr2.for that :
1) i have create the jar file and place it in lib folder.
2) create a eventhandler config file
3) develop the plugin.xml file and make the zip file of plugin.xml file and the lib folder in which the jar file is placed.
and now i'm trying to register the zip file in the oim server
to do that I run the ant -f pluginregistration.xml register
for that it ask
oim user id:xelsysadm
password:Oracle123
server url:t3://localhost:14000
Enter the Context Factory: weblogic.jndi.WLInitialContextFactory
Enter name (complete file name with path) of the plugin file:
after that it shows the following error :
-register-to-wls-server:
*[java] Java Result: 1*
*[delete] Deleting: c:\yash\Oracle\Middleware\Oracle_IDM1\server\plugin_utility\20130417115924.tmp*
*[echo] Exception in thread "main" java.lang.NoClassDefFoundError: oracle/jrf/PortabilityLayerException*
*[echo] at oracle.iam.platformservice.utils.PluginUtility.main(PluginUtility.java:210)*
*[echo] Caused by: java.lang.ClassNotFoundException: oracle.jrf.PortabilityLayerException*
*[echo] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)*
*[echo] at java.security.AccessController.doPrivileged(Native Method)*
*[echo] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)*
*[echo] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)*
*[echo] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)*
*[echo] at java.lang.ClassLoader.loadClass(ClassLoader.java:247)*
*[echo] ... 1 more*
*[echo] classpath=C:\yash\Oracle\Middleware\Oracle_IDM1\server\ext\spring.jar;C:\yash\Oracle\Middleware\Oracle_IDM1\server\ext\jakarta-commons\commons-logg*
*\iam-platform-context.jar;C:\yash\Oracle\Middleware\Oracle_IDM1\server\platform\iam-platform-utils.jar;C:\yash\Oracle\Middleware\Oracle_IDM1\server\platform\ia*
DM1\server\platform\iam-platform-pluginframework.jar;C:\yash\Oracle\Middleware\Oracle_IDM1\server\client\oimclient.jar;C:\yash\Oracle\Middleware\wlserver_10.3\
*[echo]*
*[echo]*
*[echo] was_home=null*
*[echo]*
*[echo]*
*[echo] client_home=null*
*[echo]*
*[echo]*
*[echo] xl_home=null*
*[echo]*
*[echo]*
*[echo] mw_home=null*
*[echo]*
*[echo]*
*[echo] newClasspath=C:\yash\Oracle\Middleware\Oracle_IDM1\server\ext\spring.jar;C:\yash\Oracle\Middleware\Oracle_IDM1\server\ext\jakarta-commons\commons-l*
orm\iam-platform-context.jar;C:\yash\Oracle\Middleware\Oracle_IDM1\server\platform\iam-platform-utils.jar;C:\yash\Oracle\Middleware\Oracle_IDM1\server\platform
e_IDM1\server\platform\iam-platform-pluginframework.jar;C:\yash\Oracle\Middleware\Oracle_IDM1\server\client\oimclient.jar;C:\yash\Oracle\Middleware\wlserver_10
null/ext/ucp.jar:null/oracle_common/modules/oracle.jmx_11.1.1/jmxspi.jar:null/lib/oimclient.jar:null/server/lib/wlfullclient.jar:null/ext/jakarta-commons/commo
ar:null/ext/spring.jar:null/server/lib/webserviceclient+ssl.jar:null/platform/iam-platform-utils.jar:null/server/lib/wlclient.jar:null/server/lib/weblogic.jar:
features-system-configuration.zip:null/features/iam-features-identity.zip:null/features/iam-features-platformservice.zip:null/ext/log4j-1.2.8.jar:null/lib/Xell
*/lib/xlVO.jar:null/lib/xlUtils.jar:null/lib/xlCrypto.jar:null/lib/xlAuthentication.jar:null/lib/xlDataObjectBeans.jar:null/ext/oscache.jar:null/ext/javagroups-*
jrf-api.jar:null/oracle_common/modules/oracle.jrf_11.1.1/jrf-api.jar:null/ext/jrf-api.jar:null/oracle_common/webservices/wsclient_extended.jar:null/oracle_comm
on/modules/oracle.jmx_11.1.1/jmxspi.jar:null/oracle_common/modules/oracle.jmx_11.1.1/jmxframework.jar
BUILD SUCCESSFUL
Total time: 1 minute 30 seconds
please help how to resolve the error:
Exception in thread "main" java.lang.NoClassDefFoundError: oracle/jrf/PortabilityLayerException*
**[echo] at oracle.iam.platformservice.utils.PluginUtility.main(PluginUtility.java:210)**
**[echo] Caused by: java.lang.ClassNotFoundException: oracle.jrf.PortabilityLayerException*Here is quick script i use for registering plugins (might need to verify some spots, it was for linux but i made the changes for windows)
set PASSWORD=Oracle123
set SERVER=localhost
set OIM_HOME=c:/yash/Oracle/Middleware/Oracle_IDM1
cd %OIM_HOME%/server/plugin_utility
c:/yash/Oracle/Middleware/wlserver_10.3/server/bin/setWLSEnv.cmd
set PLUGIN_HOME=
set PLUGIN_NAME=
ant -f pluginregistration.xml register -DOIM.Username=xelsysadm -DOIM.UserPassword=%PASSWORD% -DServerURL=t3://%SERVER%:14000 -DPluginZipToRegister=%PLUGIN_HOME%/%PLUGIN_NAME%
-Kevin -
Creation of event for background processing
Hi,
I need to create a event for background job. in which the job has to be created based on variant in one user exit via sm36 and i have to trigger the same in other user exit.
thanks in advance
shivaTry using the Function module "BP_JOB_CREATE" .
rgds
anver -
How to delete child table records while creation reconciliation event
Hi,
I developed custom scheduler task to create reconciliation events with child form information:
if (!reconOperations.ignoreEventAttributeData(objectName, attrs, "Roles", childs)) {
long eventId = reconOperations.createReconciliationEvent(objectName, attrs, eventAttributes);
for (int f = 0; f < childs.length; f++) {
reconOperations.providingAllMultiAttributeData(eventId, "Roles", true);
reconOperations.addDirectMultiAttributeData(eventId, "Roles", childs[f]);
reconOperations.finishReconciliationEvent(eventId);
but when I delete roles from target system roles won't delete from OIM.
How config recon Operations to do this?objName - The Name for the object for which the reconciliation is taking place
parentRecord - A map containing the field-value pairs for the data received from the target.
childTableName - The name of the multi-attribute reconciliation field that the data is for
childRecords - A List containing the Hashtable objects. Every Hashtable will have field-value pairs for the data record pertaining to that attribute received from the target. -
Inbound Shipment - Creation of events
How to update the tab "Further Dates" in VT02N using the idoc SHPMNT05 ( IDOC_INPUT_SHPMNT ) the standard idoc gives a qualifier 499 to add events based event type and event alias. But there is no code in standard FM to update this data. I looked in the standard code of VT02N on how to update this tab. The code there is tightly integrated with the screen. Any helpful hints will be rewarded. Thanks !
Hi Sharath... Thanks for your reply ,
I knew there were a few exits where I can write code to update the "Further dates".
I wanted to figure out if there is a standard FM or method which would update these dates given the data.
I looked how does SAP achieve this in VT02N, it calls a series of FMs which depend on the global variables of various of Function Groups ( which I will not be able to set in these exits. )
Regards,
Sridhar -
Error in workitem creation through event
Hi All,
I have created one task which triggers on event releasestepcreated of BUS2015. When I go to SWUE, give the PR no. as key, and create the same event, I see that the reciever has started correctly in SWEL, but the workitem was not created for the same. The object key field on double clicking the entry in SWEL is also coming as blank.
Can anyone here suggest on why this might be happening?
Regards,
RKHi Marcos
In binding I am passing object itself and the mandatory release code from the event container. The binding definition contains no error. SWE2 linkages are active with correct receiver FM. There is no start condition.
Have checked SWU3 as well.
Even the SWEL event trace entry shows the event data correctly, and the trace data shows action as "Reciever started correctly. The only anomaly is the "Reciever data" which shows the object key as blank, and subsequently there isn't any work item created for the same.
Am clueless about this...
Rajiv. -
Regarding dynamic creation of events
I hv created tables, context, and d buttons dynamically.......
each table has got its own button n context..... but event is 1ly 1........
wen i lick on a button of particular table i want operations to be performed on tat particular table, for tat i need to tel d EVENT tat,
which table( i.e. which context)...
hw to pass d dynamically created context names to events????/Hi,
You can map table with related context node element and write the table related code in the button which you have created.
Example code:
public void onActionOnUpload(com.sap.tc.webdynpro................)
IPrivate<ViewName>.I<node>element tab;
for(int i=0;i<=3;i++)
tab=wdcontext.create<;node>element();
tab.set<;attribute name>("value1");
tab.set<;attribute name>("value2");
wdcontext.node<;element>().addElement(tab); -
Event is not triggering in swel
Hello Gurus,
i have used a subtype business object zbus2009 of bus2009.
and i have deactivated the event of bus2009 in workflow. now i am using there this subtype zbus2009.
but in swel while i am checking after creation, no event is triggering here, and showing here in swel "no event is trigger for bus2009" but i have changed bus2009 to zbus2009, so it should show for zbus2009, either its triggering or not.
please tell me where am i lacking.
Kind Regards,
Him JoshiHI HIM,
It seems like you have created a subtype for BUS2009 and you want to use the additional functionality of ZBUS2009 in
your workflow. You need to do the following:
1. Delegate your BO ZBUS2009 with BUS2009( you can search for this in this forum).
2. Activate the event for BUS2009. This will be trigerred for ZBUS2009 as well due to this delegation.
Hope this helps you.
Regards
Gautam -
How to create Event Receivers using Visual Studio 2013
No parsing error came while creation of Event Receiver in Visual Studio 2013
Hi Shaheena
Please search MSDN Articles, TechNet Articles and The Code Project Articles before asking questions.
Answers to the basic as well as professional questions are available there.
Go through the links below for the issue.
Create an Event Receiver
Indul Hassan
Microsoft Community Contributor
http://www.indulhassan.com
You Snooze.. You Lose !! -
Creation of blocking modal windows
Hi
I’m struggling, for sometime now, with the famous
a-synchronic behavior of flex.
I’m trying to develop a function that resembles the
famous VB “MsgBox ()” and opens a UI container (e.g.
like a Title window) in Modal mode while blocking the continuation
of the rest of the code until the UI closes.
I would like to be able to write something similar to the
following set of commands:
MsgBoxInFlex( …..); \\ blocks operation until UI closes
if (x=……)
Problem – as far as I know – is that such a call
to a function (i.e. MsgBoxInFlex) returns the control to the
calling code after the function has finished with no connection to
UI container status. This means that the if command will be running
as soon as the UI will be created and displayed.
Is there a way to both create and work with on the UI
container before the MsgBoxInFlex function returns?
Is there a way to return after a different event - such as
form closure?
Is there a way to capture and block the creation completed
event from being transmitted and decide on when to send it?
Any ideas will be welcomed.
Thanks
RazThanks for your response –
The problem with using popup modal windows (such as Alert) is
that the calling program does not stop from executing while in VB
(or in other tools) the application waits for the Modal window
thread to return.
Raz -
Event for Vendor invoice.
Hi,
I want to trigger the workflow when the vendor invoice gets parked. The vendor invoice comes in as an idoc, I want to trigger another workflow, if the vendor invoice doesnot get parked too.
What object is best suited.
Thanks in advance.
Sathish.Sukumar,
Two things:
1. If you are using any standard workflow (check in PFTC for that) then ofcourse you gotta activate the event in triggering event. might require to do some task level customizing (tcode OOCU) and if you are creating your own then I guess you know the answer.
2. Like I said if you only interested in workflow Via IDoc and standard events are not catering your requirements then you have to create your own event (involves a whole development process such as find BAdI or user exit, then creation of subtype in SWO1, delegation, creation of event, triggering of event in BAdI etc.) , you have to activate the event in triggering tab of your workflow template.
Cheers
Jai -
Handling Event of a custom component
Hi,
I created a TwoStateButton from an AbstractButton. As long as it has two states, There's a repaint() occuring when the user clicks on it and it is written within the component.
I want to also handle the click event from outside the component (actionPerformed, something like that), how can I do this?
I am relatively new to Java but for God's sake don't answer "Use a JtoggleButton instead". My main goal is to understand the component creation and event handling in Java.
Thanks,
Vince D.Forget about it, I discovered it myself... Sorry for interrupting
Vince D.
Maybe you are looking for
-
Is it possible to have multiple Game Center users on an iPod mini? I have seen earlier threads and is not working
-
How can I sync my old Ipod without loosing everything? I dont remember my old password and dont have the same email. I have many pics stored on there of many trips we took over the years and songs as well please help...
-
hi, I am facing a problem with my webdynpro application. in the application i have used table in which data is populated by rfc, now the problem is when i use sap-wd-client=PieClient i am not able to see the table column headers. i can see the data .
-
Converting SQL Server query to access join missing operator issue
The RIGHT JOIN without and ON clause is throwing me. I cannot figure out where access is wanting the parenthesis in the join syntax this query: SELECT DISTINCT * FROM CANDIDATE_RECRUITERS INNER JOIN CANDIDATE_EVENTS ON CANDIDATE_RECRUITERS.Recrui
-
NETworking Lightroom ... how I survive, and organize folders
fyi: I am networking my data files in LRv1 on a NAS and a USB2 drive being shared on a WinXP Pro OS. My problem is we cannot "share" the Lightroom Database.lrdb file. (I do realize to do it right will be complicated ... if you wanted to share only "s