IIS Application Pool Identity

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

ICACLS "C:\inetpub\wwwroot\myapp" /grant "IIS AppPool\myapp":M /t

Useful ABAP Functions

Function Description
POPUP_TO_SELECT_MONTHSelect month and year.
GUI_RUNRun command on client side.

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.

You can also set this option with OS environment variable.


Minimum sapcryptolib versions for protocols.


Split string to lines for displaying

[code]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.[/code]

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.


Linux check list

Install tools for operation.

[code]yum install nano wget epel-release[/code]


If you update some packages, your config files override with new ones. You can find old files with rpm extension in same directory.

Latest Packages

Some linux distributions update their package with delay. IUS is good option for using latest package. You can get IUS package list here and install them with below command.

Install ius rpm package first:

[code]yum install https://centos7.iuscommunity.org/ius-release.rpm[/code]

Use u suffix for Installing package from ius repo. For example use below for installing git 2.x:

[code]yum install git2u[/code]


Download rpm package, check this list for other versions.
[code]wget https://download.postgresql.org/pub/repos/yum/9.6/redhat/rhel-7-x86_64/pgdg-centos96-9.6-3.noarch.rpm[/code]
Install package.
[code]rpm -i pgdg-centos96-9.6-3.noarch.rpm
yum install postgresql96-server postgresql96-contrib
/usr/pgsql-9.6/bin/postgresql96-setup initdb[/code]

Create db and user.
su postgres
createuser –interactive
createdb -O myuser mydb

Run psql for setting password to new user.
ALTER USER mydbuser WITH PASSWORD ‘mynewpass’;


If you need proxy you can use nginx. You need give permission to nginx for accessing http resources.

[code]setsebool httpd_can_network_connect true -P[/code]

Check nginx.log with

[code]tail -10f /var/log/nginx/error.log[/code]

php & php-fpm

Use IUS for latest release, php72u.

Permissions overwritten after update, check /var/lib/php/fpm permissions.



[code]wget –no-cookies –no-check-certificate –header “Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie” “http://download.oracle.com/otn-pub/java/jdk/8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jre-8u181-linux-x64.rpm”[/code]
[code]yum localinstall jre-8u181-linux-x64.rpm[/code]


[code]wget –no-cookies –no-check-certificate –header “Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie” “http://download.oracle.com/otn-pub/java/jdk/8u181-b13/96a7b8442fe848ef90c96a2fad6ed6d1/jdk-8u181-linux-x64.rpm”[/code]



My React Native notes

Start emulator from CLI:

[code]cd $ANDROID_HOME/tools
emulator -list-avds
emulator -avd KitKat[/code]

Start project for android:

[code]react-native run-android[/code]


LC_CTYPE: cannot change locale (UTF-8)

When connect to centos machine with ssh, you can get below warning.

-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory

You need to set environment variable for encoding. Add below lines to /etc/environment file.



Source: https://gist.github.com/ibrahimlawal/bfec7092cb64d46d8f9d1fd2c0c3d9c8

My hybris development environment test

I am using my company mac pro 2015 for a lot of thing. So I need different environment look like C#, hybris, ABAP, etc. These environment needs service look like db. These service using my ram always. So I am using VM for environment which are not used often. I created VM for new hybris versions for testing (docker cannot pause / resume systems yet). I try some scenarios for my best hybris development environment.

VM: OS version Centos 7, Java 8 u162, MySQL 5.7.21 and hybris version 6.6.

Enviroment Compile time (ant clean all)
Hybris files in host shared with guest vm 21 minutes 9 seconds
Hybris files in guest vm 3 minutes 8 seconds
2 minutes 29 seconds
Hybris files in guest vm and shared with host (without nfs optimization)  5 minutes 44 seconds


Creating history for item

If you want create history for item look like backoffice, you can use below example.
[code lang=”java”]public void updateConsignmentStatus(String userUid, ConsignmentModel consignment, ConsignmentStatus status) {
Map originals = new HashMap();
originals.put(ConsignmentModel.STATUS, consignment.getStatus());


Map news = new HashMap();
news.put(ConsignmentModel.STATUS, consignment.getStatus());

final SavedValues savedValues = JaloConnection.getInstance().logItemModification(consignment.getPk(), news, originals, false);