WebDynpro ABAP - inter session events possible?

Hi Experts,
I have a ABAP-WebDynpro application with various tabstrips to show and maintain process data within a production process. Each tabstrip contains several data of a specific process step. At the beginning, very few data are already present. While production progresses, chemical analysis is being taken and machine data is gathered. Assoon as new data for the process step is available, a refresh should be performed.
Though not perfect in every aspect, we made this scenario work in a similar way in ABAP Dynpro by using inter session eventing (ISE). Is there a possibility to trigger events in WebDynpro cross-session - for example after adding data to the database?
Best regards
Jens

There is no real cross session eventing available in Web Dynpro.  The problem is two fold. First, UI updates can't be initiated by the server in HTTP (unlike the SAPGUI which does have a push mechanism to the client).  This is a current limitaiton of HTTP itself and not something Web Dynpro related.  So to trigger the phase model of Web Dynpro, something must occur on the client to trigger the server event.  In NetWeaver 7.0 and 7.01 you have to use the timedTrigger UI element to acomplish this:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/da/a6884121a41c09e10000000a155106/frameset.htm
You then generally used a shared memory object (or even temporary database entries) to communicate data or events between to different processes.  For instance a background job is running and places it status in a shared memory object attribute.  The Web Dynpro can then fire a TimedTrigger every minute to check the value of this shared memory object attribute.
In NetWeaver 7.02 we improve this process with a new capability called the Web Dynpro Notification Service.  Instead of the timedTrigger, we can simulate a push of data/events to the client using AJAX.  We open an secondary server request to the ICM to check the status of an event. That way we don't have to disrupt the client side activity or incurre the full Web Dynpro Phase Model until we know a change in the status of our event has occured.  Also since the status info is stored in the ICM Cache, you don't even have to fall into an ABAP Workprocess to check the status.

Similar Messages

  • WebDynpro ABAP "on change event"

    Dear Experts,
    we are using a WebDynpro application (ABAP-Stack) and there are two
    inputfields included. My question is:
    First we did some input into the first field and than we navigate to the second one.
    Is it possible to delete the input of the first field when we do some input into the second one?
    Maybe we need something like an "on change event" but in WebDynpro there is no
    methodtype like that and no way to edit the generated HTML- or JavaScript-Code.
    Best regards,
    Henrik Pollmann

    Hi
    Just look at this Thread discuss the same on change event may get some help
    Re: on change event
    on change event
    Regards
    Abhishek
    Edited by: Abhishek Agrahari on Jan 15, 2009 5:36 AM

  • ECC6.0 WebDynpro(ABAP) - raising terminating event

    Hi, in ECC6.0 I have a custom WDA application with a custom workflow.  The workflow is launched via an event that is raised in the WDA application.  However, at one point workflow sends a link to one of the WDA pages, whereby the user clicks a button which raises what should be a terminating event for the workflow task.  However, while this event is raised, as confirmed in SWEL, it doesn't terminate the task.  The event is raised through a WDA assistance class.  The object type, event and object key are all being set properly during the raising of the event.  Viewing the event in SWEL confirms the proper setting of the key fields.  So why isn't the step terminating?
    Thanks in advance,
    Kevin

    Hi,
    If the object that is waiting for event has no instance, the task will not be terminated when the event is created in the system (As I said). So now the reason is clear for you.
    >The event is raised through a WDA assistance class
    I am not sure what you mean by this. You raise the event from the WDA assistance class? Or you raise an event for the assistance class? (Or perhaps both?).
    If you raise the event for the assistance class, you should have an instance of that class in the workflow container (which you would then bind from workflow container to the task container). So, now the question is: do you have an instance of the assistance class in the WF container (when you look it from log)? Or is it initial also?
    Actually I don't really even understand how you have managed to combine the WDA assistance class and WF class? How do you actually start the workflow (with which kind of event)? Whatever event it is, it should most likely instantiate some class/object in the workflow. Then in your problematic task you should most likely use this same class in the terminating event (unless there is something really fancy in your workflow).
    Regards,
    Karri

  • PCUI - portal event - webDynpro Abap

    Hello,
    From standard PCUI, which used to create partner, I want to get a value partner and send it to a view that content Webdynpro Abap through portal Event.
    Is it possible? How?
    Thanks.

    Hello,
    Could you please clarify your question?
    Thanks and Regards
    Francisco

  • Error when Interative Adobe Form is called from Webdynpro ABAP.

    Hi Experts,
    I trying to call a Interactive adobe form from ABAP Webdynpro application but I am facing the below error.
    Line: -
    The following error text was processed in the system GJD : User session (HTTP/SMTP/..) closed after timeout
    The error occurred on the application server az18u021_GJD_01 and in the work process 0 .
    The termination type was: ERROR_MESSAGE_STATE
    The ABAP call stack was:
    Method: PREPROCESS_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    Line: -
    When I uncheck the enabled property of the Interactive From in the Page of the WebDynpro I am able to execute the application successfully.But the Adobe form behaves as a Static Form when I uncheck the enabled property.
    So kindly provide your valuable suggestions to avoid the above error when I am calling a Interactive adobe form from Webdynpro ABAP.
    Thanks in Advance.
    Regards,
    Arun.

    Hello,
    Hello, are you sure you have your ADS credentials configured correctly and valid? I guess you know that is the only difference between clicking enabled on true or false. If you are not sure, you can use SE38, search for FP_* and pick some reports to check the licencing. The names of the reports are good enough to recognize the right one.
    Or maybe that is a security problem? Have you checked the ADS_ERROR string? Did you use the ADS trace?
    check: http://help.sap.com/saphelp_nw70/helpdata/en/2c/241a427ff6db2ce10000000a1550b0/content.htm
    and especially note 999998
    Regards, Otto

  • OnSelect event for a Drop down UI Element in Webdynpro ABAP Select Options

    Hi Experts
    We have built our UI based on the webdynpro ABAP Select Options. We have a requirement that, when we change the value of a drop down box in the UI, I need to hide some fields. Can anybody help me out in handling of OnSelect event of a drop down box built using webdynpro ABAP Select Options. We are on SAP Netweaver 7.0 EHP1.
    Rrgards,
    Srikanth.
    Edited by: Srikanth Kancherla on Apr 29, 2010 10:43 PM

    Hi Srikanth,
    as you seem to be already aware, the component is dynamically built.
    so you would have to enhance the code that builds the element and insert a reference to a new action (enhancement) that could handle the onSelect event.
    What is it about this that you particularly want help with?
    Cheers,
    Chris

  • How to refresh interal table in Webdynpro ABAP

    Hi all,
    I want to delete/free/refresh interal table in webdynpro abap.
    One of the form gave solution to pass blank internal table?
    I cleared node and itab in webdynpro, but internally SAP doesn't delete the context node and itab values.
    Please help me in how to refresh itab in webdynpro abap.
    Regards,
    Prasad

    Hi Srinivas,
    it doesn't work.
    I wrote like this in action list method.
    method lta_task.
    if not lcontext_node_task is intial.
    context_node_task->invalidate().
    endif.
    select.......
    populate data into internal table lt_task_output_table .
    if not lt_task_output_table  is inital.
        context_node_task = wd_context->get_child_node( name = 'TASK_PER').
        context_node_task->bind_table( wd_this->lt_task_output_table ).
    endif.
    endmethod.
    Starting of the mehod i have written to inavlidate, before upating the itab
    but donesn;t work. Where should I write the code
    Reagards,
    Prasad

  • 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

  • Javascript server events in webdynpro ABAP

    I am migrating an existing BSP application to webdynpro abap. Few of sections, in existing BSP application, uses java script coding to trigger few server events. For example it uses a flash charts on click of which some filtering logic is written on table. Similar logic needs to be placed for webdynpro. I used Iframe to display this charts. Charts are rendered properly but I am not able to raise the actions or trigger events on server as I don’t have access to parent.document object of my parent view.
    I get access denied/ permission denied error.
    Can’t we trigger server action or event using JavaScript from child IFrame.
    With Regards,
    Nitesh Shelar.

    Hi Nitesh,
    Integrating custom java script is not supported. There are still a few benefits BSP has over WDA. Well, you could put the flash object inside of a BSP application and use portal eventing to communicate with WDA.
    Best regards,
    Thomas

  • Jnet events in Webdynpro ABAP

    Hi ,
    I am urgently looking for the demo WD project in Webdynpro ABAP which demonstrate use of the different events for JNet for example :: CELLS_SELECTED , ROW_SELECTED , NODE_SELECTED .

    Hi Nitesh,
    Integrating custom java script is not supported. There are still a few benefits BSP has over WDA. Well, you could put the flash object inside of a BSP application and use portal eventing to communicate with WDA.
    Best regards,
    Thomas

  • ABAP WebDynpro: Handling the ON_ENTER Event in editable ALVs

    Sub: ABAP WebDynpro : Handling the ON_ENTER Event in editable ALVs
    Hi,
    I would like to know if there exists an event to handle TABout (i.e, when user navigates out of the cell with a TAB key-press) for a cell of an editable ALV.
    Alternatively, any help on how to handle ON_ENTER event and how it is triggered when data is entered by user into a cell of an editable ALV, would be really appreciated.
    Thanks,
    Adithya

    Hi
    I had one similar problem where user enter something into the editable cell and press enter. to handle this scenario i used WDDOBEFOREACTION  method of my view to call alv interface method check_data.
    if there is any change in the any table cell, it will fire an event on_data_check..which has paramater column name, row index and new and old value of the cell.
    you can handle this event and write your business logic in event handler method.
    hope it will help
    Regards
    Saurabh Garg

  • Webdynpro ABAP/Portal. Plugin HTTP connection issue on WaitingEventQueue.js

    Hello,
    We are experiencing a strange Portal Behavior with our Webdynpros. Our portal contains several iViews including some Webdynpro (ABAP) and some reporting transaction calls that use SAPgui for HTML.
    When portal is called for the first time and a user logs in, two connections of type RFC can be seen for that user in SM04 in our ERP system. All iViews work as expected. For example, calling the Time Management webdynpro closes one of the RFC connections and starts a new Pluguin HTTP connection. We can go back and forth between the welcome page and this Webdynpro with no issues.
    If we then select one of the reporting transaction codes, the portal launches the SAPGUI for HTML. Report retrieves and shows data, and then we close using the "Exit" button provided by the sapgui for HTML
    Next we try again to launch any webdynpro (abap), but SM04 shows that the new Plugin HTTP session gets stuck and spinning mid way, and will stay there. Refreshing the Portal screen with F8, navigating back and forth, logging off and on again has no effect. The webdynpros will not launch again. Only webdynpros are affected, any of the reporting transactions can be called successfully over and over.
    We have figured that deleting Temporary Internet files (we are using IE 7), and in particular by just deleting the WaitingEventQueue.js?XXXXXXXXXXX file, the system will break away from the spin loop and show the webdynpro again, but eventually it will get stuck again, and asking the users to delete their Temporary Internet Files every 5 minutes is not a workable solution
    I have reviewed the contents of this javascript file at different points during the test, and the contents do not change, so deleting the file and the recreate process must be resetting somehow the queue and allowing for a new correct communication.
    Is there a way to properly reset this event queue (for example from ABAP, when the webdynpros are reloaded) in order to avoid the spin loop?
    Thanks for any help!
    Andres

    Well, we got the issue resolved, so here is what we did, in case anybody is interested:
    Tested again our portal with multiple versions of Internet Explorer, in particular IE8 and IE6, the Webdynpro behavior was normal (no timeouts or locks). It even worked when we installed IE7 in a brand new machine and tried our portal.
    So we started suspecting if maybe the particular IE7 that we install internally (with specific settings and policies) may be the culprit. We took a desktop that was producing the timeouts and used the following options in IE7:
    Tools->Internet Options->Advanced(tab)-Reset Internet Explorer settings
    and, voila! the next time we ran there, the portal did not create any timeouts.
    We even asked our desktop support team to uninstall and reinstall IE7 in the same machine after we did the reset, and even after the re-install that the timeout problems did not re-appear.
    One of the things that the "reset" option does is delete the Add-ons used by IE.
    So as a last test, we took a machine that was presenting the problem and went to the Internet Options to disable all the add-ons (in the Programs Tab). The error disappeared.
    And even after enabling back all the add-ons, the error would not return.
    Conclusion:
    Without being able to pinpoint the specific add-on (or combination) that causes the problem, we suspect that some of them conflicted, causing IE7 to behave abnormally. Disabling them all, restarting Internet Explorer, and enabling them again, makes the WaitingEventQueue.js work as it should

  • Regarding Tree structure display in Webdynpro ABAP

    Hi Experts,
    I am very new to webdynpro ABAP , I was asked to implement some functionalities of RWBE transaction in webdynpro , in RWBE transaction list can be displayed as Tree structure , in webdynpro how i can implement this ? using ALV UI element is it possible . Please help .
    Regards,
    Ratheesh BS

    Hi ,
    I need an output like the below
    <material number                 a1           a2        a3
              < plant                       b1          b2        b3
                 . org                        c1          c2        c3
    <material number                 A1          A2       A3
    is it possible to show the output as in this format using ALV ?.
    I have tried with the help provided by SDN , but not succeed .
    also i need to capture double click event and show the currosponding result in a seperate view.
    here material number is the parent node , plant and org were child nodes
    Regards,
    Ratheesh BS
    Edited by: Ratheesh Bhaskaran on Oct 7, 2008 4:22 PM
    Edited by: Ratheesh Bhaskaran on Oct 7, 2008 4:26 PM
    Edited by: Ratheesh Bhaskaran on Oct 7, 2008 4:29 PM

  • WebDynpro Abap code to read IView Name

    Hi Friends,
    Could you please give me Webdynpro abap code to read the name of the Iview.
    Regards,
    Lakshmi Prasad.

    Hello Lakshmi,
    I dont think this is possible. If you want to differentiate from which iView your web dynpro application is launched, then you can pass some constant as Application Parameter in the iView. and in the web dynpro application you can read this parameter and perform your required logic.
    For example suppose say your web dynpro application is hosted in iView1 and iView2. In both the iview properties, pass a parameter (say IVIEWNAMe) with values 'iView1' and iView2 respectively.
    then in the Webdynpro -> Window Controllers' -> default event handler method, you read the parameter IVIEWNAME and based on the value you can peform your logic.
    BR, Saravanan

Maybe you are looking for

  • Purchase Order Statistical Delivery Date changed automatically

    Hi, In the purchase order, when I go to change the delivery date, the statistical delivery date changed automatically. I do not want to change the statistical delivery date. Is there any User Exit or BADI to validate this? Please suggest the same. Re

  • Autofs direct mapping not working

    Hi there, I'm currently migrating from Gentoo and hit a problem. I'm trying to use an autofs feature called 'Direct mapping'. It allows one to use map one directory to a specific server. Combined with ghosting, one can use this to do a on demand bind

  • Events are not being handled

    Hello, My events appear in the EventHub, but they are not handled by any of my stream analytics 4 jobs. No errors in the operation logs. Monitor (of all 4 jobs) displays 0 (zero) input events. Please help. Thanks/ Janiv Ratson. Technology and Develop

  • Accounting  12546 requires an assignment  to a CO Object

    Hello Gurus I am getting the error Accounting  12546 requires an assignment  to a CO Object   Please ignore the number it is my G/L number for which primary cost element is also the same. I happens when i do transfer posting in MB1B movement stock fr

  • Configuring SEPA for transfer- Suffix field

    Hi, I´m configuring Transfer for SEPA. At this moment, with F110  I can generate a .xml  archive to send to banks following rule 34.14 for SEPA payments. My problem is with suffix field, that corresponde to field number 6 of the 34.14 rule, it is 3 c