UX Extension: Part 1-Preparing Back-End APIs

Here is my journey of learning openSAP course “Extending SAP S/4HANA with SAP HANA Cloud Platform”. There are a lot of steps with lengthy videos and tutorials so I think I better take notes of key important steps for my future references.

I skipped the system setup part (Week 1 Unit 6) as I chose to setup servers on the cloud instead so I didn’t need to go through those steps and jump directly to the main parts but you can take a look on this guide if you set it up locally (on VirtualBox)

The Challenge

We are going to import Fiori App “Manage Products” from the back-end into SCP and add sort, filter, and group by product’s average rating feature by modifying the App (without using Extension Project)

In This Part

In this part, we are going to check and test our existing back-end API.

SAP Health Check

  1. Download and install PuTTY
  2. Use PuTTYgen to convert .pem file you downloaded when you created the instance on SAP CAL to .ppk file (PuTTY Private Key file)
  3. In PuTTY Connection Configuation, select the .ppk file in the Connection → SSH → Auth and connect and login as root.
  4. Use command su -l npladm
  5. Then sapcontrol -nr 00 -function GetProcessList Here you should see all GREEN
03.05.2017 14:12:32
name, description, dispstatus, textstatus, starttime, elapsedtime, pid
disp+work, Dispatcher, GREEN, Running, 2017 05 03 12:58:45, 1:13:47, 3483
igswd_mt, IGS Watchdog, GREEN, Running, 2017 05 03 12:58:45, 1:13:47, 3484
gwrd, Gateway, GREEN, Running, 2017 05 03 12:58:49, 1:13:43, 3622
icman, ICM, GREEN, Running, 2017 05 03 12:58:49, 1:13:43, 362

Back-end OData Service Check

  1. Go to transaction SICF
  2. Go to node default host → sap → opu → odata → sap → epm_ref_apps_prod_man_srv and make sure the service is activated.
  3. Go to transaction /IWFND/MAINT_SERVICE
  4. Filter service by Technical Service Name *PROD*
  5. You should see the service ZEPM_REF_APPS_PROD_MAN_SRV
  6. Select it and click SAP Gateway Client
  7. Execute and you should see the responded XML
  8. Click EntitySets in the toolbar and select Products
  9. Execute again and you should see all products returned.

Explore OData Service in Web Browser

  1. Open Fiori Launchpad at https://vhcalnplci.dummy.nodomain:44300/sap/bc/ui5_ui5/ui2/ushell/shells/abap/FioriLaunchpad.html
  2. Launch application Manage Products
  3. Enter browser’s Developer Mode and sniff for Network traffic and look for this url: http://vhcalnplci.dummy.nodomain:8000/sap/opu/odata/sap/EPM_REF_APPS_PROD_MAN_SRV/$metadata?sap-client=001&sap-documentation=heading&sap-client=001&sap-language=EN
  4. Open it in a new tab to see the responded XML. Please note the service name EPM_REF_APPS_PROD_MAN_SRV.

Continue Reading

Read More