ALV / SAP HANA

text search in IDA ALV on an SAP system where HANA is a secondary database

Tagged Leave a Comment on text search in IDA ALV on an SAP system where HANA is a secondary database

Integrated Data Access is an improvement for ALV controls where you can use ALV attributes with high performance focus. I am trying to say if you are using HANA as your database […]

READ MORE

FIORI / WEBIDE

local SAP WebIDE setup and configuration

Tagged Leave a Comment on local SAP WebIDE setup and configuration

Starting with new SAP development environment SAP Cloud WebIDE has a few drawbacks. First of all network performance problems can dramatically effect your development. Besides your company might not allow you using Cloud WebIDE because of securtiy reasons. For that purposes i highly recommend you to use The Personal Edition of WebIDE. You can download it from https://tools.hana.ondemand.com/#sapui5 . It has trial and productive usage versions. Untill productive usage we are using the Trial one with almost any problem. The only problem was in setup configuration phase. After downloading the files and extract files under C:\SAPWebIDE you also need to configure your destinations under C:\SAPWebIDE\eclipse\config_master\service.destinations\destinations folder.

READ MORE

CODE INSPECTOR

change code inspector error types in other words message priorities

Tagged Leave a Comment on change code inspector error types in other words message priorities

Code inspector provides a set of configuration which are customizable. You can either include or exclude any standard or custom check into your variant. By doing this you can prevent certaion types of checks in your ABAP programs. The only place to customize your variant is SCI. However there is a hidden customization where you can also set priority for the standard and custom checks. Go through the following steps to switch code inspector check priorities so that you could for example prevent a transport request to be released because it is consisted of an object with an error statused check.

READ MORE

ABAP / ALV / PROGRAM LIBRARY

converting CL_SALV_TABLE into CL_GUI_ALV_GRID

Tagged , , 1 Comment on converting CL_SALV_TABLE into CL_GUI_ALV_GRID

I know the post header does not make enough sense. However this is an expalantion for the solution of a problem that i come across recently, and i believe it will be very useful for such cases.

READ MORE

PROGRAM LIBRARY

COND, SWITCH, CASE, IF statement comparison

Tagged , , Leave a Comment on COND, SWITCH, CASE, IF statement comparison

As far as i have discovered new commands coming with ABAP 7.4 (COND,SWITCH), i realized that they have some superiority over the old predecessors considering code repetition. Lately i have started to make use of COND command very often. The reason for that is SWITCH has same usage with CASE but has less code. Likewise COND provides declaring free conditions and accordingly assign a field value therefore has less code than IF. Below i have written very simple sample code for you to easily compare each of these commands.

READ MORE

PROGRAM LIBRARY / SAP ARCHITECTURE / WEBSERVICE

consume REST oauth service from ABAP – with access token consume REST service with JSON data – part 2

Tagged , , Leave a Comment on consume REST oauth service from ABAP – with access token consume REST service with JSON data – part 2

In consume REST oauth service from ABAP – get access token in order to call main webservice – part 1 post, i had tried to explain how a key required by REST services can be obtained. In this step i will make use of this generated key so that i can call my real service. Here all i have to do is creating the body part of my JSON data, the rest is again using right methods of cl_http_client. After consuming service the response from the server will be processed and siutable message will be returned.

READ MORE

PROGRAM LIBRARY / SAP ARCHITECTURE / WEBSERVICE

consume REST oauth service from ABAP – get access token in order to call main webservice – part 1

Tagged , , 4 Comments on consume REST oauth service from ABAP – get access token in order to call main webservice – part 1

I have heard many things about REST, oauth, JSON and all these things. Finally i have to meet these terms this week. There was a third party tool which is provding a REST service and i have to consume it with ABAP. Interestingly i learnt that there is not any Enterprise Service infrastructure in order to call REST services. Therefore i had to use HTTP service objects within ABAP program library. cl_http_client is the main class for REST services. Calling a REST service is consist of two parts. In this post i will focust on the first part. It is getting access token which is required to successfully make main webservice and this is the second poart of REST service.

READ MORE

PROGRAM LIBRARY / SMARTFORMS

dynamically change stylename in smartform

Leave a Comment on dynamically change stylename in smartform

Lately we had a requirement to use different smart styles for different plants in our outputs. However smartform has a one-to-one relation with smartstyle. It means you can only provide one style […]

READ MORE

ABAP / EWM

read Inbound/Outbound/Final delivery using selection criteria in SAP EWM

Tagged , Leave a Comment on read Inbound/Outbound/Final delivery using selection criteria in SAP EWM

In EWM Documents are one of the main objects which we always need to access through our custom developments. There are different types of Documents which most of them you can already […]

READ MORE

ABAP / PROGRAM LIBRARY / SMARTFORMS

generate HTML output from SMARTFORM and send it as email body

Tagged , Leave a Comment on generate HTML output from SMARTFORM and send it as email body

There was a standard process in our system which sends a text as the body of a mail, after a certain operation is completed. For this program a change had been done so that the program could send a custom SMARTFORM as a PDF attachment beside to the text body. This change had been done as a repair in a program. So far so good, everything was working fine.

READ MORE