Unable to capture Action_Success event during update

Hi I am using SAP-B1 2004. Using UIAPI, i am trying to do something when an item information in item master is updated.
On update button click i am capturing the Before_Action =True event to do something. If the Item information is successfully updated, i am trying to capture Action_Success = True event to do something.
The problem i am encountering is that, the Action_Success event is not getting fired.
After Before_Action =True , Before_Action =false event is getting fired and after that the item uid value changes from 1 (for update button) to some other value.
Any idea why this is happening? My code is as follows:
If pVal.FormType = 150 And pVal.FormMode = 2 Then
   If pVal.ItemUID = "1" And pVal.EventType =   
       et_ITEM_PRESSED And pVal.Before_Action = True Then
       **Do Something***
   End If
   If pVal.ItemUID = "1" And pVal.EventType = 
       et_ITEM_PRESSED And pVal.Action_Success = True Then
       **Do Something***
   End If
   If pVal.ItemUID = "1" And pVal.EventType = 
      et_ITEM_PRESSED And pVal.Action_Success = false Then
       **Do Something***           
   End If
End If
Thanks.

Just change the second condition from
If pVal.ItemUID = "1" And pVal.EventType =
et_ITEM_PRESSED And pVal.Action_Success = True Then
to
If pVal.ItemUID = "1" And pVal.EventType =
et_ITEM_PRESSED And pVal.BeforeAction = false Then
and forget ActionSuccess.
If there is an error in between, the "et_ITEM_PRESSED pVal.BeforeAction = false" is not sent. This means, whenever you get the event "et_ITEM_PRESSED pVal.BeforeAction = false", the action actually was successful.
You may want to test it with following proof-snippet:
If pVal.FormType = 150 And pVal.FormMode = fm_UPDATE_MODE Then
    If pVal.ItemUID = "1" And pVal.EventType = _
        et_ITEM_PRESSED And pVal.Before_Action = True Then
        Debug.Print "before"
    End If
    If pVal.ItemUID = "1" And pVal.EventType = _
        et_ITEM_PRESSED And pVal.Before_Action = False Then
        Debug.Print "after"
    End If
    If pVal.ItemUID = "1" And pVal.EventType = _
        et_ITEM_PRESSED And pVal.Action_Success = True Then
        Debug.Print "success"
    End If
    If pVal.ItemUID = "1" And pVal.EventType = _
        et_ITEM_PRESSED And pVal.Action_Success = False Then
        Debug.Print "no success"
    End If
End If
Case 1: Update successful
Output: before, after, no success
Case 1: Update fails
Output: before, no success
Means: forget ActionSuccess, use BeforeAction true/false.
(That's how solved the problem did it when I encountered the same problem.)
Problem is, you're not able to to something if there was an error. But why would you want to? User sees a red error message and tryes again...
Florian
Message was edited by: Florian Zeller

Similar Messages

  • Capturing KFF Event to update fields.

    Hi,
    I have created a custom OAF page with an advanced table.
    I am trying to capture the event when the Chart of accounts KFF is invoked and updates the ccid column as I then have to update an additional few fields when this is updated as part of selecting the charge code from the CCID.
    so far I acannot seem to get an event to fire either after the CCID is populated or when the KFF is finished.
    Does any one have any suggestions?
    Thanks,
    P

    not in this case.
    KFF Actions appear to be operating on a different level.
    I had that code in there, but it never fired anything, there is never an event when a KFF was fired.
    I have a code combination field in a table, so when the code combination is selected, I want to fire off some post actions to update the table row.
    The charge code KFF field works correctly, but I cannot seem to get hold of an event at all to complete my post processing to update information such as description of share codes etc.
    Surely someone has had to work with this???
    Edited by: pburke on 27/02/2012 17:01

  • Unable to capture button event in pageLayout Controller

    Hi Guys,
    I have the following layout
    pageLayout
    pageLayoutCO (controller)
    ----header (Region)
    ----------messageComponentLayout (Region)
    -----------------MessageLovInpurt
    -----------------MessageChoice(Item)
    -----------------MessageTextInput
    -----------------MessageLayout
    ----------HideShow (Region)
    -----------------MessageLovInpurt(Item)
    -----------------MessageChoice(Item)
    -----------------MessageTextInput(Item)
    -----------MessageComponentLayout (Region)
    -----------------MessageLayout
    ------------------------SubmitButton(ID:SearchBtn)
    ------------------------SubmitButton(ID:ClearBtn, fires partial action named clear)
    -----------header(Region)
    I am not able to capture the event fired by the button ClearBtn in the controller of the pagelayout.....
    The two methods I used as follows aren't worked:
    if ("clear".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    if (pageContext.getParameter("ClearBtn") != null) {
    what should i do in order to capture the button event in the pageLayout Controller
    Thanks in advance
    Mandy
    Edited by: user8898100 on 2011-8-2 上午7:49

    Mandy,
    Its really strange that its not able to caputure the event in CO.
    Below is the way in which we handle to Submit action at CO level.
    /Check whether ClearBtn is same in case too.
    if(pageContext.getParameter("ClearBtn")!=null){
    System.out.println("Inside the Clear Btn Action");
    Regards,
    Gyan

  • Unable to capture onClick event of htmlb:image in a controller

    Hi,
    I am trying to capture onClick event of an htmlb:image (which is present in my view) in DO_HANDLE_EVENT method of my controller.
    Surprisingly, when I click the image, page does refreshes. But the event in not captured in do_handle_event method. Control never reaches that method. Whereas if I put onClick event of a button, it is easily captured in do_handle_event method.
    Ex. code in my view is:
    <%@page language="abap"%>
    <%@extension name="bsp" prefix="bsp" %>
    <%@extension name="htmlb" prefix="htmlb"%>
        <htmlb:image id      = "searchimg"
                     src     = "consvalue.jpg"
                     onClick = "search"  />
        <htmlb:button id="searchbutton" onClick="search"
                                     text="Event Test"/>
    Now, the button event is captured, but not the image event.
    Any idea why this might be happening?
    Regards,
    Kaushal

    Hi Kaushal,
    are image and button enclosed by <htmlb:form> ?
    Please post your of do_handle_event, where you look for the event.
    Regards,
    Sebastian

  • Unable to capture the D4OSESSION during LOAD testing??

    Hi,
    Summary:
    ---------- I am doing the performance testing of the 50 concurrent users using one of the third party load test tool.But that tool is not able to capture the opening workbook sessions.
    Detail
    ----------- Normally when I open a D4O session in the URL from the client machine in the database I saw the 3 sessions in v$session table.
    2 sessions from Application Server.
    1 Session from client machine.
    the protocol that I used to open the D4OSession is HTTP
    When I Choose any workbook from the opened d4osession in the V$session table the session from the client machine status becomes active.
    so for the single d4o session oracle opening 3 session in the database.
    Under this calculation I try to record the session for the performance testing using one of the third party tool called QA LOAD. I am unable to record all the 3 session,
    I am able to record the application server sessions only ie.2 session ,but I am unable to record the session from Client machine.(User session is coming only when I opens the workbook)
    I am not able to understand why the tool is not able understand d4osession protocol??
    What could be the problem. Why I am not able to capture the d4osession when I opens the workbook.???? . Without using the tool I can able to see the all 3 sessions.
    Actually the goal is to do a performance testing for 50 concurrent users.Its very difficult to do performance testing without a performance test tool...
    Normally this tool can understand all kind of javabased application,Microsoft applications but I am not sure why it won't understand part of the d4osessions???
    Even when I ry to capture this opening workbook session using winsock protocol also...but no luck!!!!.
    Any advice/ Idea....Please post it !!!!
    Eg: ---------------
    Details of the d4o session
    ---------------------------- d4osession user : user1
    Workbook name : workbook1
    URL : http://applicationserver:7778/discoverer/plus?us=user1&lm=olap......
    Browser : Internet Explorer 6.0
    Database : Oracle 10G
    Discoverer plus for olap : 10.1.2.48
    Load Test tool : QA LOAD
    Database OS : Linux
    Application Server OS : Windows.
    Thanks,
    Nats

    Hi keerthi,
    1. I have pasted the code for the first issue
    web
                             .button(
                                       122,
                                       "/web:window[@index='0' or @title='Manage Network Targets - Oracle Communications Order and Service Management - Order and Service Management']/web:document[@index='0' or @name='1824fhkchs_6']/web:form[@id='pt1:_UISform1' or @name='pt1:_UISform1' or @index='0']/web:button[@id='pt1:MA:0:n1:1:pt1:qryId1::search' or @value='Search' or @index='3']")
                             .click();
                        adf
                        .table(
                                  "/web:window[@index='0' or @title='Manage Network Targets - Oracle Communications Order and Service Management - Order and Service Management']/web:document[@index='0' or @name='1c9nk1ryzv_6']/web:ADFTable[@absoluteLocator='pt1:MA:n1:pt1:pnlcltn:resId1']")
                        .columnSort("Ascending", "Name" );
         }

  • Unable to capture startup and shutdown event of Photoshop in automation Plugin.

    Hi,
    I am creating an automation plugin and I want to register some events. I have seen listener plugin sample to register event in startup and unregister event in shutdown. I have used same code in my plugin but I am unable to capture the startup nad shutdown event of Photoshop. On clicking the menu item of my plugin the calls come inside the AutoPluginMain but during the startup or shutdown of plugin, the calls does not come inside the AutoPluginMain.
    I am unable to detect the cause of the problem. Can someone please giude me??
    Thanks in advance.

    Hi Tom,
    Thanks for the suggestion.
    Yes, I am working on Windows. As you suggested, I compiled .rc file but the compile option for .r file was disabled. After compiling the .rc file, I again rebuild the complete project and tested my build. But still I was not able to achive the desired result.
    Any other thing that I need to do to make it work?
    Thanks

  • Unable to capture Exchange Mailbox Auditing events for email creation

    We are looking to capture Owner mailbox auditing events using the native Exchange 2013 auditing tools (Search-MailboxAuditLog). I have auditing enabled with all actions for Owner, and capture items performed via Outlook, except for new emails created.
    If I create new emails via OWA, I am able to capture the event, but as soon as I go back to Outlook and create a new message, I don’t see anything audited. I also tried this is our Dev environment and seeing the same behavior. Has anyone else experience this
    behavior?

    Hi,
    I have a test in my environment. If I create a message on Outlook as a owner, the mailbox audit logging can't record it.
    If I create a message on Outlook as a delegate, when using the Search-MailboxAuditLog cmdlet to search the audit log, it will be displayed as follows:
    The operation is "SendAs", not "Create".
    Hope this can be helpful to you.
    Best regards,
    If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Amy Wang
    TechNet Community Support

  • 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.
    Thanks

    Sai,
    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.

  • Unable to capture user comments and responder in RESPOND API

    We are building a custom application that uses Oracle Workflow underneath. The application users and responsibilities have been integrated into Workflow. Notifications are acknowledged and responded to directly from the application using the PL/SQL Notification APIs.
    When using the wf_notification.respond API with the appropriate user and comment information filled in, we are still unable to capture the responder information as well as the reponders comments. In other words, the RESPONDER and USER_COMMENT fields in the WF_NOTIFICATION is blank. However, the response does seem to go through otherwise. Do we need to set some kind of user context outside of just setting the response attributes and calling the respond API? Following is the code....
    owf_mgr.wf_notification.setattrtext(p_nid,
                   'RESULT'          ,
                   'APPROVED');
    -- This procedure then caused the WF to advance to next step
    -- Respond to notification, depends on RESULT setattrtext above
    owf_mgr.wf_notification.respond(     p_nid, -- notification id     
         p_respond_comment,     -- response_comment
    p_responder     );     --responder role
    Any help is greatly appreciated.
    Thanks,
    Raj

    If you are on 11.5.10 or greater or standalone 2.6.4 if you pass the responder value to wf_notification.respond API it should be updated in wf_notifications.responder column. The comments is now updated in wf_comments table against the notification id and not wf_notifications.user_comment column.
    Thanks, Vijay

  • Unable to capture the adf table column sort icons using open script tool

    Hi All,
    I am new to OATS and I am trying to create script for testing ADF application using open script tool. I face issues in recording two events.
    1. I am unable to record the event of clicking adf table column sort icons that exist on the column header. I tried to use the capture tool, but that couldn't help me.
    2. The second issue is I am unable to capture the panel header text. The component can be identified but I was not able to identify the supporting attribute for the header text.

    Hi keerthi,
    1. I have pasted the code for the first issue
    web
                             .button(
                                       122,
                                       "/web:window[@index='0' or @title='Manage Network Targets - Oracle Communications Order and Service Management - Order and Service Management']/web:document[@index='0' or @name='1824fhkchs_6']/web:form[@id='pt1:_UISform1' or @name='pt1:_UISform1' or @index='0']/web:button[@id='pt1:MA:0:n1:1:pt1:qryId1::search' or @value='Search' or @index='3']")
                             .click();
                        adf
                        .table(
                                  "/web:window[@index='0' or @title='Manage Network Targets - Oracle Communications Order and Service Management - Order and Service Management']/web:document[@index='0' or @name='1c9nk1ryzv_6']/web:ADFTable[@absoluteLocator='pt1:MA:n1:pt1:pnlcltn:resId1']")
                        .columnSort("Ascending", "Name" );
         }

  • Unable to Capture Video PE 3.0

    I'm using Premier Elements 3.0 and am unable to capture a video from my DV camera. I have reviewed all the instructions that might relate to the problem and have re installed the program. When I go to capture a video, in the top left of the screen indicates "Capture device off line" however I can start and stop my camera with the buttons on the capture screen. The get video button is not active. It will not download. Again if run through the start up instruction with no results.  The program use to work fine but I have not used it in a while. Any suggestions?

    A couple of questions:
    Do you have the 3.0.2 update?
    What make/model of camera?
    Does Windows give you the "bing-bong" sound, when you have the camera plugged-in via FireWire and you turn it on?
    What mode does the camera's manual tell you to set the camera in, for capture?
    Good luck,
    Hunt

  • Unable to Capture - Live Cam Voice - HELP!

    Suddenly I cannot capture anymore - I can still take images, but when I click to record I get the following message:Unable to capture video. Please check that you have sufficient space on your hard drive and the following are setup correctlyVideo CompressorAudio CompressorI certainly have enough hard drive space. I uninstalled and reinstalled all the software and even then updated the drivers. Nothing seems to work.
    All advice much appreciated. Thanks Giuseppe

    Thanks! Messed around and seems I can no longer record in MWV format but its back working in AVI format...with no compression. I can then edit after if required. Thanks for coming back to me on this one..it is a Great Help when people respond! Regards Giuseppe

  • Unable to capture with FCP5

    With correct connexions and I-link OK, FCP is unable to capture DV with the
    camera either with recorder. I,ve the text (in french) :
    "Périphériques suivants sont introuvables
    Apple Firewire PAL (720x576) .... "
    The capture is OK using a Mc-Book with 10.4.7 OSX , but not with the G5. I ve verify QT is version 7.
    All programms have been updated and still the images not captured, but only
    the mechanical commands such "play, FFW, stop... "
    How can I make the Camcorder, or the DVR recognized with FCP ?
    Thanks for an help.

    Hey everyone. Thanks for all the troubleshooting. Getting close to identifying the problem.
    I brought the deck home with me to try it out on my personal MacBook Pro system. Same problem. the tape would play back, you could control the deck, but it would not import.
    David brought up the tape itself, which, logically, I hadn't even thought of. So I threw in a completely different tape and voila! No problems. Was able to control the deck, view the video on my Mac's display (finally!) and yes, capture video to disk.
    Just to make sure the deck wasn't being screwy, I tested both the original tape and the other on my personal miniDV camera and yielded the same results. Except when playing back the original, video wouldn't even display on the camera's LCD screen..
    In short:
    There has to be something funky with this tape that they gave us. We will probably ship it to another post house and see if they can get it to work out on a different deck. When I return to the office, I will try the other tape just to confirm there's nothing wrong with our Mac Pro system there..
    Thank you all for you troubleshooting wisdom. I owe you all one.

  • FCP unable to Capture Canon GL2

    Hello -
    My system is noted below. Final Cut Pro is updated to 6.0.4.
    I am unable to capture the video using Canon's GL2 using the current version of FCP. I believe that I have everything configured correctly because I am able to capture audio and video using my father's JVC GR-DV800U video camera. Actually that particular JVC camera seems to work quite well with FCP. But not Canon's GL2. I am able to control camera's Rewind, Fast Forward, Play, etc. So I know that some communication is taking place. However, no picture is present within FCP; no capture either. Instead, I get that dreaded beach ball wheel.
    I believe the FCP settings are correct: Under "Audio/Video" settings, the audio is set to MOTU's 424 (for the 2408 MK3); the DV Capture Preset (and the Sequence) is set to "DV NTSC 48 khz"; Video Playback is set for"Digital Cinema Desktop Preview - Main" with the audio playback set (again) to MOTU's 424 card.
    I am attempting to capture the video to an external hard disk drive using the Mac Pro's firewire port located in the back of the computer. Again, this all works using my father's JVC video recorder.
    *Given the computer setting and operating system, is this a known issue between the FCP and the GL2??* My GL2 is an older video camera. I purchased it quite a few years ago. *It seems like the GL2 may be the culprit. Yes? No?*
    I'm very new to FCP. My background is with SONY's Vegas program (currently I'm up to version 8). Been using the Vegas program for years. My Dell Workstation, unfortunately, is old; it definitely is showing signs of aging. So, to make a long story short, I've decided to invest time and money in a Mac Pro (I use it primarily for music sequencing using the Logic Pro program which I love!) Now I want to learn how to use the FCP which I purchased several months ago. Not being able to have FCP communicate with the GL2 is a minor significance for me, though. I'm in no financial place to purchase a new camera at this time. Luckily, I usually record the video using Focus Enhancement's FS4-Pro with the GL2. So I am not totally dependent on having FCP and the GL2 work together. *Thankfully, the FS4-Pro DOES works well with FCP!!* Too bad I didn't use the FS4-Pro today. Wish I did. UGH
    Could there be a work around in getting the GL2 to communicate properly with FCP??
    Thank you in advance for your thoughtful insights and suggestions.
    Regards,
    Ted Fiebke

    Not all Canon cameras have connection issues, but hanging around this site I've come to recognize their ability to connect in FCP is the most problematic of all the camera brands. If you have a Canon camcorder, and can not get it to connect up with FCP, the following is a way to sort through the issues and get it to work. Some are elegant - some are ugly.
    Before we go any farther
    • You should be using 'Firewire Basic' as the control protocol. If you aren't, go change it and try again.
    • Also, verify that you have a solid installation of Quicktime. You may want to reinstall it using the 'delete receipts' method.
    With some confidence that the software installation and camera settings are correct ... the most direct solution is to purchase another, non-Canon device to use as your capturing machine. The (now discontinued) Sony DSR-11 is highly recommended for DV work. A deck will save wear and tear on the camera's lightweight drive mechanism and will allow you to permanently connect a NTSC/PAL monitor for proper viewing. If you are working with HDV, you may have other issues ...
    Beyond that, the path you take depends on the model of computer you own.
    1. If you have a G5 tower or a MacPro, capture to a second internal drive with only the camera attached. If you need to move material to firewire drive, disconnect the camera. A second internal drive is quite inexpensive these days if you do not already have one.
    2. If you have a G5 tower (PCI) MacPro (PCI), G4 powerbook (PCMCIA) or MacBookPro (Expresscard 43) with an available slot, purchase the appropriate firewire card for the slot. Connect your camera to the card and you should be good to go. The new card creates a unique bus and will avoid collisions with the external drives.
    3. If you do not have a slot or a second internal drive and you are stuck with the camera, welcome to the camera/drive shuffle.
    • shut down and remove the external hard drive(s) from the system
    • connect the camera directly to the firewire port of the computer
    • start the camera then the computer
    • capture to your internal (system) hard drive
    • shut down the camera and computer
    • disconnect the camera and reconnect the external hard drive(s)
    • start hard drive(s) and computer
    • move captured files to external hard drive(s)
    • edit
    If you output back to tape or wish to view your work on an external Video (NTSC or PAL) monitor, you need to set up the camera to use the firewire out as the A/DV converter or VTR - which means reversing the steps:
    • copy the file back to the internal drive
    • shut everything down
    • disconnect the external drive(s)
    • connect the camera to the firewire port (and the TV to the camera if needed)
    • start the camera then the computer
    • play the file.
    One caveat here - You may have difficulty getting the file back to tape without dropping frames. Playing files off of the system drive is very demanding and they may have a hard time keeping up.
    All in all, if you do not have the option for second bus (i.e. iMacs, eMacs, iBooks, MacBooks) you may want to think about a computer with expandable options next time.
    There is the option of capturing using iMovie, but that brings on it's own set of problems and is not recommended.
    Good luck.
    x

  • Help! Unable to capture video.

    I can still take images, but when I click to record I get the following message:Unable to capture video. Please check that you have sufficient space on your hard dri've and the following are setup correctlyVideo CompressorAudio CompressorI certainly have enough hard drive space...44G available. I am a first time user so I need detailed instructions on how to solve this problem. Thanks.

    Model is Creative Live!Cam Voice...all updates performed.
    Thanks.

Maybe you are looking for

  • JAXB - ComplexType validation

    Hi, this is my first post here. I use JWSPD 1.6 to validate my XML scheme and to bind it. I have an application that build XML document in a certain manner, depending on a check on the binded schema. My question is: How can I use external API class f

  • How do I get the voice-over in timeline to work.

    I moved the "R" and "microphone" buttons to the audio track, nothing happens when I click the buttons (the "R" is suppose to turn red). My USB microphone appears in audio hardware and is selected in System Prefs. Using Premier Pro 8.1 on new MacPro

  • Display page number in page footer

    i want to displaypage numbers i nthe report footer. anybody tell me how can i get the page number in the report foolter for every page?

  • HRHAP00_ADD_HEADER Badi implementation

    Hi, My requirement is to implement the standard BADI 'HRHAP00_ADD_HEADER' for bringing additional fields 'PERNR' and 'PLANS' (text) along with the fields (ORGEH, PERSA, BTRTL, PERSG, PERSK) which are automatically displayed in the appraisal template.

  • Multpile inits being called in Servlet

    I am trying to create one thread which will be executed once Jakarta-Tomcat begins execution. To do this I have the following code: web.xml   <servlet>     <servlet-name>initializecontroller</servlet-name>     <servlet-class>roverlook.InitializeContr