Skip to Content
avatar image
Former Member

Webdynpro Java Session Expiry Issue

In our MDM landscape, users browse through SAP enterprise portal and go through CE layer to invoke MDM operations. One issue faced regularly is MDM records being checked out (exclusively locked) for a longer period of time. This is due user sessions inactive for longer period of time and no action taken on checked out record.

Is it possible to catch a session expiry event with CE code and execute a rollback of MDM transaction. Currently we don rollback upon user clicking close button.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Jun 04, 2013 at 11:04 PM

    No, you can't react on the session timing out since it is already too late then. Instead I would implement some logic to look for checked out records and respective active sessions and automatically rollback any records which do not have respective active sessions. It could also make sense to decrease the session timeout.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks Samuli.

      I understand there is the WDDoExit() which triggers upon user session expiry. In our scenario we want WDDoExit() called based on user action on a close button or user inaction (i.e. session expiry) and MDM rollback should happen.

      But based on our design, MDM rollback code is in service layer DC and that DC is dependent on our main application DC. when user clicks the close button in the main application all the dependent DCs including the service layer DC get killed. So the issue is the rollback code written in DC is not getting called because whole DC is killed upon action on close button.

      Possible solution is to bring the whole service layer code to main application, which is an overhead  on the main application.

      I am curious, is there way to force a call to service layer DC and call the rollback code before killing the DC itself.