Create Event in webdynpro

Hi Experts,
I'd like to create an event in java webdynpro here's the code:
(Of course I created the Model for the Sap_Wapi_Create_Event_Inputbut I didn't bind it anywhere is this a problem? )
Sap_Wapi_Create_Event_Input input = new Sap_Wapi_Create_Event_Input();
input.setObject_Type("ZHCM_ESS");
input.setObject_Key("test43");
input.setEvent("ON_CHANGE_INFO_TYPE");  
input.setCommit_Work(true);
try{
     input.execute();
     }catch(Exception e){
             e.printStackTrace();
The problem is: this code doesn't do anything. The event is not created by this RFC call. (I tried it in the ABAP side, callled this FM and the event was created)
Am I missed something?

Hi Ngastanek
You need to bind once you create the model node object for RFC.
Please refer to [Linking Remote Function Call to Web Dynpro|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/761eba66-0401-0010-b982-d5f5bd9e8f90?quicklink=index&overridelayout=true] and search on SDN for more details..
Hope it will helps
Regards
Arun Jaiswal

Similar Messages

  • Portal Eventing in Webdynpro ABAP

    Hello,
    I am trying to implement Eventing in Webdynpro ABAP using 2 components ,Com1 serving as the source component and Com2 serving as Target. In Com1 I created a Inputfield and a button ,and then tied an action to the button and called the FIRE method of the IF_WD_PORTAL_INTEGRATION and sent the value in the Inputfield as the eventing parameter.
    In Com2, i subscribed to the event in the wddoinit() method and then defined an action for the same and got the parameter value sent in the Com1 and set the value in the context attribute in the Com2 which is bound to the inputfield.
    But still the value sent in Com1 is not displayed in the Com2 Inputfield.
    Any help would be highly appreciated.
    Thanks.

    >
    SAPEPDeveloper wrote:
    > Hello,
    >
    > I am trying to implement Eventing in Webdynpro ABAP using 2 components ,Com1 serving as the source component and Com2 serving as Target. In Com1 I created a Inputfield and a button ,and then tied an action to the button and called the FIRE method of the IF_WD_PORTAL_INTEGRATION and sent the value in the Inputfield as the eventing parameter.
    >
    > In Com2, i subscribed to the event in the wddoinit() method and then defined an action for the same and got the parameter value sent in the Com1 and set the value in the context attribute in the Com2 which is bound to the inputfield.
    >
    > But still the value sent in Com1 is not displayed in the Com2 Inputfield.
    >
    > Any help would be highly appreciated.
    >
    > Thanks.
    Hi I assume the following, please correct me if my understanding is not correct.
    1.First of all you try this in Portal.
    2.The moment you fire the event, the comp-2 view is active and subscribed to the portal event.
    If the above are true then tell me if the portal eventing enter into the action ?Have you checked in bebug that your action is triggerred on portal_event ?
    If portal event is action handler is called then if you have a importing parameter portal_event_parameter then your input value should be there.

  • How to handle events in webdynpro abap

    Hi,
    can any body explain how to handle the events in webdynpro abap.
    i want to know some concepts in general.
    Thanks,

    Hi Mahesh,
    you can create event handlers under the actions tab in you view. evry event handler has an importing parameter wdevent of type ref to cl_wd_custom_event.
    you can also create events in your component controller and they can be handled within your views
    check cl_wd_custom_event class for details about what all information you get when an event occurs.
    for further details you can check out the following links
    http://help.sap.com/saphelp_nw04s/helpdata/en/eb/ed6f4169e25858e10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/a9/c751415e3b6532e10000000a1550b0/frameset.htm
    also you can try the tutorial at the following link for further clarity
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2eb11b59-0a01-0010-dfa3-8292abdf9c4f
    Regards,
    Shweta
    Message was edited by:
            Shweta R Shanbhag

  • Can not create event in workflow

    Hi Experts,
    I created a work flow. And assign a start event 'Submit' to it. This event is in oblect type Z. And when I create a document on webdynpro, i call SAP_WAPI_CREATE_EVENT to create 'SUBMIT'. The work flow is triggered.
    But when approve the doc on webdynpro call SAP_WAPI_CREATE_EVENT to create event APPROVED. It does not work.
    Why?
    Event trace message is: Event APPROVED for task WS99900001 not defined as start/end event
    The work flow is like this:
    Start event 'SUBMIT' --> STEP send mail to approver --> Wait 'APPROVED'
    Thank you in advance.
    Richard

    Hello,
    What if you try to create the APPROVE event using SWUE?
    I assume you are creating the event with the same key as for the SUBMIT event.
    As always, try SWU_OBUF.
    I've encountered that message before, never did find a reason for it. Please keep us informed how it eventually gets fixed.
    regards
    Rick Bakker
    Hanabi Technology

  • BUS2001-'created' event not triggering

    Hi experts,
    I have created workflow for project release which is using BUS2001-delegated to zbus2001. im using the " Created" event but which is not trigeering the workflow and i tried checking manually using tcode "SWUE" its triggering. i Dnt know why its triggering while creating project in Tcode:- Cj20n... is there changes need to do in SWEc for standard event..
    regards,
    Roops

    Hi Roop,
    Can you let me know y you have created a subtype and delegated? Bcs according to your scenerio you dont require any custom business object, since you are using standrad event.
    Can you let me how you are triggering this standard event and y you have configured in swec?
    swec is for change documents.
    Please elobarate the question.
    Regards,
    Vijay.

  • BSEG.CREATED event not triggering when a document is posted in FB60

    Hi All,
    I have a requirement in which i need to post documents in FB60/FB65/FB01 tcode. But when i post the document in FB60 the event BSEG.CREATED is not triggering. I could not see any trace in SWEL. But when i park the document in FB60, FIPP.CREATED event is getting triggerd.
    Can anyone tell me why this BSEG.CREATED event is not triggering.
    Thanking you in advance,
    satheesh.

    Hi Viji,
    Thanks for your quick reply.
    We have maintained the required configurations in the system related to this. But still the event BSEG.CREATED is not triggering.
    for this the alternative solution is to implement the BTE '1030'. But our functional team is asking us to check whey standard business object BSEG.CREATED is not triggering when we post a document. So that particular reason we are not able to find out.
    Configuration maintained.
    1) Created a workflow variant and assigned it to particular company code(OBWA and OBWJ).
    2) Checked the 'Posting' release' and 'Release payments' checkboxes in the OBWA transaction.
    3) Event linkage for BSEG is active.(SWETYPV)
    Thanks,
    satheesh

  • Saving photos to the web by creating events. Called the destination folder does not exist.

    Hello,
    I ask you for advice (assistance). A week ago I re-installed the PC and installed to the computer again Photoshop CS5. Everything works for me except for the function of storing images for web by creating events. Called me constantly destination folder does not exist. The problem I had before. I ask you this advice on how to solve this problem.
    Thanks for the advice

    hi,
    i don't know if i integrate your code correctly, but it doens't work for me. I presently create skin for client and this plugin is really usefull for me.
    i use win7 64bit home edition, and photoshop cs5
    there is how i integrate this :
    // EDIT ALEX GRENIER
    function getPreferencesFolder() {
         var userData = Folder.userData;
         if (!userData || !userData.exists) {
              userData = Folder("~");
         var folder = new Folder(userData + "/xtools");
         if (!folder.exists) {
              folder.create();
         return folder;
    function exportChildren(dupObj, orgObj, dupDocRef, folder) {
    if (getCSVersion() >= 10) // CS3 Only
         // Create assets folder in Flex app's directory
         // var tempFolder;
         // tempFolder = new Folder (folder + "/assets/");
         // tempFolder.create();
         // EDIT ALEX GRENIER
         var tempFolder;
         tempFolder = getPreferencesFolder();
    i put the code creating the folder in comment and put your code in place, i also put your function before the function creating file.
    With the base code (without modification) photoshop is able to create my folder assets, but when it try to export the png, it export nothing, so i have a empty folder.
    thank you,
    Alex

  • How can I view my photos in "Events" like in iPhoto? How can I create events?  I have 55,000 photos and 1700 events so the only way I can possibly manage my photos is using events that are one slide in size.

    I have 55,000 images organized into about 1700 events. The only reasonable way to view my library is using events in iPhoto where each event has one image That still leaves 1700 images to sort through but that is a lot easier than 55,000 images.  In the side bar is a folder with "iPhoto Events" but those views still show all of the slides.  How can I create events and view my photos as events as in iPhoto?  Events are critical for large libraries and has been my primary way to sort images.
    Thanks!

    I had a problem a couple of months ago when iPhotos suddenly rearranged the order of my Events (Why won't iPhoto let me arrange my photos?) .  I was told "Use albums not events - events are not a good way to organize - albums and folder are designed for organisation and are very flexible".
    Haha!  I should have paid attention and read between the lines!  My iPhotos were highly organised groupings - not according to date but the way I wanted them - and it was so easy to do!  I see now that if I had them all in albums, as per the Apple Apologist suggestion, I wouldn't have this unholy mess I have been left with just to make iPhone & iCloud users happy.  I am now going through Photos and making Albums (of what used to be in my Events)  ... maybe I'll get this finished before they do another non user friendly update!

  • ICal - problem creating events in Exchange calendar

    Hi All, this is a weird one to describe, so please bear with me...!
    My client is on Snow Leopard at the moment, so does not yet have access to iCloud (upgrading remains an option but he is in no hurry). He is, however, having a confusing time of it using iCal on his Macbook.
    He has linked iCal to his corporate Exchange account, and certainly he can view all the events within his iCal. However, when he creates a new event, it does not get created within the Exchange calendar, but rather in his local calendar, and then gets overlaid, visually, on top of the Exchange calendar. Consequently, this created event does not synchronise with his iPhone, because it is only "known about" on his local MacBook. Sorry if this sounds a little confusing, but do you guys see the problem?
    Another, minor-ish, point is that the new event he creates locally always gets colour coded in a way that he seems to have no control over. Can anyone explain how the colour coding gets determined when a new event is posted?
    To sum up then, he seems only to be able to read events in his Exchange calendar, but cannot add events in a way that they then get synced correctly.
    Paul

    I just barely had this problem.  I restarted the program and it worked.

  • How to get updated and recently created events from google calendar in pl/s

    Hello
    I am able to get Google calendar events using pl/sql..I am receiving huge xml code(if there are more events),want only update and recently created events instead of getting repeated events.please help me in this regard.
    Thanks

    From the Google Calendar API online documentation:
    "Retrieving an event again
    If you want to retrieve an event that you've retrieved before, you can improve efficiency by telling Calendar to send the event only if it has changed since the last time you retrieved it."
    http://code.google.com/apis/calendar/data/2.0/developers_guide_protocol.html#RetrievingCached

  • Ical cannot create event in month view

    iCal cannot create event in month view. Is this a bug?
    I've tried double clicking in a day as I always did but nothing.

    Ko be,
    Application UI issues are in many cases, caused by a corrupt plist file.
    Quit iCal, and try removing the com.apple.iCal.plist file from your Macintosh HD/Users/yourusername/Library/Preferences Folder. Since that Library is now hidden, you have to use the Finder>Go Menu>Depress the "Option" key>Library. Drag the .plist file to your desktop, and log out/in or restart and check iCal for functionality.
    Also read Apple iCal 5 Office Software Review | Macworld for a description of Lion iCal.

  • How to create events in iCal

    I know we can create events (like birthdays, anniversary etc.) from address book and sync it with iCal. What i want to know is how do I create an event (b'day, anniversary etc.) for a person who is not in my address book.

    Greetings,
    Create the event (just like you would any event) and set the repeat to every year and add it to the calendar of your choice:
    Hope that helps.

  • I installed ios 7 in iphone 4 - i am not able to create event in calender ,   icon is not active

    i installed ios 7 in iphone 4 - i am not able to create event in calender ,   icon is not active

    You will have to upgrade your operating system version and possibly your whole computer.  We cannot provide more information easily until we know more about your system.
    Get more information about your computer. Go to the Apple in the upper left corner of any window, then "About This Mac", then "More Info..."  Copy and paste the information here, but omit the serial number and Hardware UUID (if present).
    Apple does tell you about required equipment for the iPhone -- in 8 point medium gray type on a light gray box.   The Store associates kind of automatically assume everybody is running a new model computer and the one I met when we bought our iPhone had never seen a pre-2008 Mac and was somewhat puzzled why anybody would own such an antique.

  • How can I get the soundcard to create event markers on voltage acquisition

    Hello,
    I'm new to Labview and I'm required to create a program that can acquire a voltage..  sounds simple.. the difficult part is that it needs to be able to create event markers on the data to indicate that a sound has occurred.  
    If I could somehow route the audio input to the trigger channel of my NI DAQcard6024E and set the threshold level it would work, but I can't find a way to do this.
    To put it in a real-life scenario... what is happening is that I'm acquiring EEG (brainwave) voltages whilst presenting a series of auditory 'clicks'.  We want to examine the changes in EEG that occur in response to these clicks.  So I need to have some way of establishing exactly when the sounds were presented on the EEG data.
    Hope somebody can help  At the moment my VI can acquire voltage data continuously and write the files to excel, but I can't work out how to create event markers for when the stimulus occurred.
    Thanks
    Shane 

    I still think it should be possible to make a breakout cable. But I guess the person responsible for the Lab is not a technical person. Or he/she is more concerned about the equipment than the student projects. That is quite common among such personal.
    I am also reading you are using a sound card for acquiring EEG. That is a very big NO-NO. This because sound cards are AC coupled. And this will limit the lower bandwidth to about 10Hz. So signals below about 10Hz is filtered out. EEG require a bandwidth from about 0.5Hz to 100Hz.
    Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
    (Sorry no Labview "brag list" so far)

  • Help me I'm trying to create event listeners

    I am trying to create event listeners
    Whenever any keyboard event occurs the string s gets appended by a,c
    or p.At the end of the program its supposed to print value of s
    But s always happens to null.Please tell me how to correct it....so
    that detection is possible for any case
    import java.io.*;
    import java.awt.event.*;
    public class trial {
    int x;
    public static String s;
    //OutputStream f1=new FileOutputStream("file2.txt");
    public static void keyReleased(KeyEvent e)
    s=s+"a";
    public static void keyPressed(KeyEvent e)
    s=s+"c";
    public static void keyTyped(KeyEvent e)
    s=s+"p";
    public static void main(String args[])
    throws IOException
    char c;
    BufferedReader br =new BufferedReader(new
    InputStreamReader(System.in));
    System.out.println("Entercharactes,'q' to quit.");
    do
    c=(char)br.read();
    System.out.println(c);
    while(c!='q');
    // for(int i=0;i<s.length();++i)
    System.out.println(s);

    I suggest looking at the java tutorial. Your code completely misses the mark and you need to see examples.

Maybe you are looking for