Export SAPUI5 project from Eclipse in zip file

Below are the steps to export a SAPUI5 project in Eclipse. The exported file can then be uploaded in SAP Netweaver AS ABAP. Select the project from the Projects Explorer pane. Right-click and choose Export->Export. Select General, Archive File and click on Next. Select the project, specify the path of the compressed archive file, zip file formatContinue reading “Export SAPUI5 project from Eclipse in zip file”

Download location of SAPUI5 SDK

The SAPUI5 SDK can be downloaded and installed on your local httpd server for offline development. Go to the download location https://tools.hana.ondemand.com/#sapui5. Scroll to the section SAPUI5 Runtime / SAPUI5 SDK. Click on Download Link to start the download. Always choose the latest version for development. Extract the zip file into the htdocs folder of the ApacheContinue reading “Download location of SAPUI5 SDK”

Implement a Gateway service (Part 3) – CRUD Operations

Now we can implement the rest of the CRUD(Create, Read, Update and Delete) operations. We will do it for the entityset SUBJECTSSET. Create – Redefine the method SUBJECTSSET_CREATE_ENTITY METHOD subjectsset_create_entity. DATA: ls_subject LIKE er_entity. io_data_provider->read_entry_data( IMPORTING es_data = ls_subject ). ls_subject–mandt = sy–mandt. er_entity = ls_subject. INSERT INTO zsubjects VALUES ls_subject. ENDMETHOD. Read – Redefine the method SUBJECTSSET_GET_ENTITY method SUBJECTSSET_GET_ENTITY. DATA: ls_key_tab LIKE LINE OF it_key_tab, lv_id      TYPE zsubjects–id, lv_subject TYPE zsubjects–subject. CLEAR ls_key_tab. READ TABLE it_key_tab INTO ls_key_tab WITH KEY name = ‘Id’. IF sy–subrc EQ 0. lv_id = ls_key_tab–value. ENDIF. CLEAR ls_key_tab. READ TABLE it_key_tab INTO ls_key_tab WITH KEY name = ‘Subject’. IF sy–subrc EQ 0. lv_subject = ls_key_tab–value. ENDIF. SELECT SINGLE * INTO CORRESPONDING FIELDS OF er_entityContinue reading “Implement a Gateway service (Part 3) – CRUD Operations”

Install license key for SAP Netweaver AS ABAP 7.51 Innovation Package

When the license of your AS ABAP Server is about to expire, a warning message will be shown each time you log into the system. License expiration date: 11.02.2018 (in 11 days) Before applying a new license The status is Expires Soon. Note: Do not use the site https://support.sap.com/en/my-support/keys.html. It is only accessible to super administratorsContinue reading “Install license key for SAP Netweaver AS ABAP 7.51 Innovation Package”

Important SAP Gateway transactions

  tx Description  SEGW  Service Builder /IWFND/MAINT_SERVICE Maintain services /IWFND/GW_CLIENT Execute and test services /IWFND/ERROR_LOG Error Log for Gateway /IWFND/TRACES Trace tool /IWFND/APPS_LOG Application log /IWBEP/REG_SERVICE Register services. Functionality is built-in SEGW Note: Always precede transactions starting with / with /n.

Implement a Gateway service (Part 2) – Coding the Query operation

After having defined the Data Model in part1, you have to implement the business logic in ABAP to retrieve the data from the backend. Expand the Runtime Artifacts folder. Double-click on the Data Provider Extension Class, namely ZCL_ZSTUDENTS_DPC_EXT. Double-click on the class again to open the Class Builder. Go to change mode. Select the method STUDENTHEADERSET_GET_ENTITYSET andContinue reading “Implement a Gateway service (Part 2) – Coding the Query operation”

Implement a Gateway service (Part 1) – Define a data model based on Data Dictionary Structure

We are going to define a Gateway service in the Service Builder SEGW. The first stage of implementing a service is to define the data model. For that, we will create custom z tables from scratch. Create 2 tables named ZStudent and ZSubjects as shown below.   In transaction SEGW, create a new project. GiveContinue reading “Implement a Gateway service (Part 1) – Define a data model based on Data Dictionary Structure”

Stop SAP NetWeaver AS ABAP instance in Linux

Make sure you are logged in as user npladm. Issue the command stopsap ALL on the terminal. vhcalnplci:npladm 52> stopsap ALL Checking syb Database Database is running ——————————————- stopping the SAP instance D00 Shutdown-Log is written to /home/npladm/stopsap_D00.log ——————————————- /usr/sap/NPL/D00/exe/sapcontrol -prot NI_HTTP -nr 00 -function Stop Instance on host vhcalnplci stopped Waiting for cleanup ofContinue reading “Stop SAP NetWeaver AS ABAP instance in Linux”

Update VirtualBox Guest Additions on openSUSE Leap 42.3

You just updated your VirtualBox to the latest version. But your openSUSE virtual machine is still using the old version of the Guest Additions? This causes VirtualBox to display a nagging message asking you to update. How do you update the Guest Additions on VirtualBox? Insert the Guest Additions CD image from the Devices menu.Continue reading “Update VirtualBox Guest Additions on openSUSE Leap 42.3”

Check version of VirtualBox Guest Additions in openSUSE vm

How do you find out which version of the Guest Additions are installed in the openSUSE virtual machine in VirtualBox? Type the commands below: lsmod | grep -i vbox vboxsf 53248 1 vboxvideo 61440 2 drm_kms_helper 155648 1 vboxvideo syscopyarea 16384 2 drm_kms_helper,vboxvideo sysfillrect 16384 2 drm_kms_helper,vboxvideo vboxguest 323584 6 vboxsf,vboxvideo sysimgblt 16384 2 drm_kms_helper,vboxvideoContinue reading “Check version of VirtualBox Guest Additions in openSUSE vm”