Gateway – Activate ICF Services

Gateway exposes services via HTTP, therefore the Gateway services must be activated on the NetWeaver ABAP system. As HTTP services are run by ICF, they are controlled by transaction SICF. The services to be activated for Gateway system that d not care about compatibility mode for SP02 are

  • /sap/public/opu
  • /sap/opu/odata

More information: SAP Help

These services are activated by activating the corresponding node and all sub elements.


  1. Go to transaction SICF
  2. Execute and navigate to sap/public/opu

  3. Select Activate Service
  4. Select Yes

  5. Node is activated


  1. Go to transaction SICF

  2. Execute and navigate to sap/opu

  3. Select Activate Service
  4. Select Yes

  5. Node is activated

  6. Make sure that the handler for /sap/opu/odata is /IWFND/CL_SODATA_HTTP_HANDLER

Let the world know

Gateway: Set Profile Parameters

Profile parameter to be set in the Gateway and BEP (backend) system. SAP Help. These parameters are set in the DEFAULT profile SAP Help

  • login/accept_sso2_ticket = 1
  • login/create_sso2_ticket = 1

Transaction: RZ10

If the transaction is called for the 1st time, a profile must be generated first. We want to adjust the default profile, therefore a default profile must be cerated. Enter the profile meta data

  • Profile: DEFAULT
  • Version: 1

Select Create

Select Copy

Back on RZ10 main screen, select Import

Select the base profile to be imported.

Profile: DEFAULT.2.PFL

Select Copy

Click OK. New profile is now saved and activated.

Select Extended Maintenance and then Change.

A list of parameters is shown.

Create a new parameter: . Search for

  • Parameter name: login/accept_sso2_ticket
  • Parameter value: 1

Select copy If it worked, status message indicates:

Do the same for parameter login/create_sso2_ticket

  • Parameter name: login/create_sso2_ticket
  • Parameter value: 2


Two new parameters are added to the profile:

Let the world know

Install a SAP NetWeaver ABAP system


SAP NetWeaver ABAP is the application server running most of SAP’s software. Version 7.4 comes with Gateway and the option to run Fiori on top of it. The installation of a NetWeaver ABAP system is not overly complex for a developer system: basically it is just installing the software. This installation process is composed of three steps:

  • Check the pre-requisites
  • Perform the actual installation
  • Apply a license

After executing all three steps, you have a fully functional SAP NetWeaver ABAP system.


To install a SAP system, you need to check first the hard ware requirements. You also need to ensure that a correct user/group is set up. This depends normally on the SID of your SAP system.

Software packages you’ll need

  • Database: Files to install the underlying database. Here I will use MaxDB.
  • Kernel. The kernel files, depend on your operating system and if you want to use unicode (UC) or not. I’ll use Linux x64 and a UC kernel.
  • SAP Installer: SWPM. This is the sapinst program. Be careful, as two version of SWPM exist. One is for installing NW AS and products; the other is for installing BS, SolMan and NW 7.0.


    With SWPM10SPxx_PL.SAR:

    Products based on SAP NetWeaver 7.1x

    SAP Composition Environment 7.1x

    SAP Composition Environment 7.2

    Products based on SAP NetWeaver 7.3x

    Products based on SAP NetWeaver 7.4 SR1*, SR2

    With 70SWPM10SPxx_PL.SAR:

    SAP NetWeaver 7.0, including Enhancement Package 1, 2, 3

    SAP Business Suite 7i 2011, 2010, 7 SR1, 2005 SR3 based on SAP NetWeaver 7.0, including Enhancement Package 1, 2, and 3

    SAP Solution Manager 7.0 including EHP1 SR1

    SAP Solution Manager 7.1 SR1

  • Application Server: ABAP

All files are delivered as ZIP, except SWPM. You’ll have to un-SAR this one. Copy all unziped/unsared file to a common location on your server, like /install.


For each SAP system you’ll need to have one corresponding administration user. The user ID is determined by the SAP system Id (SID). The user id follows the schema: <sid>adm. For instance, when your SAP system is going to use the SID GWD, the user will be gwdadm. The group can be anything, but normally you use sapsys as group name. Creating a user in Linux is easy as it is just one command, and with SuSE you even get a wizard that aids you through the process.




To start the installation, just run sapinst from the SWPM package.

There are two executables: sapinst and sapinstgui. Sapinst will start the local server and the local GUI, while sapinstgui needs to connect to an already started sapinst server. As long as you do not have to do a remote installation, sapinst is the executable you want to run.

The initial screen shows the install options

Pre-requisites check

I am going to install SAP NetWeaver 7.4 Support Release 2 ABAP for MaxDB. First thing to run is the preparations step.

Select what sapinst should test. If nothing is selected, sapinst will check a basic set of requirements. This does not mean that after the check is done your system really meets all the requirements. So make sure you select what you are going to install to have a meaningful test result. As I am going to install NetWeaver ABAP, I selected the ABAP related checks.

Provide the database type.

Confirm that a UC system will be installed.

SAPinst will ask for the location of the Kernel files.

Inform the location of the files. In my case, they are located at /sap/inst

Confirm the prerequisites data. If everything is OK, you can start the process.

The requisites are being verified.

After the check is done, sapinst presents you a screen with the results.

Go through the list. Everything needs to be OK.

The final dialog confirms that everything is OK and that a report was saved to a local file.

Now we are good to go: sapinst checked the system and gave it a quality stamp. Nothing impedes the installation of NetWeaver ABAP 7.4 SR2 with MaxDB.


The NW ABAP 7.4 SR2 system is going to be a standalone system, with everything on the same host.

Installation type

Installation mode

Chose mode. Typical is enough, you’ll see still more than enough input dialogs.

In case the mode of the files is not correct, do not worry. Sapinst will take care of that (thank you sapinst!).

SAP system id

Specify the SID (here: GWD) and the mount directory (here: /sapmnt).

Set DNS name

The 2nd input field is to set the domain name of the server. Do not enter the FQDN or the name of the server here, just the DNS name (here: If you server is, only the part.

Kernel files

Standard password for all users

Database SID

DB files

Inform where the DB files are located

ABAP files

Inform location of ABAP files


Let’s do not add the system to a SLD

Secure Storage Key Generation

Let the installer create a secure key

Review parameters

Start installation

Lean back and relax, this will take a while


End of installation

After all steps are executed successfully and marked with a green check, the installation is done.

Install SAP license

Log on to the new SAP system is done via SAPGui. User is SAP* and the password is the standard password given during installation.

Transaction: slicense

Automatically, a temporary license is installed.

Click the install button and select the license file. If everything is OK, a popup will confirm the installation of the license(s).

Last check is to verify that the new license is installed and active.



If the installation goes through without any error: congratulations. Many users will run into some errors, just do a search on SCN for installation problems. Here are some common problems and their solution:

R3load connect error

Step: Import ABAP:

Problem: R3load –testconnect fails


Log file:

  • File exists in sapdb folder

Cause: Library not loaded

How to add the MaxDB library to the LD path? Configuration is stored in directory /etc/

The last line is a include parameter. To add the Max DB libraries, it is just to create a conf file maxdb.conf in /etc/ and add the lib path to the new file.

Running the ld command from above:

Sapinst: retry

Strange errors

SAPinst should be run as the admin user of the instance: <sid>adm. SCN is full of errors from users that had the problem to run the Import ABAP step. That error is caused by running the installation as root and not as <sid>adm. For instance, to configure the DB, R3load is called. With user <sid>adm the program connects flawlessly to the DB, as user root not. This is given by the simple fact that the environment variables are set for <sid>adm, and not for user root.


In case sapinst isn’t capable of setting the right permissions to the file sapuxusercheck, follow SAP Note 1563660.

Let the world know

Trailing whitespaces in Eclipse

SonarQube is not only good in telling you that you have a tab indentation problem, but also shows that you have a lot of white spaces that make no sense: trailing white spaces at the end of a line.

How do you get rid of these in Eclipse?

You can configure Eclipse to delete trailing white spaces when you save the file.

Go to Windows -> Preferences -> Javascript -> Editor -> Save Actions

Activate “Perform the selected actions on save” and then “Additional actions” and select “Configure…

Switch to tab “Code Organizing

Confirm your choices by clicking OK. Afterwards the additional actions sections contains your selected save actions:

Every time you now click on save in a Javascript file, these actions will be executed.

Let the world know

Activate RMTSAMPLEFLIGHT service

After installing a SAP NetWeaver Gateway system, you’ll want to play around with a OData service. One option is to create everything from scratch; another option is to use a sample service that serves as a basis for learning. SAP NetWeaver ABAP comes with the flight sample, and to no surprise, SAP Gateway comes with a sample OData service based on the flight sample. To maintain a service, transaction /IWFND/MAINT_SERVICE is used. It shows a list of available services:

Adding the service

After a fresh SAP Gateway installation, the flight sample service won’t be listed. The service is already installed, but is not visible in the service catalog. To add it, select the Add Service option: This brings up the Add Selected Services screen.

The get a list of services, first inform the system alias. In my case, I created before in SPRO an alias named GWD for my Gateway system.

Then, click on Get Services: . The brings up the list of services available in the system

The OData service for the flight data is RMTSAMPLEFLIGHT or RMTSAMPLEFLIGHT_2. Select the services you want to add and click on Add Selected Services.

Confirm the following dialog

This will load the service. After everything was done successfully, you’ll hopefully see the following information:

Back at the Activate and Maintain Services transaction shows that the RMTSAMPLEFLIGHT service is added.

Test the service

Click on the service name. This will change the lower section of the screen.

To test the service, click on Gateway Client: . This will open the SAP NetWeaver Gateway Client.

Note that in the Request URI field the service URI is already inserted: /sap/opu/odata/IWFND/RMTSAMPLEFLIGHT/?$format=xml

To see of the service works, just execute a GET request. This should bring back the service description.

Service document

Metadata document


To retrieve data from a specific collection, click on Entity Sets: . Select an Entity Set (Collection)

This will set the URI parameter accordingly.

Specific flight

The information returned by the entity set can be used to retrieve the information of a specific flight. Part of the returned XML is an entity, that contains an URL like this:


Copy & paste this URL in the URI field.

Let the world know

Tab and white spaces in Eclipse

When you decide to analyze your source code with a quality tool like SonarQube, sooner or later you will get messages about trailing white spaces or to replace tab with white spaces. The severity is minor and if you now use tab or white space for indentation has no effect whatsoever on my final code. At the end I run grunt and uglify over the code and unnecessary spaces are eliminated. But you may get into other problems with space / tab:

  • Git code review
  • Changes between operating systems (Linux, Windows)
  • Unreadable code when opened in Wordpad / Notepad / vim
  • Tab is normally 4 white spaces, but when defined differently on a computer, code gets really unreadable
  • Angry developers in endless flame wars

Now, what do to when SonarQube is showing minor problems caused by tabs?

This is caused that by default Eclipse is using tabs to indent code. You cannot change the default profile, but you can define your own. To do so, follow these steps:

  1. Create a new profile

    Windows -> Preferences

    Click on New…

    Inform a nice profile name.

  2. Alter indentation

    Change the tab and white space setting.

    Change tab policy to spaces only

To apply the new profile to an already edited file, you can open the file and re-format it (CTRL+SHIT+F). Running a new SonarQube analysis eliminates the white space errors:

Let the world know

Wrap up SAP Inside Track São Leopoldo

In our long list of SAP Inside Tracks in Brazil the last event realized was SIT São Leopoldo. This time our SIT was co-hosted with DKOM at SAP Labs São Leopoldo. DKOM was a 2 day event (31.3, SAP employees only, 1.4, open to partners + clients), SIT SL a one day event (1.4). As always, we recorded the videos and streamed them, and for those wondering why no HLS this time: I think it was a good proof that you cannot rely on YouTube 🙂

My event app allowed to sign up for the event, thanks to everyone that did so! Android users had also the chance to rate SIT sessions using the app. Apple was against a release of this feature before the event started, therefore iOS users could only rate sessions after the event was over. In total 45 people downloaded the app. While this looks nice, compared to the total number of participants the number is too low. For next SIT I’ll have to think about how to increase the number of people installing the event app. I guess it will help if the registration via app is the preferred way and opening up the web site event registration only later. Which implies to release the app way earlier.

I created a wrap up presentation for internal usage. As the file size is 5MB I cannot share it here. But here are some of the key slides and numbers:

I used the UI5 app to create a web site version, giving everyone with internet access the chance to access key information about the event. The site URL was The site had 122 unique visitors.

Tweets were analyzed with a variety of tools, with Kibana being the primary reporting tool.

Impressions from the event.

To speak for all other Mentors involved at the event: a big thank you to SAP Labs São Leopoldo to let us co-host the event.

Let the world know

SAP Inside Track Brazil

SAP Inside Track in Brazil is a series of community events that started in 2009 and since then turned themselves into a real success case. What started in 2009 with 35 participants that shared hands on information after SAP Forum is now in its 11th edition and a sought after community driven event around SAP in Brazil. As of today, SITs were hosted in three cities: São Paulo, Rio de Janeiro and São Leopoldo.

A constant location is São Paulo, having hosted most of the SITs in Brazil, followed by São Leopoldo. No big surprise, as both cities have a strong SAP location: SAP offices in São Paulo and SAP Labs in São Leopoldo.

In total, the SITs attracted 1268 participants over the years, and the number of speakers and sessions is equally impressive: 126 speakers giving 136 sessions.

Let the world know

SAP Inside Track São Leopoldo 2015

Our 3rd SIT at São Leopoldo was the first one to b eco-hosted at the first DKOM event at SAP Labs. DKOM being a two day event, the first day was strictly SAP internal, while the second day was open to clients and customers.


Official site SAP Community Network
Edition 11
Date 1.4.2015
Location SAP Labs Latin America – Av. SAP, 188, São Leopoldo, RS
Twitter #sitsl
Sessions 14
Speakers 12
Tracks 1
Participants 283
Tweets 725
Twitter reach 1.118.986

Event Schedule

Let the world know

SAP Inside Track São Paulo 2014

This SIT innovated at several levels: first, it was held on a Saturday, allowing participants to not loose e full day at work and second, it featured an event app.


Official site

SAP Community Network






SAP – Av. das Nações Unidas, 14.171 – 7º andar (Entrada pela Av. Chucri Zaidan, em frente ao Shopping Morumbi)


#sitsp or #sapinsidetracksaopaulo










Twitter reach 


Event Schedule


08:30 – 09:00

Credenciamento no evento & Welcome Coffee

09:00 – 09:30

SCN Community, OpenSAP, Learning Hub

Marlo Simon – SAP Mentor / Karen Rodrigues – Consultora Independente

Auditório New York

09:30 – 10:00

The Future of Learning – SAP Education Approach

Isabel Oliveira – Diretora, Global Education Go to Market

Auditório New York

10:00 – 10:55

Live coding da App SAP Mentors

Tobias Hofmann – SAP Mentor

Auditório New York

e-Procurement na cloud (Ariba)

Erlon Costa – Solution Architect

Auditório San Francisco

11:00 – 11:55

Machine Learning on ABAP

Bruno Lucattelli – SAP Mentor / Fabio Pagoti

Auditório New York

Migração de Ativo Fixo via LSMW

Marssel Vilaça – SAP Mentor

Auditório San Francisco

11:55 – 13:30


13:30 – 14:25

Uso do GitHub para hospedar aplicações OpenUI5

Fabio Pagoti – Consultor ABAP/SD

Auditório New York

TDF – Por onde começar?

Karen Rodrigues – Consultora Independente / Eduardo Chagas – SAP Mentor

Auditório San Francisco

14:30 – 15:25

Conheça o SAP Web IDE e Roadmap de Mobilidade

Ivan Mirisola – Expert Mobility Expert

Auditório New York

Inovações no SAP TM 9.2

Eduardo Chagas – SAP Mentor

Auditório San Francisco

15:25  – 15:45

Coffee Break

15:45 – 16:40

s-Innovations e SAP HCP: Inovação de Software na Nuvem!

Marlo Simon – SAP Mentor

Auditório New York

Cloud for Customer (C4C)

Silvia del Amo – Solution Architect

Auditório San Francisco

16:45 – 17:30

Como será a TI daqui a 20 anos?

Henrique Pinto – SAP Mentor

Auditório New York

Contando historias de negócio com SAP Lumira

Eduardo Chagas – SAP Mentor

Auditório San Francisco

17:30 – 21:00

Sorteio de Brindes & Networking Session

Let the world know