Sunday, 01 December 2019 13:37

SAP ERP and SAP HANA in scale-out configuration

Written by
Rate this item
(0 votes)


I want to tell you about our idea to use scale-out HANA with SAP ERP.

If you have SAP ERP on Oracle which using SAP HANA in scale-out configuration for

accelerating reports (SAP HANA Accelerator), you may have a problem with distributing loading in HANA.

The problem is HANA in scale-out can’t correctly distribute load to all nodes and SAP ERP only connect to one node by default, and as result master node will down under load.

What we have:

  1. SAP ERP with EHP 7, EHP 8 on Oracle
  2. SAP HANA in scale-out configuration (3 worker and 1 standby)
  3. Connection from SAP ERP to SAP NANA
  4. Custom reports which connecting to SAP HANA for accelerating some heavy opertions
  5. SAP ERP can’t work correctly with SAP HANA in scale-out configuration ( 1825774 – SAP Business Suite Powered by SAP HANA – Multi-Node Support )

Steps to solve the problem:

  1. Create Z-class which will check less load node and open connection to this node
  2. Create connections to all nodes (worker and standby)
  3. Replicate heaviest and most used tables to all nodes

Step 1.

Example of ABAP code to get  one HANA connection from DBCON table.

METHOD get_hana_con_and_check. DATA: lv_conn_name TYPE dbcon-con_name, lr_conn TYPE REF TO cl_sql_connection. SELECT SINGLE con_name INTO lv_conn_name FROM dbcon WHERE dbms = 'HDB' IF sy-subrc <> 0. RAISE no_connection. ENDIF. TRY. lr_conn = cl_sql_connection=>get_connection( con_name = lv_conn_name sharable = abap_true ). lr_conn->close( ). CATCH cx_sql_exception. RAISE no_access. ENDTRY. r_hana_conn = lv_conn_name. ENDMETHOD.

To select needed node you should connect to HANA and run SQL query:


Result of SQL:

In ABAP code find needed node in DBCON table and connect to it.

Step 2.

You create first connection for checking memory and second, third and so are for connection to particular node (worker).

Step 3.

You find all heaviest and most used tables and replicate it to all nodes (table replication).

I think it will help you.


Read 10 times

Leave a comment

Make sure you enter all the required information, indicated by an asterisk (*). HTML code is not allowed.