Translate

Error analysis with SAP Fiori Apps & ABAP Backend System

Error analysis with SAP Fiori Apps & ABAP Backend System


Debugging SAP Fiori: General Information - Debugging an application

There are mainly two elements to application debugging. The first section is the application's JavaScript sources. The backend code, which is an abap backend at our location, is the second half.


Debugging JavaScript applications:

For JavaScript debugging, I recommend using Google Chrome. The development tools are fairly good, and it's great to be able to alter the JavaScript code without having to deploy the sources. The ability to verify and execute JavaScript code in the console is also a convenient technique to see if a solution approach would work in Java Script code.

What I haven't discovered yet is a mechanism to debug SAP JavaScript code, which is always minified before being loaded. If anyone has a way to do this, it would be fantastic if you could share it in the comments section or email me a private message to enhance this paper.— Debugging the backend:

The abap debugger can be used to debug the abap backend as usual. External breakpoints should be used instead of session breakpoints. The debugger will not halt at your breakpoints otherwise. Switching the user for which you wish to debug in the backend system was a useful point in backend debugging. In the settings of T-Code SE80, for example, you can alter the user for whom you debug. We used this a lot when the abap developer worked directly with the JavaScript developer to examine errors/functions in the applications — we switched the backend breakpoints to the frontend developer's user and checked the code together.

NetWeaver Gateway troubleshooting:

Avoid debugging directly in the NetWeaver Gateway implementation; depending on the case (central hub/decentral hub), there are a lot of rfc function calls, and it's easy to get lost in the code. It's a fantastic product, and if the setup and customization are done correctly, you can be confident that it will perform as expected. Most of the time, there was an error in our project built in T-Code SEGW – Gateway Service Builder or a misunderstanding of the protocols implemented with NetWeaver Gateway, such as the oData protocol, in my experience. If you really need to debug in Netweaver Gateway Code, consider using the T-Code /IWFND/ERROR LOG from the NetWeaver Gateway error protocol. – You may get a list of the callstack for each error in the error log — this saves a lot of time because you don't have to start at the handle request method every time.

What should I do if a SAP Fiori App has an error?

–Always check your findings/error messages in the SAP Support Portal - most problems are discovered and reported, and most errors have SAP notes available.

First, determine whether the error is caused by the JavaScript code or the backend system. Checking the browser console for any JavaScript problems or warnings is a quick way to achieve this. The majority of the time, it was a data issue, such as missing testdata on the development system or similar issues.

If you don't discover any hints in your browser's console, try looking under the network section. The requests that are sent to the backend can be seen in Chrome. This is useful information since you can see if any queries failed right away, and you can verify if the backend delivered an error or nothing at all in the response.

If you want to see what services a SAP Fiori application calls, look for /sap/opu calls in your browser's network area, as most SAP applications use oData for communication between the client app and the backend. You're almost there with the backend implementation if you've located the service call that, for example, returns dynamic data on a launchpad tile or the service request that supplies data for the master list. If you detected the service call in your browser's network area,

T-Code /IWFND/MAINT SERVICE should be checked. This transaction gives you access to the service catalogue, where you can look for the requested service. Once you've located the called service, navigate to the service implementation, where you'll discover the gateway service's DPC (Data Provider Class) and MPC (Model Provider Class), as well as external breakpoints for debugging requests sent to the abap backend. My recommendation is to start with dynamic data or basic GET requests because they are usually the easiest to find. 

Remember that there is a breakpoint in both the getentity and getentityset methods. If you've identified the correct DPC class for the service implementation, you're ready to examine all of the backend functions. Calling the service using $metadata to acquire the service name is a handy approach to discover a service fats in /IWFND/MAINT SERVICE.

No comments:

Labels

sap hana hana database aws s4 hana hana db s4hana conversion steps sap hana azure bw4hana hana migration s4hana migration sap cloud migration steps sap hana migration steps sap hana migration to azure s4hana sap fiori fiori performance fiori erp s4 hana fiori sap fiori app sap fiori client sap fiori launchpad sap s4 hana fiori cisco ecc AI SAP AI abap dumps hana sap S/4HANA S/4HANA Conversion best sap ui5 & fiori training configuration database fiori tutorial on webide free sap ui5 & fiori training s/4 hana sap dumps sap fiori tutorial sap ui5 sap ui5 & fiori sap ui5 & fiori tutorial sara ui5cn 2367245 - Troubleshooting performance issues with SAP BPA Amazon free tier for SAP AWS setup Experience CALL_FUNCTION_NOT_FOUND CCMS Configuration and Use Create New Data Class in SAP (Oracle) Critical top SAP Abap dumps DHCP Clients Not Receiving IP Addresses Download Stack.xml HAN-DB HAN-DB-ENG High CPU Usage Due to Excessive Process Switching How To How to Start and Stop SAP Hana Tenant Database How to change SAP Hana Sql Output results are limited to 5000 Records How to perform SAP Dual Stack Split - Netweaver Inactive Objects in SAP Intercompany transactions in SAP AP / AR : Cross Company Code Transaction Interface Flapping Due to Duplex Mismatch KBA LOAD_PROGRAM_LOST MSSQL shrinking transaction log file Migrating to SAP hana database NAT Overload Causing Internet Access Failure Note 500235 - Network Diagnosis with NIPING OSPF Adjacency Not Forming PRINCE2 Foundation Sample Questions Preparing for S/4HANA Conversion and the MUST know items Push to Download Basket S/4HANA Migration Cockpit S/4JANA SAP BI Support Data Load Errors and Solutions SAP BI/BW Landscape SAP BPA SAP Basis SAP Basis Automation SAP Business Objects SAP CPS SAP Certification SAP FI Certification SAP FI Certification Sample Questions SAP HANA Admin - Cockpit SAP HANA DB Engines SAP HANA Database SAP HANA terminate session connection disconnect cancel kill hang stuck SAP Hana DB restore SAP Hana Numeric Error Codes SAP Landscape SAP Language installation SAP MM and Purchase Order Tables SAP Maintenance Planner SAP Note 500235 SAP R/3 Glossary SAP Readiness Check SAP S/4HANA 1709 Installation Files SAP S/4HANA 2023 SAP S/4HANA 2023 Installation SAP S/4HANA 2023 running SAP S/4HANA Installation SAP Scheduling SAP Solman 7.2 CHARM: SAP Support Package Stack Strategy SAP Support package SAP Upgrade SAP support stack upgrade SP stacks STORAGE_PARAMETERS_WRONG_SET SUSE/SLES/Kernel versions Setup of S/4hana 2023 TSV_TNEW_PAGE_ALLOC_FAILED TSV_TNEW_PAGE_ALLOC_FAILED error Transaction ID Unable to download an SAP Note Unix/Linux Command That Are Helpful For SAP Basis Upgrading SAP Kernel Without Downtime Upgrading windows server 2008 to windows server 2019 What is OSS Notes? SAP SNOTE Tutorial accounting agile ale idoc ale/edi archive FI documents audit auditing auditor aws aws cloud basic type bluefield approach ccms ccmsidb charm copilot datavard dbacockpit download sap note download snote edi idoc electronic data interchange enable sap archiving objects erpprep ffid firefighter fraud functional hana admin how to apply sap security note https://www.erpprep.com/ idoc install install sap fiori installation interfaces intermediate document internal control license key linux version materials management messsage niping test order type port prince2 agile prince2 agile practitioner purchasing quick info s4 hana sap abap dumps sap abbreviations sap activate certification sap activate project manager sap authorization sap aws sap brownfield sap ccms sap ccms configuration sap erp sap error sap grc sap greenfield sap internet demo system sap license sap maintenance certificate sap material management sap meaning sap mm sap mm consultant sap monthly security note sap netweaver sap network diagnostic sap niping sap note sap oss sap patch day sap performance sap performance issue sap purchase order sap s/4hana sap sales and distribution sap sap otc sap sd sap sd certification training sap sd course sap sd jobs sap sd module sap sd online training sap sd training sap sd tutorial sap sd tutorial for beginners sap security sap security note sap snote sap snote tutorial sap solution manager sap sql segregation of duties separation of duties sles slicense smc snote snote in sap system sod conflict solution manager solution maneger stop start hana database suse linux techie trex two step upgrade required waterfall