Accsess backoffice config

While in backoffice in Adminstration Perspective you can press F4 button from keyboard. Then click menu icon on right corner for Show cockpit-config.xml option.

Using classical text editor for Smart Forms instead of MS Word

In updated system MS Word used as default Smart Forms and SAP Script text editor. In cloud system it is mandatory.

You can configure text editor with two ways. You can run ABAP report RSCPSETEDITOR in t-code SE38 for changing it. Other option using t-code I18N. In this t-code you need to open I18N Menu -> I18N Customizing -> I18N System Parameter. Select smartforms_editor as Parameter and emtpy as Value.

If you haven’t got enough privileges to change configuration, you can manipulate it in debug mode. These configuration saved DB table TCP0I as smartforms_editor and sapscript_editor. You can add break point in NLS_WORD_ENABLE function in t-code SE37. This function called by Smart Forms in first use of editor.

In S/4HANA system you need to add additional break point for running old editor. Add break point to CL_GUI_RTF_EDITOR and CL_GUI_SAPSCRIPT_EDITOR classes constructor below line and bypass the raise exception line.

* is not supported in S4H
  if cl_cos_utilities=>is_s4h( ).
    raise error_cntl_create.
  endif.

Set FQDN on Linux for SAP Server

An example FQDN: myserver.mkysoft.com

Add computer name to /etc/hostname file.

myserver

Add you domain to /etc/resolv.conf.

domain mkysoft.com

Add host name and domain with IP to /etc/hosts.

10.10.1.5  myserver.mkysoft.com myserver

You can check yor configuration with niping tool. This tool can be found n SAPRouter package.

niping -v -H myserver.mkysoft.com

Hostname/Nodeaddr verification:
===============================

Hostname of local computer: myserver                         (NiMyHostName)
FQHN of local computer: myserver.mkysoft.com                 (NiGetOwnFQDN)

Lookup of hostname: myserver                                 (NiHostToAddr)
    --> IP-Addr.: 10.10.1.5
Lookup of IP-Addr.: 10.10.1.5                                (NiAddrToHost)
    --> Hostname: myserver.mkysoft.com

Lookup of hostname: myserver.mkysoft.com                     (NiHostToAddr)
    --> IP-Addr.: 10.10.1.5
Lookup of IP-Addr.: 10.10.1.5                                (NiAddrToHost)
    --> Hostname: myserver.mkysoft.com

Useful reports

ReportDescription
RS_REPAIR_SOURCEABAP Editor Call
RDDIT076Change request/task status
RS_STREE_OBJECTS_TO_REQ_GETAuto adding related objects to request
SPROX_LOG_TRANSP_OBJ_INSERTInsert missing logical objects to request
RFSEPA01Fill BSIS table after enabling line item display in FS00.
SPROX_XSD2WSDLConvert schema (XSD) to WSDL

hybris system requirements

hybris minimum requirements by versions. Preferred DB charset is utf8 and collation is utf8_bin.

2005190518111808
JVMSapMachine 11SapMachine 11Oracle 8.0 or SAP JVM 8.1 Oracle 8.0 or SAP JVM 8.1
DB
MySQL 5.7 (jdbc 5.1.x) ), 8.0 (jdbc 8.x)MySQL 5.6, 5.7 (jdbc  5.1.x) ), 8.0 (jdbc 8.x)MySQL 5.6, 5.7 (jdbc  5.1.x) ) MySQL 5.6, 5.7 (jdbc  5.1.x) )
Solr 8.4.07.77.57.4
ImageMagick 6.7.3-56.7.3-5 6.7.3-5 6.7.3-5
Tomcat 8.5.518.5.40 8.5.40

hybris installer failed

If you are getting error while installing receipt like below, although you have set the parameter, check your maven settings for central repositories URLs start with HTTPS.

********************************************************************************************************
Either platform properties or system environment does not have the required property 'initialpassword.admin' set.
Please make sure to provide it in the recipe or in the system environment.

If you are running recipe using installer application you can set required property via option
-A local_property:initialpassword.admin=property_value

If missing property is initialpassword.admin then you can set it up using
shortcut -A initAdminPassword=admin_password
********************************************************************************************************

Maven disabled HTTP repositories. You can use below sample maven config file at <user-home>\.m2\settings.xml.

<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
  <profiles>
    <profile>
      <id>default</id>
      <repositories>
        <repository>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
          <id>central</id>
          <url>https://repo1.maven.org/maven2</url>
        </repository>
      </repositories>
      <pluginRepositories>
        <pluginRepository>
          <releases>
            <enabled>true</enabled>
          </releases>
          <snapshots>
            <enabled>true</enabled>
          </snapshots>
          <id>central</id>
          <url>https://repo1.maven.org/maven2</url>
        </pluginRepository>
      </pluginRepositories>
    </profile>
  </profiles>
  <activeProfiles>
    <activeProfile>default</activeProfile>
  </activeProfiles>
</settings>

Source: https://stackoverflow.com/questions/59972570/why-does-hybris-ship-insecure-http-maven-repository-url-and-why-cant-we-overri

Useful ABAP Functions

Function Description
POPUP_TO_SELECT_MONTHSelect month and year.
GUI_RUNRun command on client side.
DAYS_BETWEEN_TWO_DATESTotal days between dates.
HRVE_CONVERT_TIME Convert time between 24h and 12h
SEO_CLASS_GET_METHOD_INCLUDESFind includes which are created by class
TH_POPUPSend message to user
RP_CALC_DATE_IN_INTERVALAdd or remove days, months and years to date
HR_EFI_CONVERT_STRING_TO_TABLEConvert string to itab with given row length
MCS_BIW_DROP_CREATE_TABLEDrop and re-create database table
CONVERT_DATE_TO_INTERNALConvert string to date with check

SSL / TLS settings for SAP NetWeawer

A lot of SAP product such as NetWeaver using sapcrypto / commoncrypto library (sapcryptolib.dll or sapcryptolib.so) for SSL / TLS and encryption.

SSL / TLS client configuration.

ssl/client_ciphersuites = 150:PFS:HIGH::EC_P256:EC_HIGH

SSL / TLS server configuration.

ssl/ciphersuites = 135:PFS:HIGH::EC_P256:EC_HIGH

You need at least 8.4.40 sapcrpytolib for SNI (Server Name Indication) support. Before SNI protocol client request certificate with domain IP instead of domain name. SNI used for hosting multiple site on same port with encryption.

ssl/client_sni_enabled = TRUE

We need updated kernel for using this parameter, details are in this note.

Also you can set these parameters as OS environment variable.

SAPSSL_CLIENT_CIPHERSUITES = 135:PFS:HIGH::EC_P256:EC_HIGH
SAPSSL_CLIENT_SNI_ENABLED = TRUE

sapcryptolib versions for protocols

In below table you can find minumum sapcryptolib version for protocols.

ProtocolVersion
TLS 1.05.5.5 PL 28
TLS 1.28.4.31
SNI8.4.40

Split string to lines for displaying

DATA: lv_content TYPE string,
      lv_pos     TYPE i,
      lv_len     TYPE i.
lv_content = 'dummy string'.
lv_pos = 1.
WHILE lv_pos LE strlen( lv_content ).
  lv_len = 80.
  IF lv_pos + lv_len GT strlen( lv_content ).
    lv_len = strlen( lv_content ) - lv_pos.
  ENDIF.
  WRITE lv_content+lv_pos(lv_len).
  lv_pos = lv_pos + 80.
ENDWHILE.



If SOAMANAGER not exists

Some old system hasn’t got SOAMANAGER for configuring/creating logical port or service. We can use below t-codes for same operation.

LPCONFIG
WSCONFIG
WSADMIN