cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Fiori Error - Create Sales Order app doesn't run after Google Chrome updates

Former Member
0 Kudos

Hi,

I have a problem with the create sales order app (ui5_sd_so_cr).

Everything works fine until Google Chrome browser updates to version 34.0.1847.116 m .

The create sales order application has an error when i try to checkout the cart.

This error is in the SalesOrderCreatePriceAndAvailabilityCheck.controller.js and SalesOrderCartDetails.js in this function:

    


l.oSOCartModel.refreshSecurityToken(function (a, b) {

        l.oSOCartModel.create("/SalesOrders", m, null, function (c, d) {

            com.sap.kelley.salesordercreate.utils.ModelUtils.updateCartModelFromSimulationResponse(d);

            oSObusyIndicator.close();

        }, function (g) {

            oSObusyIndicator.close();

           var d = g.response.body;

            var f = jQuery.parseXML(d);

            var e = f.getElementsByTagName("message")[0].childNodes[0].nodeValue;

           

            var c = new sap.m.Dialog({

                title: sap.ca.common.uilib.message.AlertMessageBoxType.ERROR.title,

                content: [new sap.m.Label({

                    text: e

                })],

                leftButton: new sap.m.Button({

                    text: l.oBundle.getProperty("XBUT_OK"),

                    tap: function () {

                        if (j) {

                            l._onNavigateBack();

                        }

                        c.close();

                    }

                }),

            });

            c.addStyleClass("sapSOC-SingleButtonDialog");

            c.open();

        })

    }, function (a) {

        oSObusyIndicator.close();

        var b = new sap.m.Dialog({

            title: sap.ca.common.uilib.message.AlertMessageBoxType.ERROR.title,

            content: [new sap.m.Label({

                text: sap.ui.getCore()

                    .getModel("i18n")

                    .getProperty("ERROR_REFRESH_SECURITY_TOKEN")

            })],

            leftButton: new sap.m.Button({

                text: l.oBundle.getProperty("XBUT_OK"),

                tap: function () {

                    if (j) {

                        l._onNavigateBack();

                    }

                    b.close();

                }

            }),

        });

        b.addStyleClass("sapSOC-SingleButtonDialog");

        b.open();

    }, false);

The error is in the line 07. Cannot read property 'body' of undefined

Variable g is undefined.

I tested the application with other browsers (IE, Firefox, Safari) and everything works perfectly. Only Chrome has this kind of problem.

UISRA

UISRA0171000002SAPK-10002INUISRA017HTML5 Create Order

System

SAP_BASIS7310007SAPKB73107SAP Basis Component
GW_CORE2000006SAPK-20006INGWCORESAP GW CORE 200
IW_BEP2000007SAPK-20007INIWBEPBackend Event Provider


UI5 version 1.16.4

It 'happened to someone else?

How can I fix the problem?

Thank you for your help.

Regards,

Nicola

Accepted Solutions (1)

Accepted Solutions (1)

Aksel
Participant
0 Kudos

This is how it's solved for Custom UI5:

...but is there a quick SAPnote for FIORI?

former_member182874
Active Contributor
0 Kudos

DiD you check the sapnotes provided above ? are they applicable ?

Regards,

Tejas

Former Member
0 Kudos

Hi Aksel,

I have tried the solution proposed in your posted link and it works.

I have a custom create sales order application, so I can include the javascript code in the index of the app and everything works fine.

Yes, I know that the problem is still there for the original Fiori application suite.

Customize all the applications is not the best way.

I hope that someone could find a solution for this issue.

Regards,

Nicola

Former Member
0 Kudos

For fiori Apps, you can do either of below steps copying code of workaround from here

1) You can do jQuery.sap.require("folderLocation.workaround"); in your app.js or component.js . But make sure you register the folderLocation using jQuery.sap.registerModulePath() or sap.ui.localResources()

            

2) Alternative for above one, copy the code of workaround and paste it anywhere before you do the first oData crud operations.

Answers (2)

Answers (2)

former_member182874
Active Contributor
0 Kudos

Few things you can try,

Upgrade your UI5 library version. Latest is 1.18

Implement release notes :

1948368 - Fiori Create Sales Order Wave 1 Common Library Fixes


1947789 - Fiori Create Sales Order Wave 1 Fixes


Check if these can be applied or go with UI library update.


1939288 - Hotfix 1.16.5 for UI AddOn SP06 SC: UI2_SRVC


Regards,

Tejas

Former Member
0 Kudos

Hi Tejas,

I've tried all the notes you mentioned in your answer but the app doesn't work.

The solution proposed by you is interesting. An update to the library is a correct way, but in my case it does not give any result. (Same thing for the fix notes).

Regards,

Nicola

former_member182874
Active Contributor
0 Kudos

Please check this link for UI5 library fixes for your version 1.16, try to find if there are any fixes done to the new UI library version related to Chrome browser. I see many bug fixes related to Chrome 31, 30..See if 33 34 also have some fixes. Check the link in detail to findout.

Documentation/ReleaseNotes/ReleaseNotes-1.18 – SAPUI5 Wiki (TIP CORE User Interface)

Version 1.18.0 (December 2013)

  • [FIX] Scrollbar: fix for Chrome 31

Version 1.18.6 (February 2014)

  • [FIX] Scrollbar: Chrome with 90% Zooming factor

  • [FIX] sap.m.Popover: replace width:100% with display: block on popover's conent scroll div because of chrome browser bug with scrollbar in RTL mode.

This clearly means, you need to upgrade your UI5 library version

There are many bug fixes if you upgrade your browser or Ui version,so keep everthin updated is what I see here.

Regards,

Tejas

Aksel
Participant
0 Kudos

We got the same Problem, any SAPUI5 odata-update methods are not working anymore...

Problem comes with Chrome version jump 33>34