Monday, September 5, 2016

Very first steps in UI5

Precondition:

You have your Eclipse with UI5 extensions installed.
 

Create new UI5 project

  1. File - New - Other - SAP UI5 Application Development - Application Project
  2. Next
  3. Enter project's name
  4. choose sap.m library (sap.ui.commons is obsolete)
  5. Next
  6. Enter name of Initial view in "Name"
  7. choose XML as "Development Paradigm"
  8. Finish

Start application

  1. right click on project
  2. Run as - Web App preview
  3. Application starts in new tab in Eclipse
  4. Copy the link and start the app in Chrome
 

 Debugging

  • Use Chrome's Debugger, pressing F12
  • Add the Parameter ?sap-ui-debug=true to the URL

Thursday, September 1, 2016

Create heuristic with own algorithm in APO PP/DS: how to get data into /SAPAPO/HEURFUNC

How to create your own heuristic is very well described in Creating Heuristics Using Your Own Algorithm.
(@Thorsten: Many thanks for the fantastic heuristic framework!)

But how do you get your data in /SAPAPO/HEURFUNC? Just use SM30 with view /SAPAPO/VHEURFNC!

SAP ABAP: Determine Timezone for Plant

    DATA:       lt_tzone TYPE STANDARD TABLE OF tznzone WITH DEFAULT KEY,       l_tzone  TYPE tznzone.     " get time zone for plant   ...