Top Banner
PUBLIC Jorge Baltazar November 2021 SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks
95

SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

Apr 29, 2023

Download

Documents

Khang Minh
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

PUBLIC

Jorge BaltazarNovember 2021

SAP Fiori for SAP S/4HANATroubleshooting Tips and Tricks

Page 2: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

2PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Fiori Troubleshooting

• Learn the basics

• Most Common Errors – Examples

• Authorizations – CDS views

• Identify what’s being consumed by the services

• Enterprise Search

• Webdispatcher

• Webdynpro

• WebGUI

• Always remember these facts and transactions

Fiori Performance

• Tips and Tricks

SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

Page 3: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

Fiori Troubleshooting

Learn the basics

Page 4: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

4PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Learn the basicsFiori Integration Flow – Hub Deployment

SAP Backend

SAP

FrontendWeb

dispatcher

Intranet DMZ Internet

▪ SAP Backend contains RFC functions, Odata Models, CDS Views and Webdynpro objects.

▪ These development objects contain the business logic to perform any business function in SAP.

▪ Frontend server consumes these objects and exposes them through web services.

▪ Frontend server consumes web services by implementing a UI layer based on Html5, javascript, xml.

UI5 Add-ons

▪ Exposes UI layer web services for remote access through

public internet▪ Handles cross-domain requests

▪ URL redirect, filtering, rewriting

▪ Can connect to the backend or frontend

▪ Masks internal server names

▪ Consume apps

NW 7.5x

NW 7.5x

HDB

RFC

HTTP(S)

HTTP(S)

HTTP(S)

Webdynpro & ESH

Page 5: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

5PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Learn the basicsFiori Integration Flow – Embedded Deployment

SAP Backend

Web dispatcher

Intranet DMZ Internet

▪ SAP Backend contains RFC functions, Odata Models, CDS Views and Webdynpro objects.

▪ These development objects contain the business logic to perform any business function in SAP.

▪ Frontend server add-on components consume these objects and exposes them through web services.

▪ Frontend server add-on component consumes web services by implementing a UI layer based on Html5, javascript, xml.

FES Add-ons

▪ Exposes UI layer web services for remote access through

public internet▪ Handles cross-domain requests

▪ URL redirect, filtering, rewriting

▪ Connects to the backend

▪ Masks internal server names

▪ Consume apps

NW 7.5x

HDB

HTTP(S) HTTP(S)

UI5 Add-ons

Page 6: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

6PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Learn the basicsUnderstand the S/4HANA ABAP Programming Model for Fiori and RESTful ABAP Programming Model

Application

(ABAP | CDS)

Database Table

OData Service

User Interface

(Fiori)

Fiori Launchpad

OData (Open Data Protocol)

is an OASIS standard that defines the best practice for building and consuming RESTful APIs.

SAP Fiori

is a collection of apps with a simple and easy-to-use experience for broadly used SAP software functions that work seamlessly across devices –

desktop, tablet, and smartphone.

CDS (Core Data Services)

CDS is an enhancement of SQL which provides a data definition language (DDL) for defining semantically rich database tables/views (CDS

entities) in the database. The enhancements include annotations, associations, and expressions

Page 7: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

7PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Learn the basicsUnderstand the S/4HANA ABAP Programming Model for Fiori and RESTful ABAP Programming Model

Application

(ABAP | CDS)

Database Table

OData Service

User Interface

(Fiori)

Fiori LaunchpadRendering errors

Wrong app routing

Wrong app navigation

Missing tiles

Missing Frontend Authorizations

High UI load times

Page 8: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

8PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Learn the basicsUnderstand the S/4HANA ABAP Programming Model for Fiori and RESTful ABAP Programming Model

Application

(ABAP | CDS)

Database Table

OData Service

User Interface

(Fiori)

Fiori Launchpad

Inactive OData services

Inactive CDS views (DCL, DDL)

ABAP coding error

Inactive ABAP objects

Inactive Business Functions

Missing / Wrong Functional configurations

Missing Backend Authorizations

High OData response times

Page 9: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

9PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Learn the basicsUnderstand the S/4HANA ABAP Programming Model for Fiori and RESTful ABAP Programming Model

Application

(ABAP | CDS)

Database Table

OData Service

User Interface

(Fiori)

Fiori Launchpad

Data inconsistencies

Errors in data replication

No data

Page 10: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

10PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

1. Always start by reviewing

available information in Fiori

Apps Library

You need to obtain:

✓ Frontend/Backend Role

✓ Business Catalog/Group

✓ Application Type (UI5, Webdynpro,

WebGUI)

✓ ICF Nodes

✓ Search Connectors

✓ Mandatory SAP Notes

Learn the basicsHow to start a troubleshooting session?

Page 11: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

11PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

2. As a minimum prerequisite you must assign the required roles to the analysis user.

3. Log on to Fiori Launchpad and identify the object that is causing the error.

4. Open the browser’s “Developer Tools”

Learn the basicsHow to start a troubleshooting session?

Page 12: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

12PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

5. Once the “Developer Tools” are open, clear the “Developer Tools” logs and do a webpage

refresh as you will notice errors that may not correspond to the context of your app.

Learn the basicsHow to start a troubleshooting session?

Page 13: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

13PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

6. With the logs cleared, try to replicate the error conditions.

Learn the basicsHow to start a troubleshooting session?

Tip:

Always check the Network and Console

section of the “Developer Tools”, they will

offer valuable details of the error.

Page 14: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

14PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

7. In the console area, analyze the error texts…

Learn the basicsHow to start a troubleshooting session?

Might not look like, but the error tells us a lot:

OData call error in service: ISU_BI_OUTSRTD_RESOLVE

OData collection/entity: C_OutsrtUtilsBillgDoc

OData operation: Count

Preliminary analysis: OData service is not active or configuration is missing, additionally a CDS view may be involved

Page 15: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

15PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

8. In the network area select the entry in red, navigate to the preview tab and expand the error

details to find the “Error Message”.

Learn the basicsHow to start a troubleshooting session?

By reading the error message we can understand that there is a missing system alias assignment for service

ISU_BI_OUTSRTD_RESOLVE, this confirms our preliminary analysis.

Page 16: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

16PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

9. Perform corrective measures…

Learn the basicsHow to start a troubleshooting session?

Page 17: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

17PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

10. Test and validate behaviour.

Learn the basicsHow to start a troubleshooting session?

Page 18: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

18PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

11. Troubleshooting never stops…

Learn the basicsHow to start a troubleshooting session?

Page 19: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

19PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

12. Repeat steps 4-10

Learn the basicsHow to start a troubleshooting session?

Preliminary analysis: SICF node is not active

Page 20: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

20PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

12. Keep troubleshooting…

Learn the basicsHow to start a troubleshooting session?

In this scenario we know there is no data

in the system so troubleshooting is

finished

Page 21: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

Fiori Troubleshooting

Most Common Errors – Examples

Page 22: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

22PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

In Fiori application, there is a persistence layer that uses caching mechanism. To begin every

troubleshooting session, recommendation is to “Always clear the cache”

– Clear Metadata Cache:

▫ Transaction /IWFND/CACHE_CLEANUP on Frontend Server

▫ Transaction /IWBEP/CACHE_CLEANUP on Backend Server

– Synchronize Chip Cache (Frontend):

▫ Run report: /UI2/CHIP_SYNCHRONIZE_CACHE

▫ Run report: /UI2/DELETE_CACHE_AFTER_IMP or /UI2/DELETE_CACHE

Most Common Errors – ExamplesClearing Cache

Page 23: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

23PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Most Common Errors – Examples OData Services not active

Hint: Error loading tiles, error “403”

Resolution Steps:– Use task list

“SAP_GATEWAY_ACTIVATE_OData_SERV

to activate missing service

Manual Step:

– Transaction /n/IWFND/MAINT_SERVICE

Page 24: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

24PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Most Common Errors – Examples OData Services not active

Hint: Factsheet is not displayed, error

“403”

Resolution Steps:– Use task list

“SAP_GATEWAY_ACTIVATE_OData_SERV

to activate missing service

– SICF service will get activated as part of the

task list

Manual Step:

– Transaction /n/IWFND/MAINT_SERVICE

Page 25: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

25PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Most Common Errors – Examples OData Services not active

Hint: OData call error, “No service

found for namespace”

Resolution Steps:– Use task list

“SAP_GATEWAY_ACTIVATE_ODATA_SERV to

activate missing service

– SICF service will get activated as part of the

task list

Manual Step:

– Transaction /n/IWFND/MAINT_SERVICE

Page 26: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

26PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Most Common Errors – Examples Backend Authorization Issue – Hub Deployment

Hint: Request failed, error “500”

Resolution Steps:– In the backend server, the S_RFCACL

authorization object is missing in the user

– Logon to backend server and assign the

authorization object to the end user

Page 27: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

27PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Most Common Errors – Examples Web Dynpro and/or Web Gui

Hint: Launchpad Designer, “Reference lost”

Resolution Steps:– Logon to frontend server and run

program /UI2/GET_APP_DESCR_REMOTE

– Run for Catalog ID in test mode

– Run for Catalog ID in non test mode

2269272 - "Reference Lost" Error for FLP Tiles after applying new UI component version

Page 28: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

Fiori Troubleshooting

Authorizations – CDS Views

Page 29: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

29PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Starting in S/4HANA 1511 many Fiori Applications make use of Service Adaptation Definition Language

(SADL) based OData services in order to consume and expose CDS views

SADL models are entities that are used in business applications – for example, business objects, database

tables, search views.

A SADL model is a data model like:

▪ DDIC tables or views

▪ CDS

▪ BOPF

The authorization enforcement in this process is interposed between query specification by application or end

user and data retrieval from the database

Fiori Troubleshooting

Authorizations – CDS Views

Blog: Fiori for S/4HANA – Troubleshooting Authorization concept in SADL based OData Services

Page 30: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

30PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

1. Identify the OData request

executed by the app using

your browser’s developer

tools. In this example:

OData Service:

MM_PUR_PO_MAINTAIN

Collection: POHeaderLists

Fiori TroubleshootingAuthorizations – CDS Views

Page 31: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

31PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

2. Based on the collection, try

to identify if the ABAP code

implements SADL

Navigate to the implementation

class using transaction

/IWFND/MAINT_SERVICE,

select the required service and

click in the “Service

Implementation” button.

Fiori TroubleshootingAuthorizations – CDS Views

Page 32: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

32PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

3. Once the service details are

displayed, double click on

the “Data Provider Class”

name.

Try to identify any reference to

CDS coding.

Fiori TroubleshootingAuthorizations – CDS Views

Page 33: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

33PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

4. Once you confirm that the

OData service consumes a

CDS view navigate to

transaction SEGW and

identify the associated

CDS.

In this example:

C_PURORDMAINTAINHEADE

RLIST

Fiori TroubleshootingAuthorizations – CDS Views

Page 34: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

34PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

5. Using ADT, find the required

CDS view and open the

“Access Control” object.

In this example:

C_PURORDMAINTAINHEADER

LIST

Fiori TroubleshootingAuthorizations – CDS Views

Page 35: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

35PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

6. The “Access Control” object will

display the required

authorization objects.

In this example:

C_PURORDMAINTAINHEADERLI

ST

Fiori TroubleshootingAuthorizations – CDS Views

Page 36: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

36PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

7. In transaction PFCG generate

a new role with the required

authorization objects.

Fiori TroubleshootingAuthorizations – CDS Views

Page 37: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

37PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

8. In transaction SACM use the

Runtime Simulator. Enter the name

of the CDS view you wish to test

and the user whose authorizations

need to be checked.

Fiori TroubleshootingAuthorizations – CDS Views

Tip:

You can skip steps 5–7 and jump directly

to transaction SACM to identify the

required authorization objects

Page 38: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

38PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

9. When you run the

simulator you will notice

the required authorization

objects and the values

used for the query

execution

Notice that a result list will be

displayed and you will be able

to identify any clashing

authorization definitions .

Fiori TroubleshootingAuthorizations – CDS Views

Page 39: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

Fiori Troubleshooting

Identify what’s being consumed by the

services

Page 40: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

40PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

The first step to troubleshoot an OData service

is to identify which objects will be consumed by

the service.

However, not all OData services are the same,

we can classify them depending on the

artifacts they consume:

➢ Enterprise Search

➢ CDS view

➢ ABAP

Depending on the objects that are being

consumed you will need to define the

troubleshooting path.

Fiori TroubleshootingIdentify what’s being consumed by the services

Page 41: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

41PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Enterprise Search

You can easily find them as the technical name of the service starts with prefix: “CB_”

Fiori TroubleshootingIdentify what’s being consumed by the services

1

Page 42: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

42PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Enterprise Search

Fiori TroubleshootingIdentify what’s being consumed by the services

2

3

Page 43: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

43PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Enterprise Search

Fiori TroubleshootingIdentify what’s being consumed by the services

4

Page 44: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

44PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

CDS

There are two ways to identify these type of services.

The first one, when the technical name of the service starts with prefix: “C_” and ends with suffix:

“_SRV”

Fiori TroubleshootingIdentify what’s being consumed by the services

1

Page 45: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

45PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

CDS

Fiori TroubleshootingIdentify what’s being consumed by the services

2

3

Page 46: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

46PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

CDS

Fiori TroubleshootingIdentify what’s being consumed by the services

4

Page 47: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

47PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

CDS

There are two ways to identify these type of services.

The second one, when the technical name of the service starts with prefix: “C_” and ends with

suffix: “_CDS”

Fiori TroubleshootingIdentify what’s being consumed by the services

1

Page 48: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

48PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

CDS

Fiori TroubleshootingIdentify what’s being consumed by the services

2

Tip:

This implies that the OData services was

generated using the annotation

“@OData.publish: true”

Page 49: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

49PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

ABAP

Easiest to identify, technical service name does not start with “C_” or “CB_”

Fiori Troubleshooting

Identify what’s being consumed by the services

1

Page 50: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

50PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

ABAP

Fiori TroubleshootingIdentify what’s being consumed by the services

23

Tip:

Note that an entity (collection) in this type

of service may end up consuming a CDS

view. This will depend on how the service

model was defined.

Page 51: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

51PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

ABAP

Fiori TroubleshootingIdentify what’s being consumed by the services

4

Tip:

Add an “External Breakpoint” to the code

to perform debugging sessions

Page 52: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

Fiori Troubleshooting

Enterprise Search

Page 53: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

53PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Transaction STC02:– During the configuration of task list, transaction STC01 was used to execute each task lists from the configuration guide.

– If for some reason, you logoff after saving a task list run, you can go back and modify a save task list run with transaction STC02 to

search for it.

Fiori TroubleshootingEnterprise Search

Page 54: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

54PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Starting point to troubleshoot enterprise search is by using transaction: ESH_TEST_SEARCH

Fiori TroubleshootingEnterprise Search

Page 55: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

55PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

To monitor the status of all search connectors and obtain useful troubleshooting information for the

whole Enterprise Search engine use transaction: ESH_DASHBOARD

Fiori TroubleshootingEnterprise Search

Page 56: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

Fiori Troubleshooting

Webdispatcher

Page 57: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

57PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

To troubleshoot Webdispatcher you need OS access or a Webdispatcher Visual Administration

user.

Fiori TroubleshootingWebdispatcher

Page 58: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

58PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Check Configuration Profile (OS level only) with command sapwebdisp -checkconfig

Fiori TroubleshootingWebdispatcher

Page 59: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

59PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Analyze Webdispatcher Logs (OS level)

Fiori TroubleshootingWebdispatcher

Page 60: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

60PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Analyze Webdispatcher Logs (Visual Administration)

Fiori TroubleshootingWebdispatcher

Page 61: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

Fiori Troubleshooting

Web Dynpro ABAP

Page 62: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

62PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Fiori TroubleshootingWeb Dynpro ABAP

General Steps:

1. Make sure you are using a supported browser based on the backend system's SP level: Browser supporting

2. While running a debugging session, make sure the webdynpro content

calls are being redirected to the backend server. An important number of issues are caused by incorrect url dispatching.

3. Check the Common Issues, maybe it is already a known problem.

4. Run the webdynpro application without any outer framework (Portal, NWBC) and check if the issue persists that way.

• 2083790 - How to test a function outside NWBC environment

5. Look for notes using the keywords provided in the dump, or using the class and method involved in the application.

• How to find a solution for short dumps from ST22

• If no relevant results are displayed, run a new search removing the filter by

component.

6. Check the WDABAP Home page for other troubleshooting guides and

analysis documents.

Page 63: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

63PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Issue not solved, what needs to be provided when opening an Incident:

• URL of the Web Dynpro application

• Step-by-step description with screenshots about the exact reproduction of the issue.

• HTTPWatch trace of the issue being reproduced. For more details on the HTTPWatch or Fiddler traces, please refer

to Tools

• Screenshot of the report WDG_MAINTAIN_UR_MIMES ran from transaction SE38.

• If possible open R/3 and HTTP connections to the system. For the HTTP connection the URL must be set to the affected

application. e.g. http://yourdomain.com/sap/bc/webdynpro/sap/wdapplication

Fiori TroubleshootingWeb Dynpro ABAP

For more details on how to open the connections please refer to SAP

Notes:• HTTP - according to SAP Note 592085• R/3 - according to SAP Note 812732

• Store Customer logon data in Secure Area - according to SAP Note 508140

Page 64: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

Fiori Troubleshooting

SAP GUI for HTML (WebGUI)

Page 65: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

65PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Most of the problems can be solved by following the below 5

STEPS in the affected system:

1. Configuration and Routing

• While running a debugging session, make sure the WebGUI content calls are being redirected to the backend server. An important

number of issues are caused by incorrect url dispatching.

• If you are using App Finder or App Descriptors make sure the

configuration and required notes have been set up properly

• Step-by-step guide to enable Transactions in Fiori Launchpad using Application Descriptors in S4HANA On-Premise

• Step-by-step guide to enable Easy Access Menu in S-4HANA On-Premise

2. Latest Kernel

• Try using the latest kernel version available.

• Component "disp+work" should be checked.

• Click here for more details on ITS-fixes delivered in the latest kernel

Fiori TroubleshootingSAP GUI for HTML (WebGUI)

Page 66: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

66PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

3. Latest CL_HTTP_EXT_ITS

• The first point when an HTTP request meets the ITS layer is the ITS HTTP request handler, called CL_HTTP_EXT_ITS. This handler class is very important, because it is responsible to build ITS frameset. The ITS frameset handles session management, XSRF

protection, correct page sizing, parameter handling, rendering modes and more features.

• Newer versions of the class CL_HTTP_EXT_ITS are always delivered in the latest BASIS Support Packages (SAP_BASIS, SAPKB... or SAPK-...INSAPBASIS). But in certain cases it is also possible to apply correction instructions via transaction SNOTE for

this class. In order to use the latest version of the handler (CL_HTTP_EXT_ITS), please apply the appropriate SAP Note and all of its prerequisites.

4. Review ITS Service Configuration (GUI Configuration).

• Are the used GUI Parameters correct?

• Check ITS related profile parameters.

• Learn more about ITS feature flags: List of Features

5. Special Cases and Troubleshooting Tools

• If you believe, that all of the above are correct (i.e. latest kernel, latest handler and correct configuration), go trough the special cases and troubleshooting tools in the ITS Troubleshooting Guide.

Fiori TroubleshootingSAP GUI for HTML (WebGUI)

Page 67: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

Fiori Troubleshooting

Monitoring

Page 68: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

68PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

▪ SAP Fiori activation status

– SAP Gateway

– ICF Nodes

– System Aliases

– OData Services

▪ Enterprise Search

▪ Embedded Analytics

▪ Running jobs

▪ Available logs

▪ Available traces

▪ Caches

Monitoring – What to check?

Page 69: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

Fiori Troubleshooting

Always remember these facts and

transactions

Page 70: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

70PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

1. Understand Landscape Architecture:

– Transactional Apps implement OData calls from the Frontend server but Webdynpro and Object Page

require a direct connection the Backend server.

– Hub Deployments: Several RFC connections are required.

▫ Firewall adjustments may be needed in complex network architectures.

2. Catalog Replication / Index Calculation:

– Set up Fiori Catalog Replication and Index Calculation jobs to run at least once a day, this will make sure

that Catalog and Application ID status is consistent.

▫ Report /UI5/APP_INDEX_CALCULATE

▫ Report /UI2/GET_APP_DESCR_REMOTE

3. Update UI libraries:

–Important corrections are delivered in UI libraries that will help stabilize Fiori apps.

TroubleshootingAlways remember these facts and transactions

Page 71: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

71PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

4. Hub Deployments - One frontend for multiple backends:

– In this case, try to maintain 1 frontend client per backend client within the same landscape.

5. Hub Deployments - Security:

– Enabling trust relationship between the frontend and backend server requires all users to possess

authorization object: S_RFCACL

– Replication of user ID’s between frontend and backend clients is required.

TroubleshootingAlways remember these facts and transactions

100

200

300

Frontend

Launchpad

100

200

300

Backend

Backend Frontend

ID: JOHNDOE

Auth. Obj.

S_RFCACL

ID: JOHNDOE

Auth. Obj. S_RFCACL

Sys. Trust

Page 72: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

72PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

6. Know your tools:

TroubleshootingAlways remember these facts and transactions

Transaction Code Description

SU01 User Maintenance

PFCG Role Maintenance

SICF Maintain Services

SM59 RFC Destinations (Display/Maintain)

SPRO Configure SAP System as per client requirement

SMICM ICM Monitor

SHMM System Shared Objects Monitor

STC01, STC02 Execute/Display Task List Runs

ST22 System Dumps

/UI2/CUST Customizing of UI Technologies

SACM Access Control Management

General Administration

Page 73: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

73PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

6. Know your tools:

TroubleshootingAlways remember these facts and transactions

Frontend AdministrationTransaction Code Description

/UI2/FLP Launch SAP Fiori Launchpad

/UI2/FLC Fiori Launchpad Checks

/UI2/FLP_CUS_CONF Fiori Launchpad System Settings (client-specific)

/UI2/FLP_SYS_CONF Fiori Launchpad System Settings (cross-client)

/UI2/FLP_DEL_PERS Delete Personalization of SAP FLP

/UI2/CSU Cache Statistics Utility

/UI2/FSAC System Alias Consistency Check

/IWFND/CACHE_CLEANUP Cleanup of Model Cache

/IWFND/MAINT_SERVICE Activate and Maintain OData Services

/IWFND/ERROR_LOG SAP NetWeaver Gateway Error Log

/IWFND/GW_CLIENT Simulate OData Service execution

/IWFND/TRACES SAP NetWeaver Gateway: Tracing Tools

/IWFND/APPS_LOG Application Log Viewer

/IWFND/CACHE_REBUILD Rebuild Gateway Model Cache

Page 74: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

74PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

6. Know your tools:

TroubleshootingAlways remember these facts and transactions

Frontend Administration (continued)Transaction Code Description

/IWFND/V4_ADMIN OData V4 Administration (for Notifications)

/IWNGW/R_HUB_CLEAR_CACHE OData Cache (for Notifications

SBGRFCMON Monitor bgRFC queues (for Notifications)

Page 75: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

75PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

6. Know your tools:

TroubleshootingAlways remember these facts and transactions

Backend AdministrationTransaction Code Description

/IWBEP/CACHE_CLEANUP Cleanup of Model Cache

/IWBEP/ERROR_LOG SAP Gateway Backend Error Log

/IWBEP/TRACES SAP Gateway Backend Traces

/IWBEP/VIEW_LOG SAP Gateway Log Viewer

/IWBEP/CONFIG_CHECK Check Configuration of BEP

ESH_DASHBOARD Enterprise Search Connector Analysis and Troubleshooting

ESH_TEST_SEARCH Enterprise Search Connector Test

ESH_QUERY_LOG Enterprise Search Connector Query Log

Page 76: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

76PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

6. Know your tools:

TroubleshootingAlways remember these facts and transactions

Business Role AdministrationTransaction Code Description

/UI2/FLIA Fiori Launchpad Intent Analysis

/UI2/FLC Fiori Launchpad Checks

/UI2/FLPCM_CUST Fiori Launchpad Content Manager (client-specific)

/UI2/FLPCM_CONF Fiori Launchpad Content Manager (cross-client)

/UI2/FLPAM Fiori Launchpad App Manager

/UI2/FLP_APPDESC_GET Replicate Backend Catalogs

/UI2/FLPD_CONF Fiori Launchpad Designer (cross-client)

/UI2/FLPD_CUST Fiori Launchpad Designer (client-specific)

/UI2/SEMOBJ Define Semantic Object – Customer

/UI2/SEMOBJ_SAP Define Semantic Object – SAP

SACMDCLS CDS Access Controls

Page 77: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

77PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

6. Know your tools:

Tools listed in the SAP Reference

Implementation Guide

▪ SAP GUI Transaction SPRO >

SAP Ref IMG >

SAP NetWeaver >

UI Technologies >

SAP Fiori >

Launchpad Support Tools

In the SAP Help Portal

▪ SAP Fiori launchpad > Administration Guide

> Launchpad Support Tools

TroubleshootingAlways remember these facts and transactions

SAP Fiori Administrator Launchpad Support Tools

Page 78: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

78PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

7. Useful reports for FLP checks and system alias:

TroubleshootingAlways remember these facts and transactions

Page 79: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

79PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

8. Many issues relate to cached content.

– Make sure to delete cache in case of issues and also particularly after deployment of corrections / FPS.

Run report /UI2/INVALIDATE_GLOBAL_CACHES to clear the FLP caches.

9. Intents (combination of semantic object and action) not resolving.

– Make use of FLP Intent Resolution Analyzer (TA code /UI2/FLIA)

10. Data missing in app typically related to Authorizations.

– TA code SU53 for authorization traces (see SAP Note 2147808)

TroubleshootingAlways remember these facts and transactions

Page 80: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

80PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

11. Rapid Activation is the recommended

procedure to activate SAP Fiori since the

release of SAP S/4HANA 1709 FPS01

– Rapid Activation is available on any version

higher or equal to SAP S/4HANA 1709 FPS01.

12. Rapid Activation is available only on

embedded SAP Fiori deployments

13. Rapid Activation – Error Troubleshooting.

– Known issues and solutions are mentioned in the

Rapid Activation note for each version of SAP

S/4HANA. Overview note with links to version specific notes is available: 2902673 - Rapid

Activation for SAP Fiori in SAP S/4HANA -

Overview

TroubleshootingAlways remember these facts and transactions

Page 81: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

81PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

14. Deploy App Support for the SAP Fiori Launchpad plugin in your landscape

– App support is available for SAP S/4HANA as part of the SAP_UI component from the following versions:

▫ SAP_UI 7.54 SP06 in S/4HANA 1909 SP04 or Frontend Server 6.0 SP04

▫ SAP_UI 7.55 SP02 in S/4HANA 2020 FPS01 or Frontend Server 2020 SP01

15. You can run SAP Fiori Launchpad health checks as a proactive maintenance activity in

your system

– Via task list /UI2/FLP_HEALTH_CHECKS

– Using Launchpad Content Manager

TroubleshootingAlways remember these facts and transactions

Page 82: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

Fiori Performance

Tips and Tricks

Page 83: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

83PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Understanding the overall architecture of the solution is key to identify performance issues because

in the Fiori architecture, your browser is directly accessing the back-end via each Fiori tile. Each tile

on the FLP is making numerous calls to (and receiving) data from the server, which can cause

latency issues.

Note that when referring to the backends in the S/4HANA model we are talking about the

integration between 3 main components:

• Web Dispatcher

• Frontend Server

• Backend Server

Depending on the network configurations of these servers, network performance issues may arise.

Fiori PerformanceTips and Tricks

Blog: Fiori for S/4HANA – Performance tips and Tricks in S/4HANA On-Premise

Page 84: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

84PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

You will find some cases where performance issues may go deep into code or network debugging,

however, there are some quick actions you can take in every project to ensure the best

performance of your Fiori Launchpad (FLP).

We will list some performance tips and tricks for all your current implementations

Fiori PerformanceTips and Tricks

Blog: Fiori for S/4HANA – Performance tips and Tricks in S/4HANA On-Premise

Page 85: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

85PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Use what you need

✓ The more tiles you have on your FLP, the longer it will take to

load

✓ To lessen any latency issues, only add the tiles you need.

✓ It is recommended that you do not exceed 7x7 (49 tiles) per FLP

group, also notice the more catalogs you have assigned, the

longer it’s going to take to load the home screen.

✓ Go through Design Thinking workshops at the early stages of

the project in order to build “Personas” which will later help you

define the required business roles

Fiori PerformanceTips and Tricks

Page 86: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

86PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

All tiles are not equal

✓ KPI and dynamic tiles have a bigger impact on bandwidth,

as they are in constant communication with the back-end

servers to update.

✓ Static tiles do not change; once they are loaded onto the

FLP, they are not making any additional “calls” to update.

✓ For KPI and dynamic tiles try to define a refresh interval or

cache duration suitable to your end user needs and SAP

landscape capabilities.

Fiori PerformanceTips and Tricks

Page 87: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

87PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Introducing Tab Bar Navigation

✓ This feature changes the interaction of the end user

with FLP as tiles are displayed per group.

✓ Can be switched on for all users by the system

administrator or enabled through user

personalization.

Fiori PerformanceTips and Tricks

Blog: Fiori for S/4HANA – What is Tab Bar?

Page 88: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

88PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Improve Webdynpro, Webgui and App Finder performance

✓ Webdynpro, Webgui and App Finder → Check kernel version and try to update as this is

required by the new unified rendering concept.

✓ To load Webdynpro or Webgui apps FLP uses the NWBC runtime, it is recommended to update

NWBC runtime by implementing the following notes in order:

• 2408184

• 2405259

• 2433839

✓ Try running report /UI2/NWBC_DELETE_MENU_CACHE every now and then as you may find

wrong entries in table /UI2/NWBC_NAV_TR (column NWBC_VERSION will have the value

“LOADING”).

Fiori PerformanceTips and Tricks

Page 89: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

89PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Improve Webdynpro, Webgui and App Finder performance - UPDATE

✓ As of August 25th, 2017 you no longer need to update the entire kernel package.

✓ A new package, called sapwebgui, is now delivered. It contains only the WEBGUI related files.

✓ If you have interest in this new approach, then you can find more information in

KBA 2221289 (How to install package sapwebgui).

Fiori PerformanceTips and Tricks

Blog: Sapwebgui Package Now Available

Page 90: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

90PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Improve OData performance

✓ In some very specific cases you will find

that OData requests execution time is

longer than expected.

✓ This will usually occur for OData services

that expose very large data sets. If this is

the case, you can try configuring OData

services in Co-deployed mode.

Fiori PerformanceTips and Tricks

Blog: How to take advantage of the performance improvements in SAP Gateway in SAP NetWeaver 7.50 SP04

Page 91: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

91PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Make sure your browser’s cache is

optimized

✓ Ensure your browser cache settings are optimized for

maximum performance and try not to use any settings

that bypass the browser cache:

• Do not run the Fiori Launchpad in private mode

• Select a sufficient cache size limit

• Do not clear the cache history automatically when the browser closes

• Enable browser caching

• Do not disable the browser cache in the browser developer tools

• Enable HTTP compression

✓ You can find a detailed how-to document describing

these settings in all three major browsers (Chrome,

Firefox, Internet Explorer) in note 2447857

Fiori PerformanceTips and Tricks

Page 92: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

92PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Get the right Certificates (HTTPS)

✓ Make sure HTTPS connectivity is correctly setup.

Monitor this in the browser’s dev tools – network tab.

✓ If you are using self-signed certificates or your

certificate has not been signed by a valid Certificate

Authority (CA) you will face performance issues as any

error with the certificate means that the webpage will

not be loaded. You can find additional details here and

here.

✓ Note that versions 58 or higher of Chrome now

mandatorily require that the SAN (Subject Alternative

Name) field of the server’s SSL certificate is correctly

populated, you’ll find the detailed issue and resolution

in this blog.

Fiori PerformanceTips and Tricks

Page 93: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

93PUBLIC© 2021 SAP SE or an SAP affiliate company. All rights reserved. ǀ

Still facing performance issues?

✓ Take a look at note 2471635, you will find

some common performance issues and

their solution.

✓ Note that some solutions may require

additional development efforts.

Fiori PerformanceTips and Tricks

Page 94: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

Thank you!

Page 95: SAP Fiori for SAP S/4HANA Troubleshooting Tips and Tricks

© 2021 SAP SE or an SAP aff iliate company. All rights reserved.

No part of this publication may be reproduced or transmitted in any form or for any purpose w ithout the express permission of

SAP SE or an SAP aff iliate company.

The information contained herein may be changed w ithout prior notice. Some software products marketed by SAP SE and its

distributors contain proprietary software components of other software vendors. National product specif ications may vary.

These materials are provided by SAP SE or an SAP aff iliate company for informational purposes only, w ithout representation or

w arranty of any kind, and SAP or its aff iliated companies shall not be liable for errors or omissions w ith respect to the materials.

The only w arranties for SAP or SAP aff iliate company products and services are those that are set forth in the express warranty

statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional

w arranty.

In particular, SAP SE or its aff iliated companies have no obligation to pursue any course of business outlined in this document or

any related presentation, or to develop or release any functionality mentioned therein. This document, or any related presentation,

and SAP SE’s or its aff iliated companies’ strategy and possible future developments, products, and/or platforms, directions, and

functionality are all subject to change and may be changed by SAP SE or its aff iliated companies at any time for any reason

w ithout notice. The information in this document is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. All forw ard-looking statements are subject to various risks and uncertainties that could cause actual results to differ

materially from expectations. Readers are cautioned not to place undue reliance on these forw ard-looking statements, and they

should not be relied upon in making purchasing decisions.

SAP and other SAP products and services mentioned herein as w ell as their respective logos are trademarks or registered

trademarks of SAP SE (or an SAP aff iliate company) in Germany and other countries. All other product and service names mentioned are the trademarks of their respective companies.

See www.sap.com/copyright for additional trademark information and notices.

www.sap.com/contactsap

Follow us