cancel
Showing results for 
Search instead for 
Did you mean: 

CRM Prevent Exit Without Saving

Former Member
0 Kudos

I'm a newbie to SAP CRM and can't seem to find a solution to my problem.

If bring up a transaction in the Web UI directly without using the portal.  I navigate to an object and start changing it.  If I close the browser or type in a new URL, CRM doesn't ask me to save the document before exiting.  Now if I bring the document back up, it is locked by my other session that I didn't close properly.

Is there a way to prevent the user from closing the browser or navigating to a new page if there are unsaved changes still outstanding?

If I navigate within SAP CRM I get the dataloss popup that asks me if I want to save the changes, but if I close the browser window I don't get this popup.

We've done this in the past with Web Dynpro applications in ECC using the following method.

http://help.sap.com/saphelp_nw04/helpdata/en/88/585d420447e054e10000000a155106/frameset.htm

But I can't seem to determine how to do this in the Web UI of SAP CRM 7.0.  BTW, I'm not using SAP Portal, Web UI directly in a browser.

Thanks,

Jeff

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

SAP Support found a note for us that resolved our issue.

Note 1836328 - IC Agent needs to shutdown session with every call Tab

also check "Enforce Logoff" & "End Session Immidiately" for the Techinical Role that is assigned to your Business Role.

former_member202771
Contributor
0 Kudos

This message was moderated.

Answers (1)

Answers (1)

Former Member
0 Kudos

In your case the dataloss popup doesn't get called on browser exit becase the browser exit isn't properly handled. Please share the exact version of your SAP_BASIS and SAP kernel.

Former Member
0 Kudos

Here is our version information:

SAP_BASIS 702 0003 SAPKB70203 SAP Basis Component

WEBCUIF 701 0000      - SAP Web UI Framework

BBPCRM 701 0000      - BBPCRM

Kernel release    720

Compilation       Linux GNU SLES-9 x86_64 cc4.1.2 use-pr100217

Sup.Pkg lvl.      46

ABAP Load         1780

CUA load          39

Mode              opt

Assuming you need the version information to determine if there is a Service Marketplace Note that fixes this?

Thanks,

Jeff

Former Member
0 Kudos

That's correct. I do remember that the detection of browser close was improved in NetWeaver 7.03 but since the SAP notes search hasn't been properly working this or last week, I'm unable to find out when exactly it was improved and whether there is a downport fix for NetWeaver 7.02. Once I find out, I will update this discussion.

Former Member
0 Kudos

Short update: not to keep your hopes up, the SAP note I was talking about is related to Web Dynpro ABAP and especially to FPM. That said it's not relevant to your scenario.

It sounds weird that the CRM Web UI wouldn't catch and handle the window event onbeforeunload.

Former Member
0 Kudos

Thanks Samuli.  Yes we've done Web Dynpro ABAP applications where we have implemented this.  So I was assuming that SAP CRM would have similar capabilities.  This seems like a big hole in the capabilities with a web application.

Jeff