Java kullanıcı dilini değiştirmek

Eğer işletim sisteminiz Türkçe ise, java da bu ayarı otomatik olarak okuyacaktır. Özellikle toUpperCase methodunda küçük i harfini büyük İ ve toLowerCase metodunda da büyük I harfini küçük ı yapmaktadır. Reflection youluyla metodlara erişen, dinamik kod çağıran, dosya sistemine erişen kodlarda kullanılan bu metotdar hataya neden olmaktadır.

JVM’i işletim sistemindeki dil ayarından farklı bir dil ile çalıştırmak için JAVA_TOOL_OPTIONS adındaki ortam ya da sistem değişkenine -Duser.language=en değerini ekleyerek java’ın her açılışında dil ayarını değiştirmesini sağlayabilirsiniz.

Komut oturumunda hızlıca test etmek için komut satırında aşağıdakileri uygulayarabilirsiniz. Yapmış olacağınız ayarın sadece içinde olduğunuz komut oturumu için geçerli olacağını unutmayınız. Kalıcı olması için yukarıdaki ayarı yapmalısınız.

set JAVA_TOOL_OPTIONS=-Duser.language=en
java -XshowSettings -version

Aşağıdaki gibi bir çıktı elde etmiş olmalısınız. Çıktıda Picked up bilgisi ile alınan parametreler yazılır, bir hata varsa Unrecognized option ifadesi çıkacaktır.

Picked up JAVA_TOOL_OPTIONS: -Dsuser.language=en
VM settings:
    Max. Heap Size (Estimated): 9.95G
    Using VM: OpenxJDK 64-Bit Server VM
. . .
Locale settings:
    default locale = English (United States)
    default display locale = English (United States)
    default format locale = English (United States)
    available locales = , af, af_NA, af_ZA, agq, agq_CM, ak, ak_GH,
. . .

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

SapMachine 11 for Windows

SAP releases own JDK alternitives at this page. But you cannot find version 11 download link for Windows on site. Because of latest release not included windows yet.

You can download 11.0.6 version from this link.

IIS Application Pool Identity

Give write permission to your app for application folder with command line.

ICACLS "myapp folder" /grant "IIS AppPool\myapp":M /t

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