How to apply some code to event?
Hello Experts,
My BI consultant has cretaed one event. I need to apply my logic(abap code), when this event ger trigger.
So where can I write my code in event? Please provide some document if anyone have...
Thanks,
Regards,
Sagar
Hi Sagar,
There might be some other steps. Generally, what I do in BI is follows.
1. Create the event.
2. Have my logic in an ABAP program and assign it a program name.
3. Using SM36, I will define a new background job. Give your job name and job class accordingly.
4. Click on start condition and give your event name in the space provided for 'After Event'.
5. Now click on 'Step'. In the 'ABAP Program' section give your program name. Give variant name if any.
Finally, you will see this method is more flexible than any.
Assign points if useful as this is the only way to say thanks.
Regards,
Srinivas
Similar Messages
-
Dynpro application: how to perform some code when user click window close
Hello,
I'm developing dynpro application. This application needs to perform some code when exiting.
I can do that with MODULE xxxxx AT EXIT-COMMAND. But this code can't be performed when user of application click on button closing window (classic R/3 window, not pop-up).
Does anybody know how to bind some code to clicking on button closing window?
Best regards,
Josef MotlAs far as the prompt that you get when you close the last window is coming from the counter that SAP maintains regarding the number of open sessions(windows). When this counter reaches 1, I guess they have a check to issue a prompt. There was a discussion in this forum a long time back regarding how we can know that session id like SM04. There was no conclusion reached then. Theoritically, let us know you know this id for the session in which the user opened a particular page, then you can see if that session is deleted and then take the necessary action. There are some TH_* function modules that seem to be promising, but I was not able to conclusively achieve the control over a particular session.
See if you can look at SM04 and get an idea. Please do let us know if you find the solution.
Srinivas -
Does Contribute allow Admins to paste in (apply) source code
to various Web pages? I've got a source code from Google Analytics
I want to use for tracking and can't find how to apply it using
Contribute.Use Insert--> HTML Snippet and insert the Google Analytics
code at the end of the page. I tried in one of my site, it worked
fine.
When viewed the page source the GA code was insert here
<GA code comes here>
</p>
<!-- #EndEditable --></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
<!-- InstanceEnd --></html>
Thanks -
How to organize these code(about event drive)
The subject: In my Swing class, I create a TextArea object for displaying the content received from a socket. When my socket received some data, I want to show it in the TextArea immediately. But how do I organize the code to realize this function? I need the standard java solution. Who can give me some advice?
//bow
SiriusYou can merge Events by simply dragging one to another
You can move photos from one Event to another by flagging them, then selecting the target Event and going Events menu -> Add Photos to selected Events
You can create Events by flagging the photos and simply going Events -> Create Event Flagged Photos.
If you want to maintain your existing groupings them import each group, one at a time.
iPhoto Menu -> Preferences -> general: What have you chosen for 'Autosplit Events'
Other possibilities for using iphoto:
I use Events simply as big buckets of Photos: Spring 08, July - Nov 06 are typical Events in my Library. I use keywords and Smart Albums extensively. I title the pics broadly.
I keyword on a
Who
What
Where basis (The When is in the photos's Exif metadata). I also rate the pics on a 1 - 5 star basis.
Using this system I can find pretty much find any pic in my 50k library in a couple of seconds.
So, for example, I have a batch of pics titled 'Seattle 08' and a typical keywording might include: John, Anne, Landscape, mountain, trees, snow. With a rating included it's so very easy to find the best pics we took at Mount Rainier.
File -> New Smart Album
set it to 'All"
title contains Seattle
keyword is mountain
keyword is snow
rating is 5 stars
Or, want a chronological album of John from birth to today?
New Smart Album
Keyword is John
Set the View options to Sort By Date Ascending
Want only the best pics?
add Rating is greater than 4 stars
The best thing about this system is that it's dynamic. If I add 50 more pics of John to the Library tomorrow, as I keyword and rate them they are added to the Smart Album.
In the end, organisation is about finding the pics. The point is to make locating that pic or batch of pics findable fast. This system works for me. -
How to expose and code the event handlers of a base class?
I have created a class that inherits NumericUpDown. When I instantiate an object from that class, I can make it visible and have it appear on my form just like any other NUD. How can I get that instantiated object to expose the event handlers of its base
class, the NUD in this case, so that, for example, I can tell the client what action to take when the value of the instantiated object changes?
Thanks for your help.I am not sure exactly what you mean. Are you adding your NUD controls to the Form at design time from the toolbox or adding them in code at run time? If you are adding them to the form from the toolbox then you access the events the same way
you would a standart NUD control. If it is at runtime and you have a fixed amount of them you are going to add then you can declare them Class Scoped using the
WithEvents keyword which will let you access all their events.
Public Class Form1
Private WithEvents Nud1 As New NUD
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.Controls.Add(Nud1)
End Sub
Private Sub Nud1_ValueChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Nud1.ValueChanged
Me.Text = Nud1.Value.ToString
End Sub
End Class
Public Class NUD
Inherits NumericUpDown
'Your custom code to make it work how you want...
End Class
If this is not what you are doing then you may need to explain a bit more and show the code you are using so we understand better.
If you say it can`t be done then i`ll try it -
How to suppress some IOS syslog events with ESM
Hello folks,
I've been advised to look for help here at NetPro forum by Cisco TAC engineers.
This is the situation here with 80+ customer routers. They have two VLANs behind the router at every location/site and practically identical setup for hosts at each site. These hosts generate a lot of traffic that is blocked/denied by routers and we don’t want to see syslog events created after this traffic.
I have created one message discriminator that suppresses syslog from generating an event when the traffic from a particular host is dropped by the router.
This is how it looks:
logging discriminator STOP-POS msg-body drops 10.43.66.100
logging buffered discriminator STOP-POS 256000
logging host 192.168.14.4 discriminator STOP-POS
logging host 192.168.14.5 discriminator STOP-POS
Now I want to add more discriminators to filter at least two more events, e.g. I don’t want to collect events when the router drops broadcasts
101511: .Aug 30 23:10:48.737: %SEC-6-IPACCESSLOGP: list vl3-in denied udp 10.5.35.200(137) -> 10.5.35.255(137), 43 packets
101512: .Aug 30 23:10:48.737: %SEC-6-IPACCESSLOGP: list vl3-in denied udp 10.5.35.200(138) -> 10.5.35.255(138), 10 packets
101513: .Aug 30 23:10:48.737: %SEC-6-IPACCESSLOGP: list vl3-in denied udp 10.5.35.145(138) -> 10.5.35.255(138), 19 packets
I tried to create two more discriminator as follows
logging discriminator UDP137 msg-body drops 255(137)
logging discriminator UDP138 msg-body drops 255(138)
but I couldn’t apply them to both buffered and trap logging as according to the TAC router and switching team IOS is limited with only one discriminator. They told me that I have to address it EEM team (I thought that Cisco calls it Embedded Syslog Manager) by the way.
So, I’d appreciate if you please help me create a filter that will address the above said requirementsMade again the discriminator with the pipe and strings without spaces. Something still is missing. Broadcast events are still logged. Below is the output of "show logging" on one of the routers. I think we can't break the IP address to match the way I did - 10.43.66.100|.255(137)|.255(138)
535_OTTAWAMARKET(config)#do sh logging
Syslog logging: enabled (0 messages dropped, 997 messages rate-limited,
0 flushes, 0 overruns, xml disabled, filtering disabled)
Active Message Discriminator:
LOG-FLTR msg-body drops 10.43.66.100|.255(137)|.255(138)
No Inactive Message Discriminator.
Console logging: level errors, 122 messages logged, xml disabled,
filtering disabled
Monitor logging: level errors, 0 messages logged, xml disabled,
filtering disabled
Buffer logging: level debugging, 13 messages logged, xml disabled,
filtering disabled, discriminator(LOG-FLTR),
0 messages rate-limited, 1171 messages dropped-by-MD
Logging Exception size (4096 bytes)
Count and timestamp logging messages: enabled
Persistent logging: disabled
No active filter modules.
ESM: 0 messages dropped
Trap logging: level informational, 112934 message lines logged
Logging to 192.168.14.4 (udp port 514, audit disabled,
authentication disabled, encryption disabled, link up),
11 message lines logged,
0 message lines rate-limited,
0 message lines dropped-by-MD,
xml disabled, sequence number disabled
filtering enabled, discriminator (LOG-FLTR)
Logging to 192.168.14.5 (udp port 514, audit disabled,
authentication disabled, encryption disabled, link up),
11 message lines logged,
0 message lines rate-limited,
0 message lines dropped-by-MD,
xml disabled, sequence number disabled
filtering enabled, discriminator (LOG-FLTR)
Log Buffer (256000 bytes):
112931: .Sep 6 07:16:26.150: %SEC-6-IPACCESSLOGP: list vl3-in denied tcp 10.5.35.200(2553) -> 64.94.18.139(443), 1 packet
112932: .Sep 6 07:16:43.001: %URLF-4-SITE_BLOCKED: Access denied for the site 'updateservice.sonic.com', client 10.5.35.44:4328 server 144.198.28.150:80
112933: .Sep 6 07:16:46.034: %SEC-6-IPACCESSLOGP: list vl3-in denied udp 10.5.35.200(138) -> 10.5.35.255(138), 1 packet
112934: .Sep 6 07:17:46.035: %SEC-6-IPACCESSLOGP: list vl3-in denied udp 10.5.35.200(137) -> 10.5.35.255(137), 12 packets -
How to do some actions between event received and event linked
Hi all!
Sorry my bad english :(
I want to review event data (to compare with process form by java method) after event received and correspondence found, but before it linked.
How could i do it?Rajiv Dewan
You have to fetch data using SQL from RCD table.
See the tables related to Reconciliation RCD, RCE. There you'll get data.In this tables only service information about event, not reconciliation fields values.
This information i i can get from mapping.
Rajiv Dewan
You can make an entity adapter and get old data and new data.
Validate that and then send email.
If you don't get any old data it means it is Recon Insert Event then do nothing.I make entity adapter and assign it into pre-update.
I map my variables to all reconciliation fields and to process key.
Start reconciliation.
When reconciliation finished, user process form updated, but pre-update adapter does not invoke.
rajsunny
Is this your custom connector ? ? No, it's not custom connector, but later it will be actually for custom (if there are not chance to implement incremental reconciliation).
If Yes then just use the API ignoreEvent before generating the recon event. In that case, only if there are differences the OIM processes the recon event, otherwise it won't. Now put >your notification on the data object RCE.From OIM Javadoc:
OIM javadoc
boolean ignoreEvent(java.lang.String psObjName, java.util.Map poData)
It first tries to find a definitive account match, and then compares the account data with the record of it in Xellerate. If there is no difference between the data, it returns a true (indicating that the reconciliation event should not be raised). In all other cases, it will return false.
...When i invoke this method and it does not find a definitive account match, then return value is true.
As far as i understand it does not mismatch to javadoc, am i right? -
How to execute some code in command line, and read its output?
I'v found here http://www.sap-advisor.com/abap-coding/how-to-execute-operating-system-commands-from-within-sap/ that I can execute commands from the windows command line for example inside SAP.
But I want to take it one step further and read its output. is it possible?Hi RagnaRock,
one possible approach can be outputting the results of the command into a text file (i.e. "command >result.txt"), and then read this file from SAP/ABAP.
I hope this helps. Kind regards,
Alvaro -
How can I color code calendar events in Calendar (iPhone 4S)? I have it synced to Exchange. So if this is the case should calendar events come over as color coded from Exchange?
Not sure about adding color to the calendar as I have never done it. However, I assume it can be done based on the way the Calendar is set up in this TribeVita template. This may also be another great option for you other than colors.
http://templatetheotherchildusstandard.businesscatalyst.com/events -
Revision: 11118
Author: [email protected]
Date: 2009-10-23 16:35:38 -0700 (Fri, 23 Oct 2009)
Log Message:
Did some code cleanup on the Spark components to enforce the conventions about how to order stuff within an AS file.
QE notes: None
Doc notes: None
Bugs: None
Reviewer: None; no functional changes
Tests run: ant checkintests
Is noteworthy for integration: No
Modified Paths:
flex/sdk/trunk/frameworks/projects/spark/src/spark/components/ButtonBar.as
flex/sdk/trunk/frameworks/projects/spark/src/spark/components/CheckBox.as
flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as
flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as
flex/sdk/trunk/frameworks/projects/spark/src/spark/components/NumericStepper.as
flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Panel.as
flex/sdk/trunk/frameworks/projects/spark/src/spark/components/RadioButton.as
flex/sdk/trunk/frameworks/projects/spark/src/spark/components/Spinner.as
flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextArea.as
flex/sdk/trunk/frameworks/projects/spark/src/spark/components/TextInput.as
flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ButtonBase.a s
flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as
flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/SkinnableTex tBase.as
flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/Slider.asHi Rod,
different sources (i.e. different branches) are mapped to different local folders in your workspace - in fact you cant map two different server folder to the same local folder.
In you example the mapping would be (for example) like this:
Server path
local path
$/../WpfHelloWorld
C:\Src\WpfHelloWorld
$/../WpfHelloWorldDev
C:\Src\WpfHelloWorldDev
You can see your Workspace mappings when you select "Workspaces..." in the Workspace selection drop down:
Within the "Manage Workspaces" dialog select your workspace and klick "Edit" to see and edit all you mappings. -
How to add invitees to an event through code?
How to add invitees to an event through code? Attendees property in EKCalendarItem is readonly, is there any way to do it?
Sorry by email only iCloud: Share a calendar with others
-
Is it possible to ignore some events, while executing some code?
The problem is following: imagine the interface, consisting of three buttons - start, stop, save and one graph indicator. When one press start button some sequence of events is fired, and some data is shown on the graph (this sequence can be prolonged in time for a few hours). After completion of sequence one can save data. All is good except one thing: what will happen if start button have been pressed while execution? Start sequence will be fired again and previously acquired data will be lost. So the question is following: is it possible to erase (or ignore) some events from events stack?
Locking front panel is not good idea, because some other controls (for example stop) might be needed.
Making start
button disabled and grayed out is not good idea because user can click on that button (thus generate events) a lot of times before the disabling will occur.
Creation of data buffer for storing graphs is not good idea as well because it do not solves the problem.
www.xinstruments.com
Custom Software for Industrial Automation
www.hdrconverter.com
Picture processing made easyIn newer version of LabVIEW, you can use dynamic event registration. What is your version?
I would add e.g. a shift registers that keeps track of the state, then you can query it in each event case. Each event case will have a case structure inside wired to the state. States could be (0: new, 1: data has bee acquired, 2: all is saved, etc.). "Start" would only work if state is 0 or 2, "save" would only work if state is 1, etc.
LabVIEW Champion . Do more with less code and in less time . -
How to write java code to read the pixel color in some place of screen?
Hello all:
How to write java code to read the pixel color in some place of screen?
The java application iteself doesn't have any GUI.
thank you
-DanelSee java.awt.Robot
-
I applied some edits to my photo using iOS 7's default photo editor. It looks great when I preview the image on iPhone, but I cannot export the edited photos onto my PC. Anyone know how can I do this?
yeah, in itunes if you select your phone, you should get tabs across the top for what to sync, under photos uncheck the box
EDIT: http://support.apple.com/kb/HT4236 is the link to a apple support document with information on syncing photos using itunes.
Message was edited by: WYSWYG -
How can i execute some code in a jsp page on the same page ? plz read.
I have made a single JSP Page where in i want to delete users, create users, update table data.
I have all the UI on the first page. Now i want to write my all JDBC coding on just this single page. I don't want to create 3 separate pages. Can it be done ?This is my page !!
I have 3 separate pages insert.jsp, delete.jsp, update.jsp to implement the jdbc coding. I know that i can get it done by calling a single jsp page using URL rewriting. But i want to code for events on this very page only.
<%@page language="java"%>
<%@page import="java.sql.*"%>
<HTML>
<BODY>
<form method=post action="insert.jsp">
Username:<input type=text name=username><br>
Password:<input type=password name=password><br>
<input type=submit>
</form>
<hr>
<form method=post action="delete.jsp">
Username:<input type=text name=username><br>
<input type=submit>
</form>
<hr>
<form method=post action="update.jsp">
Username:<input type=text name=username><br>
Password:<input type=password name=password><br>
<input type=submit>
</form>
</BODY>
</HTML>
Maybe you are looking for
-
Intel Core Solo mini to icloud?
I have an old intel core solo mini that I just recently upgraded to snow leopard. I am confused and lost on what will happen if I sit idle on this icloud thing. I don't have an iphone or need to sync anything, but I do use my .me email account and h
-
EP 6.0 SP2: Update a HTMLB TableView after onClick Event
Hello, i generate a TableView from a JDBC database selection. Outside this TableView there are 3 Buttons. Now the problem: If one of the buttons will click, the TableView has to be updated with a new database result. Have somebody an idea, how to upd
-
Thanks to the folks here I got the development issues fixed, now I have IE problems. please see the live site: http://www.hitecsolar.com The IE bugs I've noticed so far are: The flash animation on the "How it Works" page plays fine everywhere else,
-
Secure Copy and Paste in Sandboxed mode
Hi, while working on copy-and-paste of mathematical formulae for our ActivMath learning environment, a web-based one, I, of course, chopped to the problem that sandboxes (be them in Java applets, JNLP, JavaScript, Flash, ...) refuse the access to the
-
InvocationTargetException if php file contains require/include
Issue: InvocationTargetException Error when connect to php file. Is it a bug? How to solve it? Description: There is a error message when test the php service with flashbuilder function 'Data/Service'-> TestOperation/Configure Return Type. The soluti