Class or method needed to capture the event triggered
Hi All,
Help needed in finding the event triggered in ALV container.
As per my requirement , I am registering the event mc_evt_modify for getting the search help(MEKK) in a ALV container . However it is triggered when ever I am inserting a row in ALV container and also the method data_changed is also triggered with that. But I don't want the method data_changed to be triggered.
Is there any method or class which captures the event triggered so that I can put a condition on mc_evt_modify event.
Please help me to resolve this issue.
Regards,
Srinivas
Hi,
You can check event ONF4
"1 . -------------------- first register it
DATA: it_f4 TYPE lvc_t_f4,
wa_f4 TYPE lvc_s_f4.
wa_f4-fieldname = 'CONNID'.
wa_f4-register = 'X'.
wa_f4-CHNGEAFTER = 'X'.
APPEND wa_f4 TO it_f4.
CALL METHOD g_alv_grid_ref->register_f4_for_fields
EXPORTING
it_f4 = it_f4.
"2. --------------------------- now handle it
handle_on_f4 FOR EVENT onf4 OF cl_gui_alv_grid
IMPORTING e_fieldname e_fieldvalue er_event_data,
METHOD handle_on_f4.
DATA: repid LIKE sy-repid,
dynnr LIKE sy-dynnr,
field TYPE help_info-dynprofld.
repid = sy-repid.
dynnr = sy-dynnr.
field = e_fieldname.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'SFLIGHT'
fieldname = 'CONNID'
searchhelp = "give search help here
dynpprog = repid
dynpnr = dynnr
dynprofield = field. "return picked value to the one you are in
"prevent furhter standard processing
er_event_data->m_event_handled = 'X'.
ENDMETHOD.
Regards
Marcin
Similar Messages
-
How to capture the event in driver JSplitPane
Hi all, i have some problem with the JSplitPane.
What i want to do is that:
i need to capture the event throw when the user press the button in the driver of the JSplitPane, this is because i want to know wich side of the splitpane is complet visible.
Thanks for your time!
LucaI thought I would do up an example just for fun. As you drag the splitter bar the size of the two components and the splitter component is reported to the console along with the divider location. Interestinly, on my system (Windows XP, Java 1.41_02) when you move the bar downwards the divider location is consistantly two pixels past the height of the top component but when you drag the bar upwards the divider location and the height of the top component are the same.
Does anyone have any ideas why that would be?
Here is the test app:package splitPaneMonitor;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import javax.swing.JFrame;
import javax.swing.JSplitPane;
import javax.swing.JTextArea;
public class SplitPaneFrame extends JFrame implements PropertyChangeListener {
public SplitPaneFrame() {
super ("Split pane test");
// Create the components to show in the split pane
myTopComponent = new JTextArea ("This is the top component", 10, 40);
myBottomComponent = new JTextArea ("This is the bottom component", 15, 40);
// Create the split pane
mySplitter = new JSplitPane (JSplitPane.VERTICAL_SPLIT , true, myTopComponent, myBottomComponent);
mySplitter.addPropertyChangeListener(JSplitPane.DIVIDER_LOCATION_PROPERTY, this);
getContentPane ().setLayout(new BorderLayout ());
getContentPane ().add (mySplitter, BorderLayout.CENTER);
public void propertyChange (PropertyChangeEvent evt) {
if (evt.getPropertyName () == JSplitPane.DIVIDER_LOCATION_PROPERTY) {
System.out.println ("Split pane divider moved");
Dimension size = myTopComponent.getSize ();
System.out.println (" The top component's size is: " + size.height +" h, "+ size.width + " w");
myBottomComponent.getSize (size);
System.out.println (" The bottom component's size is: " + size.height +" h, "+ size.width + " w");
mySplitter.getSize (size);
System.out.println (" The splitter's size is: " + size.height +" h, "+ size.width + " w");
System.out.println (" The splitter divider location is: " + mySplitter.getDividerLocation ());
private JTextArea myTopComponent;
private JTextArea myBottomComponent;
private JSplitPane mySplitter;
public static void main(String[] args) {
SplitPaneFrame appFrame = new SplitPaneFrame ();
appFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
appFrame.pack();
appFrame.setVisible (true);
} -
Flex automation - need to capture the mousemove
hi All,
I am creating Whiteboard application. I want to test my application through automation, but i can't capture the mousemove event.
Inside the Whiteboard i have drawing fucntionality, this functionality require the mousedown, mousemove and mouseup events. I need to capture these events.
Please help me.
- RajanI tryed that method.
This is my sample file:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"applicationComplete="init();"
>
<mx:Script>
<![CDATA[
import mx.automation.Automation;
import mx.automation.IAutomationManager;
private function init():void
bindDraw.addEventListener(MouseEvent.MOUSE_DOWN, _MouseDownHandler,
false, 0, true);}
private function _MouseDownHandler(evt:MouseEvent):void{
this.systemManager.addEventListener(MouseEvent.MOUSE_UP, _MouseUpHandler, false, 0, true);
bindDraw.addEventListener(MouseEvent.MOUSE_MOVE, _MouseMoveHanlder,
false, 0, true);
bindDraw.graphics.lineStyle(3, 0, 1);
bindDraw.graphics.moveTo(evt.localX, evt.localY);
private function _MouseMoveHanlder(evt:MouseEvent):void{
bindDraw.graphics.lineTo(evt.localX, evt.localY);
private function _MouseUpHandler(evt:MouseEvent):void{
bindDraw.graphics.clear();
this.systemManager.removeEventListener(MouseEvent.MOUSE_UP, _MouseUpHandler, false);
bindDraw.removeEventListener(MouseEvent.MOUSE_MOVE, _MouseMoveHanlder,
false);}
private var _count:Number = 0;
private function clickHandler(evt:MouseEvent):void{
evt.currentTarget.label=
"clicked "+(++_count);}
]]>
</mx:Script>
<mx:Button id="b1" label="click me" click="clickHandler(event)"/>
<mx:Canvas showInAutomationHierarchy="true" id="bindDraw" width="100%" height="100%" />
<mx:Canvas id="fff" width="100" height="100" backgroundColor="34233"/></mx:Application> -
How to capture the event in ALV grid display?
Hi experts,
How to capture the event in an ALV grid display which is editable. I have to capture the TAB key or ENTER key.
regards,
Arul Jothi.Hi Arul,
Take a look at sample program BCALV_EDIT_03. (Find string "register ENTER" in the program to see how to register)
Basically you have to Register edit events using method call REGISTER_EDIT_EVENT and then write a handler method for event DATA_CHANGED..
If you are using a REUSE..GRID fm then first get the grid reference using function module GET_GLOBALS_FROM_SLVC_FULLSCR and then repeat the above procedure..
Hope this helps..
Sri
Message was edited by: Srikanth Pinnamaneni -
Capturing the events and performing a predefined action
I want a mechanism to capture the events:
eg: If a new document is opened , I want a text frame to be created on that document as soon as it gets opened.
what interfaces, classes can help me here? andy sample code avilable which shows how to capture events?Operating System
System Model
Windows 7 Ultimate (build 7100)
Gigabyte Technology Co., Ltd. M61PME-S2P
Enclosure Type: Desktop
Processor
Main Circuit Board
2.80 gigahertz AMD Athlon X2 240
256 kilobyte primary memory cache
1024 kilobyte secondary memory cache
64-bit ready
Multi-core (2 total)
Not hyper-threaded
Board: Gigabyte Technology Co., Ltd. M61PME-S2P
Bus Clock: 200 megahertz
BIOS: Award Software International, Inc. F2 12/30/2008
Drives
Memory Modules
320.07 Gigabytes Usable Hard Drive Capacity
125.82 Gigabytes Hard Drive Free Space
TSSTcorp CDDVDW SE-S084C USB Device [Optical drive]
SAMSUNG HD321HJ SCSI Disk Device (320.07 GB) -- drive 0, s/n S13RJ90SB04688, SMART Status: Healthy
1984 Megabytes Usable Installed Memory
Slot 'A0' has 2048 MB
Slot 'A1' is Empty
Local Drive Volumes
c: (NTFS on drive 0) *
319.97 GB
125.76 GB free
d: (NTFS on drive 0)
105 MB
65 MB free
* Operating System is installed on c:
The media files are avi and are in my videos folder (videos-windows 7) -
Capturing the event!!!urgent
Hi all,
i have a checkBox on a page.My requirement is to capture the event of the CheckBox being clicked,like writing some javascript Functions like onClick.
kan anyone provide me some clarity like, is this possible.
I am being to fetch the user checked value once i caputre the event.
For time being i have created a Apply button to capture the user selection of checkBox.
The code is here
if(pageContext.getParameter("Apply")!=null)
String checkboxn = pageContext.getParameter("NoFlag");
if ("on".equals(checkboxn))
updatedCheckValue="Y";
But my client does not want any additional Buttons on the page.
So i need to captire the vent through some javascript.You don't need a javascript to do this. As Tapash mentions, you can define a fireAction on the messageCheckBox Bean and handle this event in your controller code.
Thanks, Srinath. -
XI needs to capture the form back in the mail adapter
Hi Experts,
I am working on a scenario where , data needs to be sent from SAP and in XI , a form sort of( like a web form or pdf form) needs to be created. This form needs to be emailed ( using the mail adapter ) to an outside entity. They will fill out the form and email it back. XI needs to capture the form back in the mail adapter translate it and put the data back into sap.
Can some one help me out with this ?
Regards,
HemanthikaHi patnaik
Follow these links to covert to PDf and then mailing through mail adapter
Converting Smartform into PDF and sent to EMAIL
Check this..Smartform as attachment in mail. - 46k
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/convert-smartforms-form-in-pdf-998715 - 87k
SMART form to PDF
https://wiki.sdn.sap.com/wiki/display/Snippets/ConvertSmartformtoPDFformat
smartform to MAIL
https://wiki.sdn.sap.com/wiki/display/Snippets/SmartformtoMailasPDF+attachment
regards
Sandeep sharma
If helpful kindly reward points -
Capturing the event on clicking the af:train stop icon
We are using an af:train as follows
<fnd:applicationsPanel>
<f:facet name="appsPanelTrain">
<af:panelGroupLayout layout="horizontal" halign="center"
id="panelGroupLayout2">
<af:train value="#{controllerContext.currentViewPort.taskFlowContext.trainModel}"
id="train1"/>
</af:panelGroupLayout>
</f:facet>
</fnd:applicationsPanel>
I see the train stops on top of my page as expected. I can skip the train stops by directly clicking on the stops on top of the page.
Is there a way to capture the event of this click?This should help
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/97-deferred-trainstop-navigation-1528557.pdf -
How can I capture the event of selecting a listbar page item?
Is there any way that I can capture the event of clicking/selecting a listbar page item (not just selecting the listbar page) from the listbar activeX control in TestStand 3.0?
I was able to populate the list bar page with items, now how do I know if a user selects any one of those items?
Thanks for your time and assistance,
MarkUse the CursorMoved event.
-
Can I use classes and methods for a maintenance view events?
Hello experts,
Instead of perform/form, can I instead use classes and methods, etc for a given maintenance view event, lets say for example I want to use event '01' which is before saving records in the database. Help would be greatly appreciated. Thanks a lot guys!Hi viraylab,
1. The architecture provided by maintenance view
for using EVENTS and our own code inside it -
It is provided using FORM/PERFORM
concept only.
2. At this stage,we cannot use classes.
3. However, inside the FORM routine,
we can write what ever we want.
We can aswell use any abap code, including
classes and methods.
(But this classes and methods won't have any
effect on the EVENT provided by maintenance view)
regards,
amit m. -
How to capture the event on changing focus from a JTextField?
Hi All,
I have got a problem...
I want to do something (say some sort of validations/calculations) when I change the focus by pressing tab from a JTextField. But I am not able to do that.
I tried with DocumentListener (jtf01.getDocument().addDocumentListener(this);). But in that case, it's calling the event everytime I ke-in something in the text field. But that's not what I want. I want to call that event only once, after the value is changed (user can paste a value, or even can key-in).
Is there any way for this? Is there any method (like onChange() in javascript) that can do this.
Please Help me...
Regards,
UjjalHi Michael,
I am attaching my code. Actual code is very large containing 'n' number of components and ActionListeners. I am attaching only the relevant part.
//more codes
public class PaintSplitDisplay extends JApplet implements ActionListener
JFrame jf01;
JPanel jp01;
JTextField jtf01, jtf02;
//more codes
public void start()
//more codes
jtf01 = new JTextField();
jtf01.setPreferredSize(longField);
jtf01.setFont(new Font("Courier new",0,12));
jtf01.setInputVerifier(new InputVerifier(){public boolean verify(JComponent input)
//more codes
System.out.print("updating");
jtf02.setText("updated value");
System.out.print("updated");
return true;
//more codes
jtf02 = new JTextField();
jtf02.setPreferredSize(mediumField);
jtf02.setEditable(false);
jp01.add(jtf02, gbc);
//more codes
jf01.add(jp01);
jf01.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
jf01.setVisible(true);
//more codes
public static void main(String args[])
PaintSplitDisplay psp = new PaintSplitDisplay();
psp.start();
public void actionPerformed(ActionEvent ae)
//more codes
}As you can see I want to update the second JTextField based on some calculations. That should happen when I change the focus from my frist JTextField. I have called jtf02.setText() method inside InputVerifier. But it's giving error...
Please suggest...
Ujjal -
CS02, On click of SAVE button, need to capture some event related with this
Hi,
My requirement is like,
I change the material BOM using CS02 tcode.
When, I complete the changes, and click on SAVE button, I dont find any event triggering in the system.
Can any help in capturing some event related to this?
The reason why I need this is ..during the workflow runtime, the user is presented with the workitem to change the Material BOM with CS02 tcode. And, if sometimes, by mistake, the user is unable to complete the changes of the workitem, and comes back of CS02 without change completion, then the workitem is disapperaing from the inbox, with out completing the intended task of the workitem. So I want to make the workitem appear repeatedly in the user's inbox, till the desired action is done.
ThanksSai,
You need to use a Loop..While statement by validating the decision step.
Use a varaiable to store 'Y' or 'N'.
intially, have the value as 'N' and if the required outcome is taken. Eg: Accept,Reject.. then change the value to 'Y', which will go to the next step of workflow.
if 'N', it will again create a new workitem with the same content to the same agent.
Hope this helps.
bye,
Sudhir. -
Capture the event in java : JVMMI_EVENT_OUT_OF_MEMORY
Hi,
Is it possible for a java class to be notified by the JVMMI_EVENT_OUT_OF_MEMORY ( JVMMI interface event)?
I can create a JNI shared library to capture this event, then notify the java class.
Is there a way to do it without any JNI shared lib?
Thanks a lot.
JimmyI also face that problem.Returning from Manager is Vector and vector size is over 80000 so the JSP and Excel can't load that amount of data.
How can I fix that problem -
FP.Get Image method does not capture the background image
The attached VI (8.5) demonstrates the issue nicely - the background image is not included in the image captured by the FP.Get Image method.
Workaround - don't use the background image if you want to capture the FP like this - paste your image in the background or use a picture control.
Message Edited by tst on 09-10-2008 09:20 PM
Try to take over the world!
Attachments:
Get Image without background.vi 713 KBHi tst,
Thanks for the information.This was reported to R&D (#50678) for further investigation. R&D is currently investigating this issue. We appreciate your feedback.
Regards,
Stephen S.
National Instruments
Applications Engineering -
Does anyone know how to create an ALV that captures the <b>event of checking/unchecking a checkbox</b>.
After which the selected rows will be used for custom processing.
Thank you.!Hi,
http://www.sapfans.com/forums/viewtopic.php?t=88376
http://www.sapfans.com/forums/viewtopic.php?t=40968
http://www.sapfans.com/forums/viewtopic.php?t=6919
Reward if useful!
Maybe you are looking for
-
In Address book print window opened too large for window. Unable to close
Using Address book, trying to print lables for a group, print window opened to large for window.... cannot cancel or close out.
-
OpenPS MS project file- SAP PS - error while uploading
Hello guys, I can't move the project (any project) data from MS Project to SAP PS. Why is that ? Is there any restriction for data to be changed in MS Project ? I modified only description of one WBS element. I feel like I have to program additional
-
I have configured 3 dialog processes dedicated for processing inbound IDoc. But when an IDoc is received but the 3 dialogs are still processing, it will become error for that IDoc. Are there any ways to configure the system so that the inbound IDoc i
-
Problem running business rules through forms that are 15+ mins long.
I just upgraded to 9.3.1 from 9.0.1 and we are having some issues with our business rules. We have business rules that can run up to several hours but the status on the screen ends up timing out with a 'please see planning' log error. The error in th
-
problem = always shut down when connect to the internet (both via wifi & mobile data) my problem is my phone (sony z1) regularly shut down automatically when connect to the internet (both via wifi & mobile data). it just happens after i downloaded an